glob: fix build for platforms without __THROW
[gnulib.git] / ChangeLog
1 2013-09-07  Eric Blake  <eblake@redhat.com>
2
3         glob: fix build for platforms without __THROW
4         * lib/glob.in.h (__THROW): Add definition again.
5
6 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
7
8         regex-quote: fix buffer access out of bounds
9         http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00001.html
10         * lib/regex-quote.c (regex_quote_spec_pcre):
11         Fix typo that resulted in an out-of-bounds read.
12
13 2013-09-04  Eric Blake  <eblake@redhat.com>
14
15         glob: avoid -Wattribute warnings on glibc
16         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
17         __THROWNL, not __THROW, on static functions.
18         * lib/glob.in.h (__THROW): Adjust...
19         (__THROWNL): ...accordingly.
20
21 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
22
23         headers: check that _GL_INLINE_HEADER_BEGIN is defined
24         Suggested by Bruce Korb in:
25         http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00070.html
26         * doc/extern-inline.texi (extern inline):
27         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
28         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
29         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
30         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
31         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
32         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
33         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
34         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
35         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
36         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
37         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
38         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
39         * lib/xtime.h:
40         Check that _GL_INLINE_HEADER_BEGIN is defined.
41
42 2013-08-29  Pádraig Brady  <P@draigBrady.com>
43
44         bootstrap: remove the --version requirement from ancillary tools
45         * build-aux/bootstrap (check_exists): A new refactored function to
46         determine if a command exists.
47         (find_tool): Use the new function which does not require the
48         --version option to be supported.
49         (check_versions): Use the new function.
50
51 2013-08-26  Simon Josefsson  <simon@josefsson.org>
52
53         gc: support HMAC-SHA256 and HMAC-SHA512.
54         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
55         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
56         functions.
57         (gc_hmac_md5): Use symbolic constant.
58         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
59         (gc_hmac_sha256, gc_hmac_sha512): New functions.
60         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
61         * m4/sha256.m4: Protect against empty expansion.
62         * m4/sha512.m4: Likewise.
63         * lib/hmac-sha256.c: New file.
64         * lib/hmac-sha512.c: Likewise.
65         * m4/gc-hmac-sha256.m4: Likewise.
66         * m4/gc-hmac-sha512.m4: Likewise.
67         * m4/gc-sha256.m4: Likewise.
68         * m4/gc-sha512.m4: Likewise.
69         * modules/crypto/gc-hmac-sha256: Likewise.
70         * modules/crypto/gc-hmac-sha256-tests: Likewise.
71         * modules/crypto/gc-hmac-sha512: Likewise.
72         * modules/crypto/gc-hmac-sha512-tests: Likewise.
73         * modules/crypto/hmac-sha256: Likewise.
74         * modules/crypto/hmac-sha256-tests: Likewise.
75         * modules/crypto/hmac-sha512: Likewise.
76         * modules/crypto/hmac-sha512-tests: Likewise.
77         * tests/test-gc-hmac-sha256.c: Likewise.
78         * tests/test-gc-hmac-sha512.c: Likewise
79         * tests/test-hmac-sha256.c: Likewise.
80         * tests/test-hmac-sha512.c: Likewise
81
82 2013-08-24  Daiki Ueno  <ueno@gnu.org>
83
84         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
85         of AC_CHECK_DECLS.
86
87 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
88
89         selinux-at: omit unnecessary include
90         * lib/selinux-at.c: Don't include dosname.h; not needed, since
91         this source file doesn't use its macros, and subsidiary files that
92         use the macros already include it.
93
94 2013-08-21  Eric Blake  <eblake@redhat.com>
95
96         d-ino: avoid false negative on symlink
97         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
98         Reported by Stephane Chazelas.
99
100 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
101
102         bootstrap: port to OpenBSD sed
103         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
104         does not interpret `-' as a file argument to mean stdin.
105
106 2013-08-15  Eric Blake  <eblake@redhat.com>
107
108         warnings: minor optimization
109         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
110
111         warnings: check -Wfoo rather than -Wno-foo
112         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
113         -Wno-, test if the compiler recognizes the positive form instead.
114
115 2013-08-15  Karl Berry  <karl@gnu.org>
116
117         * config/srclist-update: add option "doclicense" to placate
118         pulling *.texi files from Emacs.  Write terse usage
119         documentation at the top.
120
121 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
122
123         xvasprintf-tests: port to GCC with hardening flags
124         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
125         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
126         http://lists.gnu.org/archive/html/bug-diffutils/2013-08/msg00002.html
127
128 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
129
130         fpending: port to recent Cygwin change to stdio_ext.h
131         Reported by LRN in
132         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00028.html>.
133         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
134         just declare __fpending unless it's a macro.
135         A duplicate decl shouldn't hurt.
136         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
137         call compiles and links, instead of separately checking for
138         decl and lib function.
139         * modules/fpending (configure-ac):
140         Adjust to fpending.m4's renaming of shell variable.
141
142 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
143
144         sys_time: port to OpenBSD
145         * lib/sys_time.in.h: Simply delegate to the system's header
146         in the BSDish cases as well.  Problem reported by Mike Miller in
147         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00016.html>.
148         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
149         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
150         wider than time_t.
151
152 2013-08-09  Pádraig Brady <P@draigBrady.com>
153
154         bootstrap: support checksum utils having -c but not --status
155         * build-aux/bootstrap: Only look for sha1sum if updating po files.
156         Add sha1 to the list of supported checksum utils since it's now
157         supported through adjustments below.
158         (update_po_files): Remove the use of --status
159         in a way that will suppress all error messages, but since this is
160         only used to minimize updates, it shouldn't cause an issue.
161         Exit early if there is a problem updating the po file checksums.
162         (find_tool): Remove the check for --version support as this
163         is optional as per commit 86186b17.  Don't even check for the
164         presence of the command as if that is needed, it's supported
165         through configuring prerequisites in bootstrap.conf.
166         Prompt that when a tool isn't found, one can define an environment
167         variable to add to the hardcoded search list.
168
169 2013-08-05  Jim Meyering  <meyering@fb.com>
170
171         regex: port to non-glibc/lock-using systems
172         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
173         system with GNULIB_LOCK would fail due to absence of the
174         included "glthread/lock.h".  This would affect any package
175         for which the "lock" module is used only by the regex module,
176         and not explicitly used.
177         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
178         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
179         Add a dependency on the "lock" module.
180
181 2013-07-20  Daiki Ueno  <ueno@gnu.org>
182
183         localecharset: make locale_charset thread-safe on Mac OS X
184         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
185         instead of MB_CUR_MAX.
186
187 2013-07-20  Daiki Ueno  <ueno@gnu.org>
188
189         gettext: update to version 0.18.3
190         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
191         require AC_PROG_SED to allow user to specify custom sed command when
192         generating en@quot PO file.
193
194 2013-07-18  Werner Lemberg <wl@gnu.org>  (tiny change)
195
196         bootstrap: use correct source when copying build-aux files
197         * build-aux/bootstrap (gnulib_extra_files): This variable is
198         relative to upstream gnulib layout, not downstream.
199
200 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
201
202         tmpdir: fix bug in VMS port
203         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
204         See Steven M. Schweda in
205         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00026.html>.
206
207 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
208
209         tmpdir: port to VMS, to // != /, and to long dirs
210         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
211         __secure_getenv, so that we're more like the glibc version.
212         All uses changed.
213         (path_search): Don't put slash after directory if __VMS.
214         Problem reported by Steven M. Schweda in
215         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00019.html>.
216         Simplify code to add slash; no need for a loop.
217         Do not remove trailing slash from "//".
218         Do not assume dlen <= INT_MAX.
219
220 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
221
222         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
223         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
224         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
225         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00015.html>.
226
227         accept4, dup3, pipe2: port to Cygwin
228         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
229         * lib/accept4.c (accept4) [O_BINARY]:
230         * lib/dup3.c (dup3) [O_BINARY]:
231         * lib/pipe2.c (pipe2) [O_BINARY]:
232         Use set_binary_mode, not setmode.
233         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
234         * modules/binary-io (Depends-on): Remove module indicator.
235         These last two bits undo the previous change to pipe2 and binary-io.
236
237 2013-07-09  Pádraig Brady  <P@draigBrady.com>
238
239         mountlist: add support for deallocating returned list entries
240         * lib/mountlist.c (free_mount_entry): A new exported function
241         to deallocate a mount list entry.
242         (read_file_system_list): Refactor to use the new deallocation function.
243         Suggested by Anton Ovchinnikov.
244
245 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
246
247         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
248         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
249         * lib/stdalign.in.h (_Alignas, _Alignof):
250         Port to FreeBSD 9.1, and to C11 and C++11.
251         (_Alignas): Also support ICC.
252         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
253         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
254
255 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
256
257         fnmatch: don't goto over declaration
258         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
259         undefined behavior for goto over a declaration.
260         Problem reported by Charlie Brown in
261         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00009.html>.
262
263         pipe2: decouple from binary-io a bit
264         This is for Emacs, which needs pipe2 but not binary-io.
265         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
266         * modules/binary-io (Depends-on): Add module indicator.
267
268 2013-07-03  Eric Blake  <eblake@redhat.com>
269
270         mgetgroups: relax license to LGPLv2+
271         * modules/getugroups (License): Change from GPLv3+.
272         * modules/mgetgroups (License): Likewise.
273         * modules/getgroups (License): Change from LGPLv3+.
274
275         xalloc-oversized: relax license to LGPLv2+
276         * modules/xalloc-oversized (License): Change from GPLv3+.
277
278         nproc: relax license to LGPLv2+
279         * modules/nproc (License): Change from LGPLv3+.
280
281         bootstrap: honor --no-git
282         * build-aux/bootstrap: Don't even try to use git when user is
283         pointing to a static checkout.
284
285 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
286
287         ignore-value: port to gcc -pedantic
288         * lib/ignore-value.h (ignore_value):
289         Port to gcc -pedantic, by using __extension__.
290         Reindent as per usual gnulib style nowadays.
291         Simplify GCC version check.
292
293 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
294
295         extern-inline: port to gcc -std=c89
296         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
297         Do not use __gnu_inline__ if pedantic and pre-C99.
298
299 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
300
301         doc: document extern-inline
302         * doc/extern-inline.texi: New file.
303         * doc/gnulib.texi (alloca-opt): Include it.
304         * m4/extern-inline.m4: Move some comments to documentation,
305         and others closer to what they describe.
306
307         doc: chatter less
308         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
309         (updated-stamp): Use it.  This causes 'make' to output just
310         one file name rather than zillions.
311
312         fflush, fseeko: port to musl cross-compiles
313         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
314         on some implementation that (1) is not known to be buggy,
315         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
316         cross-compiled to so we can't easily check for lack of
317         conformance.  This is for cross-compiling to musl.
318         Reported by Rich Felker in
319         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00043.html>.
320         * m4/fclose.m4 (gl_FUNC_FCLOSE):
321         * m4/fflush.m4 (gl_FUNC_FFLUSH):
322         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
323         Adjust to above change.
324         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
325         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
326         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
327         known not to work, or unknown.
328
329 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
330
331         msvc-inval: port to mingw-w64
332         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
333         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
334         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00039.html>.
335
336 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
337
338         getcwd-lgpl: port to Tru64
339         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
340         Problem reported by Steven M. Schweda in
341         <http://lists.gnu.org/archive/html/bug-gzip/2013-06/msg00010.html>.
342
343         tests: port large-fd POSIX spawn tests to OS X
344         Problem reported by Daiki Ueno in
345         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00031.html>.
346         * tests/test-posix_spawn_file_actions_addclose.c:
347         * tests/test-posix_spawn_file_actions_adddup2.c:
348         * tests/test-posix_spawn_file_actions_addopen.c:
349         Include <limits.h>, for OPEN_MAX, if available.
350         (big_fd): New static function.
351         (main): Use it.
352
353 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
354
355         tests/nap.h: use an adaptive delay to avoid ctime update issues
356         The recent change in nap.h (5191133e) decreased the probability of lost
357         races to about a third, however such problems could still be observed
358         in virtual machines and openSUSE's OBS.
359         Before, nap() detected the needed time once empirically and then used
360         that delay (together with a small correction multiplier) in further
361         calls.  This problem has been reported and discussed several times,
362         including guesses about possible kernel issues:
363         https://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html
364         http://lists.gnu.org/archive/html/coreutils/2012-03/msg00088.html
365         https://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00226.html
366         http://bugs.gnu.org/12820
367         https://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html
368         https://lists.gnu.org/archive/html/bug-gnulib/2009-11/msg00007.html
369         Now, nap() avoids the race alltogether by verifying on a reference
370         file whether a timestamp difference has happened.
371         * tests/nap.h (nap_fd): Define file descriptor variable for the
372         witness file.
373         (nap_works): Change return value to bool.  Change passing
374         the old file's status by value instead of by reference as this function
375         does no longer update that timestamp; rename the function argument from
376         st to old_st.  Remove the local variables cdiff and mdiff because that
377         function now returns true/false instead of the precise delay.
378         (guess_delay): Remove function.
379         (clear_tmp_file): Add new function to close and unlink the witness file.
380         (nap): Instead of re-using the delay which has been calculated during
381         the first call, avoid the race by actually verifying that a timestamp
382         difference can be observed on the current file system.  Use an adaptive
383         approach for the delay to minimize execution time.  Assert that the
384         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
385         = 2^31 - 1 = 2.1s.
386         Use atexit to call clear_tmp_file when the process terminates.
387
388 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
389
390         sig2str: port to C++
391         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
392         Reported by Daniel J Sebald in
393         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00000.html>.
394
395 2013-05-30  Eric Blake  <eblake@redhat.com>
396
397         docs: mention cygwin shortcoming in <sys/un.h>
398         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
399
400         vasnprintf: silence mingw compiler warning
401         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
402
403 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
404
405         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
406         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
407         This fixes a porting bug I recently reintroduced in regex, and
408         some other instances that I discovered while testing the fix.
409         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
410         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
411         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
412         with an empty argument if this is a pedantic pre-C99 GCC.
413         * lib/verify.h: Do not use _Static_assert if this is a pedantic
414         pre-C11 GCC.
415
416         regex: adapt to locking regime instead of depending on pthread
417         Instead of depending on pthread, adapt to whatever thread
418         modules are in use.  Problem reported by Ludovic Courtès in
419         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00082.html>
420         and by Mats Erik Andersson in
421         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00100.html>.
422         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
423         Support either the 'lock' module, or the 'pthread' module, or
424         no module.
425         (lock_lock, lock_unlock): New macros.
426         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
427         * modules/lock, modules/pthread (configure.ac): Add module indicator.
428         * modules/regex (Depends-on): Remove pthread.
429
430 2013-05-22  Eric Blake  <eblake@redhat.com>
431
432         getgroups: document portability issues
433         * doc/glibc-functions/initgroups.texi (initgroups): Mention
434         multithread safety.
435         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
436         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
437         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
438         getugroups.
439         * doc/posix-functions/getgroups.texi (getgroups): Mention
440         multithread safety and mgetgroups.
441
442 2013-05-22  Bernhard Voelker <mail@bernhard-voelker.de>
443
444         test-lchown, test-chown: also skip test if chown fails with EPERM
445         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
446         skip this test, to handle FAT file systems.
447         * tests/test-chown.h (test_chown): Likewise.
448
449 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
450
451         regex: fix dfa race in multithreaded uses
452         Problem reported by Ludovic Courtès in
453         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00058.html>.
454         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
455         New macros.  All uses of __libc_lock_define, __libc_lock_init
456         changed to use the first two of these.
457         (__libc_lock_lock, __libc_lock_unlock): New macros, for
458         non-glibc platforms.
459         (struct re_dfa_t): Define the lock unconditionally.
460         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
461         '#ifdef _LIBC"s.
462         * modules/regex (Depends-on): Add pthread, if we use the
463         included regex.
464
465         * lib/regcomp.c: Do actions that are not needed for glibc,
466         but may be needed elsewhere.
467         (regfree, re_compile_internal): Destroy the lock.
468         (re_compile_internal): Check for lock-initialization failure.
469
470         malloca: port to compilers that reject size-zero arrays
471         This fixes a bug introduced in my previous patch.
472         * lib/malloca.c (struct preliminary_header): Use an int
473         rather than a character array of size int; that's simpler.
474         (struct header): Remove, replacing with ...
475         (union header): New type.  This avoids the need for declaring a
476         character array of size zero, which is not allowed on some platforms.
477         All uses changed.
478
479 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
480
481         parse-datetime, tests: don't use "string" + int
482         Recent versions of 'clang' complain about C source code that
483         uses expressions of the form '"string literal" + integer',
484         I guess on the theory that it's confusing for readers who are
485         used to C++.  On those grounds I suppose it's OK to make this
486         minor style change.
487         * lib/parse-datetime.y (parse_datetime):
488         * tests/test-fchdir.c (main):
489         * tests/test-snprintf-posix.h (test_function):
490         * tests/test-snprintf.c (main):
491         * tests/test-vasnprintf-posix.c (test_function):
492         * tests/test-vasnprintf.c (test_function):
493         * tests/test-vsnprintf.c (main):
494         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
495         Rewrite '"str" + E' to '&"str"[E]'.
496
497 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
498
499         argmatch: port to C++
500         * lib/argmatch.h [__cplusplus]: Add extern "C".
501
502         argp: typo fix
503         * lib/argp-help.c: Typo in comment.
504
505 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
506
507         manywarnings: update for GCC 4.8.0
508         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
509         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
510         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
511         -Wmissing-noreturn, as they are duplicates of other warnings.
512         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
513         was documented to be flaky in earlier versions of GCC.
514
515         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
516         * tests/test-spawn.c (main):
517         * tests/test-sys_socket.c (main):
518         * tests/test-sys_wait.c (main):
519         Don't have a switch value that isn't covered by a case.
520
521         getaddrinfo-tests: port --enable-gcc-warnings to clang
522         * tests/test-getaddrinfo.c (simple):
523         Avoid casts from looser to stricter-aligned pointers.
524
525         thread: port --enable-gcc-warnings to clang
526         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
527         Include <signal.h>, to pacify a warning about pthread_sigmask.
528
529         stdio: use __REDIRECT for fwrite, fwrite_unlocked
530         * lib/stdio.in.h (fwrite):
531         When working around bug 11959, use __REDIRECT rather than '#define
532         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
533         fix the -Wunused-value issue with clang, and it works with GCC too.
534         Problem with targeting reported by Eric Blake in
535         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00067.html>.
536         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
537         debugging the fwrite issue.
538
539         stdio: port --enable-gcc-warnings to clang
540         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
541         since the GCC workaround for fwrite does not pacify clang.
542
543         sig2str: port --enable-gcc-warnings to clang
544         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
545
546         obstack: port --enable-gcc-warnings to clang
547         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
548         Avoid casts from looser to stricter-aligned pointers.
549
550         memchr2: port --enable-gcc-warnings to clang
551         * lib/memchr2.c (memchr2):
552         Avoid casts from looser to stricter-aligned pointers.
553
554         mbsstr: port --enable-gcc-warnings to clang
555         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
556         Avoid casts from looser to stricter-aligned pointers.
557
558         malloca: port --enable-gcc-warnings to clang
559         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
560         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
561
562         inttostr: port --enable-gcc-warnings to clang
563         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
564
565         warnings: port to clang
566         Problem reported by Daniel P. Berrange via Eric Blake in
567         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00055.html>.
568         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
569         (gl_WARN_ADD): Use it.
570
571 2013-05-11  Jim Meyering  <meyering@fb.com>
572
573         quotearg: do not read beyond end of buffer
574         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
575         end of an ARG for which no length was specified.  With an N-byte
576         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
577         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
578         via coreutils' misc/sort-debug-keys.sh test and detected by running
579         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
580         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
581         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
582         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
583         characters correctly."
584
585 2013-05-11  Daiki Ueno  <ueno@gnu.org>
586
587         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
588         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
589         compilation target is Mac OS X 10.6.
590         Problem reported by parafin and Andoni Morales in
591         <http://savannah.gnu.org/bugs/?37844> and
592         <http://lists.gnu.org/archive/html/bug-gettext/2013-05/msg00007.html>.
593
594 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
595
596         mkdir-p: remove assumptions about umask and mode
597         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
598         umask is 0, or that MODE is a subset of MODE_BITS.
599
600 2013-05-10  Eric Blake  <eblake@redhat.com>
601
602         maint.mk: catch more abuse of HAVE_DECL in syntax-check
603         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
604
605 2012-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
606
607         deps: require Automake >= 1.9.6 in generated Makefile fragments
608
609         That is the same minimal version required in the DEPENDENCIES file.
610         Moreover, the old code generated a requirement of Automake >= 1.5,
611         and that is an insanely outdated version.
612
613         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
614         * tests/havelib/rpathlx/Makefile.am: Likewise.
615         * tests/havelib/rpathly/Makefile.am: Likewise.
616         * tests/havelib/rpathlyx/Makefile.am: Likewise.
617         * tests/havelib/rpathlz/Makefile.am: Likewise.
618         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
619         * tests/havelib/rpathx/Makefile.am: Likewise.
620         * tests/havelib/rpathy/Makefile.am: Likewise.
621         * tests/havelib/rpathz/Makefile.am: Likewise.
622
623 2013-05-08  Eric Blake  <eblake@redhat.com>
624
625         bootstrap: AC_INIT may have more than four parameters
626         * build-aux/bootstrap (extract_package_name): Correctly extract
627         non-empty tarname field.  Avoid range in regex.
628         Based on a report by Sami Kerola <kerolasa@iki.fi>.
629
630 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
631
632         qacl: port to MS-Windows port of GNU Emacs
633         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
634         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
635         port of GNU Emacs.  Problem reported by Eli Zaretskii in
636         <http://bugs.gnu.org/14295#14>.
637
638 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
639
640         acl: include quote.h
641         * lib/copy-acl.c: Include quote.h.
642         * lib/set-acl.c: Likewise.
643
644 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
645
646         fchownat, renameat, unlinkat: update statat dependencies
647         These modules use statat and lstatat, not fstatat; so depend on
648         the statat module, which was split out recently from fstatat.
649         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
650         * modules/renameat: Likewise.  Also delete fstat.
651         URL: http://bugs.gentoo.org/468790
652
653 2012-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
654
655         Assume gnulib is checked out from Git, not CVS
656
657         In fact, access to the gnulib repository through CVS has been
658         disabled, or more precisely, got broken and was never restored; see:
659         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00008.html>
660
661         Note that support for CVS is not removed completely and unthinkingly
662         by this change: only support for CVS checkouts of gnulib itself is
663         removed.  For example, the 'bootstrap' script still cater to .cvsingore
664         files and CVS directories, for the benefit of those poor gnulib clients
665         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
666
667         * gnulib-tool: Simplify accordingly.
668         * posix-modules: Likewise.
669         * MODULES.html.sh: Likewise.
670         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
671         repository.
672         * doc/gnulib-intro.texi: Likewise.
673         * doc/gnulib-readme.texi: Likewise.
674         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
675         sample '.gitignore' file rather than a sample '.cvsignore'.
676         * NEWS: Update.
677         * m4/extensions.m4: While at it, remove a comment mistakenly referring
678         to "CVS Autoconf" rather than "git Autoconf".
679
680 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
681
682         utimensat-tests, etc.: try to fix some races
683         Problem reported by Bernhard Voelker in
684         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html>.
685         I don't know whether this patch fixes that race condition, but it
686         fixes *some* race conditions, so it should be a win.
687         * modules/chown-tests (Depends-on):
688         * modules/fchownat-tests (Depends-on):
689         * modules/fdutimensat-tests (Depends-on):
690         * modules/futimens-tests (Depends-on):
691         * modules/lchown-tests (Depends-on):
692         * modules/stat-time-tests (Depends-on):
693         * modules/utimens-tests (Depends-on):
694         * modules/utimensat-tests (Depends-on):
695         Depend on nanosleep, not usleep.
696         * modules/chown-tests (test_chown_LDADD):
697         * modules/lchown-tests (test_lchown_LDADD):
698         * modules/stat-time-tests (test_stat_time_LDADD):
699         New macro.
700         * modules/fchownat-tests (test_fchownat_LDADD):
701         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
702         * modules/futimens-tests (test_futimens_LDADD):
703         * modules/utimens-tests (test_utimens_LDADD):
704         * modules/utimensat-tests (test_utimensat_LDADD):
705         Add $(LIB_NANOSLEEP).
706         * modules/stat-time-tests (Files): Add tests/nap.h.
707         * tests/nap.h: Include <limits.h>, for INT_MAX.
708         (lt_mtime): Remove.
709         (diff_timespec): New function.
710         (get_stat): Rename from get_mtime.  All callers changed.
711         (nap_works): Determine the needed delay by inspecting the
712         file system's timestamp jumps; this should be more reliable.
713         Look at both mtime and ctime, and take the maximum of the two jumps.
714         (nap_works, guess_delay):
715         Return a nanosecond cound, not a microsecond count.
716         All callers changed.
717         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
718         failure.
719         (nap): Multiply the guess by 1.125, to accommodate the case where
720         the file system's clock is a bit slower than nanosleep's clock.
721         * tests/test-stat-time.c (BASE): New macro.
722         Include nap.h.
723         (nap): Remove; nap.h now defines this.  This removes a duplicate
724         implementation of 'nap'.
725
726         utimens, utimensat: work around Solaris UTIME_OMIT bug
727         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
728         Linux kernel 2.6.32 does.  Work around it in the same way.
729         * doc/posix-functions/futimens.texi (futimens):
730         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
731         * lib/utimens.c (fdutimens, lutimens):
732         * lib/utimensat.c (rpl_utimensat): Work around the bug.
733
734         gettext: now it's your responsibility to add -I$(top_builddir)/intl
735         Formerly, it was your responsibility to do this for all Makefile.ams
736         other than Gnulib's.  Now it's your responsibility to do it for
737         Gnulib's Makefile.am, too.
738         * NEWS: Document this.
739         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
740
741         acl: include errno.h to get errno
742         Reported by Daiki Ueno in
743         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00073.html>.
744         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
745
746 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
747
748         tests: don't assume getdtablesize () <= 10000000
749         * modules/cloexec-tests:
750         * modules/dup2-tests:
751         * modules/dup3-tests:
752         * modules/nonblocking-tests:
753         * modules/posix_spawn_file_actions_addclose-tests:
754         * modules/posix_spawn_file_actions_adddup2-tests:
755         * modules/posix_spawn_file_actions_addopen-tests:
756         * modules/unistd-safer-tests:
757         Depend on the getdtablesize module.
758         * tests/test-cloexec.c:
759         * tests/test-dup-safer.c:
760         * tests/test-dup2.c:
761         * tests/test-dup3.c:
762         * tests/test-fcntl.c:
763         * tests/test-nonblocking.c:
764         * tests/test-posix_spawn_file_actions_addclose.c:
765         * tests/test-posix_spawn_file_actions_adddup2.c:
766         * tests/test-posix_spawn_file_actions_addopen.c:
767         Don't assume getdtablesize () <= 10000000.
768
769 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
770
771         extern-inline: work around bug in Sun c99
772         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
773         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
774
775 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
776
777         qacl: new module, broken out from the acl module
778         This is for GNU Emacs, which wants the acl functions but does
779         not want 'error' invoked when they fail.
780         * lib/acl-internal.h: Do not include error.h, quote.h.
781         (ENOSYS, ENOTSUP): Remove; no longer needed.
782         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
783         * lib/acl.h: Include <stdbool.h>.
784         (acl_errno_valid): New function.
785         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
786         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
787         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
788         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
789         (ACL_INTERNAL_INLINE): Remove; no longer needed.
790         * lib/file-has-acl.c (file_has_acl):
791         * lib/qcopy-acl.c (qcopy_acl):
792         * lib/qset-acl.c (qset_acl):
793         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
794         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
795         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
796         lib/file-has-acl.c, m4/acl.m4 to qacl module.
797         Add lib/set-acl.c.
798         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
799         Add qacl.
800         (configure.ac): Move gl_FUNC_ACL to qacl module.
801         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
802         Rename set-mode-acl.c to set-acl.c.
803         * lib/acl-errno-valid.c: New file.
804         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
805         copy_acl function remains in copy-acl.c.
806         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
807         (_): Remove; not needed.
808         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
809         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
810         * modules/qacl: New file, moved from the old modules/acl.
811         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
812         Remove set-mode-acl.c, copy-acl.c.
813         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
814
815         alignof, intprops, malloca: port better to IBM's C compiler
816         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
817         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
818         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
819
820 2013-04-25  Daiki Ueno  <ueno@gnu.org>
821
822         wctype-h: fix gettext link error on mingw
823         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
824         <https://lists.gnu.org/archive/html/bug-gettext/2013-03/msg00086.html>.
825         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
826         rpl_towupper and rpl_towupper.
827
828 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
829
830         regex-tests, regex: allow glibc re_search behavior
831         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
832         re_search input data to make the multi-character collating element
833         in it clearly visible, and treat re_search return code 0 as valid.
834         * m4/regex.m4 (gl_REGEX): Likewise.
835
836 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
837
838         stdalign: doc fix
839         * doc/posix-headers/stdalign.texi (stdalign.h):
840         Gnulib doesn't support '_Alignof expr'.
841
842 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
843
844         stdalign: port to stricter ISO C11
845         ISO C11 says that _Alignof's operand must be a parenthesized type.
846         Problem reported by Eli Zaretskii in
847         <http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00960.html>.
848         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
849         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
850
851 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
852
853         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
854         Problem reported by Marco Atzeri in
855         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00000.html>.
856         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
857         Simply delegate to the system <sys/select.h> in this case too.
858         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
859         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
860         be needed on Solaris either.
861         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
862         Simply delegate to the system <sys/time.h> in this case.
863
864 2013-03-19  Karl Berry  <karl@gnu.org>
865
866         * build-aux/gnupload: check for erroneous (with gnupload) use of
867         ftp-upload.gnu.org, tweak help.
868
869 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
870
871         copy-file, rpmatch: fix problems found by cppcheck
872         Reported by Arno Onken in
873         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00069.html>.
874         * lib/rpmatch.c (try): Fix memory leak.
875         * lib/copy-file.c: Include "ignore-value.h".
876         (qcopy_file_preserving): Ignore chown value.
877         * modules/copy-file (Depends-on): Add ignore-value.
878
879 2013-01-27  Jim Meyering  <jim@meyering.net>
880
881         prefix-gnulib-mk: give better diagnostics
882         * build-aux/prefix-gnulib-mk: Don't just "die".
883         Give better diagnostics upon failure.
884
885 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
886
887         putenv: port to Solaris 10
888         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
889         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
890         is not what is wanted here.
891         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
892         declaration, not for its existence.
893
894 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
895
896         mktime: fix configure typo
897         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
898
899 2013-03-12  Eric Blake  <eblake@redhat.com>
900
901         regex-tests: skip UTF-8 test on mingw
902         * modules/regex-tests (Depends-on): Add localcharset.
903         * tests/test-regex.c (main): Use it to skip test on mingw.
904
905 2013-03-11  Eric Blake  <eblake@redhat.com>
906
907         tests: make it easier to bypass alarm time in debugger
908         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
909         * tests/test-memmem.c (main): Likewise.
910         * tests/test-passfd.c (main): Likewise.
911         * tests/test-ptsname.c (main): Likewise.
912         * tests/test-ptsname_r.c (main): Likewise.
913         * tests/test-strcasestr.c (main): Likewise.
914         * tests/test-strstr.c (main): Likewise.
915
916         regex: port to mingw's recent addition of undeclared alarm
917         * doc/posix-functions/alarm.texi (alarm): Document that alarm
918         exists but still doesn't work in newer mingw.
919         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
920         not existence.  Ensure SIGALRM is not trapped.
921         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
922         * m4/regex.m4 (gl_REGEX): Likewise.
923         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
924         * tests/test-regex.c (main): Use correct probe for alarm.
925
926         putenv: avoid compilation warning on mingw
927         * lib/putenv.c (_unsetenv): Protect variable declaration.
928         (putenv): Fix indentation.
929
930 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
931
932         unistd: don't prevent Tru64 Unix from using gnulib strtod.
933         * lib/unistd.in.h: be careful not to include un-needed system
934         stdlib.h from here, because that prevents gnulib stdlib.h from
935         defining rpl_strtod correctly.
936
937 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
938
939         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
940         changesets, but for the 'precision 0' test.
941         * tests/test-vasprintf-posix.c (test_function): Don't insist on
942         round-to-even, since POSIX says rounding is implementation-defined
943         and OS X 10.8.2 rounds 1.51 to 1 here.
944
945         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
946         changeset.
947         * tests/test-vasprintf-posix.c (test_function): Don't insist on
948         round-to-even, since POSIX says rounding is implementation-defined
949         and OS X 10.8.2 rounds 1.5 to 1 here.
950
951 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
952
953         vasnprintf-posix-tests: allow rounding 1.5 to 1
954         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
955         round-to-even, since POSIX says rounding is implementation-defined
956         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
957         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00019.html>.
958
959         bootstrap: port to FreeBSD
960         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
961         that treat '--' differently.  Reported by Mats Erik Andersson in
962         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00012.html>.
963
964 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
965
966         regex: rename remaining __attribute calls to __attribute__.
967         2012-02-25 changed definition of __attribute, but left some uses
968         unchanged, preventing compilation of regex module on most non-gcc
969         environments.
970         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
971         (lookup_collation_sequence_value, build_range_exp)
972         (build_collating_symbol): Set attributes with newly renamed
973         __attribute__ decorator.
974         * lib/regex_internal.c (re_string_peek_byte_case)
975         (re_node_set_compare, re_node_set_contains): Likewise.
976         * lib/regexec.c (acquire_init_state_context): Likewise.
977
978 2013-03-06  Bruno Haible  <bruno@clisp.org>
979
980         execute: Revert last change, but use a different condition.
981         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
982         on Windows.
983
984 2013-03-05  Eric Blake  <eblake@redhat.com>
985
986         execute: drop dead code
987         * lib/execute.c (nonintr_close, nonintr_open): Delete.
988
989 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
990
991         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
992         * m4/non-recursive-gnulib-prefix-hack.m4
993         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
994         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
995         <http://bugs.gnu.org/10305#237>.
996
997 2013-03-04  Eric Blake  <eblake@redhat.com>
998
999         test-getsockopt: avoid compiler warning
1000         * tests/test-getsockopt.c (includes): Ensure close is declared.
1001
1002 2013-03-02  Bruno Haible  <bruno@clisp.org>
1003
1004         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
1005         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
1006
1007 2013-03-02  Bruno Haible  <bruno@clisp.org>
1008
1009         gettext: Update to version 0.18.2.
1010         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
1011         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
1012                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
1013
1014 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
1015
1016         regex: merge patches from libc
1017
1018         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1019         * lib/regex_internal.h (__attribute__): Rename from __attribute.
1020         All uses changed.
1021         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
1022         (re_string_wchar_at, re_string_elem_size_at):
1023         Mark function as possibly unused.
1024
1025         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
1026         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
1027         elements compare against the byte sequence of it, not its name.
1028
1029 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
1030
1031         putenv: port better to native Windows
1032         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
1033         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
1034         (_unsetenv): Use _putenv if available.
1035         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
1036         a bit less likely to cause damage.
1037         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
1038         Fix the wrong value with SetEnvironmentVariable.
1039         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
1040         code better.
1041
1042 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
1043
1044         regex: ignore old-style-definition warnings
1045         * lib/regex.c: Add pragma to ignore these warnings.
1046         Problem reported for GNU tar by Pavel Raiskup.
1047
1048 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
1049
1050         getcwd: support coreutils better
1051         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
1052         but this might not be correct in coreutils, which disables
1053         the raw decl checks.  Problem reported by Nagendra in
1054         <http://bugs.gnu.org/10305#192>.
1055         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
1056         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
1057         Test the getcwd function, not any macro, since getcwd.c wants the
1058         function.
1059         * m4/getcwd.m4 (gl_FUNC_GETCWD):
1060         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
1061         compile, as might happen if there's a macro but no function.
1062
1063         strtod: support coreutils better
1064         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
1065         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
1066         disables the raw decl checks.  This assumes there is an underlying
1067         strtod, but that's a safe assumption these days.
1068         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
1069
1070         mountlist: port to HP NonStop
1071         Reported by Joachim Schmitz in
1072         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00084.html>.
1073         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
1074         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
1075
1076 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
1077
1078         extern-inline: avoid compilation error with HP-UX cc
1079         Reported by Richard Lloyd in
1080         <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>.
1081         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
1082         Suppress extern inline with HP-UX cc.  This should be safe,
1083         though it may hurt performance.  Perhaps someone with some HP-UX
1084         experience can come up with a higher-performance fix.
1085
1086 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
1087
1088         putenv: fix heap corruption with mixed putenv/_putenv
1089         Problem reported by Michael Goffioul in
1090         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00061.html>.
1091         * lib/putenv.c (putenv) [HAVE__PUTENV]:
1092         Rely on _putenv to allocate the new environment.
1093         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
1094         * modules/putenv (configure.ac): Use it.
1095
1096 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
1097
1098         unsetenv etc.: port to Solaris 11 + GNU Emacs
1099         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
1100         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
1101         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
1102         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
1103         idea but is too painful to fix right now), and without this gnulib
1104         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
1105         compiling unsetenv.c on Solaris 11.  Fix the problem for
1106         unsetenv.c, and fix other similar occurrences.
1107
1108 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
1109
1110         secure_getenv: fix C++ declaration typo
1111         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
1112         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
1113         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00057.html>.
1114
1115 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
1116
1117         careadlinkat: stop exporting careadlinkatcwd
1118         Only Emacs used it directly, and Emacs no longer needs it.
1119         * NEWS: Document this simplification.
1120         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
1121         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
1122         for readlink.
1123         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
1124         Don't include stdlib.h; no longer needed.
1125         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
1126         * lib/relocwrapper.c: Adjust comment to match new dependencies.
1127         * modules/areadlink (Depends-on): Add readlink.
1128         (Maintainer): Add self.
1129         * modules/careadlinkat (Depends-on): Remove readlink.
1130
1131         extensions: port better to HP-UX
1132         This is merged from git Autoconf.
1133         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
1134         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
1135         so that it's compatible with the value used when compiling.
1136
1137         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
1138         Problem reported by Mats Erik Andersson in
1139         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00051.html>.
1140         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
1141         openpty function exists, not merely when we intend to replace it.
1142         This corrects the 2013-01-31 patch, which mistakenly defined
1143         HAVE_OPENPTY even on hosts that lacked it.
1144
1145 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
1146
1147         secure_getenv: fix include typo
1148         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
1149
1150         secure_getenv: port better to FreeBSD and Solaris
1151         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
1152         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
1153         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
1154         This works better on BSDish platforms.
1155         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
1156         Test for issetugid if __secure_getenv is missing.
1157
1158 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
1159
1160         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
1161         Some of these changes are merged in from git Autoconf.
1162         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
1163         When deciding whether to define _XOPEN_SOURCE, inspect the
1164         preprocessor macro __hpux instead of the more-heavyweight
1165         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
1166         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
1167         as the key for __EXTENSIONS__.
1168
1169         unistd: avoid namespace pollution on non-glibc systems
1170         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
1171         This avoids namespace pollution on non-glibc systems, by causing
1172         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
1173         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
1174         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00027.html>.
1175
1176 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
1177
1178         tmpdir: use secure_getenv
1179         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
1180         Define to secure_getenv, not getenv.
1181         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
1182         as that's now secure_getenv's job.
1183         * modules/tmpdir (Depends-on): Add secure_getenv.
1184
1185         tempname: use secure_getenv
1186         * lib/tempname.c (__secure_getenv) [!_LIBC]:
1187         Define to secure_getenv, not getenv.
1188         * modules/tempname (Depends-on):
1189         Add secure_getenv.
1190
1191         secure_getenv: new module
1192         * MODULES.html.sh (Extra functions based on ANSI C 89):
1193         Add secure_getenv.
1194         * doc/glibc-functions/secure_getenv.texi: New file.
1195         * doc/gnulib.texi: Include it.
1196         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
1197         New files.
1198         * lib/stdlib.in.h (secure_getenv): New decl.
1199         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
1200         * modules/stdlib (stdlib.h):
1201         Add secure_getenv checks.
1202
1203 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
1204
1205         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
1206         Reported for OS X 10.8.2 by Assaf Gordon in
1207         <http://bugs.gnu.org/13516>.
1208         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
1209         !HAVE_OPENAT && !HAVE_FDOPENDIR.
1210         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
1211         so that they can be kept in sync more easily.  Avoid PATH_MAX
1212         test on the Hurd.  Sync from test-getcwd.c for errno tests after
1213         mkdir or chdir failure.
1214         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
1215         lib/getcwd.c.
1216         (test_abort_bug): Do not test for the deep directory bug unless we
1217         have openat support.  Avoid PATH_MAX test on the Hurd.
1218
1219         regex-tests, regex: fix bug: memset undeclared
1220         * tests/test-regex.c: Don't include regex.h twice.  Include
1221         string.h, to declare memset.  Christensen's report also mentioned
1222         this issue.
1223         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
1224         test-regex.c, to avoid future problems like this.  Remove
1225         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
1226         twice.
1227
1228         regex-tests: fix link errors on older Solaris
1229         These need to link with @LIBINTL@ to get libintl_gettext.
1230         Problem reported by Tom G. Christensen in
1231         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00003.html>.
1232         * modules/regex-tests (test_regex_LDADD): New macro.
1233
1234 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
1235
1236         regex-tests: new module
1237         * modules/regex-tests, tests/test-regex.c: New files.
1238
1239         regex: fix off-by-one error in configure test
1240         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
1241
1242 2013-01-31  Eric Blake  <eblake@redhat.com>
1243
1244         regex: avoid infinite configure test
1245         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
1246
1247 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
1248
1249         openpty: fix bug where HAVE_OPENPTY wasn't defined
1250         See the thread starting at:
1251         http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00185.html
1252         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
1253         openpty function exists, not merely when we intend to replace it.
1254
1255 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
1256
1257         sys_time: port to Solaris 2.6
1258         There is a circularity problem on Solaris 2.6, where <time.h> includes
1259         <sys/time.h> for struct timespec.  The include nesting is gnulib
1260         <time.h>, system <time.h>, gnulib <sys/time.h>, system
1261         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
1262         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
1263         <sys/siginfo.h>; the last, innermost file needs struct
1264         timestruc_t, which is defined in <sys/time.h>, which has not been
1265         fully parsed.  Problem reported by Tom G. Christensen in
1266         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00113.html>.
1267         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
1268         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
1269         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
1270         uses split double-inclusion guards.
1271
1272 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
1273
1274         regex: test for buffer overrun
1275         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
1276         for the just-fixed regex bug.
1277
1278 2013-01-29  Andreas Schwab  <schwab@suse.de>
1279
1280         regex: fix buffer overrun in regexp matcher [BZ #15078]
1281         * lib/regexec.c (extend_buffers): Add parameter min_len.
1282         (check_matching): Pass minimum needed length.
1283         (clean_state_log_if_needed): Likewise.
1284         (get_subexp): Likewise.
1285
1286 2013-01-28  Pádraig Brady  <P@draigBrady.com>
1287
1288         mountlist: don't consider "devtmpfs" as dummy
1289         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
1290         as there is storage associcated with it.
1291
1292 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
1293
1294         futimens-tests, utimens-tests: Depend on gettext.
1295         This works around a problem introduced in my 2013-01-12 patch,
1296         which added @LIBINTL@ to these modules.
1297         * modules/futimens-tests (Depends-on):
1298         * modules/utimens-tests (Depends-on): Add gettext.
1299
1300 2013-01-26  Eric Blake  <eblake@redhat.com>
1301
1302         test-getpeername: fix typo
1303         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
1304
1305 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
1306
1307         bootstrap: remove the need for a sorted .gitignore file
1308         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
1309         rename to insert_if_absent(), so that we don't need or generate
1310         a sorted .gitignore file.  We do require a .gitignore with no
1311         existing duplicate entries and enforce that.
1312         (sort_patterns): Remove this function as we now use the simpler
1313         technigue of inserting blacklist entries at the top of the file,
1314         assuming gnulib won't be inserting !whitelist entries.
1315
1316 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
1317
1318         readlinkat: don't depend on gl_FUNC_OPENAT
1319         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
1320         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
1321         renameat.m4, symlinkat.m4; but one thing at a time.
1322
1323         statat: new module, split out from fstatat
1324         GNU Emacs needs the POSIX-specified fstatat, but not the
1325         gnulib-specified statat and lstat.  Split the latter two into a
1326         new module 'statat'.
1327         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
1328         * lib/openat.h, lib/statat.c (STATAT_INLINE):
1329         Rename from FSTATAT_INLINE. All uses changed.
1330         * modules/fstatat (Files): Remove lib/statat.c.
1331         (gl_MODULE_INDICATOR([fstatat])): Remove.
1332         (lib_SOURCES): Remove.
1333         (Maintainer): Add self.
1334         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
1335         * tests/test-fstatat.c (BASE): Don't define if already defined.
1336         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
1337
1338 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
1339
1340         tests: don't assume fd 99 is closed
1341         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
1342         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
1343         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
1344         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
1345         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
1346         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
1347         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
1348         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
1349         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
1350         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
1351         * tests/test-fwrite.c, tests/test-getpeername.c:
1352         * tests/test-getsockname.c, tests/test-getsockopt.c:
1353         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
1354         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
1355         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
1356         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
1357         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
1358         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
1359         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
1360         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
1361         * tests/test-unlinkat.c, tests/test-unlockpt.c:
1362         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
1363         Close file descriptor 99, instead of assuming it's already closed.
1364
1365 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
1366
1367         stpncpy: port to OS X 10.8
1368         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
1369         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
1370
1371 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
1372
1373         unistd: port to recent mingw
1374         * lib/unistd.in.h: Remove special invocation convention for mingw,
1375         which breaks for the latest mingw version.  See John W. Eaton in
1376         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00100.html>.
1377
1378         largefile: port better to Mac OS X 10.5
1379         This patch is backported from Autoconf git.
1380         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
1381         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
1382         with ino_t size being different for configuration time versus
1383         build/run time.  Problem reported by PHO in
1384         <http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00040.html>.
1385
1386 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
1387
1388         doc: clarify -Werror
1389         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
1390         clarify that it's intended for developers, not for ordinary builds,
1391         and mention --enable-gcc-warnings as one possible use.
1392
1393 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
1394
1395         stdint: fix build with Android's Bionic fox x86
1396         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
1397         was already included as _SSIZE_T_DEFINED_ might also be defined
1398         in include/machine/_types.h, which is included by stdio.h
1399
1400 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
1401
1402         net_if-tests: port to Solaris 7 + GCC 3.4.6
1403         Problem reported by Tom G. Christensen in
1404         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00091.html>.
1405         * tests/test-net_if.c (ni): Move to next the code that uses it,
1406         so that it's declared only if needed.
1407
1408 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
1409
1410         net_if-tests: port to older Solaris
1411         Problem reported by Tom G. Christensen in
1412         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
1413         * modules/net_if-tests (NET_IF_LIB): New substitution.
1414         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
1415         (HAVE_IF_NAMEINDEX): New C macro.
1416         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
1417
1418         system-quote-tests: port to older Solaris
1419         Problem reported by Tom G. Christensen in
1420         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
1421         * tests/test-system-quote-child.c (fopen, fread): Undef.
1422
1423         c-xvasprintf etc.: fix link errors on older Solaris
1424         These need to link with @LIBINTL@ to get libintl_gettext.
1425         Problem reported by Tom G. Christensen in
1426         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
1427         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
1428         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
1429         * modules/futimens-tests (test_futimens_LDADD):
1430         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
1431
1432 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
1433
1434         locale: port to Solaris 2.6 and 7 + GNU gettext
1435         * lib/locale.in.h: Just include_next <locale.h> when
1436         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
1437         when combining the localename module with GNU gettext 0.18.2.
1438         Problem reported by Tom G. Christensen in
1439         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00084.html>.
1440
1441 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
1442
1443         stdlib: port to Solaris 2.6
1444         Also, the code worked on Solaris 7 through 9 only by accident.
1445         Problem reported by Tom G. Christensen in
1446         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00059.html>.
1447         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
1448         simply include the system stdlib.h.
1449         * lib/getopt.in.h (__need_system_stdlib_h):
1450         * lib/pthread.in.h (__need_system_stdlib_h):
1451         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
1452         Define when including <stdlib.h>, to avoid problems at least for
1453         the pthread case on Solaris 2.6 and 7.  These .h files can get by
1454         with the system stdlib.h.
1455
1456 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
1457
1458         doc: update main copyright year
1459         * doc/gnulib.texi: Update copyright date.
1460
1461         doc: improve ISO 8601 discussion
1462         * doc/parse-datetime.texi (Combined date and time of day items):
1463         Specify more carefully what formats are supported and what is
1464         done with excess precision.
1465
1466 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
1467
1468         doc: avoid small caps
1469         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
1470         they're more trouble than they're worth.  Suggested by Karl Berry
1471         in <http://bugs.gnu.org/13360>.
1472
1473         regex: conform to strict C
1474         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
1475         From Aharon Robbins.
1476
1477         gnulib-tool: fix incompatibility with autopoint 0.18.2
1478         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
1479         Problem reported by Tom G. Christensen in
1480         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00053.html>.
1481
1482 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
1483
1484         fprintftime: bring back and reword fwrite comment
1485         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
1486
1487         stdio: remove now-unnecessary stdio.c
1488         Since stdio.in.h no longer uses inline functions, we no longer
1489         need to compile the extern versions.
1490         * lib/stdio.c: Remove.
1491         * modules/stdio (Files): Remove lib/stdio.c.
1492         (lib_SOURCES): Remove.
1493
1494         unicodeio: depend on stdio, not ignore-value
1495         * lib/unicodeio.c: Do not include ignore-value.h.
1496         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
1497         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
1498
1499         fprintftime: depend on stdio, not ignore-value
1500         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
1501         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
1502         since the stdio module arranges to silence that warning now.
1503         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
1504
1505 2012-10-04  Simon Josefsson  <simon@josefsson.org>
1506
1507         stdint-tests: Fix expanded-before-required-warning.
1508         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
1509
1510 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
1511
1512         fwrite: silence __wur only for older glibc versions
1513         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
1514         This will help us remove this workaround some time in the far future.
1515
1516 2013-01-03  Eric Blake  <eblake@redhat.com>
1517
1518         fwrite: silence __wur without using inline
1519         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
1520         just gcc, and in a way that avoids inline issues.
1521         * modules/stdio (Depends-on): Drop extern-inline.
1522
1523 2013-01-03  Jim Meyering  <jim@meyering.net>
1524
1525         update-copyright: avoid copyright notice date corruption
1526         Given a sequence of copyright year numbers in which the final
1527         one was a two-digit number that happened to be a substring of
1528         a preceding four-digit year number, we would mistakenly update
1529         the substring (from two- to four-digit) rather than the two-digit
1530         number at the end, which, combined with the addition of the current
1531         4-digit year number would yield two 5-digit year numbers, e.g.,
1532         here, it would convert the first "99" to "1999, 2013" rather than
1533         the final one:
1534           1991, 99
1535           11999, 20131, 1999
1536         * build-aux/update-copyright: Tighten a regexp.
1537         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
1538         Reported by Joseph Myers in
1539         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
1540
1541 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
1542
1543         regex: omit needless signed-pointer casts
1544         * lib/regcomp.c (build_charclass, build_charclass_op):
1545         Use char *, not unsigned char *, for class name and extra.
1546         The char values are always nonnegative so there's no need to
1547         insist on unsigned char * here, and using char * removes the need
1548         for casts.  Reported by Aharon Robbins in
1549         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1550
1551         regex: support Gawk, which never uses alloca
1552         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
1553         Do not include in this case.  Gawk doesn't supply a substitute
1554         alloca.h and doesn't need one.
1555
1556         regex: port __libc_lock_define usage to C89
1557         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
1558         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
1559         does not conform to C89, as it has an empty macro argument.
1560         Reported by Aharon Robbins in
1561         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1562
1563 2013-01-01  Eric Blake  <eblake@redhat.com>
1564
1565         maint: update all copyright year number ranges
1566         Run "make update-copyright".
1567
1568         version-etc: bump copyright year reported in --version
1569         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
1570
1571 2012-12-31  Eric Blake  <eblake@redhat.com>
1572
1573         sigprocmask-tests: skip test if pid is unexpectedly large
1574         * tests/test-sigprocmask.c (main): Add range check.
1575
1576         git-version-gen: avoid test -z portability glitch
1577         * build-aux/git-version-gen: Prefer portable test spelling, since
1578         git-version-gen is run on more than just developer machines.
1579
1580 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
1581
1582         git-version-gen: add --fallback option to use if git is not present
1583         * build-aux/git-version-gen: Add support for the new option --fallback,
1584         which comes into play when there is no $tarball_version_file and
1585         git is not working.
1586         (scriptversion): Update.
1587
1588         maint.mk: handle missing git with more grace
1589         * top/maint.mk (no-submodule-changes, public-submodule-commit):
1590         Quietly proceed if git is not present.
1591
1592 2012-12-31  Eric Blake  <eblake@redhat.com>
1593
1594         dup2: work around cygwin bug
1595         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
1596         * lib/dup2.c (rpl_dup2): Work around it.
1597         * doc/posix-functions/dup2.texi (dup2): Document it.
1598
1599 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
1600
1601         regex: remove unnecessary dependency on localcharset.h
1602         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
1603         hasn't been needed for years.
1604         * modules/regex (Depends-on): Remove localcharset.
1605
1606         regex: revert single-byte change
1607         * lib/regexec.c (check_node_accept_bytes): Revert previous change
1608         to this function.  This was alredy fixed in a different way, at
1609         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
1610         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
1611         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
1612
1613         regex: simplify based on Gawk version
1614         * lib/regex_internal.c (re_dfa_add_node): Simplify.
1615         Reported by Aharon Robbins in
1616         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1617
1618 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
1619
1620         regex: check that pattern char is single-byte
1621         Reported by Aharon Robbins in
1622         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1623         * lib/regexec.c (check_node_accept_bytes):
1624         Return 0 if the pattern string has a multibyte character here.
1625
1626         regex: implement rational ranges
1627         Reported by Aharon Robbins in
1628         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1629         * lib/regcomp.c (build_range_exp) [!_LIBC]:
1630         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
1631         Implement rational ranges.
1632
1633         regex: avoid redefining __wctype
1634         Reported by Aharon Robbins in
1635         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1636         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
1637         #undef before defining.
1638
1639         regex: port to hosts where malloc (0) == NULL
1640         Reported by Aharon Robbins in
1641         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1642         * lib/regex_internal.c (re_node_set_alloc):
1643         Don't assume that malloc (0) yields nonnull.
1644         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
1645         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
1646         * modules/regex (Files): Add m4/eealloc.m4.
1647
1648         regex: port to C89
1649         Reported by Aharon Robbins in
1650         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1651         * lib/regcomp.c (init_word_char): Declaration before statement.
1652
1653         regex: merge glibc changes
1654         Also, copy the license wording from glibc.  This simplifies
1655         merging changes.  gnulib-tool will change the wording to GPL as
1656         appropriate, when importing it to other packages.  The only
1657         glibc change made since the last merge, which needs merging, is:
1658         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
1659         * lib/regex_internal.h (gettext): Remove use of INTUSE.
1660
1661         * users.txt: Add Emacs.
1662
1663         doc: omit mention of version when not needed
1664         * doc/gnulib-intro.texi (Portability and Application Code):
1665         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
1666         Don't mention particular dates or versions when not necessary, so
1667         that the documentation won't go out of date so quickly.
1668
1669         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
1670
1671 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
1672
1673         bootstrap: pass --force to autoreconf.
1674         * build-aux/bootstrap (AUTORECONFFLAGS): New.
1675         Add "--force" so that Automake's ylwrap and other such tools
1676         be updated at each bootstrap invocation.
1677         Use it.
1678
1679 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
1680
1681         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
1682         The earlier patch forgot to update one of the #if conditions, causing
1683         a problem on Debian testing i386 reported by Mats Erik Andersson
1684         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
1685         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
1686         (__argp_fmtstream_puts, argp_fmtstream_puts)
1687         (__argp_fmtstream_write, argp_fmtstream_write)
1688         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
1689
1690         * doc/gnulib-readme.texi: Minor fixups.
1691         (Portability guidelines): Modernize URLs.  Remove some repetition.
1692         (Indent with spaces not TABs): Reword to avoid too-long lines.
1693         Remove some '@ifset standalone' stuff that isn't used.
1694
1695         * doc/gnulib-readme.texi (Portability guidelines):
1696         ctype.h, not ctime.h.
1697
1698         Correct name of POSIX.1-2001.
1699         * doc/posix-functions/fgetc.texi (fgetc):
1700         * doc/posix-functions/fgets.texi (fgets):
1701         * doc/posix-functions/fread.texi (fread):
1702         * doc/posix-functions/fscanf.texi (fscanf):
1703         * doc/posix-functions/getc.texi (getc):
1704         * doc/posix-functions/getchar.texi (getchar):
1705         * doc/posix-functions/scanf.texi (scanf):
1706         POSIX.1-2001, not POSIX-2001.
1707
1708         doc: move README into manual
1709         * README: Move contents to new file doc/gnulib-readme.texi.
1710         Replace with a one-line summary.
1711         * doc/gnulib.texi (Brief Overview): New section,
1712         with old intro preface.  Include gnulib-readme.texi for contents.
1713         (Philosophy): Rename from "Introduction", since this
1714         section no longer introduces the rest.  Write a new preface.
1715         * doc/gnulib-readme.texi: New file, with the old contents of
1716         README texinfo-ized.  This way, the README info appears
1717         in the online and printed manual.
1718
1719 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
1720
1721         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
1722         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
1723         c_vasprintf() prototype.
1724
1725 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
1726
1727         c-vasprintf: Fix "empty declaration" warning reported by GCC.
1728         * lib/c-vasprintf.h: Remove stray semicolon.
1729
1730 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
1731
1732         gettext: avoid obsolete macro AM_PROG_MKDIR_P
1733         It is obsolete and is planned to be removed from Automake 1.14; see
1734         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
1735         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
1736         (installdirs-data, installdirs-data-yes):
1737         Use $(MKDIR_P), not $(mkdir_p).
1738         * m4/intl.m4 (AM_INTL_SUBDIR):
1739         * m4/po.m4 (AM_PO_SUBDIRS):
1740         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
1741
1742 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
1743
1744         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
1745         On this platform, we are not optimizing but we are using
1746         the substitute for extern inlines, so compile as if
1747         C99-style extern inline, or a substitute, is available.
1748         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
1749         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
1750         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
1751         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
1752         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
1753         Declare as ARGP_FS_EI, not as extern.
1754         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
1755         (__option_is_short, _option_is_end, __option_is_end)
1756         [!_LIBC && __USE_EXTERN_INLINES]:
1757         Declare as ARGP_EI, not as extern.
1758
1759 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
1760
1761         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
1762         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
1763         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
1764         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
1765         ...), as the latter is fatal with older Autoconfs.
1766         Problem reported and fix suggested by Eric Blake in thread starting at
1767         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
1768
1769 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
1770
1771         AC_PROG_MKDIR_P: don't workaround if not buggy
1772         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
1773         Define only for Autoconf versions before 2.62.
1774         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
1775         undocumented m4_PACKAGE_VERSION, for consistency with the
1776         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
1777         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
1778         was introduced in 2.62.
1779
1780 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
1781
1782         New 'c-*printf' modules for formatted output in C locale.
1783
1784         New module 'c-vasnprintf'.
1785         * modules/c-vasnprintf: New file.
1786         * lib/c-vasnprintf.c: New file.
1787         * lib/c-vasnprintf.h: New file.
1788
1789         New module 'c-snprintf'.
1790         * modules/c-snprintf: New file.
1791         * modules/c-snprintf-tests: New file.
1792         * lib/c-snprintf.c: New file.
1793         * lib/c-snprintf.h: New file.
1794         * tests/test-c-snprintf.c: New file.
1795         * tests/test-c-snprintf.sh: New file.
1796
1797         New module 'c-vsnprintf'.
1798         * modules/c-vsnprintf: New file.
1799         * modules/c-vsnprintf-tests: New file.
1800         * lib/c-vsnprintf.c: New file.
1801         * lib/c-vsnprintf.h: New file.
1802         * tests/test-c-vsnprintf.c: New file.
1803         * tests/test-c-vsnprintf.sh: New file.
1804
1805         New module 'c-vasprintf'.
1806         * modules/c-vasprintf: New file.
1807         * modules/c-vasprintf-tests: New file.
1808         * lib/c-asprintf.c: New file.
1809         * lib/c-vasprintf.c: New file.
1810         * lib/c-vasprintf.h: New file.
1811         * tests/test-c-vasprintf.c  +: New file.
1812         * tests/test-c-vasprintf.sh: New file.
1813
1814         New module 'c-xvasprintf'.
1815         * modules/c-xvasprintf: New file.
1816         * modules/c-xvasprintf-tests: New file.
1817         * lib/c-xasprintf.c: New file.
1818         * lib/c-xvasprintf.c: New file.
1819         * lib/c-xvasprintf.h: New file.
1820         * tests/test-c-xvasprintf.c: New file.
1821         * tests/test-c-xvasprintf.sh: New file.
1822
1823 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
1824
1825         argp: better 'inline'
1826         Use extern-inline module to declare extern inline functions.
1827         This avoids some bogus warning diagnostics.  Problem discovered
1828         when modifying GNU tar to use the manywarnings module.
1829         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
1830         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
1831         Define based on extern-inline.
1832         * modules/argp (Depends-on): Add extern-inline.
1833
1834 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
1835
1836         filemode, sys_stat: Handle MPX files a la AIX.
1837         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
1838         * lib/sys_stat.in.h (S_ISMPX): New macro.
1839         * tests/test-sys_stat.c: Add tests for MPX files.
1840
1841 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
1842
1843         x-to-1: honor $PERL
1844         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
1845         a chance to use his preferred version of Perl.  This is typically
1846         required by Darwin users whose default /usr/bin/perl does not have all
1847         the libraries required by help2man, and who need to use their MacPorts
1848         installation of Perl instead.
1849
1850 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
1851
1852         gnu-web-doc-update: add all the new files, even in new directories
1853         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
1854         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
1855         Use it.
1856         (main): Don't use cvsutils to get the list of unknown files,
1857         just add all the existing files and directories.
1858
1859 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
1860
1861         gnu-web-doc-update: improve --help
1862         * build-aux/gnu-web-doc-update: Move comments into --help.
1863
1864 2012-12-07  Eric Wong  <normalperson@yhbt.net>
1865
1866         mountlist: recognize more "dummy" file systems
1867         * lib/mountlist.c (ME_DUMMY_0):
1868         Add these dummy FS names to the list:
1869         - "debugfs" virtual filesystem for kernel debugging
1870         - "devpts" PTY slave filesystem
1871         - "devtmpfs" device filesystem on top of tmpfs/ramfs
1872         - "fusectl" control filesystem for FUSE
1873         - "mqueue" enumerates POSIX message queues
1874         - "rpc_pipefs" kernel <-> userspace bridge for NFS
1875         - "sysfs" is for exporting kernel objects
1876         - "devfs" device filesystem for Linux 2.4 and FreeBSD
1877
1878 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
1879
1880         extern-inline: avoid incompatibility with Darwin Libc
1881         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
1882         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
1883         Problem reported by Akim Demaille in
1884         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
1885
1886 2012-12-11  Simon Josefsson  <simon@josefsson.org>
1887
1888         gnupload: Work with GnuPG using gpg-agent (for smartcards).
1889         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
1890         let it handle password prompting.
1891
1892 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
1893
1894         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
1895         * lib/canonicalize.c (canonicalize_filename_mode):
1896         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
1897         fetching the current directory.  Don't overrun the beginning of
1898         rpath if there's no slashes after the MS-Windows drive letter.
1899
1900 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
1901
1902         maint.mk: avoid extra forks
1903         * top/maint.mk (_cfg_mk): The GNU make manual documents that
1904         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
1905         So use that instead of "$(shell test -f FILE && echo FILE)".
1906
1907 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
1908
1909         vasnprintf: fix ASCII_ONLY typo
1910         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
1911         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
1912         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
1913         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
1914         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
1915
1916 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
1917
1918         list, oset, xlist, xoset: fix extern inline issue with C99
1919         This was introduced by my recent changes for 'inline'.
1920         Problem reported for gettext by Daiki Ueno in
1921         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
1922         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
1923         (gl_list_nx_create, gl_list_size, gl_list_node_value)
1924         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
1925         (gl_list_previous_node, gl_list_get_at)
1926         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
1927         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
1928         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
1929         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
1930         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
1931         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
1932         (gl_list_iterator_free, gl_sortedlist_search)
1933         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
1934         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
1935         (gl_sortedlist_remove):
1936         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
1937         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
1938         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
1939         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
1940         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
1941         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
1942         (gl_list_add_at, gl_sortedlist_add):
1943         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
1944         Wrap these extern decls inside "#if 0", because they are implemented
1945         as inline functions, and extern inline is not what's wanted here.
1946         It would simplify these .h files to remove the extern decls entirely,
1947         although a downside would be less-clear separation between
1948         specification and implementation.
1949
1950 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
1951
1952         sys_stat: no 'static inline'
1953         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
1954         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
1955
1956         extern-inline: no 'static inline'
1957         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
1958         Do not require AC_C_INLINE.
1959         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
1960         'static inline', for older compilers.
1961
1962         snippet/warn-on-use: no 'static inline'
1963         * build-aux/snippet/warn-on-use.h:
1964         Remove unnecessary 'inline' in comment.
1965
1966         rbtree-list, rbtreehash-list: no 'static inline'
1967         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
1968         * lib/gl_anytree_list2.h (node_at):
1969         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
1970         (gl_oset_first, add_nodes_to_buckets):
1971         Now static, not static inline.
1972
1973         regex: no 'static inline'
1974         * lib/regex_internal.c (calc_state_hash):
1975         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
1976         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
1977         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
1978         Now static, not static inline.
1979         (inline) [__GNUC__ < 3 && _LIBC]:
1980         Remove macro; no longer needed.
1981
1982         xvasprintf: no 'static inline'
1983         * lib/xvasprintf.c (xstrcat):
1984         Now static, not static inline.
1985         * m4/xvasprintf.m4 (gl_XVASPRINTF):
1986         Do not require AC_C_INLINE.
1987
1988         parse-datetime, parse-duration: no 'static inline'
1989         * lib/parse-datetime.y (to_uchar):
1990         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
1991         (scale_n_add):
1992         Now static, not static inline.
1993         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
1994         * modules/parse-duration (configure.ac):
1995         Do not require AC_C_INLINE.
1996
1997         getaddrinfo: no 'static inline'
1998         * lib/getaddrinfo.c (validate_family):
1999         Now static, not static inline.
2000         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
2001         Do not require AC_C_INLINE.
2002
2003         ftruncate, fts, lstat, openat, raise: no 'static inline'
2004         * lib/ftruncate.c (chsize_nothrow):
2005         * lib/fts.c (opendirat, diropen):
2006         * lib/lstat.c (orig_lstat):
2007         * lib/openat.c (orig_openat):
2008         * lib/raise.c (raise_nothrow):
2009         Now static, not static inline.
2010         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
2011         * m4/fts.m4 (gl_FUNC_FTS_CORE):
2012         * m4/lstat.m4 (gl_PREREQ_LSTAT):
2013         * m4/openat.m4 (gl_PREREQ_OPENAT):
2014         * m4/raise.m4 (gl_PREREQ_RAISE):
2015         Do not require AC_C_INLINE.
2016
2017         fflush, stat: no 'static inline'
2018         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
2019         (clear_ungetc_buffer, disable_seek_optimization)
2020         (restore_seek_optimization, update_fpos_cache):
2021         * lib/stat.c (orig_stat):
2022         Now static, not static inline.
2023         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
2024         (update_fpos_cache):
2025         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
2026         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
2027         * m4/stat.m4 (gl_PREREQ_STAT):
2028         Do not require AC_C_INLINE.
2029
2030         error, filevercmp: no 'static inline'
2031         * lib/error.c (is_open, flush_stdout):
2032         * lib/filevercmp.c (order):
2033         Now static, not static inline.
2034         * m4/error.m4 (gl_PREREQ_ERROR):
2035         * modules/filevercmp (configure.ac):
2036         Do not require AC_C_INLINE.
2037
2038         dup, execute, fatal-signal, etc.: no 'static inline'
2039         * lib/dup.c (dup_nothrow):
2040         * lib/execute.c (nonintr_close, nonintr_open):
2041         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
2042         * lib/fopen.c (orig_fopen):
2043         * lib/freadseek.c (freadptrinc):
2044         * lib/freopen.c (orig_freopen):
2045         * lib/fstat.c (orig_fstat, fstat_nothrow):
2046         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
2047         (get_rusage_as_via_iterator):
2048         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
2049         * lib/getdtablesize.c (_setmaxstdio_nothrow):
2050         * lib/isatty.c (_isatty_nothrow):
2051         * lib/open.c (orig_open):
2052         * lib/read.c (read_nothrow):
2053         * lib/sigprocmask.c (signal_nothrow):
2054         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
2055         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
2056         * lib/wait-process.c (unregister_slave_subprocess):
2057         * lib/write.c (write_nothrow):
2058         Now static, not static inline.
2059         * lib/spawn-pipe.c (nonintr_open): Define only if
2060         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
2061         * m4/dup.m4 (gl_PREREQ_DUP):
2062         * m4/execute.m4 (gl_EXECUTE):
2063         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
2064         * m4/fopen.m4 (gl_PREREQ_FOPEN):
2065         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
2066         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
2067         * m4/fstat.m4 (gl_PREREQ_FSTAT):
2068         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
2069         * m4/isatty.m4 (gl_PREREQ_ISATTY):
2070         * m4/open.m4 (gl_PREREQ_OPEN):
2071         * m4/read.m4 (gl_PREREQ_READ):
2072         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
2073         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
2074         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
2075         * m4/wait-process.m4 (gl_WAIT_PROCESS):
2076         * m4/write.m4 (gl_PREREQ_WRITE):
2077         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
2078         Do not require AC_C_INLINE.
2079
2080         c-strtod, memcoll, readutmp: no 'static inline'
2081         * lib/c-strtod.c (c_locale):
2082         * lib/memcoll.c (strcoll_loop):
2083         * lib/readutmp.c (desirable_utmp_entry):
2084         Now static, not static inline.
2085         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
2086         * m4/memcoll.m4 (gl_MEMCOLL):
2087         * m4/readutmp.m4 (gl_READUTMP):
2088         Do not require AC_C_INLINE.
2089
2090         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
2091         * lib/arctwo.c (to_uchar):
2092         * lib/md4.c (set_uint32):
2093         * lib/md5.c (set_uint32):
2094         * lib/sha1.c (set_uint32):
2095         * lib/sha256.c (set_uint32):
2096         * lib/sha512.c (set_uint64):
2097         Now static, not static inline.  This is a bit simpler, and doesn't
2098         affect performance with GCC and default optimization.
2099         * m4/arctwo.m4 (gl_ARCTWO):
2100         * m4/md4.m4 (gl_MD4):
2101         * m4/md5.m4 (gl_MD5):
2102         * m4/sha1.m4 (gl_SHA1):
2103         * m4/sha256.m4 (gl_SHA256):
2104         * m4/sha512.m4 (gl_SHA512):
2105         Do not require AC_C_INLINE.
2106
2107         cond, lock, thread: better 'inline'
2108         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
2109         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
2110         New macros.  Use them instead of static inline, for header functions.
2111         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
2112         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
2113         * lib/glthread/lock.c (gl_waitqueue_init)
2114         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
2115         * lib/glthread/thread.c (get_current_thread_handle):
2116         Change 'static inline' to 'inline'.
2117         * lib/glthread/cond.h, lib/glthread/thread.h:
2118         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2119         * m4/cond.m4 (gl_COND):
2120         * m4/lock.m4 (gl_PREREQ_LOCK):
2121         * m4/thread.m4 (gl_THREAD):
2122         Do not require AC_C_INLINE.
2123         * modules/cond, modules/thread (Depends-on): Add extern-inline.
2124
2125         chdir-long, cycle-check, savewd: better 'inline'
2126         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
2127         (find_non_slash):
2128         * lib/cycle-check.c (is_zero_or_power_of_two):
2129         * lib/savewd.c (savewd_delegating):
2130         Change 'static inline' to 'inline'.
2131         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
2132         Replace all remaining uses of 'static inline' with it.
2133         * lib/savewd.h:
2134         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2135         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
2136         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
2137         * m4/savewd.m4 (gl_SAVEWD):
2138         Do not require AC_C_INLINE.
2139         * modules/savewd (Depends-on): Add extern-inline.
2140
2141         base32, base64: no need for 'inline'
2142         * lib/base32.c (to_uchar, get_8, decode_8):
2143         * lib/base64.c (to_uchar, get_4, decode_4):
2144         Change 'static inline' to 'inline'.
2145         * m4/base32.m4 (gl_PREREQ_BASE32):
2146         * m4/base64.m4 (gl_PREREQ_BASE64):
2147         Do not require AC_C_INLINE.
2148
2149         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
2150         * lib/gl_array_oset.c (gl_array_nx_add_at):
2151         (gl_array_remove_at):
2152         * lib/gl_linkedhash_list.c (hash_resize_after_add)
2153         (add_to_bucket, remove_from_bucket):
2154         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
2155         Change 'static inline' to 'static', as it's simpler to omit
2156         'inline' unless there's a significant performance advantage.
2157
2158         list, oset, xlist, xoset, xsublist: simplify via extern inline
2159         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
2160         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
2161         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
2162         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
2163         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
2164         New macro.  Replace all uses of 'static inline' with it.
2165         [HAVE_INLINE]: Implement functions as *_INLINE functions,
2166         instead of as macros FOO that are defined to static inline
2167         functions FOO_inline.
2168         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
2169         * lib/gl_xsublist.c:
2170         Reimplement from scratch, by defining the corresponding *_INLINE
2171         macro and including the corresponding .h file.  This is simpler.
2172         * modules/list, modules/oset, modules/xlist, modules/xoset:
2173         (Files): Remove m4/gl_list.m4.
2174         (configure.ac): Remove gl_LIST.
2175         * m4/gl_list.m4: Remove.
2176         * modules/list, modules/oset, modules/xlist, modules/xoset:
2177         * modules/xsublist:
2178         (Depends-on): Depend on extern-inline, not inline.
2179
2180         xalloc: better 'inline'
2181         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
2182         New macro.  Replace all uses of 'static inline' with it.
2183         (static_inline): Remove.
2184         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
2185         Let 'extern inline' do the work automatically, instead of doing
2186         it by hand.
2187         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
2188         Remove.  All uses removed.
2189         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
2190
2191         gethrxtime: better 'inline'
2192         * lib/xtime.c: New file.
2193         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
2194         * lib/xtime.h (XTIME_INCLUDE):
2195         New macros.  Replace all uses of 'static inline' with them.
2196         * lib/gethrxtime.c (gethrxtime): Define only if
2197         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
2198         this source file is now always compiled, because of the extern inline.
2199         * lib/gethrxtime.h, lib/xtime.h:
2200         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2201         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
2202         if gethrtime works, as they're not needed in that case.
2203         (gl_XTIME): Do not require AC_C_INLINE.
2204         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
2205         compiled now.  Move the check into gl_GETHRXTIME.
2206         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
2207         (Depends-on): Add extern-inline.
2208         (configure.ac): gethrxtime is always compiled now.
2209         (lib_SOURCES): Add gethrxtime.c.
2210
2211         wctype-h: better 'inline'
2212         * lib/wctype-h.c: New file.
2213         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
2214         New macro.  Replace all uses of 'static inline' with it.
2215         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2216         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
2217         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
2218         (Depends-on): Add extern-inline.
2219
2220         unistd: better 'inline'
2221         * lib/unistd.c: New file.
2222         * lib/unistd.in.h (_GL_UNISTD_INLINE):
2223         New macro.  Replace all uses of 'static inline' with it.
2224         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2225         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
2226         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
2227         (Depends-on): Add extern-inline.
2228
2229         sys_socket: better 'inline'
2230         * lib/sys_socket.c: New file.
2231         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
2232         New macro.  Replace all uses of 'static inline' with it.
2233         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2234         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
2235         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
2236         (Depends-on): Add extern-inline.
2237
2238         stdio: better 'inline'
2239         * lib/stdio.c: New file.
2240         * lib/stdio.in.h (_GL_STDIO_INLINE):
2241         New macro.  Replace all uses of 'static inline' with it.
2242         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2243         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
2244         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
2245         (Depends-on): Add extern-inline.
2246
2247         sigaction: better 'inline'
2248         * lib/sig-handler.c: New file.
2249         * lib/sig-handler.h (SIG_HANDLER_INLINE):
2250         New macro.  Replace all uses of 'static inline' with it.
2251         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2252         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
2253         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
2254         (Depends-on): Add extern-inline.
2255
2256         selinux-h: better 'inline'
2257         * lib/se-context.c, lib/se-selinux.c: New files.
2258         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
2259         * lib/se-context.in.h (SE_CONTEXT_INLINE):
2260         New macro.  Replace all uses of 'static inline' with it.
2261         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2262         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
2263         New macro.  Replace all uses of 'static inline' with it.
2264         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2265         * modules/selinux-h (Files, lib_SOURCES):
2266         Add lib/se-context.c, lib/se-selinux.c.
2267         (Depends-on): Add extern-inline.
2268         (configure.ac): Do not require AC_C_INLINE.
2269
2270         pthread: better 'inline'
2271         * lib/pthread.c: New file.
2272         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
2273         New macro.  Replace all uses of 'static inline' with it.
2274         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2275         * m4/pthread.m4 (gl_PTHREAD_CHECK):
2276         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
2277         * modules/pthread (Files): Add lib/pthread.c.
2278         (Depends-on): Add extern-inline.
2279
2280         math: better 'inline'
2281         * lib/math.c: New file.
2282         * lib/math.in.h (_GL_MATH_INLINE):
2283         New macro.  Replace all uses of 'static inline' with it.
2284         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2285         * m4/math_h.m4 (gl_MATH_H):
2286         Do not require AC_C_INLINE.
2287         * modules/math (Files, lib_SOURCES):
2288         Add lib/math.c.
2289         (Depends-on): Add extern-inline.
2290
2291         count-one-bits: better 'inline'
2292         * lib/count-one-bits.c: New file.
2293         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
2294         New macro.  Replace all uses of 'static inline' with it.
2295         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2296         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
2297         Do not require AC_C_INLINE.
2298         * modules/count-one-bits (Files, lib_SOURCES):
2299         Add lib/count-one-bits.c.
2300         (Depends-on): Add extern-inline.
2301
2302         count-leading-zeros: better 'inline'
2303         * lib/count-leading-zeros.c: New file.
2304         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
2305         New macro.  Replace all uses of 'static inline' with it.
2306         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2307         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
2308         Do not require AC_C_INLINE.
2309         * modules/count-leading-zeros (Files, lib_SOURCES):
2310         Add lib/count-leading-zeros.c.
2311         (Depends-on): Add extern-inline.
2312
2313         bitrotate: better 'inline'
2314         * lib/bitrotate.c: New file.
2315         * lib/bitrotate.h (BITROTATE_INLINE):
2316         New macros.
2317         Replace all uses of 'static inline' with them.
2318         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2319         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
2320         (Depends-on): Add extern-inline.
2321         (configure.ac): Do not require AC_C_INLINE.
2322
2323 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
2324
2325         maint.mk: avoid gratuitous failure
2326         Reported by Stefano Lattarini in
2327         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
2328         * top/maint.mk (public-submodule-commit): Quote more safely.
2329
2330 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
2331
2332         canonicalize, canonicalize-lgpl: support MS-Windows file names
2333         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
2334         for test cases, which it'd be nice to add at some point.
2335         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
2336         * lib/canonicalize.c (canonicalize_filename_mode):
2337         * lib/canonicalize-lgpl.c (__realpath):
2338         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
2339         slash is at the beginning of the file name.  Use ISSLASH, instead
2340         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
2341         the first character with '/'.  Test for
2342         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
2343         with a drive letter.
2344         * lib/canonicalize.c (SLASHES): New macro.
2345         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
2346
2347 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
2348
2349         fts: introduce FTS_VERBATIM
2350         * lib/fts_.h (FTS_VERBATIM): New bit flag.
2351         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
2352         * lib/fts.c (fts_open): Honor it.
2353
2354 2012-11-09  Pádraig Brady  <P@draigBrady.com>
2355
2356         getlogin-tests: allow errno == ENXIO
2357         * tests/test-getlogin.c (main): Skip tests if getlogin fails
2358         with errno == ENXIO (No controlling tty).
2359         getlogin_r-tests: Likewise. Also allow errno == ENOENT
2360         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
2361         with errno == ENOENT.  This was reported to happen in various
2362         situations on GNU/Linux.
2363
2364 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
2365
2366         getlogin-tests: allow errno == ENOENT
2367         * tests/test-getlogin.c (main): Skip tests if getlogin fails
2368         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
2369         when running a test in an Emacs shell buffer.
2370
2371 2012-11-08  Jim Meyering  <jim@meyering.net>
2372
2373         tests/nap.h: avoid warning about unused variable
2374         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
2375
2376         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
2377         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
2378         white space before each of the special-cased file names, to avoid
2379         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
2380         in http://bugs.gnu.org/12830.
2381
2382 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
2383
2384         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
2385         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
2386         fails with errno == EBADF when fd is opened with O_PATH.
2387         Reported by Jim Meyering in
2388         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
2389         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
2390         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
2391
2392 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
2393
2394         test-utimens: speed up by taking shorter naps
2395         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
2396         New functions.
2397         (nap): Use them, to do a better job of guessing the delay.
2398         On Fedora 17 with ext4 atop md atop hard disks, this made
2399         test-utimens run 10x faster, because the test napped for
2400         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
2401         <http://bugs.gnu.org/12820#11>.
2402
2403 2012-11-07  Jim Meyering  <jim@meyering.net>
2404
2405         mountlist.c: fix a compilation failure
2406         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
2407         I introduced while transforming commit v0.0-7683-g613bcb6
2408
2409 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
2410
2411         errno: port to LynxOS 178 2.2.2
2412         Problem reported by Joel Brobecker in
2413         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
2414         * doc/posix-headers/errno.texi (errno.h): Document this.
2415         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
2416         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
2417         Supply a string for EILSEQ.
2418         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
2419
2420 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
2421
2422         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
2423         Linux kernel 2.6.39 introduced O_PATH (see
2424         <http://lwn.net/Articles/433854/>) and this is a better fallback
2425         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
2426         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
2427         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
2428         * lib/fcntl.in.h (O_ACCMODE):
2429         * tests/test-fcntl-h.c (main):
2430         Do not reject O_ACCMODE merely because it has more than the
2431         minimal number of bits, as POSIX allows extensions here.
2432
2433 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
2434
2435         mountlist: do not classify a bind-mounted dir entry as "dummy"
2436         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
2437         the "none"-testing clause.
2438         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
2439         exception for bind-mounted directories.
2440
2441 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
2442
2443         quote: provide a means to escape strings with nul characters
2444         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
2445         (quote, quote_n): Rename formal arguments for consistency with
2446         quotearg.
2447
2448 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
2449
2450         test-raise: don't assume 199 is an invalid signal
2451         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
2452
2453         sh-quote-tests: port to Solaris 9
2454         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
2455         Problem reported by Dagobert Michelsen in
2456         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
2457
2458 2012-10-28  Jim Meyering  <jim@meyering.net>
2459
2460         maint.mk: rename a new configurable variable
2461         * top/maint.mk (_gl_translatable_string_re): Rename from
2462         translation-markers: _gl_ prefix to insulate from user Makefile code,
2463         and the _re suffix to inform that it's a regular expression.
2464
2465 2012-10-26  Eric Blake  <eblake@redhat.com>
2466
2467         maint.mk: let packages tweak sc_po_check pattern
2468         * top/maint.mk (sc_po_check): Add translation-markers, to allow
2469         finding files with other translation markers.
2470
2471 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
2472
2473         euidaccess: speed up 'configure' on GNU hosts
2474         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
2475         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
2476         it's needed only in this case.  Use AC_CHECK_DECLS, not
2477         AC_CHECK_DECLS_ONCE.
2478         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
2479         or AC_REQUIRE for AC_FUNC_GETGROUPS.
2480
2481         * lib/regexec.c (re_search_internal): Fix grammar in comment.
2482
2483 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
2484
2485         fchmodat, fchownat, fstatat: port to non-inlining compilers
2486         Problem reported for FreeBSD 9 by Jim Meyering in
2487         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
2488         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
2489         New files, which define FCHMODAT_INLINE etc.
2490         * lib/fchmodat.c (FCHMODAT_INLINE):
2491         * lib/fchownat.c (FCHOWNAT_INLINE):
2492         * lib/fstatat.c (FSTATAT_INLINE):
2493         Remove, as chmodat.c etc. now do this.
2494         * modules/fchmodat (Files): Add lib/chmodat.c.
2495         * modules/fchownat (Files): Add lib/chownat.c.
2496         * modules/fstatat (Files): Add lib/statat.c.
2497
2498 2012-10-15  Jim Meyering  <jim@meyering.net>
2499
2500         fchmodat.c, fchownat.c: compile-impeding typos
2501         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
2502         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
2503         Introduced in commit v0.0-7636-gd202279.
2504
2505 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
2506
2507         fcntl-h: support GNU flags like O_IGNORE_CTTY
2508         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
2509         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
2510         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
2511         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
2512         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
2513         Define to 0 if not already defined.
2514         * tests/test-fcntl-h.c: Test these new flags.
2515
2516 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
2517
2518         faccessat, etc.: support AT_FDCWD-only use
2519         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
2520         this function only if its first argument is AT_FDCWD.
2521         Emacs wants faccessat for AT_EACCESS but not for any first-arg
2522         values other than AT_FDCWD, so it doesn't want all the openat
2523         machinery with fchdir etc.
2524         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
2525         * modules/fstatat, modules/mkdirat, modules/openat (Files):
2526         * modules/unlinkat (Files):
2527         Remove lib/openat-priv.h, as at-internal supplies this file.
2528         Removing this file here allows us to support programs like Emacs
2529         that avoid at-internal.
2530
2531         faccessat: speed up 'configure' on mainstream hosts
2532         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
2533         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
2534         since it's only on unusual platforms that we need to check for
2535         'access', and it's better not to slow 'configure' down on all
2536         platforms.
2537
2538         faccessat: port to Solaris 10
2539         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
2540         Needed on Solaris 10, which doesn't have AT_EACCESS,
2541         so we need the Gnulib fcntl.h, which defines it.
2542
2543 2012-10-14  Pádraig Brady  <P@draigBrady.com>
2544         canonicalize: fix C89 compilation
2545         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
2546         declarations so C89 is supported.  Also remove the comment
2547         referencing memorty allocation as the suggested feature could
2548         not be implemented as suggested.
2549         Reported by Michael Goffioul.
2550
2551 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
2552
2553         group-member: omit unnecessary dependencies
2554         This is for Emacs, which has its own allocator and where we
2555         don't want to use xalloc.
2556         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
2557         since we no longer use xmalloc.  Do not include stdbool.h, since
2558         the changes below happen to remove the only use of bool.
2559         (GROUPBUF_SIZE): New constant.
2560         (struct group_info): Remove n_groups member.  Add groupbuf member.
2561         This lets us get the groups without using malloc, usually.
2562         (free_group_info, get_group_info): Adjust to this.
2563         (get_group_info): Return the number of groups found, or -1 on error.
2564         Use plain malloc not xmalloc, and treat its failure as if there
2565         are no groups, as the user already loses in case of error.
2566         (group_member): Simplify, based on changes to get_group_info.
2567         * modules/group-member (Depends-on): Remove dependencies on
2568         xalloc and stdbool.  Add dependency on xalloc-oversized.
2569
2570 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
2571
2572         gethrxtime: port to C++
2573         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
2574
2575 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
2576
2577         ptsname: fix macro-name typo
2578         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
2579
2580 2012-10-03  Simon Josefsson  <simon@josefsson.org>
2581
2582         inttostr: Relax license.
2583         * modules/inttostr (License): Change from LGPL to LGPLv2+.
2584
2585 2012-10-03  Eric Blake  <eblake@redhat.com>
2586
2587         ptsname_r: support ptys returned by FreeBSD posix_openpt
2588         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
2589         lives in /dev/pts/.
2590
2591 2012-10-02  Eric Blake  <eblake@redhat.com>
2592
2593         pselect: reject invalid file descriptors
2594         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
2595         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
2596         * modules/pselect (Depends-on): Add dup2.
2597         * doc/posix-functions/pselect.texi (pselect): Document this.
2598
2599         select: reject invalid file descriptors
2600         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
2601         * lib/select.c (rpl_select) [!win32]: Work around it.
2602         * modules/select (Depends-on): Add dup2.
2603         * doc/posix-functions/select.texi (select): Document this.
2604
2605         select: enhance test
2606         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
2607         New functions.
2608         (test_function): Enhance test.
2609         (do_select_bad_fd): Avoid any stale errno values.
2610
2611         ptsname: reject invalid file descriptors
2612         http://www.austingroupbugs.net/view.php?id=503
2613         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
2614         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
2615         * modules/stdlib (Makefile.am): Replace witness.
2616         * lib/stdlib.in.h (ptsname): Allow for replacement.
2617         * modules/ptsname (configure.ac): Trigger replacement.
2618         * doc/posix-functions/ptsname.texi (ptsname): Document this.
2619
2620 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
2621
2622         hash-pjw-bare: new module
2623         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
2624         * lib/hash-pjw-bare.h: Likewise.
2625         * modules/hash-pjw-bare: New file.
2626         * MODULES.html.sh (Misc): Add it.
2627
2628 2012-10-02  Eric Blake  <eblake@redhat.com>
2629
2630         manywarnings: cater to more gcc infelicities
2631         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
2632         -Wuninitialized without -O.
2633
2634 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
2635
2636         select, poll tests: Make setsockopt invocation effective.
2637         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
2638         the bind() call.
2639         * tests/test-select.h (open_server_socket): Likewise.
2640
2641 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
2642
2643         sockets, sys_stat: restore AC_C_INLINE
2644         This undoes the 2012-09-22 patch.
2645         * m4/sockets.m4 (gl_SOCKETS):
2646         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
2647         Restore AC_C_INLINE, since MSVC requires __inline or _inline
2648         and does not support plain 'inline'.  Reported by Bruno Haible in
2649         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
2650
2651 2012-09-30  Bruno Haible  <bruno@clisp.org>
2652
2653         localeconv tests: Avoid test failure on OpenIndiana.
2654         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
2655         skip the 'grouping' and 'mon_grouping' tests.
2656         Reported by Jim Meyering.
2657
2658 2012-09-30  Bruno Haible  <bruno@clisp.org>
2659
2660         havelib: Follow libtool developments.
2661         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
2662         Suggested by Simon Josefsson.
2663
2664 2012-09-29  Jim Meyering  <meyering@redhat.com>
2665
2666         fstatat.c: fix a compile-impeding typo
2667         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
2668         Introduced in commit v0.0-7636-gd202279.
2669         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
2670
2671 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
2672
2673         extern-inline: provide a -Wundef safe config.h
2674         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
2675         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
2676         to produce a -Wundef warning free config.h.
2677
2678 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2679
2680         hash-pjw: relax license to LGPLv2+
2681         * modules/hash-pjw (License): Relax, with consent of author.
2682
2683 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
2684
2685         maint.mk: fix strict vs. lazy variable issues with RELEASE
2686         * top/maint.mk (_equal): New function.
2687         (member_check): Strip the result to avoid spurious spaces.
2688         (url_dir_list): Do not use ifeq, which is strict, as it will
2689         require RELEASE_TYPE to be defined.
2690         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
2691         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
2692         (announcement_Cc_alpha,announcement_mail_headers_alpha)
2693         (announcement_Cc_beta,announcement_mail_headers_beta)
2694         (announcement_Cc_stable,announcement_mail_headers_stable): these.
2695         (release): Do not depend on $(release-type), as it forces its
2696         evaluation.  Bounce to it.
2697
2698 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
2699
2700         maint.mk: formatting changes
2701         * top/maint.mk: Indent bodies of if's.
2702
2703 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
2704
2705         maint.mk: factor the validation of RELEASE_TYPE
2706         With help from Jim Meyering.
2707         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
2708         * top/maint.mk (_empty, _sp): Move their definition earlier.
2709         (member-check, release-type): New.
2710         Use the latter instead of $(RELEASE_TYPE).
2711         Remove now useless local checks.
2712
2713 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
2714
2715         maint.mk: provide "make upload" to ease uploading
2716         See
2717         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
2718         Do not depend simply on the current $(VERSION), as there may have been
2719         new commits since the tarball generation.  Rather, rely on $(RELEASE),
2720         as "make release-commit" already does.
2721
2722         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
2723         "make TYPE".
2724
2725         * top/maint.mk (upload_command, upload, release): New.
2726         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
2727         (VERSION): first word of $(RELEASE) is always right.
2728         (emit_upload_commands): Adjust.
2729         * top/README-release: Update.
2730
2731 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
2732
2733         maint.mk: silent rules
2734         With help from Stefano Lattarini.
2735         * top/maint.mk (writable-files): Use $(AM_V_GEN).
2736         (announcement): Use $(AM_V_at).
2737
2738 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
2739
2740         localename: port gl_locale_name_thread_unsafe to FreeBSD
2741         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
2742         and use the simpler FreeBSD implementation on Mac OS X as well.
2743         Original idea suggested by Ed Maste in
2744         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
2745
2746 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
2747
2748         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
2749         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
2750         * lib/mbuiter.c, lib/xsize.c: New files.
2751         * lib/binary-io.h (BINARY_IO_INLINE):
2752         * lib/eealloc.h (EEALLOC_INLINE):
2753         * lib/mbfile.h (MBFILE_INLINE):
2754         * lib/mbiter.h (MBITER_INLINE):
2755         * lib/mbuiter.h (MBUITER_INLINE):
2756         * lib/xsize.h (XSIZE_INLINE):
2757         New macros.
2758         Replace all uses of 'static inline' with them.
2759         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2760         * m4/eealloc.m4 (gl_EEALLOC):
2761         * m4/mbfile.m4 (gl_MBFILE):
2762         * m4/mbiter.m4 (gl_MBITER):
2763         * m4/xsize.m4 (gl_XSIZE):
2764         Do not require AC_C_INLINE.
2765         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
2766         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
2767         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
2768         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
2769         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
2770         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
2771         * modules/binary-io, modules/eealloc, modules/mbfile:
2772         * modules/mbiter, modules/mbuiter:
2773         (Depends-on): Add extern-inline.
2774
2775         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
2776         * lib/pipe-filter-aux.c: New file.
2777         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
2778         Replace all uses of 'static inline' with it.
2779         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2780         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
2781         (filter_retcode): No real need for inline here.
2782         * modules/pipe-filter-gi, modules/pipe-filter-ii:
2783         (Files): Add lib/pipe-filter-aux.c.
2784         (Depends-on): Add extern-inline.
2785         (configure.ac): Do not require AC_C_INLINE.
2786         (lib_SOURCES): Add pipe-filter-aux.c.
2787
2788         fdutimensat: omit unnecessary AC_C_INLINE
2789         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
2790
2791         fchmodat, fchownat, fstatat: use extern-inline
2792         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
2793         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
2794         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
2795         New macros.
2796         * lib/openat.h:
2797         Replace all uses of 'static inline' with them.
2798         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2799         * modules/fchmodat, modules/fchownat, modules/fstatat:
2800         * modules/openat-h:
2801         (Depends-on):
2802         Add extern-inline.
2803         (configure.ac): Remove AC_C_INLINE.
2804
2805         acl, mbchar, priv-set: use extern-inline
2806         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
2807         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
2808         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
2809         New macros.
2810         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
2811         Replace all uses of 'static inline' with it.
2812         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2813         * m4/acl.m4 (gl_FUNC_ACL):
2814         * m4/mbchar.m4 (gl_MBCHAR):
2815         * m4/priv-set.m4 (gl_PRIV_SET):
2816         Remove AC_C_INLINE, since 'inline' is no longer used directly.
2817         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
2818         Add extern-inline.
2819
2820         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
2821         * m4/sockets.m4 (gl_SOCKETS):
2822         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
2823         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
2824         environments where it's already guaranteed to work, so we needn't
2825         check for it at 'configure'-time.
2826
2827         tls-tests: omit unnecessary 'inline'
2828         * tests/test-tls.c (perhaps_yield): No longer inline.
2829         Simplicity and portability trump efficiency in test cases.
2830
2831         utimens-tests: avoid unnecessary 'inline'
2832         * modules/fdutimensat-tests (configure.ac):
2833         * modules/futimens-tests (configure.ac):
2834         * modules/utimens-tests (configure.ac):
2835         * modules/utimensat-tests (configure.ac):
2836         Remove AC_C_INLINE.
2837         * tests/test-utimens-common.h (ctime_compare):
2838         No longer inline.  Simplicity and portability trump efficiency here.
2839
2840         misc: don't limit commentary to inline functions
2841         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
2842         * lib/xalloc-oversized.h, lib/xsize.h:
2843         Contrast macros to functions in general, not just to inline functions,
2844         when the commentary does not apply only to inline functions.
2845
2846 2012-09-20  Jim Meyering  <meyering@redhat.com>
2847
2848         non-recursive-gnulib-prefix-hack: new module
2849         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
2850         the file that originated in Bison.
2851         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
2852         largely copied from a snippet that resided in bison's configure.ac.
2853         * modules/non-recursive-gnulib-prefix-hack: New file.
2854         * MODULES.html.sh (Support for maintaining and releasing projects):
2855         Add it.
2856
2857 2012-09-18  Jim Meyering  <meyering@redhat.com>
2858
2859         maint.mk: generalize _gl_tight_scope for non-recursive make
2860         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
2861         that *.h would describe additional .h files in the directory
2862         specified by $(_gl_TS_dir).  I.e., add this...
2863         (_gl_TS_other_headers): New variable.
2864
2865         maint.mk: exempt trailing blanks found in "binary" files
2866         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
2867         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
2868         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
2869
2870 2012-09-17  Jim Meyering  <meyering@redhat.com>
2871
2872         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
2873         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
2874         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
2875         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
2876
2877 2012-09-17  Jim Meyering  <meyering@redhat.com>
2878
2879         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
2880         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
2881         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
2882         It is not in the same category as "exit (0)" or "exit (1)", and
2883         besides, I know of no symbolic name for that 77.  Reported by
2884         Richard W.M. Jones in
2885         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
2886
2887 2012-09-17  Jim Meyering  <meyering@redhat.com>
2888
2889         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
2890         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
2891         all uses of #define, not just those that start in column 1.
2892         Richard W.M. Jones reported a false positive in
2893         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
2894
2895 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
2896
2897         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
2898         * lib/localcharset.c (locale_charset) [DARWIN7]:
2899         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
2900         as these two values are incompatible.  Problem reported by Max Horn.
2901         For more discussion, please see
2902         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
2903
2904         doc: document sticky-EOF issue
2905         * doc/posix-functions/fgetc.texi (fgetc):
2906         * doc/posix-functions/fgets.texi (fgets):
2907         * doc/posix-functions/fread.texi (fread):
2908         * doc/posix-functions/fscanf.texi (fscanf):
2909         * doc/posix-functions/getc.texi (getc):
2910         * doc/posix-functions/getchar.texi (getchar):
2911         * doc/posix-functions/scanf.texi (scanf):
2912         Mention that glibc and default Solaris do not conform to
2913         C99 and POSIX-2001 or later, with respect to how getchar
2914         etc. behave when feof reports nonzero.
2915
2916 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
2917
2918         poll: fix poll(0, NULL, msec)
2919         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
2920         but nfd is 0.  In that case poll should behave like select.
2921
2922 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
2923             Paolo Bonzini <bonzini@gnu.org>
2924
2925         poll: fix for systems that can't recv() on a non-socket
2926         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
2927         is readable.  In this case POLLHUP will not be supported.
2928         * doc/posix-functions/poll.texi: Document this.
2929
2930 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
2931
2932         poll/select: document portability problems not fixed by Gnulib.
2933         * doc/posix-functions/poll.texi: poll does not work well on
2934         pipes under Windows.  It has the same limitations as select on
2935         BeOS.
2936         * doc/posix-functions/select.texi: select does not work well
2937         on pipes under Windows.
2938
2939 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
2940
2941         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
2942         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
2943         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
2944         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
2945
2946 2012-09-06  Eric Blake  <eblake@redhat.com>
2947
2948         net_if: give more details about the bug being fixed
2949         * doc/posix-headers/net_if.texi: Add clarification.
2950
2951 2012-09-05  Eric Blake  <eblake@redhat.com>
2952
2953         net_if: new module
2954         * modules/net_if: New module, borrowing ideas from netinet_in.
2955         * m4/net_if_h.m4: New file.
2956         * lib/net_if.in.h: Likewise.
2957         * doc/posix-headers/net_if.texi (net/if.h): Document it.
2958         * MODULES.html.sh (lacking POSIX:2008): Likewise.
2959         * tests/test-net_if.c: Make function checks conditional.
2960         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
2961
2962 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
2963
2964         readutmp: fix non-portable UT_PID use
2965         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
2966         Use `UT_PID (u) > 0' as absolute condition.
2967
2968 2012-09-04  Jim Meyering  <meyering@redhat.com>
2969
2970         fts: reduce two or more trailing spaces to just one, usually
2971         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
2972         or more slashes, trim all but the final one.  But if a name consists
2973         solely of two slashes, don't modify it.  If it consists solely of
2974         three or more slashes, strip all but one.
2975
2976         This is part of the solution to a minor problem with rm:
2977         it would print a bogus ELOOP diagnostic when failing to remove
2978         the slash-decorated name of a symlink-to-directory:
2979
2980             $ mkdir d && ln -s d s && env rm -r s/
2981             rm: cannot remove 's': Too many levels of symbolic links
2982
2983         With the change below and a trivial don't-trim-trailing-slashes
2984         adjustment to remove.c, it does this:
2985
2986             $ env rm -r s/
2987             rm: cannot remove 's/': Not a directory
2988
2989         Improved by: Eric Blake
2990
2991         fts: when there is no risk of overlap, use memcpy, not memmove
2992         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
2993
2994 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
2995
2996         stdbool: be more compatible with mixed C/C++ compiles
2997         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
2998         Define to bool, true, false, respectively, as GCC's builtin
2999         stdbool.h does.  Problem reported by Michael Goffioul in
3000         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
3001
3002 2012-08-28  Jim Meyering  <meyering@redhat.com>
3003
3004         revert last change: it was not needed
3005         * tests/test-vc-list-files-git.sh: There's already a test for
3006         a working git, just below.
3007
3008 2012-08-28  Jim Meyering  <meyering@redhat.com>
3009
3010         tests: test-vc-list-files-git.sh: skip if git is not available
3011         * tests/test-vc-list-files-git.sh: Skip this test when git is
3012         not available.
3013
3014 2012-08-26  Bruno Haible  <bruno@clisp.org>
3015
3016         gnulib-tool: Remove no-op option --no-changelog.
3017         * gnulib-tool (func_usage): Don't mention --no-changelog.
3018         (do_changelog): Remove variable.
3019         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3020
3021 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3022
3023         doc: remove fdl-1.2.texi
3024         It is no longer used or maintained, and its use of @acronym
3025         is problematic.  See the thread containing
3026         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
3027         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
3028         * doc/old-licenses/fdl-1.2.texi: Remove.
3029
3030         execinfo: port to FreeBSD
3031         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
3032         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
3033         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
3034         * modules/execinfo (Link): Add $(LIB_EXECINFO).
3035
3036 2012-08-23  Jim Meyering  <meyering@redhat.com>
3037
3038         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
3039         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
3040         to placate gcc's -Wold-style-declaration.
3041
3042 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3043
3044         doc: do not use @acronym
3045         * doc/inet_ntoa.texi (inet_ntoa):
3046         * doc/parse-datetime.texi (Seconds since the Epoch)
3047         (Specifying time zone rules):
3048         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
3049         Don't use @acronym.  Problem reported by John Darlington in
3050         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
3051
3052 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
3053
3054         stdnoreturn: port to newer GCCs
3055         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
3056         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
3057         Problem reported by Jim Meyering in
3058         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
3059         Also, rename the 'test' function to a void a clash with the
3060         already-supplied 'main' function; this fixes a bug that incorrectly
3061         rejected GCC 4.7.1's <stdnoreturn.h>.
3062         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
3063         Document GCC problem.
3064
3065 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
3066
3067         pipe-filter: fix comment typo
3068         * lib/pipe-filter.h: Mention correct function.
3069
3070 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
3071
3072         execinfo: new module
3073         This is for Emacs.  Currently, it provides a no-effect stub
3074         on all platforms where it does not already work.
3075         It already works on glibc-based systems, and on Solaris 11.
3076         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
3077         New files.
3078         * doc/glibc-headers/execinfo.texi (execinfo.h):
3079         * MODULES.html.sh (Misc): Document it.
3080
3081 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
3082
3083         extern-inline: support old GCC 'inline'
3084         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
3085         if available.  This applies to GCC versions 2.7 through 4.2, or
3086         when newer GCC is using -fgnu89-inline.  The goal is to address
3087         some of the performance issues mentioned by Bruno Haible in
3088         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
3089
3090 2012-08-20  Eric Blake  <eblake@redhat.com>
3091
3092         maint.mk: avoid redundant file name in message
3093         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
3094         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
3095         (sc_makefile_path_separator_check): Remove bogus $(ME).
3096
3097 2012-08-20  Mike Frysinger <vapier@gentoo.org>
3098
3099         timer-time: fix link order when static linking on glibc
3100         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
3101         _after_ -lrt so that it's significant.
3102
3103 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
3104
3105         timespec: omit unnecessary AC_C_INLINE
3106         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
3107
3108         stat-time: omit unnecessary AC_C_INLINE
3109         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
3110         Do not require AC_C_INLINE.
3111
3112         ignore-value: omit unnecessary AC_C_INLINE
3113         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
3114
3115         sys_select: avoid 'static inline'
3116         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
3117
3118         mktime: avoid 'static inline'
3119         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
3120         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
3121
3122 2012-08-19  Bruno Haible  <bruno@clisp.org>
3123
3124         gnulib-tool: Improve coding style.
3125         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
3126         func_emit_lib_Makefile_am.
3127         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3128
3129 2012-08-19  Bruno Haible  <bruno@clisp.org>
3130
3131         gnulib-tool: Fix indentation.
3132         * gnulib-tool (func_import): Fix indentation.
3133
3134 2012-08-19  Bruno Haible  <bruno@clisp.org>
3135
3136         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
3137         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
3138         on the list of removed files.
3139
3140 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
3141
3142         test-parse-datetime: avoid glibc leap-second glitch
3143         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
3144         with the 2012 rules.  Problem reported by Bruce Dubbs in
3145         <http://bugs.gnu.org/12206>.
3146
3147 2012-08-14  Bruno Haible  <bruno@clisp.org>
3148
3149         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
3150         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
3151         from argument.
3152         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3153
3154 2012-08-14  Eric Blake  <eblake@redhat.com>
3155
3156         ldexp: relax license
3157         * modules/ldexp (License): Trivial relax, since the module only
3158         provides a permissively licensed m4 file.
3159
3160 2012-08-13  Bruno Haible  <bruno@clisp.org>
3161
3162         gnulib-tool: Fix persistence of --witness-c-macro option.
3163         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
3164         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3165
3166 2012-08-11  Eric Blake  <eblake@redhat.com>
3167
3168         count-leading-zeros: use a lookup table on non-gcc compilers
3169         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
3170         alternate implementation, suggested by Jim Meyering.
3171
3172 2012-08-10  Eric Blake  <eblake@redhat.com>
3173
3174         count-leading-zeros: new module
3175         * modules/count-leading-zeros: New module.
3176         * m4/count-leading-zeros.m4: New file.
3177         * lib/count-leading-zeros.h: Likewise.
3178         * modules/count-leading-zeros-tests: New test.
3179         * tests/test-count-leading-zeros.c: New file.
3180         * MODULES.html.sh (Integer arithmetic functions): Document it.
3181
3182 2012-08-07  Simon Josefsson  <simon@josefsson.org>
3183             Jim Meyering  <meyering@redhat.com>
3184
3185         maintainer-makefile: Fix syntax error with dash.
3186         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
3187         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
3188
3189 2012-08-05  Jim Meyering  <meyering@redhat.com>
3190
3191         extern-inline: also ignore -Wmissing-declarations
3192         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
3193         required with gcc-4.8.0-to-be.
3194
3195         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
3196         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
3197         for /error ?([^,]*)/.  This avoids false-positives for strings like
3198         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
3199
3200 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
3201
3202         gnumakefile: better interaction with Automake-NG
3203         * modules/gnumakefile [Makefile.am]: The makefiles generated by
3204         Automake-NG always contain a definition of VPATH, even in non-VPATH
3205         builds (its value being simply '.' in that case).  So, in the
3206         'clean-GNUmakefile' rule, to determine whether running under a
3207         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
3208         '$(VPATH)' expands to the empty string.
3209
3210 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
3211
3212         base64: Use extern C scope in header file, for C++.
3213         * lib/base64.h: Add C++ namespace protection.
3214
3215 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
3216
3217         stat-time, timespec, u64: support naive out-of-dir builds
3218         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
3219         Use '#include "foo.h"', not '#include <foo.h>', when including
3220         one's own interface.  This works better when configuring with
3221         out-of-directory builds, since packages need not add an
3222         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
3223
3224 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
3225
3226         utimens: use extern-inline
3227         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
3228         * lib/utimens.h: Add copyright notice, since this is now large enough
3229         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3230         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
3231         * modules/utimens (Depends-on): Add extern-inline.
3232
3233         u64: use extern-inline
3234         * lib/u64.c: New file.
3235         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3236         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
3237         * modules/u64 (Files): Add lib/u64.c.
3238         (Depends-on): Add extern-inline.
3239         (configure.ac): No need to require AC_C_INLINE, since extern-inline
3240         does that now.
3241         (lib_SOURCES): Add u64.c.
3242
3243         timespec: use extern-inline
3244         * lib/timespec.c: New file.
3245         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3246         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
3247         * modules/timespec (Files): Add lib/timespec.c.
3248         (Depends-on): Add extern-inline.
3249         (lib_SOURCES): Add timespec.c.
3250
3251         stat-time: use extern-inline
3252         * lib/stat-time.c: New file.
3253         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3254         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
3255         * modules/stat-time (Files): Add lib/stat-time.c.
3256         (Depends-on): Add extern-inline.
3257         (lib_SOURCES): Add stat-time.c.
3258
3259         extern-inline: new module
3260         * modules/extern-inline, m4/extern-inline.m4: New files.
3261         This is for better support of 'extern inline' a la ISO C99,
3262         with a portable alternative on compilers that do not support
3263         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
3264         of the Emacs executable, when compiled with debugging disabled,
3265         which is a typical way that Emacs is built while developing.
3266
3267 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
3268
3269         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
3270         * build-aux/do-release-commit-and-tag: Move variable definitions
3271         together.
3272         ($branch): Instead of defaulting to "master", default to the current
3273         branch (as gnu-web-doc-update does).
3274         (help): Display the current values of the option arguments.
3275         * top/maint.mk (release-commit): New.
3276         * top/README-release: Simplify the corresponding step.
3277
3278 2012-07-30  Eric Blake  <eblake@redhat.com>
3279
3280         passfd: fix comment on recvfd
3281         * lib/passfd.c (recvfd): Fix comment.
3282         Reported by Jann Horn <jannhorn@googlemail.com>.
3283
3284 2012-07-30  Jim Meyering  <meyering@redhat.com>
3285
3286         maint.mk: avoid a sub-shell
3287         * top/maint.mk (release-prep): Remove unneeded sub-shell.
3288
3289 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3290
3291         maint.mk: use silent-rules support from Automake
3292         * top/maint.mk (news-check, vc-diff-check, announcement)
3293         (no-submodule-changes, alpha beta stable, release-prep)
3294         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
3295
3296 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3297
3298         maint.mk: provide a web-manual-update target
3299         * top/maint.mk: here.
3300         * top/README-release: Use it to simplify the web manual update step.
3301
3302 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3303
3304         README-release: shorten the circuit to post a news
3305         * top/README-release: Point directly to the news submission form.
3306
3307 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3308
3309         gnu-web-doc-update: fix --help
3310         * build-aux/gnu-web-doc-update: The information "top level" was written
3311         twice.
3312
3313 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3314
3315         maint.mk: absolute VPATH issue
3316         * top/maint.mk (release-prep): Help Git find .git/.
3317         From Jim Meyering.
3318
3319 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
3320
3321         gitlog-to-changelog: fix previous change
3322         * build-aux/gitlog-to-changelog: Fix condition.
3323         Add missing ";".
3324
3325 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
3326
3327         gitlog-to-changelog: don't expect .git to be in $srcdir
3328         Reported by Bruno Haible.
3329         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
3330         * build-aux/gitlog-to-changelog (&git_dir_option): New.
3331         Use it.
3332
3333 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
3334
3335         maint.mk: absolute VPATH build fix
3336         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
3337         $(srcdir) is not a parent of $(builddir).
3338
3339 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
3340
3341         clean-temp: Fix memory leak.
3342         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
3343         'files' members of tmpdir.
3344
3345 2012-07-27  Jim Meyering  <meyering@redhat.com>
3346
3347         maint.mk: new rule: refresh-gnulib-patches
3348         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
3349         Use this rule to refresh them.
3350         * top/maint.mk (refresh-gnulib-patches): New rule.
3351
3352 2012-07-24  Bruno Haible  <bruno@clisp.org>
3353
3354         gnulib-tool: Fix handling of inctests variable.
3355         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
3356         Reported by Nick Bowler <nbowler@elliptictech.com>.
3357
3358 2012-07-22  Bruno Haible  <bruno@clisp.org>
3359
3360         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
3361         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
3362         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
3363         Remove exemption for getpass.h.
3364         Suggested by Eric Blake.
3365
3366 2012-07-20  Eric Blake  <eblake@redhat.com>
3367
3368         verify: document conflict with -Wnested-externs
3369         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
3370
3371         maint.mk: forbid exit(-1)
3372         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
3373
3374 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
3375
3376         fsusage: port back to Solaris
3377         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
3378         error (fsd not declared) on Solaris 10.  Reported privately by
3379         Andrew Borodin.
3380
3381 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
3382
3383         gnu-web-doc-update: fix error messages
3384         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
3385
3386         gnu-web-doc-update: check the requirements.
3387         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
3388         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
3389         * build-aux/bootstrap (find_tool): Comment change.
3390
3391 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
3392
3393         maint.mk: minor simplication.
3394         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
3395         for default values.
3396
3397 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
3398
3399         gitlog-to-changelog: VPATH build issues
3400         If builddir is not a subdirectory of srcdir, running git from it will
3401         fail.
3402         * build-aux/gitlog-to-changelog (--srcdir): New option.
3403
3404 2012-07-15  Bruno Haible  <bruno@clisp.org>
3405
3406         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
3407         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
3408         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
3409         Remove exemption for fpending.h.
3410         Suggested by Eric Blake.
3411
3412 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
3413
3414         pthread_sigmask: fix bug on FreeBSD 9
3415         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
3416         Include string.h.
3417         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
3418         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
3419         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
3420         but pthread_sigmask (1729, NULL, NULL) returns zero.
3421         See <http://bugs.gnu.org/11884>.
3422         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
3423         by inspecting whether the main call changed the old mask.
3424
3425 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
3426
3427         README-release: make it more legible
3428         * top/README-release: Improve typography slightly.
3429
3430 2012-07-15  Jim Meyering  <meyering@redhat.com>
3431
3432         maint: require that each sc_... command start with "@"
3433         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
3434         "make sc_maint" helps us avoid this nit.
3435
3436 2012-07-15  Jim Meyering  <meyering@redhat.com>
3437
3438         maint.mk: add leading "@" to quiet new "make syntax-check" rule
3439         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
3440
3441 2012-07-13  Eric Blake  <eblake@redhat.com>
3442
3443         maint.mk: new syntax check for HAVE_DECL checks
3444         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
3445         * cfg.mk
3446         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
3447         Exempt some false positives.
3448         Based on a report by Karel Zak.
3449
3450         argp: make HAVE_DECL usage consistent
3451         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
3452         macros, not whether they are defined.
3453         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
3454         convention with other declaration checks.
3455         Reported by Karel Zak, with suggestions from Paul Eggert.
3456
3457         stat-time: relax license to LGPLv2+
3458         * modules/stat-time (License): Relax, with consent of all authors.
3459
3460         strndup: fix m4 usage error
3461         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
3462         defined, to either 0 or 1.
3463         Reported by Karel Zak.
3464
3465 2012-07-11  Jim Meyering  <meyering@redhat.com>
3466
3467         maint: enable the sc_avoid_if_before_free syntax-check rule
3468         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
3469         (if_before_free_offenders_): Define.
3470         (if_before_free_basename_re_): Define.
3471         Exempt current files with useless if-before-free.
3472
3473 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
3474
3475         gettext: do not assume '#define ... defined ...' behavior
3476         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
3477         Do not use '#define FOO ... defined BAR ...', as the C standard says
3478         it's not portable to expect that this works after macro expansion.
3479         Problem reported for gzip by Steven M. Schweda in
3480         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
3481
3482 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
3483
3484         getloadavg: clean out old Emacs and Autoconf cruft
3485         See Glenn Morris in <http://bugs.gnu.org/11905>.
3486         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
3487         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
3488         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
3489         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
3490
3491 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
3492
3493         bootstrap: let warn be like tests/init.sh's warn_
3494         Reported by Jim Meyering.
3495         * build-aux/bootstrap (warn): Remove, replaced by...
3496         (warnf_, warn_): these.
3497         Adjust callers.
3498         Shorten messages that no longer fit in 80 columns.
3499
3500 2012-07-09  Bruno Haible  <bruno@clisp.org>
3501
3502         getopt: Simplify after Emacs changed.
3503         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
3504         (gl_GETOPT_IFELSE): Remove macro.
3505
3506 2012-07-09  Jim Meyering  <meyering@redhat.com>
3507
3508         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
3509         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
3510
3511         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
3512         Bugs in both of those conspired to make the
3513         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
3514         _sc_search_regexp's handling of non-empty $in_files would filter
3515         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
3516         choice of in_files value meant there would be no match in most
3517         projects, due to the presence of two or more Makefile.in files.
3518         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
3519         Fix a bug in how a non-empty $$in_files was processed:
3520         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
3521         in spite of the name, it's a regexp, not a list of file names.
3522
3523 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
3524
3525         getloadavg, getopt: fix commentary re configure.in
3526         Autoconf is deprecating the name 'configure.in', so change it to
3527         to the new name 'configure.ac' in a couple of places.
3528         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
3529         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
3530         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
3531         Emacs has renamed it to configure.ac, and it no longer refers
3532         to these macros anyway.
3533
3534         timespec: mark functions with const attributes
3535         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
3536         Mark with _GL_ATTRIBUTE_CONST.
3537
3538 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
3539
3540         canonicalize[-lgpl]: handle "guessing" values when cross-building
3541         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
3542         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
3543         matches "*yes" instead of just "yes".  Regression introduced in commit
3544         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
3545
3546 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
3547             Bruno Haible  <bruno@clisp.org>
3548
3549         canonicalize: make the right guess when cross-compiling to GNU
3550         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
3551         determine whether cross-compiling to glibc systems, so as to
3552         include GNU/Hurd.
3553
3554 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
3555
3556         timespec-sub: avoid duplicate include
3557         * lib/timespec-sub.c: Do not include <config.h> twice.
3558         Reported by Juanma Barranquero.
3559
3560 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
3561
3562         bootstrap: use a more consistent error reporting scheme
3563         * build-aux/bootstrap (warn, die): New.
3564         Use them.
3565
3566 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
3567
3568         sys_time: allow too-wide tv_sec
3569         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
3570         timeval even if tv_sec is wider than time_t.  This allows
3571         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
3572         as without this patch gnulib replaces struct timeval
3573         and OpenBSD futimes therefore has a type mismatch.
3574         * doc/posix-headers/sys_time.texi: Mention this.
3575
3576         pthread: check for both pthread_create and pthread_join
3577         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
3578         alter the check so that it tests for both pthread_create and
3579         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
3580         Suggested by Bruno Haible and Richard Yao in
3581         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
3582
3583         parse-datetime: doc tuneup
3584         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
3585         spacing issues.
3586
3587 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
3588
3589         do-release-commit-and-tag: fix the previous commit
3590         * build-aux/do-release-commit-and-tag: Actually the test was right,
3591         but the comment and the error message were misleading.
3592         Fix comment, and improve error message.
3593         Perform check first, so that NEWS is not modified uselessly.
3594
3595         do-release-commit-and-tag: fix typo
3596         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
3597         _not_ start with a stub.
3598
3599 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
3600
3601         pthread: check for pthread_create, not pthread_join
3602         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
3603         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
3604         pthread_join in libc.  I hope this removes the need for all the
3605         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
3606         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
3607
3608 2012-07-04  Jim Meyering  <meyering@redhat.com>
3609
3610         parse-datetime: fix failure to diagnose invalid input
3611         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
3612         rather than diagnosing the invalid input.  Now it reports this:
3613         date: invalid date '\260'
3614         * lib/parse-datetime.y (to_uchar): Define.
3615         (yylex): Don't sign-extend "other" bytes.
3616         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
3617         Thanks to Bruno Haible for the patch to this file.
3618         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
3619         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
3620
3621 2012-07-03  Jim Meyering  <meyering@redhat.com>
3622
3623         bootstrap: do not require now-removed build-aux/missing
3624         Now that build-aux/missing is, er, missing, bootstrap would
3625         silently fail.
3626         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
3627         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
3628         no longer part of gnulib.
3629         Diagnose the failure.
3630
3631 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
3632
3633         alloca: add support for HP NonStop TNS/E native
3634         * lib/alloca.in.h (alloca): Support the new host.
3635         From a suggestion by Joachim Schmitz in
3636         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
3637
3638 2012-07-02  Pádraig Brady  <P@draigBrady.com>
3639
3640         fsusage: remove code not needed on non GNU/Linux systems.
3641
3642         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
3643         Don't include headers no longer needed in this case.
3644         * lib/fsusage.c [STAT_STATVFS &&
3645         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
3646         STAT_STATFS2_FRSIZE to exclude code not used in this case.
3647
3648 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
3649
3650         fsusage: include files needed for glibc 2.6 fallback
3651         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
3652         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
3653         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
3654         Problem reported by Ludovic Courtès in
3655         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
3656
3657         fsusage: avoid needless check on GNU/Linux
3658         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
3659         on GNU/Linux systems, since it can't possibly work.
3660
3661 2012-07-01  Bruno Haible  <bruno@clisp.org>
3662
3663         log: Fix an autoconf >= 2.64 warning.
3664         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
3665         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
3666
3667 2012-06-28  Bruno Haible  <bruno@clisp.org>
3668
3669         log10f: Fix possible configuration problem.
3670         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
3671         $LOGF_LIBM.
3672         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
3673
3674 2012-06-28  Bruno Haible  <bruno@clisp.org>
3675
3676         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
3677         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
3678         not gl_cv_func_unlink_works.
3679         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
3680
3681 2012-06-27  Eric Blake  <eblake@redhat.com>
3682
3683         config: drop scripts that automake says are not independent
3684         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
3685         * build-aux/elisp-comp: Delete.
3686         * build-aux/missing: Likewise.
3687         * build-aux/ylwrap: Likewise.
3688         * modules/elisp-comp: Likewise.
3689         * MODULES.html.sh: Drop mention of elisp-comp.
3690         * NEWS: Mention this.
3691
3692 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
3693
3694         root-uid: new module
3695         This is for portability to Tandem's NonStop Kernel.
3696         * lib/root-uid.h, modules/root-uid: New files.
3697         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
3698         * lib/write-any-file.c, tests/test-sethostname2.c:
3699         Include "root-uid.h".
3700         * lib/euidaccess.c (euidaccess):
3701         * lib/pt_chown.c (main):
3702         * lib/unlinkdir.c (cannot_unlink_dir):
3703         * lib/write-any-file.c (can_write_any_file):
3704         * m4/mknod.m4 (gl_FUNC_MKNOD):
3705         * tests/test-sethostname2.c (geteuid, main):
3706         Don't assume ROOT_UID == 0.
3707         * modules/euidaccess (Depends-on):
3708         * modules/pt_chown (Depends-on):
3709         * modules/sethostname-tests (Depends-on):
3710         * modules/unlinkdir (Depends-on):
3711         * modules/write-any-file (Depends-on):
3712         Add root-uid.
3713
3714         regex: use locale-independent comparison for codeset name
3715         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
3716         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
3717         for codeset name.
3718         * lib/regex_internal.h: Do not include <strings.h>, since we
3719         no longer use strcasecmp.
3720         * modules/regex (Depends-on): Remove strcase.
3721
3722 2012-06-23  Bruno Haible  <bruno@clisp.org>
3723
3724         getopt-posix: No longer guarantee that option processing is resettable.
3725         * doc/posix-functions/getopt.texi: Drop description of problem with
3726         internal state. Fix info about mingw and msvc9.
3727         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
3728         option processing by getopt(). Run three test programs instead of one.
3729         Simplify cross-compilation guess.
3730         * NEWS: Mention the change.
3731         Reported by Rich Felker <dalias@aerifal.cx>.
3732
3733 2012-06-26  Bruno Haible  <bruno@clisp.org>
3734
3735         argp, regex: Ensure strcasecmp gets declared.
3736         * lib/argp-help.c: Include <strings.h>.
3737         * lib/regex_internal.h: Likewise.
3738         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
3739
3740 2012-06-24  Bruno Haible  <bruno@clisp.org>
3741
3742         ptsname_r: Make it consistent with ptsname on AIX.
3743         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
3744         implementation as for OSF/1.
3745         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
3746         a pty master.
3747
3748         ptsname_r: Make it consistent with ptsname on OSF/1.
3749         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
3750         OSF/1.
3751
3752 2012-06-24  Bruno Haible  <bruno@clisp.org>
3753
3754         ttyname_r: Fix result on OSF/1, Solaris.
3755         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
3756
3757 2012-06-24  Bruno Haible  <bruno@clisp.org>
3758
3759         ptsname_r: Add support for Solaris.
3760         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
3761         Solaris.
3762
3763         ptsname_r: Fix test failure on native Windows.
3764         * modules/ptsname_r (Depends-on): Add isatty.
3765
3766         ptsname_r: Fix test failures on IRIX, Solaris.
3767         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
3768         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
3769         accordingly.
3770         * lib/ptsname_r.c: Include <fcntl.h>.
3771         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
3772         set errno if fd is invalid.
3773         * tests/test-isatty.c (main): Update comments.
3774
3775 2012-06-24  Bruno Haible  <bruno@clisp.org>
3776
3777         ptsname test: Extend test.
3778         * tests/test-ptsname.c: Include <errno.h>.
3779         (main): Test behaviour with invalid file descriptor.
3780
3781 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
3782
3783         time: fix obsolete comment
3784         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
3785         reference to HAVE_STRUCT_TIMESPEC in comment.
3786
3787 2012-06-23  Bruno Haible  <bruno@clisp.org>
3788
3789         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
3790         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
3791         does not handle abbreviated long options with equivalent
3792         disambiguations, set gl_replace_getopt to yes.
3793         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
3794
3795 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
3796
3797         time_r: fix typo that always overrode localtime_r decl
3798         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
3799         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
3800         not in a standard include.
3801
3802 2012-06-22  Bruno Haible  <bruno@clisp.org>
3803
3804         Write "Mac OS X" instead of "MacOS X".
3805         * README: Write "Mac OS X" instead of "MacOS X".
3806         * build-aux/bootstrap: Likewise.
3807         * build-aux/install-reloc: Likewise.
3808         * lib/acl-internal.h: Likewise.
3809         * lib/acl_entries.c: Likewise.
3810         * lib/argp-ba.c: Likewise.
3811         * lib/argp-pv.c: Likewise.
3812         * lib/config.charset: Likewise.
3813         * lib/copy-acl.c: Likewise.
3814         * lib/csharpexec.c: Likewise.
3815         * lib/euidaccess.c: Likewise.
3816         * lib/fbufmode.c: Likewise.
3817         * lib/fflush.c: Likewise.
3818         * lib/file-has-acl.c: Likewise.
3819         * lib/filemode.h: Likewise.
3820         * lib/fpurge.c: Likewise.
3821         * lib/freadable.c: Likewise.
3822         * lib/freadahead.c: Likewise.
3823         * lib/freading.c: Likewise.
3824         * lib/freadptr.c: Likewise.
3825         * lib/freadseek.c: Likewise.
3826         * lib/fseeko.c: Likewise.
3827         * lib/fseterr.c: Likewise.
3828         * lib/fsusage.c: Likewise.
3829         * lib/fwritable.c: Likewise.
3830         * lib/fwriting.c: Likewise.
3831         * lib/get-rusage-as.c: Likewise.
3832         * lib/get-rusage-data.c: Likewise.
3833         * lib/getdomainname.c: Likewise.
3834         * lib/idpriv-drop.c: Likewise.
3835         * lib/idpriv-droptemp.c: Likewise.
3836         * lib/localcharset.c: Likewise.
3837         * lib/locale.in.h: Likewise.
3838         * lib/localename.c: Likewise.
3839         * lib/mbsrtowcs-state.c: Likewise.
3840         * lib/nproc.c: Likewise.
3841         * lib/passfd.c: Likewise.
3842         * lib/posix_openpt.c: Likewise.
3843         * lib/printf-parse.c: Likewise.
3844         * lib/progreloc.c: Likewise.
3845         * lib/safe-read.h: Likewise.
3846         * lib/safe-write.h: Likewise.
3847         * lib/sched.in.h: Likewise.
3848         * lib/set-mode-acl.c: Likewise.
3849         * lib/signal.in.h: Likewise.
3850         * lib/stdint.in.h: Likewise.
3851         * lib/stdio-impl.h: Likewise.
3852         * lib/stdlib.in.h: Likewise.
3853         * lib/strtod.c: Likewise.
3854         * lib/sys_select.in.h: Likewise.
3855         * lib/tcgetsid.c: Likewise.
3856         * lib/unistd.in.h: Likewise.
3857         * lib/unlockpt.c: Likewise.
3858         * lib/vasnprintf.c: Likewise.
3859         * lib/vma-iter.c: Likewise.
3860         * lib/wcsrtombs-state.c: Likewise.
3861         * m4/acl.m4: Likewise.
3862         * m4/acosl.m4: Likewise.
3863         * m4/asinl.m4: Likewise.
3864         * m4/atanl.m4: Likewise.
3865         * m4/c-stack.m4: Likewise.
3866         * m4/cosl.m4: Likewise.
3867         * m4/expl.m4: Likewise.
3868         * m4/extensions.m4: Likewise.
3869         * m4/fdatasync.m4: Likewise.
3870         * m4/fmal.m4: Likewise.
3871         * m4/frexp.m4: Likewise.
3872         * m4/frexpf.m4: Likewise.
3873         * m4/frexpl.m4: Likewise.
3874         * m4/fsusage.m4: Likewise.
3875         * m4/getdomainname.m4: Likewise.
3876         * m4/getloadavg.m4: Likewise.
3877         * m4/getopt.m4: Likewise.
3878         * m4/gettext.m4: Likewise.
3879         * m4/gnulib-common.m4: Likewise.
3880         * m4/intdiv0.m4: Likewise.
3881         * m4/intlmacosx.m4: Likewise.
3882         * m4/largefile.m4: Likewise.
3883         * m4/ldexpl.m4: Likewise.
3884         * m4/link-follow.m4: Likewise.
3885         * m4/locale-ar.m4: Likewise.
3886         * m4/locale-fr.m4: Likewise.
3887         * m4/locale-ja.m4: Likewise.
3888         * m4/locale-tr.m4: Likewise.
3889         * m4/locale-zh.m4: Likewise.
3890         * m4/locale_h.m4: Likewise.
3891         * m4/lock.m4: Likewise.
3892         * m4/logl.m4: Likewise.
3893         * m4/mathfunc.m4: Likewise.
3894         * m4/minus-zero.m4: Likewise.
3895         * m4/mktime.m4: Likewise.
3896         * m4/mmap-anon.m4: Likewise.
3897         * m4/multiarch.m4: Likewise.
3898         * m4/nanosleep.m4: Likewise.
3899         * m4/nocrash.m4: Likewise.
3900         * m4/poll.m4: Likewise.
3901         * m4/printf-frexpl.m4: Likewise.
3902         * m4/printf.m4: Likewise.
3903         * m4/signbit.m4: Likewise.
3904         * m4/sinl.m4: Likewise.
3905         * m4/sqrtl.m4: Likewise.
3906         * m4/strerror_r.m4: Likewise.
3907         * m4/tanl.m4: Likewise.
3908         * m4/threadlib.m4: Likewise.
3909         * m4/ttyname_r.m4: Likewise.
3910         * m4/unlink.m4: Likewise.
3911         * m4/visibility.m4: Likewise.
3912         * m4/wcwidth.m4: Likewise.
3913         * tests/minus-zero.h: Likewise.
3914         * tests/test-alloca-opt.c: Likewise.
3915         * tests/test-copy-acl.sh: Likewise.
3916         * tests/test-copy-file.sh: Likewise.
3917         * tests/test-fdatasync.c: Likewise.
3918         * tests/test-file-has-acl.sh: Likewise.
3919         * tests/test-flock.c: Likewise.
3920         * tests/test-fsync.c: Likewise.
3921         * tests/test-localename.c: Likewise.
3922         * tests/test-malloca.c: Likewise.
3923         * tests/test-nonblocking-pipe.h: Likewise.
3924         * tests/test-nonblocking-socket.h: Likewise.
3925         * tests/test-openpty.c: Likewise.
3926         * tests/test-posix_openpt.c: Likewise.
3927         * tests/test-ptsname.c: Likewise.
3928         * tests/test-ptsname_r.c: Likewise.
3929         * tests/test-sameacls.c: Likewise.
3930         * tests/test-select.h: Likewise.
3931         * tests/test-set-mode-acl.sh: Likewise.
3932         * tests/test-snprintf-posix.h: Likewise.
3933         * tests/test-sprintf-posix.h: Likewise.
3934         * tests/test-strtod.c: Likewise.
3935         * tests/test-time.c: Likewise.
3936         * tests/test-vasnprintf-posix.c: Likewise.
3937         * tests/test-vasprintf-posix.c: Likewise.
3938         * doc/acl-resources.txt: Likewise.
3939         * doc/**/*.texi: Likewise.
3940         Reported by Max Horn <max@quendi.de>.
3941
3942 2012-06-22  Bruno Haible  <bruno@clisp.org>
3943
3944         grantpt: Relax requirement regarding invalid file descriptors.
3945         * lib/grantpt.c: Don't include <fcntl.h>.
3946         (grantpt): Don't verify the validity of the file descriptor.
3947         * modules/grantpt (Depends-on): Remove fcntl-h.
3948         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
3949         file descriptors.
3950         * doc/posix-functions/grantpt.texi: Document more platforms on which
3951         grantpt succeeds for invalid file descriptors.
3952         Reported by Rich Felker <dalias@aerifal.cx>.
3953
3954 2012-06-22  Bruno Haible  <bruno@clisp.org>
3955
3956         fbufmode test: Don't test unportable behaviour.
3957         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
3958         (main): Invoke it three times.
3959         Reported by Szabolcs Nagy <nsz@port70.net>
3960         and Rich Felker <dalias@aerifal.cx>.
3961
3962 2012-06-21  Bruno Haible  <bruno@clisp.org>
3963
3964         gnulib-tool: Refactor inctests variable.
3965         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
3966         (func_modules_transitive_closure,
3967         func_modules_transitive_closure_separately,
3968         func_import, func_create_testdir): Update.
3969
3970         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
3971         * gnulib-tool: Accept option --without-tests.
3972         (func_usage): Document --without-tests option. Rearrange.
3973         (inctests): Normalize according to the mode.
3974         * NEWS: Mention the change.
3975         Suggested by Simon Josefsson.
3976
3977 2012-06-21  Bruce Korb  <bkorb@gnu.org>
3978
3979         parse-duration test: Avoid spurious output.
3980         * tests/test-parse-duration.sh: Reindent with leading tabs.
3981
3982 2012-06-21  Jim Meyering  <meyering@redhat.com>
3983
3984         maint: disable the strncpy prohibition
3985         * cfg.mk: Do not prohibit strncpy here.
3986
3987 2012-06-21  Bruno Haible  <bruno@clisp.org>
3988
3989         nonblocking: Avoid compilation error on mingw64.
3990         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
3991         fscanf.
3992         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
3993         * modules/vfscanf (configure.ac): Likewise.
3994         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
3995         definition only if stdio.h has prepared it.
3996         Reported by Daniel P. Berrange <berrange@redhat.com>.
3997
3998 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
3999
4000         gnulib-tool: Use readlink if it is available.
4001         * gnulib-tool (func_readlink): Choose function more appropriately.
4002
4003 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
4004
4005         posixtm-tests: port to buggy compiler
4006         Problem reported by Simon Josefsson in
4007         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
4008         * modules/posixtm-tests (Depends-on): Add stdint.
4009         * tests/test-posixtm.c (struct posixtm_test.t_expected):
4010         Now of type int_least64_t, not int64_t, both because that's
4011         what INT64_C returns and because int_least64_t works even
4012         on 72-bit hosts.
4013         (T): Use INT64_C on constants outside the traditional int range,
4014         to work around compiler bug noted by Simon.
4015
4016         mktime: fix integer overflow in 'configure'-time test
4017         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
4018         after integer overflow.  Problem reported by Rich Felker in
4019         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
4020         Also, don't look for further instances of a bug if we've already
4021         found one instance; this helps 'configure' run faster.
4022
4023 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
4024
4025         tmpfile, clean-temp: Fix invocation of GetVersionEx.
4026         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
4027         GetVersionEx correctly.
4028         * lib/clean-temp.c (supports_delete_on_close): Likewise.
4029
4030 2012-06-20  Bruno Haible  <bruno@clisp.org>
4031
4032         fdopen: Allow implementations that don't reject invalid fd arguments.
4033         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
4034         succeeds.
4035         Reported by Rich Felker <dalias@aerifal.cx>.
4036
4037 2012-06-20  Simon Josefsson  <simon@josefsson.org>
4038
4039         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
4040         bring in LIBINTL.
4041
4042 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
4043
4044         init.sh: do not rely on autoupated PWD
4045         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
4046         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
4047         Although Nelson's bug was not necessarily fixed by this patch,
4048         it seems wise to make the change for safety.
4049         * tests/init.sh (path_prepend_): Do not rely on PWD updating
4050         automagically after 'cd'; this is not reliable on older shells.
4051         (setup_): Fail if we cannot cd to temporary directory.
4052
4053 2012-06-19  Bruno Haible  <bruno@clisp.org>
4054
4055         stat, fstat: Avoid warnings on mingw64.
4056         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
4057         redefining.
4058         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
4059         Reported by Daniel P. Berrange <berrange@redhat.com>.
4060
4061 2012-06-19  Bruno Haible  <bruno@clisp.org>
4062
4063         stdioext: Add support for musl libc.
4064
4065         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
4066         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
4067
4068         * m4/fseterr.m4: New file.
4069         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
4070         function exists.
4071         * modules/fseterr (Files): Add m4/fseterr.m4.
4072         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
4073         __fseterr does not exist.
4074         (Makefile.am): Remove fseterr.c from lib_SOURCES.
4075
4076         * lib/freadable.h: Update comment.
4077
4078         * lib/fwritable.h: Update comment.
4079
4080         * lib/freading.h: Update comment.
4081
4082         * lib/fwriting.h: Update comment.
4083
4084         * m4/freadahead.m4: New file.
4085         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
4086         that function exists.
4087         * modules/freadahead (Files): Add m4/freadahead.m4.
4088         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
4089         __freadahead does not exist.
4090         (Makefile.am): Remove freadahead.c from lib_SOURCES.
4091
4092         * m4/freadptr.m4: New file.
4093         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
4094         function exists.
4095         * modules/freadptr (Files): Add m4/freadptr.m4.
4096         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
4097         __freadptr does not exist.
4098         (Makefile.am): Remove freadptr.c from lib_SOURCES.
4099
4100         * m4/freadseek.m4: New file.
4101         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
4102         exists.
4103         * modules/freadseek (Files): Add m4/freadseek.m4.
4104         (configure.ac): Invoke gl_FUNC_FREADSEEK.
4105
4106         * lib/fpurge.c (fpurge): Update comment.
4107
4108         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
4109
4110 2012-06-19  Bruno Haible  <bruno@clisp.org>
4111
4112         *printf-posix: Put more info into config.log.
4113         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
4114         exit code into config.log.
4115
4116 2012-06-19  Bruno Haible  <bruno@clisp.org>
4117
4118         getopt-gnu: Fix exit code overflow in autoconf test.
4119         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
4120         to keep them below < 128.
4121
4122 2012-06-17  Jim Meyering  <meyering@redhat.com>
4123
4124         maint.mk: fix typo in code to derive GPG key at release time
4125         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
4126
4127 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
4128
4129         regex: avoid warning when pointers are not long
4130         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
4131         and uintptr_t, not long, for portability to hosts where pointers and
4132         long have different sizes.  Issue noted by Daniel P. Berrange in
4133         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
4134         and fix suggested by Bruno Haible in
4135         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
4136
4137 2012-06-17  Bruno Haible  <bruno@clisp.org>
4138
4139         dummy: Relicense into the public domain.
4140         * modules/dummy (License): Set to "public domain".
4141         Suggested by Reuben Thomas.
4142
4143 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
4144
4145         announce-gen: VPATH issues
4146         * build-aux/announce-gen (--srcdir): New option, used to trim the
4147         $srcdir part of the path from $builddir to NEWS.
4148         * top/maint.mk (announcement): Adjust.
4149
4150 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
4151
4152         gnu-web-doc-update: VPATH builds
4153         * build-aux/gnu-web-doc-update (--builddir): New option.
4154         Revamp the handling of options.
4155         Prefer $(...) to `...`.
4156         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
4157         the template, and it is GNU mktemp specific.
4158         Prefer set -e to long series of &&.
4159         Restore the initial git branch, not "master".
4160         Properly initialize submodules (don't rely only on bootstrap).
4161         Do not reconfigure blindly, use config.status.
4162         * top/README-release: Update instructions for gnu-web-doc-update.
4163
4164 2012-06-11  Jim Meyering  <meyering@redhat.com>
4165
4166         maint.mk: revert most of the previous change re "all these"
4167         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
4168         For rationale, see the discussion at
4169         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
4170
4171 2012-06-10  Karl Berry  <karl@gnu.org>
4172
4173         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
4174
4175         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
4176
4177 2012-06-10  Bruce Korb  <bkorb@gnu.org>
4178
4179         parse-duration: Relicense under LGPLv2+.
4180         * modules/parse-duration (License): Change to LGPLv2+.
4181
4182 2012-06-10  Jim Meyering  <meyering@redhat.com>
4183
4184         maint.mk: prohibit common grammar error: "all these"
4185         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
4186         the list of prohibited word sequences.  It should be "all of these".
4187         * lib/tempname.c (__gen_tempname): Fix one of them.
4188
4189 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4190
4191         do-release-commit-and-tag: support VPATH builds
4192         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
4193         (noteworthy): Defined earlier to factor its value.
4194         (noteworthy_stub): New.
4195         Use it to factor.
4196         (help_version): Split into...
4197         (help, version): these.
4198         Adjust the option processing part.
4199         Support "--option=value" in addition to "--option value".
4200         (builddir): New.
4201         (--builddir): New option.
4202         * top/README-release: Document this.
4203         Reword slightly so that the reader cannot understand that he
4204         has to do these steps before calling do-release-commit-and-tag.
4205
4206 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4207
4208         readme-release: also require announce-gen and maintainer-makefile
4209         * modules/readme-release (Depends-on): here.
4210         * modules/announce-gen, modules/do-release-commit-and-tag,
4211         modules/gnu-web-doc-update, modules/maintainer-makefile
4212         (Description): Point to readme-release.
4213
4214 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4215
4216         maint.mk: fix VPATH issues.
4217         * top/maint.mk (news-check): GNU Make understand $< very well.
4218         (release-prep): NEWS is in $(srcdir).
4219
4220 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
4221
4222         readme-release: require the promoted modules.
4223         * modules/readme-release (Depends-on): Add
4224         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
4225         in this text.
4226
4227 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4228             Bruno Haible  <bruno@clisp.org>
4229
4230         error, strerror-override: Support mingw64 from Fedora 17.
4231         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
4232         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
4233         EINPROGRESS.
4234         * lib/strerror-override.h (strerror_override): Test it.
4235         * lib/strerror-override.c (strerror_override): Likewise.
4236         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
4237
4238 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4239             Bruno Haible  <bruno@clisp.org>
4240
4241         error, strerror-override: Support mingw64 from Fedora 17.
4242         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
4243         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
4244         * lib/strerror-override.h (strerror_override): Test it.
4245         * lib/strerror-override.c (strerror_override): Likewise.
4246
4247 2012-06-03  Bruno Haible  <bruno@clisp.org>
4248
4249         error, strerror-override: Support new errno values from POSIX:2008.
4250         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
4251         ENOTRECOVERABLE.
4252         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
4253         platforms.
4254         * lib/strerror-override.c (strerror_override): Conditionalize the
4255         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
4256         * lib/strerror-override.h (strerror_override): Declare also if
4257         GNULIB_defined_EOWNERDEAD is defined.
4258         * tests/test-errno.c (e130, e131): New variables.
4259         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
4260         ENOTRECOVERABLE.
4261         Reported by Paolo Bonzini.
4262
4263 2012-05-31  Jim Meyering  <meyering@redhat.com>
4264
4265         savewd: add missing dependency on sys_wait module
4266         * modules/savewd (Depends-on): Add sys_wait, needed at least
4267         for MSVC.  Report and suggested change by Michael Goffioul.
4268
4269 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
4270
4271         system-quote-tests: port to CentOS 5
4272         Problem reported by Tom G. Christensen in
4273         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
4274         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
4275
4276 2012-05-29  Jim Meyering  <meyering@redhat.com>
4277
4278         maint: fix typos in comments and ChangeLog
4279         Culprits identified and fixed mostly automatically using these commands:
4280         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
4281         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
4282         using http://github.com/lyda/misspell-check
4283         * ChangeLog: Fix typos.
4284         * doc/solaris-versions: Likewise.
4285         * lib/regexec.c (re_search_stub): Likewise.
4286         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
4287
4288 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
4289
4290         manywarnings: remove duplicate -Wmultichar entry
4291         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
4292         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
4293         so keep the entry marked as documented.
4294
4295 2012-05-27  Karl Berry  <karl@gnu.org>
4296
4297         * config/srclist.txt (mktime.c): remove last libc sync,
4298         perhaps just temporarily.
4299
4300 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
4301
4302         regex: don't assume uint64_t or uint32_t
4303         * lib/regcomp.c (init_word_char): Don't assume that the types
4304         uint64_t and uint32_t exist.  The C standard doesn't guarantee
4305         them, and on some 32-bit compilers there is no uint64_t.
4306         Problem reported by Gianluigi Tiesi in
4307         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
4308
4309 2012-05-25  Jim Meyering  <meyering@redhat.com>
4310
4311         maint.mk: add strncpy-prohibiting syntax-check rule
4312         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
4313
4314 2012-05-24  Jim Meyering  <meyering@redhat.com>
4315
4316         maint.mk: compute $(gpg_key_ID) more portably
4317         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
4318         That use of sed is not portable to some fringe systems.
4319         Reported by Paul Eggert in
4320         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
4321
4322 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4323
4324         mktime: sync from glibc
4325         * config/srclist.txt: Uncomment mktime.c.
4326         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
4327         First, indent with tabs, since glibc uses tabs and doesn't want to
4328         change and we'd rather be identical to glibc.  Also, two small
4329         coding changes:
4330         (isdst_differ): Use &&, not &, as && is the usual style.
4331         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
4332         for clarity.
4333
4334 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
4335
4336         announce-gen: du -h is more portable than du --human
4337         * build-aux/announce-gen (sizes): Invoke du with -h instead
4338         of --human.  Accept leading white space in its output.
4339
4340 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
4341
4342         announce-gen: Improve diagnostics.
4343         * build-aux/announce-gen: When parsing command line options,
4344         prefer "announce-gen: option --release-type requires an argument"
4345         to "Option release-type requires an argument".
4346
4347 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
4348
4349         maint.mk: gpg_key_ID: use sed more portably
4350         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
4351         the closing brace.
4352         (refresh-po): Fuse two sed invocations into one.
4353
4354 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
4355
4356         gitlog-to-changelog: support the log message format used in Bison.
4357         * build-aux/gitlog-to-changelog: Support --strip-tab and
4358         --strip-cherry-picked.
4359
4360 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4361
4362         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
4363         the rest of the current time slice to another thread in the current
4364         process. So if the thread that feeds the file decscriptor we're
4365         polling is not in the current process, we get busy-waiting.
4366         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
4367         Patch from Theodore Leblond.
4368         * lib/select.c: Split polling out of the loop that sets the output
4369         fd_sets.  Check for zero result and loop if the wait timeout is
4370         infinite.
4371
4372 2012-05-21  Simon Josefsson  <simon@josefsson.org>
4373
4374         select: Fix build error on IRIX 6.5.
4375         * lib/select.c: Include stddef.h for NULL.
4376
4377 2012-05-21  Simon Josefsson  <simon@josefsson.org>
4378
4379         gc: fix libgcrypt detection on older machines.
4380         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
4381         copyright years because the file has been distributed every year
4382         since it was created.
4383
4384 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
4385
4386         crypto: fix bug in large buffer handling
4387         Problem reported by Serge Belyshev for glibc in
4388         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
4389         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
4390         * lib/md4.c (md4_process_block):
4391         * lib/md5.c (md5_process_block):
4392         * lib/sha1.c (sha1_process_block):
4393         * lib/sha256.c (sha256_process_block):
4394         Don't assume the buffer length is less than 2**32.
4395         * lib/sha512.c (sha512_process_block): Likewise.
4396         Here, the bug is present only in the rare case where the host does
4397         not support uint64_t or where size_t is wider than 64 bits.
4398         Use u64size to work around the problems.
4399         * lib/u64.h (u64size): New macro.
4400
4401 2012-05-15  Pádraig Brady  <P@draigBrady.com>
4402
4403         fsusage: fix block size returned on older Linux 2.6
4404
4405         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
4406         which is available since Linux 2.6.
4407         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
4408         when the member is available so it can be used as a fallback.
4409         * doc/posix-functions/statvfs.texi: Mention the hang issue
4410         on Linux < 2.6.36.
4411
4412 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
4413
4414         bootstrap: suppress stderr chatter
4415         * build-aux/bootstrap (insert_sorted_if_absent, main program):
4416         Omit unnecessary chatter to stderr.  The main program chatter
4417         was there only inadvertantly.
4418
4419         bootstrap: .gitignore files created by autopoint, libtool
4420         I ran into this problem when bootstrapping the latest diffutils.
4421         After './bootstrap', 'git status' reported lots of untracked files
4422         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
4423         autopoint and do not need to be version-controlled.
4424         * build-aux/bootstrap: Put into .gitignore the files that
4425         autopoint and libtool create, by keeping track of files that exist
4426         after but not before these programs are run.
4427         (version_controlled_file): Move up.  2nd arg is now full file
4428         name, not base name; this is more convenient.  Put CVS at the end,
4429         as it's now somewhat deprecated.
4430
4431 2012-05-14  Jim Meyering  <meyering@redhat.com>
4432
4433         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
4434         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
4435         definition.  Reported by Bruno Haible.
4436
4437 2012-05-13  Bruno Haible  <bruno@clisp.org>
4438             Paul Eggert  <eggert@cs.ucla.edu>
4439
4440         binary-io: Define set_binary_mode function.
4441         * lib/binary-io.h (set_binary_mode): New function.
4442         (SET_BINARY): Define in terms of set_binary_mode.
4443         * modules/binary-io (configure.ac): Require AC_C_INLINE.
4444         * tests/test-binary-io.c (main): Accept an argument, and test either
4445         set_binary_mode or SET_BINARY depending on the argument.
4446         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
4447         argument. Clean up also t-bin-out0.tmp.
4448
4449 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
4450
4451         bootstrap: take advantage of POSIX shell features
4452
4453         The 'bootstrap' script offered by Gnulib script already uses POSIX
4454         shell features (like $((...)) arithmetic expansions) that are not
4455         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
4456         means that bootstrap must already be run using a proper POSIX shell,
4457         which will thus provide more features, like ${var#pattern} parameter
4458         expansion or inversion of a command exit status with '!'.  We can
4459         thus use these features to improve the clarity and the performances
4460         of the bootstrap script.
4461
4462         Suggested by Eric Blake.
4463
4464         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
4465         of sed/expr plus command substitutions, to save some forks.  While
4466         we are at it, prefer the POSIX $(...) form of command substitution,
4467         rather than the legacy form `...` (since the former is visually
4468         clearer and interacts better with quoting), and prefer the idiom:
4469           "if ! CMD; then ACTION ..."
4470         over the idiom:
4471           "if CMD; then :; else ACTION ..."
4472         which was required by legacy Bourne shells not supporting '!'.
4473
4474 2012-05-12  Bruno Haible  <bruno@clisp.org>
4475
4476         system-quote: Add more comments.
4477         * lib/system-quote.h: Add more comments about wilcards and limitations.
4478         Suggested by Eli Zaretskii <eliz@gnu.org>.
4479
4480         sh-quote, system-quote: Add comments about wildcards.
4481         * lib/sh-quote.h: Clarify what happens with wildcard characters.
4482         * lib/system-quote.h: Likewise.
4483         Reported by Eli Zaretskii <eliz@gnu.org>.
4484
4485 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
4486
4487         fsusage: check for GNU/Linux statvfs problem dynamically
4488         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
4489         Define STAT_STATFS2_BSIZE too, since in this case the code now
4490         checks dynamically whether statvfs is reliable, falling back on
4491         Linux-style statfs otherwise.
4492         (statvfs_works): New function, for dynamically testing statvfs.
4493         (get_fs_usage) [STAT_STATVFS]: Use it.
4494         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
4495         statvfs on GNU/Linux hosts, since it's now done dynamically.
4496
4497 2012-05-10  Bruno Haible  <bruno@clisp.org>
4498
4499         system-quote, execute, spawn-pipe: Escape '?' on Windows.
4500         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
4501         '?' character.
4502         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
4503         * tests/test-system-quote-main.c (check_all): Check also strings like
4504         "??????????".
4505         Reported by Eli Zaretskii <eliz@gnu.org>.
4506
4507 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
4508
4509         _Noreturn: port config.h to gcc -Wundef
4510         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
4511         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
4512         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
4513
4514 2012-05-10  Bruno Haible  <bruno@clisp.org>
4515
4516         system-quote: Refactor.
4517         * lib/system-quote.h (system_quote_copy): Fix comment.
4518         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
4519         New functions, extracted from system_quote_copy.
4520         (system_quote_length, system_quote_copy): Use these functions.
4521         Reported by Paul Eggert.
4522
4523 2012-05-08  Bruno Haible  <bruno@clisp.org>
4524
4525         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
4526         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
4527
4528 2012-05-08  Bruno Haible  <bruno@clisp.org>
4529
4530         Tests for module 'system-quote'.
4531         * modules/system-quote-tests: New file.
4532         * tests/test-system-quote.sh: New file.
4533         * tests/test-system-quote-main.c: New file.
4534         * tests/test-system-quote-child.c: New file.
4535
4536         New module 'system-quote'.
4537         * lib/system-quote.h: New file.
4538         * lib/system-quote.c: New file.
4539         * modules/system-quote: New file.
4540
4541 2012-05-08  Bruno Haible  <bruno@clisp.org>
4542
4543         sh-quote: Make C++ safe and allow multiple inclusion.
4544         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
4545         declarations in extern "C".
4546
4547 2012-05-08  Bruno Haible  <bruno@clisp.org>
4548
4549         sh-quote tests: Make tests stricter.
4550         * tests/test-sh-quote.c (check_one): Check the return value of
4551         shell_quote_copy.
4552         (main): Check a string with a CR character. Check a string that
4553         contains UCHAR_MAX.
4554
4555 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
4556
4557         warnings.m4: provide a means to specify the program to compile.
4558         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
4559         (gl_WARN_ADD): here.
4560         Use gl_AS_VAR_APPEND.
4561         Support an argument to specify the program to compile.
4562         (gl_WARN_ADD): Accept an argument to specify the program to compile.
4563         AC_SUBST the WARN_CFLAGS when they are used.
4564         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
4565         leave this to gl_WARN_ADD.
4566
4567 2012-05-08  Eric Blake  <eblake@redhat.com>
4568
4569         doc: recommendations on gettext version
4570         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
4571         choice between versions.
4572         * DEPENDENCIES (gettext): Cover both approaches.
4573
4574 2012-05-08  Jim Meyering  <meyering@redhat.com>
4575
4576         init.sh: explain why EXEEXT support uses aliases rather than functions
4577         * tests/init.sh: Add a comment.
4578
4579         init.sh: don't let bash aliases interfere with tests
4580         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
4581         is bash.  This avoids problems for those who alias standard commands to
4582         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
4583         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
4584
4585 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
4586
4587         stdint: be more consistent with glibc, SunOS libc
4588         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
4589         (gl_int_fast16_t, gl_uint_fast16_t)
4590         (gl_int_fast32_t, gl_uint_fast32_t)
4591         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
4592         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
4593         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
4594         Be consistent with glibc by default, and with SunOS 5.10 and later
4595         if __sun is defined.  This lessens the likelihood of clashes if
4596         code compiled for older hosts is combined with code compiled for
4597         newer ones.  Problem reported by Niels Möller in
4598         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
4599
4600 2012-05-07  Eric Blake  <eblake@redhat.com>
4601
4602         isatty: relax license to LGPLv2+
4603         * modules/isatty (License): Relax license.
4604
4605 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
4606
4607         stat-size: comment fix
4608         * lib/stat-size.h: Remove obsolete comment about indenting.
4609
4610 2012-05-06  Bruno Haible  <bruno@clisp.org>
4611
4612         Tests for module 'sh-quote'.
4613         * modules/sh-quote-tests: New file.
4614         * tests/test-sh-quote.c: New file.
4615
4616 2012-05-06  Bruno Haible  <bruno@clisp.org>
4617
4618         sh-quote: Improve shell_quote_argv's signature.
4619         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
4620         * lib/sh-quote.c (shell_quote_argv): Likewise.
4621
4622 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
4623
4624         stdint: document issues with int_fast8_t etc.
4625         * doc/posix-headers/stdint.texi (stdint.h): Say that other
4626         stdint.h substitutes may define these types differently.  See
4627         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
4628
4629 2012-05-05  Bruno Haible  <bruno@clisp.org>
4630
4631         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
4632         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
4633         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
4634         or 'guessing no (mishandles large arguments)'.
4635
4636 2012-05-05  Bruno Haible  <bruno@clisp.org>
4637
4638         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
4639         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
4640         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
4641         set gl_cv_func_link_follows_symlink to "guessing no".
4642
4643 2012-05-05  Bruno Haible  <bruno@clisp.org>
4644
4645         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
4646         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
4647         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
4648         "guessing no".
4649         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
4650
4651 2012-05-05  Bruno Haible  <bruno@clisp.org>
4652
4653         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
4654         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
4655         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
4656         set gl_cv_struct_dirent_d_ino to "guessing yes".
4657
4658 2012-05-05  Bruno Haible  <bruno@clisp.org>
4659
4660         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
4661         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
4662         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
4663         "guessing yes".
4664
4665 2012-05-05  Bruno Haible  <bruno@clisp.org>
4666
4667         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
4668         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
4669         compiling to a glibc system, set gl_cv_func_signbit and
4670         gl_cv_func_signbit_gcc to "guessing yes".
4671
4672 2012-05-05  Bruno Haible  <bruno@clisp.org>
4673
4674         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
4675         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
4676         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
4677         to "guessing yes".
4678         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
4679         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
4680
4681 2012-05-05  Bruno Haible  <bruno@clisp.org>
4682
4683         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
4684         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
4685         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
4686         gl_cv_func_realpath_works to "guessing yes".
4687
4688 2012-05-05  Bruno Haible  <bruno@clisp.org>
4689
4690         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
4691         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
4692         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
4693
4694 2012-05-04  Bruno Haible  <bruno@clisp.org>
4695
4696         Tweak last commit.
4697         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
4698         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4699
4700 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
4701
4702         unistd_h: make it easier to avoid sys_types_h
4703         This is useful for Emacs, which has its own method of porting to
4704         Windows, and which therefore does not need the sys_types_h module.
4705         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
4706         code moved here from gl_SYS_TYPES_H.
4707         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
4708         using the code directly.
4709         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
4710         gl_SYS_TYPES_H.
4711         * modules/sys_types (Files):
4712         * modules/unistd (Files): Add m4/off_t.m4.
4713
4714 2012-05-03  Bruno Haible  <bruno@clisp.org>
4715
4716         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
4717         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
4718         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
4719         "guessing yes" or "guessing no".
4720         (gl_FUNC_LSTAT): Update.
4721         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
4722         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
4723         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
4724
4725 2012-05-03  Bruno Haible  <bruno@clisp.org>
4726
4727         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
4728         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
4729         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
4730         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
4731         cross-compiling, choose the first alternative on glibc systems.
4732         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
4733
4734 2012-05-03  Bruno Haible  <bruno@clisp.org>
4735
4736         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
4737         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
4738         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
4739
4740 2012-05-03  Bruno Haible  <bruno@clisp.org>
4741
4742         chown: Avoid "guessing no" when cross-compiling to glibc systems.
4743         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
4744
4745 2012-05-03  Bruno Haible  <bruno@clisp.org>
4746
4747         Avoid "guessing no" guesses when cross-compiling to glibc systems.
4748         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
4749         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
4750         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
4751         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
4752         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
4753         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
4754         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
4755         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
4756         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
4757         compiling to glibc systems, set gl_cv_func_chown_slash_works,
4758         gl_cv_func_chown_ctime_works to "guessing yes".
4759         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
4760         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
4761         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
4762         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
4763         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
4764         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
4765         compiling to glibc systems, set gl_cv_func_open_directory_works to
4766         "guessing yes".
4767         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
4768         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
4769         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
4770         "guessing yes".
4771         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
4772         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
4773         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
4774         compiling to glibc systems, set gl_cv_func_floorf_ieee to
4775         "guessing yes".
4776         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
4777         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
4778         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
4779         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
4780         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
4781         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
4782         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
4783         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
4784         "guessing yes".
4785         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
4786         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
4787         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
4788         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
4789         "guessing yes".
4790         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
4791         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
4792         "guessing yes".
4793         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
4794         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
4795         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
4796         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
4797         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
4798         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
4799         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
4800         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
4801         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
4802         compiling to glibc systems, set gl_cv_func_log10f_ieee to
4803         "guessing yes".
4804         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
4805         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
4806         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
4807         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
4808         "guessing yes".
4809         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
4810         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
4811         "guessing yes".
4812         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
4813         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
4814         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
4815         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
4816         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
4817         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
4818         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
4819         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
4820         compiling to glibc systems, set gl_cv_func_mkfifo_works to
4821         "guessing yes".
4822         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
4823         compiling to glibc systems, set gl_cv_func_mknod_works to
4824         "guessing yes".
4825         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
4826         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
4827         "guessing yes".
4828         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
4829         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
4830         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
4831         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
4832         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
4833         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
4834         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
4835         compiling to glibc systems, set gl_cv_func_svid_putenv to
4836         "guessing yes".
4837         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
4838         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
4839         "guessing yes".
4840         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
4841         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
4842         "guessing yes".
4843         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
4844         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
4845         to "guessing yes".
4846         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
4847         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
4848         to "guessing yes".
4849         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
4850         compiling to glibc systems, set gl_cv_func_rmdir_works to
4851         "guessing yes".
4852         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
4853         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
4854         gl_cv_func_unlink_parent_fails to "guessing yes".
4855         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
4856         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
4857         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
4858         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
4859         gl_cv_func_rename_dest_works to "guessing yes".
4860         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
4861         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
4862         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
4863         compiling to glibc systems, set gl_cv_func_roundf_ieee to
4864         "guessing yes".
4865         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
4866         compiling to glibc systems, set gl_cv_func_roundl_ieee to
4867         "guessing yes".
4868         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
4869         compiling to glibc systems, set gl_cv_func_setenv_works to
4870         "guessing yes".
4871         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
4872         compiling to glibc systems, set gl_cv_func_unsetenv_works to
4873         "guessing yes".
4874         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
4875         compiling to glibc systems, set gl_cv_func_sleep_works to
4876         "guessing yes".
4877         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
4878         compiling to glibc systems, set gl_cv_func_stat_file_slash to
4879         "guessing yes".
4880         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
4881         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
4882         "guessing yes".
4883         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
4884         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
4885         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
4886         compiling to glibc systems, set gl_cv_func_truncf_ieee to
4887         "guessing yes".
4888         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
4889         compiling to glibc systems, set gl_cv_func_truncl_ieee to
4890         "guessing yes".
4891         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
4892         compiling to glibc systems, set gl_cv_func_usleep_works to
4893         "guessing yes".
4894         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
4895         compiling to glibc systems, set gl_cv_func_futimesat_works to
4896         "guessing yes".
4897
4898 2012-05-03  Bruno Haible  <bruno@clisp.org>
4899
4900         Say "guessing yes" or "guessing no" when cross-compiling.
4901         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
4902         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
4903         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
4904         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
4905         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
4906         am_cv_func_working_getline to "guessing yes" or "guessing no".
4907         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
4908         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
4909         (gl_FUNC_MEMMEM): When cross-compiling, set
4910         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
4911         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
4912         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
4913         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
4914         set gl_cv_func_strcasestr_works_always to "guessing yes" or
4915         "guessing no".
4916         (gl_FUNC_STRCASESTR): When cross-compiling, set
4917         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
4918         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
4919         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
4920         (gl_FUNC_STRSTR): When cross-compiling, set
4921         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
4922         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
4923         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
4924         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
4925         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
4926
4927 2012-05-01  Bruno Haible  <bruno@clisp.org>
4928
4929         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
4930         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
4931         * build-aux/reloc-ldflags: Likewise.
4932         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
4933
4934 2012-05-01  Bruno Haible  <bruno@clisp.org>
4935
4936         gnulib-tool: Remove transitional code.
4937         * gnulib-tool: Don't warn about --import with 0 arguments any more.
4938         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
4939
4940 2012-05-01  Bruno Haible  <bruno@clisp.org>
4941
4942         getcwd: Fix misindentation.
4943         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
4944
4945 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
4946
4947         exclude: process exclude and include directives in order
4948         This restores the pre-2009 behavior, and is part of a fix of a
4949         grep bug reported by Quentin Arce in
4950         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
4951         * lib/exclude.c (struct exclude): Remove 'tail' member.
4952         (new_exclude_segment): Prepend the new segment instead of appending.
4953         Return void, since that's now more convenient.
4954         (file_pattern_matches): Renamed from excluded_file_pattern_p.
4955         (file_name_matches): Renamed from excluded_file_name_p.
4956         (file_pattern_matches, file_name_matches):
4957         Return true if the pattern matches, not if it excludes.
4958         All callers changed.
4959         (excluded_file_name): Process the list in reverse order;
4960         since the list is now reversed this restores the pre-2009 behavior.
4961         (add_exclude): Adjust to new reversed-order list.  Use local var
4962         rather than macro, for clarity.
4963         * tests/test-exclude7.sh: Adjust to corrected behavior.
4964
4965         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
4966         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
4967         it's not possible here.  Handle the case of \ at end of pattern
4968         without dumping core.
4969         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
4970
4971         _Noreturn: future-proof non-GNU and non-MSVC compilers
4972         * build-aux/snippet/_Noreturn.h (_Noreturn):
4973         * m4/gnulib-common.m4 (gl_COMMON_BODY):
4974         Do not define _Noreturn if __STDC_VERSION__ indicates this is
4975         C11 or later.  This is more likely to work with random future C
4976         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
4977         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
4978
4979         exclude: handle wildcards with FNM_EXTMATCH
4980         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
4981         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
4982         comment that "has wildcards" really means "has or may have
4983         wildcards".  Simplify by avoiding the need to call strcspn.
4984
4985 2012-04-29  Bruno Haible  <bruno@clisp.org>
4986
4987         gnulib-tool: Fix list of authors.
4988         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
4989
4990 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
4991
4992         bootstrap: support Automake-NG in $buildreq
4993         * bootstrap (check_versions): Handle automake and aclocal from
4994         Automake-NG specially.  They can be specified as respectively
4995         the "automake-ng" and "aclocal-ng" requirements.
4996
4997 2012-04-25  Eric Blake  <eblake@redhat.com>
4998
4999         bootstrap: only force latest Makefile.in.in for gettext module
5000         * build-aux/bootstrap (with_gettext): Only install latest
5001         Makefile.in.in for projects requesting bleeding edge gettext.
5002
5003 2012-04-22  Bruno Haible  <bruno@clisp.org>
5004
5005         doc: Mention reason for replacement on glibc/Linux systems.
5006         * doc/posix-functions/dprintf.texi: Mention the problem with special
5007         'long double' values.
5008         * doc/posix-functions/fprintf.texi: Likewise.
5009         * doc/posix-functions/printf.texi: Likewise.
5010         * doc/posix-functions/snprintf.texi: Likewise.
5011         * doc/posix-functions/sprintf.texi: Likewise.
5012         * doc/posix-functions/vdprintf.texi: Likewise.
5013         * doc/posix-functions/vfprintf.texi: Likewise.
5014         * doc/posix-functions/vprintf.texi: Likewise.
5015         * doc/posix-functions/vsnprintf.texi: Likewise.
5016         * doc/posix-functions/vsprintf.texi: Likewise.
5017         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
5018         platforms with F_DUPFD_CLOEXEC problems.
5019         * doc/posix-functions/glob.texi: Mention which platforms are affected
5020         by the problem with symbolic links.
5021         * doc/posix-functions/linkat.texi: Mention the problem with
5022         AT_SYMLINK_FOLLOW on Linux.
5023
5024 2012-04-22  Bruno Haible  <bruno@clisp.org>
5025
5026         pwrite: Don't replace on all platforms.
5027         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
5028
5029 2012-04-22  Bruno Haible  <bruno@clisp.org>
5030
5031         rint* tests: Avoid gcc warnings.
5032         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
5033         * tests/test-rintf.c (INFINITY, NAN): Likewise.
5034         * tests/test-rintl.c (INFINITY, NAN): Likewise.
5035
5036 2012-04-21  Bruno Haible  <bruno@clisp.org>
5037
5038         users.txt: Update.
5039         * users.txt: Add freedink, wdiff. Update URLs for projects that have
5040         switched from CVS to git, bzr, or svn.
5041
5042 2012-04-21  Bruno Haible  <bruno@clisp.org>
5043
5044         Large File Support for native Windows platforms.
5045
5046         * m4/largefile.m4 (gl_LARGEFILE): New macro.
5047         * modules/largefile (configure.ac): Require gl_LARGEFILE.
5048
5049         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
5050         type.
5051         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
5052         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
5053         * doc/posix-headers/sys_types.texi: Mention the effect of the
5054         'largefile' module.
5055
5056         * lib/fcntl.in.h: Add comments about off_t.
5057         * modules/fcntl-h (Depends-on): Add sys_types.
5058
5059         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
5060         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
5061         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
5062         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
5063         * modules/unistd (Depends-on): Add sys_types.
5064         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
5065
5066         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
5067         instead of lseek.
5068         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
5069         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
5070         * modules/lseek (Depends-on): Add sys_types.
5071
5072         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
5073         msvc-nothrow.h.
5074         (SetFileSize): New function.
5075         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
5076         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
5077         if Large File Support is requested.
5078         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
5079         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
5080
5081         * lib/stdio.in.h: Add comments about off_t.
5082         * modules/stdio (Depends-on): Add sys_types.
5083
5084         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
5085         instead of ftello.
5086         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
5087         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
5088         (gl_PREREQ_FTELLO): New macro.
5089         * modules/ftello (Depends-on): Add sys_types.
5090         (configure.ac): Incoke gl_PREREQ_FTELLO.
5091
5092         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
5093         instead of fseeko.
5094         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
5095         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
5096         (gl_PREREQ_FSEEKO): New macro.
5097         * modules/fseeko (Depends-on): Add sys_types.
5098         (configure.ac): Invoke gl_PREREQ_FSEEKO.
5099
5100         * lib/sys_stat.in.h: Add comments about off_t.
5101         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
5102         64-bit integer for st_size in 'struct stat'.
5103         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
5104         Define _GL_WINDOWS_64_BIT_ST_SIZE.
5105         * modules/sys_stat (Depends-on): Add sys_types.
5106         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
5107
5108         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
5109         instead of stat or _stat.
5110
5111         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
5112         'struct _stati64' instead of fstat and 'struct stat'.
5113         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
5114         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
5115
5116         Reported by Ray Satiro <raysatiro@yahoo.com>.
5117
5118 2012-04-19  Eric Blake  <eblake@redhat.com>
5119
5120         bootstrap: accommodate older libtool
5121         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
5122         Reported by Daniel P. Berrange.
5123
5124 2012-04-19  Jim Meyering  <meyering@redhat.com>
5125
5126         announce-gen: avoid failure due to lack of Digest::SHA1
5127         Even with the preferred Digest::SHA available, this script
5128         would fail when the backup module, Digest::SHA1, was not installed.
5129         * build-aux/announce-gen: Quote the conditional use of "use".
5130         Reported by Reuben Thomas in:
5131         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
5132
5133         bootstrap: don't let a user's CDPATH setting affect this script
5134         When CDPATH is set, cd will sometimes generate output.
5135         When "cd" is run in a subshell whose output matters, that
5136         surprising-to-some output can cause malfunction.
5137         Unsetting CDPATH turns off this shell "feature."
5138         * build-aux/bootstrap (CDPATH): Unset.
5139         Reported by Reuben Thomas in:
5140         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
5141         and inspired by his patch here:
5142         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
5143
5144 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
5145         and Jim Meyering  <meyering@redhat.com>
5146
5147         maint.mk: catch "see @xref{}" and similar
5148         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
5149         prohibit "See also @xref{", "Also see @pxref{", and similar.
5150
5151 2012-04-16  Jim Meyering  <meyering@redhat.com>
5152
5153         bootstrap: really use gnulib's po/Makefile.in.in
5154         * build-aux/bootstrap: Correct the source file name in previous change.
5155         Reported by Akim Demaille.
5156
5157         configmake: correct minor inconsistency in Makefile rule
5158         * modules/configmake (Makefile.am): All other rules like this one
5159         run the final "mv -f ..." in the same backslash-continued command
5160         as the one that does everything else.  This one put the mv -f ...
5161         command on a separate, non-backslash-continued line.
5162         Make it like the others.
5163
5164         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
5165         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
5166         the one from gettext.  Reported by Akim Demaille.
5167
5168 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
5169
5170         Fix recursion of install-* into po directories.
5171         Bison's install-pdf bug reported by Hans Aberg at
5172         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
5173         * build-aux/po/Makefile.in.in (install-dvi, install-html)
5174         (install-info, install-pdf, install-ps): New targets.
5175
5176 2012-04-16  Jim Meyering  <meyering@redhat.com>
5177
5178         maint: avoid spurious "make sc_maint" failure
5179         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
5180         exempt all *.class file names, for lib/javaversion.class.
5181
5182 2012-04-15  Bruno Haible  <bruno@clisp.org>
5183
5184         lseek: Make configure test independent of environment.
5185         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
5186         Windows, we know that lseek() on pipes is broken; skip the runtime
5187         test.
5188
5189 2012-04-14  Bruno Haible  <bruno@clisp.org>
5190
5191         stat: Bypass buggy override in mingw64.
5192         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
5193         * lib/stat.c (stat) [mingw64]: Define to _stat.
5194         * doc/posix-functions/stat.texi: Mention mingw64 bug.
5195
5196 2012-04-14  Bruno Haible  <bruno@clisp.org>
5197
5198         pathmax: Fix compilation error on MSVC 9.
5199         * modules/pathmax (Depends-on): Add unistd.
5200
5201 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
5202
5203         README: document pointer comparison assumption
5204         * README (Portability guidelines): Document assumption about
5205         pointer comparisons, in response to a recent bug-gnulib comment by
5206         Jeffrey Kegler.
5207
5208 2012-04-12  Bruno Haible  <bruno@clisp.org>
5209
5210         Tests for module 'getrusage'.
5211         * modules/getrusage-tests: New file.
5212         * tests/test-getrusage.c: New file.
5213
5214         New module 'getrusage'.
5215         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
5216         warn-on-use.h.
5217         (getrusage): New declaration.
5218         * lib/getrusage.c: New file.
5219         * m4/getrusage.m4: New file.
5220         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
5221         is declared.
5222         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
5223         HAVE_GETRUSAGE.
5224         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
5225         snippet/c++defs, snippet/warn-on-use.
5226         (Makefile.am): Update generation of sys/resource.h. Substitute
5227         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
5228         * modules/getrusage: New file.
5229         * doc/posix-functions/getrusage.texi: Mention the new module.
5230
5231 2012-04-12  Bruno Haible  <bruno@clisp.org>
5232
5233         Tests for module 'sys_resource'.
5234         * modules/sys_resource-tests: New file.
5235         * tests/test-sys_resource.c: New file.
5236
5237         New module 'sys_resource'.
5238         * lib/sys_resource.in.h: New file.
5239         * m4/sys_resource_h.m4: New file.
5240         * modules/sys_resource: New file.
5241         * doc/posix-headers/sys_resource.texi: Mention the new module.
5242
5243 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
5244
5245         ioctl: Fix compilation error on mingw.
5246         * lib/ioctl.c: Include <windows.h>.
5247         Also reported by Ray Satiro <raysatiro@yahoo.com>.
5248
5249 2012-04-04  Jim Meyering  <meyering@redhat.com>
5250
5251         regex: correct #pragma guard expression
5252         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
5253         not 4.3.  Correct its cpp guard expression.
5254
5255 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
5256
5257         regex: remove unnecessary type punning
5258         Problem reported by Vladimir Serbinenko in
5259         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
5260         * lib/regex.h (struct re_pattern_buffer): Change the type of
5261         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
5262         Fix comment to match code.
5263         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
5264         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
5265         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
5266         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
5267         (set_regs):
5268         Omit no-longer-necessary casts.
5269
5270 2012-04-03  Bruno Haible  <bruno@clisp.org>
5271
5272         Tests for module 'ilogbl'.
5273         * modules/ilogbl-tests: New file.
5274         * tests/test-ilogbl.c: New file.
5275
5276         New module 'ilogbl'.
5277         * lib/math.in.h (ilogbl): New declaration.
5278         * lib/ilogbl.c: New file.
5279         * m4/ilogbl.m4: New file.
5280         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
5281         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
5282         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
5283         Split sed invocation, to avoid the limit of 100 substitutions of
5284         HP-UX 'sed'.
5285         * modules/ilogbl: New file.
5286         * tests/test-math-c++.cc: Check the declaration of ilogbl.
5287         * doc/posix-functions/ilogbl.texi: Mention the new module.
5288
5289 2012-04-03  Bruno Haible  <bruno@clisp.org>
5290
5291         Tests for module 'ilogbf'.
5292         * modules/ilogbf-tests: New file.
5293         * tests/test-ilogbf.c: New file.
5294
5295         New module 'ilogbf'.
5296         * lib/math.in.h (ilogbf): New declaration.
5297         * lib/ilogbf.c: New file.
5298         * m4/ilogbf.m4: New file.
5299         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
5300         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
5301         REPLACE_ILOGBF.
5302         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
5303         REPLACE_ILOGBF.
5304         * modules/ilogbf: New file.
5305         * tests/test-math-c++.cc: Check the declaration of ilogbf.
5306         * doc/posix-functions/ilogbf.texi: Mention the new module.
5307
5308 2012-04-03  Bruno Haible  <bruno@clisp.org>
5309
5310         Tests for module 'ilogb'.
5311         * modules/ilogb-tests: New file.
5312         * tests/test-ilogb.c: New file.
5313         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
5314         tests/test-logb-ieee.h.
5315
5316         New module 'ilogb'.
5317         * lib/math.in.h (ilogb): New declaration.
5318         * lib/ilogb.c: New file.
5319         * m4/ilogb.m4: New file.
5320         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
5321         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
5322         REPLACE_ILOGB.
5323         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
5324         REPLACE_ILOGB.
5325         * modules/ilogb: New file.
5326         * tests/test-math-c++.cc: Check the declaration of ilogb.
5327         * doc/posix-functions/ilogb.texi: Mention the new module.
5328
5329 2012-04-03  Bruno Haible  <bruno@clisp.org>
5330
5331         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
5332         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
5333         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
5334         (main): Check their values.
5335         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
5336         problem.
5337
5338 2012-04-03  Bruno Haible  <bruno@clisp.org>
5339
5340         Tests for module 'logbl-ieee'.
5341         * modules/logbl-ieee-tests: New file.
5342         * tests/test-logbl-ieee.c: New file.
5343
5344         New module 'logbl-ieee'.
5345         * modules/logbl-ieee: New file.
5346
5347         Tests for module 'logb-ieee'.
5348         * modules/logb-ieee-tests: New file.
5349         * tests/test-logb-ieee.c: New file.
5350
5351         New module 'logb-ieee'.
5352         * modules/logb-ieee: New file.
5353
5354         Tests for module 'logbf-ieee'.
5355         * modules/logbf-ieee-tests: New file.
5356         * tests/test-logbf-ieee.c: New file.
5357         * tests/test-logb-ieee.h: New file.
5358
5359         New module 'logbf-ieee'.
5360         * modules/logbf-ieee: New file.
5361
5362 2012-04-03  Bruno Haible  <bruno@clisp.org>
5363
5364         Tests for module 'logbl'.
5365         * modules/logbl-tests: New file.
5366         * tests/test-logbl.c: New file.
5367
5368         New module 'logbl'.
5369         * lib/math.in.h (logbl): New declaration.
5370         * lib/logbl.c: New file.
5371         * m4/logbl.m4: New file.
5372         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
5373         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
5374         REPLACE_LOGBL.
5375         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
5376         REPLACE_LOGBL.
5377         * modules/logbl: New file.
5378         * tests/test-math-c++.cc: Check the declaration of logbl.
5379         * doc/posix-functions/logbl.texi: Mention the new module.
5380
5381 2012-04-02  Bruno Haible  <bruno@clisp.org>
5382
5383         Tests for module 'logbf'.
5384         * modules/logbf-tests: New file.
5385         * tests/test-logbf.c: New file.
5386
5387         New module 'logbf'.
5388         * lib/math.in.h (logbf): New declaration.
5389         * lib/logbf.c: New file.
5390         * m4/logbf.m4: New file.
5391         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
5392         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
5393         REPLACE_LOGBF.
5394         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
5395         REPLACE_LOGBF.
5396         * modules/logbf: New file.
5397         * tests/test-math-c++.cc: Check the declaration of logbf.
5398         * doc/posix-functions/logbf.texi: Mention the new module.
5399
5400 2012-04-02  Bruno Haible  <bruno@clisp.org>
5401
5402         logb tests: More tests.
5403         * tests/test-logb.h: New file, based on tests/test-logb.c and
5404         tests/test-frexp.h.
5405         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
5406         (main): Just invoke test_function.
5407         * modules/logb-tests (Files): Add tests/test-logb.h,
5408         tests/minus-zero.h, tests/randomd.c.
5409         (Makefile.am): Add randomd.c to test_logb_SOURCES.
5410
5411         logb: Provide replacement and workarounds.
5412         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
5413         is 1.
5414         * lib/logb.c: New file.
5415         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
5416         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
5417         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
5418         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
5419         * modules/logb (Files): Add lib/logb.c.
5420         (Depends-on): Add isfinite, frexp, isnand.
5421         (configure.ac): Compile the replacement code logb.c if needed.
5422         * tests/test-math-c++.cc: Check the declaration of logb.
5423         * doc/posix-functions/logb.texi: Mention the replacement and the bug
5424         with subnormal numbers.
5425
5426 2012-04-02  Bruno Haible  <bruno@clisp.org>
5427
5428         log10* tests: Speed up.
5429         * tests/test-log10.h (test_function): Reduce amount of random numbers
5430         to test.
5431
5432 2012-04-01  Bruno Haible  <bruno@clisp.org>
5433
5434         logf-ieee: Fix test whether logf works.
5435         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
5436
5437 2012-04-01  Bruno Haible  <bruno@clisp.org>
5438
5439         log10l: Work around log10l-ieee test failure on IRIX 6.5.
5440         * lib/log10l.c: Include <float.h>
5441         (log10l): On IRIX, normalize the +Infinity value.
5442         * modules/log10l (Depends-on): Add 'float'.
5443         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
5444         +Infinity.
5445
5446         log10f-ieee: Work around test failure on NetBSD 5.1.
5447         * m4/log10f-ieee.m4: New file.
5448         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
5449         test whether log10f works with a negative argument. Replace it if not.
5450         * lib/log10f.c (log10f): For negative arguments, return NaN.
5451         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
5452         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
5453         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
5454
5455         log10f-ieee: Work around test failure on Solaris 9.
5456         * modules/log10f-ieee (Depends-on): Add log10-ieee.
5457         (configure.ac): Require gl_FUNC_LOG10F.
5458
5459         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
5460         * m4/log10-ieee.m4: New file.
5461         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
5462         whether log10 works with a negative argument. Replace it if not.
5463         * lib/log10.c (log10): For negative arguments, return NaN.
5464         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
5465         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
5466         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
5467
5468         Tests for module 'log10l-ieee'.
5469         * modules/log10l-ieee-tests: New file.
5470         * tests/test-log10l-ieee.c: New file.
5471
5472         New module 'log10l-ieee'.
5473         * modules/log10l-ieee: New file.
5474
5475         Tests for module 'log10-ieee'.
5476         * modules/log10-ieee-tests: New file.
5477         * tests/test-log10-ieee.c: New file.
5478
5479         New module 'log10-ieee'.
5480         * modules/log10-ieee: New file.
5481
5482         Tests for module 'log10f-ieee'.
5483         * modules/log10f-ieee-tests: New file.
5484         * tests/test-log10f-ieee.c: New file.
5485         * tests/test-log10-ieee.h: New file.
5486
5487         New module 'log10f-ieee'.
5488         * modules/log10f-ieee: New file.
5489
5490 2012-04-01  Bruno Haible  <bruno@clisp.org>
5491
5492         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
5493         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
5494         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
5495         workaround.
5496         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
5497         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
5498         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
5499         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
5500         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
5501         (Depends-on): Update conditions.
5502         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
5503         IRIX 6.5, OSF/1 5.1 problems.
5504
5505 2012-04-01  Bruno Haible  <bruno@clisp.org>
5506
5507         log10f: Work around OSF/1 5.1 bug.
5508         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
5509         * lib/log10f.c (log10f): If logf exists, use it and provide just the
5510         workaround.
5511         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
5512         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
5513         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
5514         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
5515         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
5516         (Depends-on): Update conditions.
5517         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
5518
5519 2012-04-01  Bruno Haible  <bruno@clisp.org>
5520
5521         log10: Work around OSF/1 5.1 bug.
5522         * lib/math.in.h (log10): New declaration.
5523         * lib/log10.c: New file.
5524         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
5525         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
5526         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
5527         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
5528         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
5529         * modules/log10 (Files): Add lib/log10.c.
5530         (Depends-on): Add math.
5531         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
5532         * tests/test-math-c++.cc: Check the declaration of log10.
5533         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
5534
5535 2012-03-31  Bruno Haible  <bruno@clisp.org>
5536
5537         log10l tests: More tests.
5538         * modules/log10l-tests (Files): Add tests/test-log10l.h,
5539         tests/minus-zero.h, tests/randoml.c.
5540         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
5541         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
5542         (main): Invoke test_function.
5543
5544         log10f tests: More tests.
5545         * modules/log10f-tests (Files): Add tests/test-log10.h,
5546         tests/minus-zero.h, tests/randomf.c.
5547         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
5548         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
5549         (main): Invoke test_function.
5550
5551         log10 tests: More tests.
5552         * tests/test-log10.h: New file.
5553         * modules/log10-tests (Files): Add tests/test-log10.h,
5554         tests/minus-zero.h, tests/randomd.c.
5555         (Makefile.am): Add randomd.c to test_log10_SOURCES.
5556         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
5557         (main): Invoke test_function.
5558
5559 2012-03-31  Simon Josefsson  <simon@josefsson.org>
5560
5561         fflush: Fix syntax error.
5562         * lib/fflush.c: Include unused-parameter.h, needed for
5563         _GL_UNUSED_PARAMETER.
5564         * modules/fflush (Depends-on): Add snippet/unused-parameter.
5565
5566 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
5567
5568         regex: pacify GCC when compiling GRUB
5569         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
5570         a diagnostic.  Reported by Vladimir Serbinenko in
5571         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
5572
5573 2012-03-29  Eric Blake  <eblake@redhat.com>
5574
5575         stdio: don't assume gets any more
5576         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
5577         support.
5578         * modules/stdio (Makefile.am): Likewise.
5579         * lib/stdio-read.c (gets): Likewise.
5580         * tests/test-stdio-c++.cc: Likewise.
5581         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
5582         * lib/stdio.in.h (gets): Make warning occur in more places.
5583         * doc/posix-functions/gets.texi (gets): Update documentation.
5584         Reported by Christer Solskogen.
5585
5586         maint.mk: fix syntax checks without exclusions
5587         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
5588         Reported by Daniel P. Berrange.
5589
5590         strerror_r: avoid compiler warning
5591         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
5592         level.
5593
5594         fflush: avoid compiler warning
5595         * lib/fflush.c (update_fpos_cache): Mark variables that are
5596         potentially unused.
5597
5598 2012-03-25  Bruno Haible  <bruno@clisp.org>
5599
5600         Tests for module 'localeconv'.
5601         * modules/localeconv-tests: New file.
5602         * tests/test-localeconv.c: New file.
5603
5604         New module 'localeconv'.
5605         * lib/locale.in.h (localeconv): New declaration.
5606         * lib/localeconv.c: New file.
5607         * m4/localeconv.m4: New file.
5608         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
5609         REPLACE_LOCALECONV.
5610         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
5611         REPLACE_LOCALECONV.
5612         * modules/localeconv: New file.
5613         * modules/nl_langinfo (Depends-on): Add localeconv.
5614         * modules/human (Depends-on): Likewise.
5615         * doc/posix-functions/localeconv.texi: Mention the new module.
5616
5617 2012-03-25  Bruno Haible  <bruno@clisp.org>
5618
5619         locale: Provide a complete 'struct lconv'.
5620         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
5621         'struct lconv' does not contain int_p_cs_precedes.
5622         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
5623         * doc/posix-headers/locale.texi: Update.
5624
5625         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
5626         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
5627         * doc/posix-headers/locale.texi: Update.
5628
5629         locale: Provide a working 'struct lconv'.
5630         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
5631         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
5632         'struct lconv' does not even contain decimal_point.
5633         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
5634         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
5635         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
5636         * doc/posix-headers/locale.texi: Mention the problems with
5637         'struct lconv'.
5638         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
5639
5640 2012-03-24  Bruno Haible  <bruno@clisp.org>
5641
5642         Enable common subexpression optimization in GCC.
5643         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
5644         macros.
5645         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
5646         GCC attribute 'const'.
5647         (uc_locale_language): Declare with GCC attribute 'pure'.
5648         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
5649         with GCC attribute 'const'.
5650         * lib/unictype.in.h (uc_is_general_category_withtable,
5651         uc_combining_class, uc_combining_class_name,
5652         uc_combining_class_long_name, uc_bidi_class_name,
5653         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
5654         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
5655         uc_decimal_value, uc_digit_value, uc_numeric_value,
5656         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
5657         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
5658         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
5659         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
5660         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
5661         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
5662         Declare with GCC attribute 'const'.
5663         (uc_general_category_name, uc_general_category_long_name,
5664         uc_general_category_byname, uc_general_category,
5665         uc_is_general_category, uc_combining_class_byname,
5666         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
5667         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
5668         Declare with GCC attribute 'pure'.
5669         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
5670         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
5671         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
5672         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
5673         with GCC attribute 'pure'.
5674         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
5675         'const'.
5676         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
5677         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
5678         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
5679         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
5680         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
5681         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
5682         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
5683         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
5684         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
5685         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
5686         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
5687         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
5688         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
5689         GCC attribute 'pure'.
5690         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
5691         'const'.
5692         * lib/uniwidth.in.h (uc_width): Simplify declaration.
5693         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
5694         u32_strwidth): Declare with GCC attribute 'pure'.
5695
5696         Enable common subexpression optimization in GCC.
5697         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
5698         (alphasort): Declare with GCC attribute 'pure'.
5699         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
5700         (atoll): Declare with GCC attribute 'pure'.
5701         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
5702         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
5703         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
5704         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
5705         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
5706         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
5707         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
5708
5709 2012-03-24  Bruno Haible  <bruno@clisp.org>
5710
5711         gnulib-tool: Avoid unintended error output from 'cmp'.
5712         * gnulib-tool (func_add_file, func_update_file, func_import): Use
5713         "cmp -s", not "cmp > /dev/null".
5714
5715 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
5716
5717         gnulib-tool: fix imprecise comments w.r.t. an automake bug
5718
5719         It's not just Automake versions < 1.9b that creates an empty
5720         pkgdatadir at installation time if pkgdata_DATA is specified
5721         to empty; modern automake versions do this as well, at least
5722         until automake 1.11.4 (not yet released at the moment of writing,
5723         but soon to appear).  That behaviour was generally considered a
5724         feature rather than a bug, at least until this discussion:
5725         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
5726
5727         See also automake bugs #10997 and #11030.
5728
5729         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
5730         reference to relevant automake bug numbers.
5731         (func_emit_tests_Makefile_am): Likewise.
5732
5733 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
5734
5735         announce-gen: use Digest::SHA when possible
5736         * build-aux/announce-gen: Use Digest::SHA when possible, falling
5737         back to Digest::SHA1 if necessary.
5738
5739 2012-03-20  Jim Meyering  <meyering@redhat.com>
5740
5741         tests: avoid gcc warnings about argv vs. const initializers
5742         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
5743         warnings about discarding 'const' qualifier from pointer target type.
5744         * tests/test-posix_spawn2.c (main): Likewise.
5745
5746 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
5747
5748         README-release: simplify slightly
5749         * top/README-release: Run "git checkout master" only once.
5750
5751 2012-03-15  Mark Wielaard  <mark@klomp.org>
5752
5753         git-merge-changelog: add specific example on how to use with hg.
5754         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
5755
5756 2012-03-18  Mark Wielaard  <mark@klomp.org>
5757
5758         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
5759
5760 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
5761
5762         git-version-gen: don't let "prefix" envvar cause trouble
5763         * build-aux/git-version-gen (prefix): Initialize properly,
5764         so as not to use a value specified via the environment.
5765         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
5766
5767 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
5768
5769         regex: diagnose too-large repeat counts in EREs
5770         Previously, the code did not diagnose the too-large repeat count
5771         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
5772         as if it were 'b\{1000000000}', which is unexpected.
5773         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
5774         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
5775         is a reasonable one for this problem.  Another option would be to
5776         create a new REG_OVERFLOW error for repeat counts that are too large.
5777         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
5778         count is too large, so that the caller can distinguish the two cases.
5779         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
5780         "Too large" return code, and that repeat counts are one example of this.
5781
5782 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
5783
5784         doc: some glibc x32 integer width issues
5785         * doc/posix-headers/sys_types.texi (sys/types.h):
5786         * doc/posix-headers/time.texi (time.h):
5787         Mention that glibc x32 does not conform to POSIX in a couple of
5788         areas related to integer widths.
5789
5790 2012-03-15  Bruno Haible  <bruno@clisp.org>
5791
5792         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
5793         * lib/fma.c (VOLATILE): New macro.
5794         (FUNC): Use it to work around a GCC compiler bug.
5795
5796 2012-03-13  Bruno Haible  <bruno@clisp.org>
5797
5798         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
5799         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
5800         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
5801         REPLACE_HYPOTL to 1.
5802         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
5803
5804 2012-03-13  Bruno Haible  <bruno@clisp.org>
5805
5806         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
5807         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
5808         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
5809         REPLACE_REMAINDERL to 1.
5810         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
5811         bug.
5812
5813 2012-03-13  Bruno Haible  <bruno@clisp.org>
5814
5815         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
5816         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
5817         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
5818         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
5819         too big rounding errors.
5820         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
5821         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
5822         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
5823         (Depends-on): Update conditions.
5824         * tests/test-sqrtl.c (my_ldexpl): New function.
5825         (main): Add test of a particular value.
5826         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
5827
5828 2012-03-13  Pádraig Brady  <P@draigBrady.com>
5829
5830         doc: Update timer_* platform portability notes.
5831         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
5832         that always return ENOSYS.
5833         * doc/posix-functions/timer_delete.texi: Likewise.
5834         * doc/posix-functions/timer_gettime.texi: Likewise.
5835         * doc/posix-functions/timer_settime.texi: Likewise.
5836
5837 2012-03-13  Bruno Haible  <bruno@clisp.org>
5838
5839         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
5840         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
5841         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
5842         REPLACE_CBRTL to 1.
5843         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
5844
5845 2012-03-13  Bruno Haible  <bruno@clisp.org>
5846
5847         remainderl: Avoid compilation error on AIX >= 5.2.
5848         * lib/math.in.h (remainderl): Undefine macro from the system header.
5849
5850 2012-03-13  Bruno Haible  <bruno@clisp.org>
5851
5852         Avoid compilation errors with MSVC option -fp:strict.
5853         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
5854         * lib/cbrtf.c: Likewise.
5855         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5856
5857 2012-03-12  Bruno Haible  <bruno@clisp.org>
5858
5859         uninorm: Don't crash in out-of-memory conditions.
5860         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
5861         gracefully.
5862         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
5863         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
5864
5865 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
5866
5867         quote: fix syntax-check
5868         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
5869         also exports quote_quoting_options.
5870
5871 2012-03-12  Simon Josefsson  <simon@josefsson.org>
5872
5873         Collapse list of copyright years to ranges.  See
5874         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
5875         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
5876         build-aux/csharpexec.sh.in, build-aux/gnupload,
5877         build-aux/install-reloc, build-aux/javacomp.sh.in,
5878         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
5879         build-aux/move-if-change, build-aux/reloc-ldflags,
5880         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
5881
5882 2012-03-11  Bruno Haible  <bruno@clisp.org>
5883
5884         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
5885         * m4/log2f-ieee.m4: New file.
5886         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
5887         whether log2f works with a minus zero argument. Replace it if not.
5888         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
5889         (Depends-on): Add log2-ieee.
5890         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
5891         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
5892
5893         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
5894         * m4/log2-ieee.m4: New file.
5895         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
5896         whether log2 works with a minus zero argument. Replace it if not.
5897         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
5898         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
5899         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
5900
5901         Tests for module 'log2l-ieee'.
5902         * modules/log2l-ieee-tests: New file.
5903         * tests/test-log2l-ieee.c: New file.
5904
5905         New module 'log2l-ieee'.
5906         * modules/log2l-ieee: New file.
5907
5908         Tests for module 'log2-ieee'.
5909         * modules/log2-ieee-tests: New file.
5910         * tests/test-log2-ieee.c: New file.
5911
5912         New module 'log2-ieee'.
5913         * modules/log2-ieee: New file.
5914
5915         Tests for module 'log2f-ieee'.
5916         * modules/log2f-ieee-tests: New file.
5917         * tests/test-log2f-ieee.c: New file.
5918         * tests/test-log2-ieee.h: New file.
5919
5920         New module 'log2f-ieee'.
5921         * modules/log2f-ieee: New file.
5922
5923 2012-03-11  Bruno Haible  <bruno@clisp.org>
5924
5925         Tests for module 'log2l'.
5926         * modules/log2l-tests: New file.
5927         * tests/test-log2l.c: New file.
5928
5929         New module 'log2l'.
5930         * lib/math.in.h (log2l): New declaration.
5931         * lib/log2l.c: New file.
5932         * m4/log2l.m4: New file.
5933         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
5934         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
5935         REPLACE_LOG2L.
5936         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
5937         REPLACE_LOG2L.
5938         * modules/log2l: New file.
5939         * tests/test-math-c++.cc: Check the declaration of log2l.
5940         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
5941         and OSF/1 problems.
5942
5943 2012-03-11  Bruno Haible  <bruno@clisp.org>
5944
5945         Tests for module 'log2f'.
5946         * modules/log2f-tests: New file.
5947         * tests/test-log2f.c: New file.
5948
5949         New module 'log2f'.
5950         * lib/math.in.h (log2f): New declaration.
5951         * lib/log2f.c: New file.
5952         * m4/log2f.m4: New file.
5953         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
5954         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
5955         REPLACE_LOG2F.
5956         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
5957         REPLACE_LOG2F.
5958         * modules/log2f: New file.
5959         * tests/test-math-c++.cc: Check the declaration of log2f.
5960         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
5961         and OSF/1 and Cygwin problems.
5962
5963 2012-03-11  Bruno Haible  <bruno@clisp.org>
5964
5965         Tests for module 'log2'.
5966         * modules/log2-tests: New file.
5967         * tests/test-log2.c: New file.
5968         * tests/test-log2.h: New file.
5969
5970         New module 'log2'.
5971         * lib/math.in.h (log2): New declaration.
5972         * lib/log2.c: New file.
5973         * m4/log2.m4: New file.
5974         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
5975         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
5976         REPLACE_LOG2.
5977         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
5978         REPLACE_LOG2.
5979         * modules/log2: New file.
5980         * tests/test-math-c++.cc: Check the declaration of log2.
5981         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
5982         and OSF/1 and Cygwin problems.
5983
5984 2012-03-11  Bruno Haible  <bruno@clisp.org>
5985
5986         exp2* tests: More tests.
5987         * tests/test-exp2.h (test_function): Test all integral arguments that
5988         don't need to overflow or denormalized numbers.
5989         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
5990         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
5991         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
5992
5993 2012-03-10  Bruno Haible  <bruno@clisp.org>
5994
5995         log1pl-ieee: Work around test failure on AIX 7.1.
5996         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
5997
5998         log1pl-ieee: Work around test failure on IRIX 6.5.
5999         * m4/log1pl-ieee.m4: New file.
6000         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
6001         test whether log1pl works with a minus zero argument. Replace it if
6002         not.
6003         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
6004         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
6005         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
6006         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
6007         (Depends-on): Update conditions.
6008         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
6009         m4/signbit.m4.
6010         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
6011         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
6012
6013         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
6014         * m4/log1pf-ieee.m4: New file.
6015         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
6016         test whether log1pf works with a minus zero argument. Replace it if
6017         not.
6018         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
6019         m4/signbit.m4.
6020         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
6021         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
6022
6023         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
6024         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
6025         (configure.ac): Require gl_FUNC_LOG1PF.
6026
6027         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
6028         * m4/log1p-ieee.m4: New file.
6029         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
6030         whether log1p works with a minus zero argument. Replace it if not.
6031         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
6032         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
6033         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
6034         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
6035         (Depends-on): Update conditions.
6036         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
6037         m4/signbit.m4.
6038         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
6039         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
6040
6041         Tests for module 'log1pl-ieee'.
6042         * modules/log1pl-ieee-tests: New file.
6043         * tests/test-log1pl-ieee.c: New file.
6044
6045         New module 'log1pl-ieee'.
6046         * modules/log1pl-ieee: New file.
6047
6048         Tests for module 'log1p-ieee'.
6049         * modules/log1p-ieee-tests: New file.
6050         * tests/test-log1p-ieee.c: New file.
6051
6052         New module 'log1p-ieee'.
6053         * modules/log1p-ieee: New file.
6054
6055         Tests for module 'log1pf-ieee'.
6056         * modules/log1pf-ieee-tests: New file.
6057         * tests/test-log1pf-ieee.c: New file.
6058         * tests/test-log1p-ieee.h: New file.
6059
6060         New module 'log1pf-ieee'.
6061         * modules/log1pf-ieee: New file.
6062
6063 2012-03-10  Bruno Haible  <bruno@clisp.org>
6064
6065         Tests for module 'log1pl'.
6066         * modules/log1pl-tests: New file.
6067         * tests/test-log1pl.c: New file.
6068
6069         New module 'log1pl'.
6070         * lib/math.in.h (log1pl): New declaration.
6071         * lib/log1pl.c: New file.
6072         * m4/log1pl.m4: New file.
6073         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
6074         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
6075         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
6076         * modules/log1pl: New file.
6077         * tests/test-math-c++.cc: Check the declaration of log1pl.
6078         * doc/posix-functions/log1pl.texi: Mention the new module.
6079
6080 2012-03-10  Bruno Haible  <bruno@clisp.org>
6081
6082         Tests for module 'log1pf'.
6083         * modules/log1pf-tests: New file.
6084         * tests/test-log1pf.c: New file.
6085
6086         New module 'log1pf'.
6087         * lib/math.in.h (log1pf): New declaration.
6088         * lib/log1pf.c: New file.
6089         * m4/log1pf.m4: New file.
6090         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
6091         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
6092         REPLACE_LOG1PF.
6093         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
6094         REPLACE_LOG1PF.
6095         * modules/log1pf: New file.
6096         * tests/test-math-c++.cc: Check the declaration of log1pf.
6097         * doc/posix-functions/log1pf.texi: Mention the new module.
6098
6099 2012-03-10  Bruno Haible  <bruno@clisp.org>
6100
6101         log1p tests: More tests.
6102         * tests/test-log1p.h: New file.
6103         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
6104         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
6105         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
6106         (main): Invoke test_function.
6107
6108         log1p: Provide replacement for Minix and MSVC.
6109         * lib/math.in.h (log1p): New declaration.
6110         * lib/log1p.c: New file.
6111         * m4/log1p.m4: New file.
6112         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
6113         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
6114         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
6115         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
6116         (Depends-on): Add math, isnand, log, round.
6117         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
6118         HAVE_LOG1P is 0.
6119         * tests/test-math-c++.cc: Check the declaration of log1p.
6120         * doc/posix-functions/log1p.texi: Mention the replacement.
6121
6122 2012-03-10  Bruno Haible  <bruno@clisp.org>
6123
6124         math tests: Small simplification.
6125         * tests/test-exp.h (test_function): Use the same err_bound for
6126         'double' on platforms with sizeof (long double) == sizeof (double)
6127         than on platforms with sizeof (long double) > sizeof (double).
6128         * tests/test-exp2.h (test_function): Likewise.
6129         * tests/test-expm1.h (test_function): Likewise.
6130         * tests/test-log.h (test_function): Likewise.
6131
6132 2012-03-10  Bruno Haible  <bruno@clisp.org>
6133
6134         Fix some comments.
6135         * lib/expl.c: Fix an ambiguous comment.
6136         * lib/expm1.c: Likewise.
6137         * lib/expm1l.c: Likewise.
6138         * lib/exp2.c: Likewise.
6139         * lib/exp2l.c: Likewise.
6140
6141 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
6142
6143         regex: allow inclusion of <regex.h> before <limits.h>
6144         Without this patch, portable programs had to include <limits.h> before
6145         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
6146         I ran into this problem with a test version of GNU grep on Solaris 8.
6147         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
6148         This is done conditionally so that this change can be merged
6149         back to glibc.
6150         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
6151         using the included regex.
6152
6153         fts: depend on fdopendir
6154         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
6155         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
6156         problem was introduced when fdopendir was split out.
6157
6158 2012-03-10  Bruno Haible  <bruno@clisp.org>
6159
6160         Remove unused variables.
6161         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
6162         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
6163
6164 2012-03-10  Bruno Haible  <bruno@clisp.org>
6165
6166         isnanf-nolibm: Fix last commit.
6167         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
6168
6169         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
6170         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
6171
6172 2012-03-10  Bruno Haible  <bruno@clisp.org>
6173
6174         logf-ieee: Work around test failure on NetBSD 5.1.
6175         * m4/logf-ieee.m4: New file.
6176         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
6177         whether logf works with a negative argument. Replace it if not.
6178         * lib/logf.c (logf): For negative arguments, return NaN.
6179         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
6180         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
6181         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
6182
6183         logf-ieee: Work around test failure on Solaris 9.
6184         * modules/logf-ieee (Depends-on): Add log-ieee.
6185         (configure.ac): Require gl_FUNC_LOGF.
6186
6187         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
6188         * m4/log-ieee.m4: New file.
6189         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
6190         log works with a negative argument. Replace it if not.
6191         * lib/log.c (log): For negative arguments, return NaN.
6192         * modules/log-ieee (Files): Add m4/log-ieee.m4.
6193         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
6194         * doc/posix-functions/log.texi: Mention the log-ieee module.
6195
6196         Tests for module 'logl-ieee'.
6197         * modules/logl-ieee-tests: New file.
6198         * tests/test-logl-ieee.c: New file.
6199
6200         New module 'logl-ieee'.
6201         * modules/logl-ieee: New file.
6202
6203         Tests for module 'log-ieee'.
6204         * modules/log-ieee-tests: New file.
6205         * tests/test-log-ieee.c: New file.
6206
6207         New module 'log-ieee'.
6208         * modules/log-ieee: New file.
6209
6210         Tests for module 'logf-ieee'.
6211         * modules/logf-ieee-tests: New file.
6212         * tests/test-logf-ieee.c: New file.
6213         * tests/test-log-ieee.h: New file.
6214
6215         New module 'logf-ieee'.
6216         * modules/logf-ieee: New file.
6217
6218 2012-03-10  Bruno Haible  <bruno@clisp.org>
6219
6220         log: Fix bug introduced on 2012-03-09.
6221         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
6222
6223 2012-03-10  Pádraig Brady  <P@draigBrady.com>
6224
6225         timer-time: link explicitly with pthreads on glibc
6226         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
6227         to support static linking, when newer glibc is
6228         detected, as that contains pthread emulation of
6229         POSIX timer functions where required.
6230         * modules/timer-time: Depend on threadlib to
6231         pull in the appropriate library to link.
6232
6233 2012-03-10  Bruno Haible  <bruno@clisp.org>
6234
6235         log* tests: More tests.
6236         * tests/test-log.h: New file.
6237         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
6238         (main): Invoke test_function.
6239         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
6240         (main): Invoke test_function.
6241         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
6242         (main): Invoke test_function.
6243         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6244         tests/randomd.c.
6245         (Makefile.am): Add randomd.c to test_log_SOURCES.
6246         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6247         tests/randomf.c.
6248         (Makefile.am): Add randomf.c to test_logf_SOURCES.
6249         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6250         tests/randoml.c.
6251         (Depends-on): Add 'float'.
6252         (Makefile.am): Add randoml.c to test_logl_SOURCES.
6253
6254 2012-03-09  Bruno Haible  <bruno@clisp.org>
6255
6256         logl: Work around OSF/1 5.1 bug.
6257         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
6258         * lib/logl.c (logl): If logl exists, use it and provide just the
6259         workaround.
6260         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
6261         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
6262         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
6263         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
6264         * modules/logl (configure.ac): Consider REPLACE_LOGL.
6265         (Depends-on): Update conditions.
6266         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
6267
6268 2012-03-09  Bruno Haible  <bruno@clisp.org>
6269
6270         logf: Work around OSF/1 5.1 bug.
6271         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
6272         * lib/logf.c (logf): If logf exists, use it and provide just the
6273         workaround.
6274         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
6275         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
6276         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
6277         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
6278         * modules/logf (configure.ac): Consider REPLACE_LOGF.
6279         (Depends-on): Update conditions.
6280         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
6281
6282 2012-03-09  Bruno Haible  <bruno@clisp.org>
6283
6284         log: Work around OSF/1 5.1 bug.
6285         * lib/math.in.h (log): New declaration.
6286         * lib/log.c: New file.
6287         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
6288         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
6289         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
6290         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
6291         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
6292         * modules/log (Files): Add lib/log.c.
6293         (Depends-on): Add math.
6294         (configure.ac): If REPLACE_LOG is 1, compile an override.
6295         * tests/test-math-c++.cc: Check the declaration of log.
6296         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
6297
6298 2012-03-09  Jim Meyering  <meyering@redhat.com>
6299
6300         readtokens.c: adjust wording in a comment
6301         * lib/readtokens.c: Insert omitted "that" in a comment.
6302
6303 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
6304
6305         modechange: add notations +40, 00440, etc.
6306         * lib/modechange.c (mode_compile): Support new notations
6307         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
6308
6309 2012-03-08  Bruno Haible  <bruno@clisp.org>
6310
6311         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
6312         * m4/exp2l-ieee.m4: New file.
6313         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
6314         test whether exp2l works with a NaN argument and with a negative
6315         infinity argument. Replace it if not.
6316         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
6317         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
6318         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
6319         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
6320         (Depends-on): Update conditions.
6321         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
6322         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
6323         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
6324
6325         Tests for module 'exp2l-ieee'.
6326         * modules/exp2l-ieee-tests: New file.
6327         * tests/test-exp2l-ieee.c: New file.
6328
6329         New module 'exp2l-ieee'.
6330         * modules/exp2l-ieee: New file.
6331
6332         Tests for module 'exp2-ieee'.
6333         * modules/exp2-ieee-tests: New file.
6334         * tests/test-exp2-ieee.c: New file.
6335
6336         New module 'exp2-ieee'.
6337         * modules/exp2-ieee: New file.
6338
6339         Tests for module 'exp2f-ieee'.
6340         * modules/exp2f-ieee-tests: New file.
6341         * tests/test-exp2f-ieee.c: New file.
6342         * tests/test-exp2-ieee.h: New file.
6343
6344         New module 'exp2f-ieee'.
6345         * modules/exp2f-ieee: New file.
6346
6347 2012-03-08  Bruno Haible  <bruno@clisp.org>
6348
6349         Tests for module 'exp2l'.
6350         * modules/exp2l-tests: New file.
6351         * tests/test-exp2l.c: New file.
6352
6353         New module 'exp2l'.
6354         * lib/math.in.h (exp2l): New declaration.
6355         * lib/exp2l.c: New file.
6356         * lib/expl-table.c: New file, extracted from lib/expl.c.
6357         * lib/expl.c (gl_expl_table): New declaration.
6358         (expl): Remove expl_table. Update reference.
6359         * m4/exp2l.m4: New file.
6360         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
6361         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
6362         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
6363         * modules/exp2l: New file.
6364         * modules/expl (Files): Add lib/expl-table.c.
6365         (configure.ac): Compile also expl-table.c.
6366         * tests/test-math-c++.cc: Check the declaration of exp2l.
6367         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
6368         problem.
6369
6370 2012-03-08  Bruno Haible  <bruno@clisp.org>
6371
6372         Tests for module 'exp2f'.
6373         * modules/exp2f-tests: New file.
6374         * tests/test-exp2f.c: New file.
6375
6376         New module 'exp2f'.
6377         * lib/math.in.h (exp2f): New declaration.
6378         * lib/exp2f.c: New file.
6379         * m4/exp2f.m4: New file.
6380         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
6381         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
6382         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
6383         * modules/exp2f: New file.
6384         * tests/test-math-c++.cc: Check the declaration of exp2f.
6385         * doc/posix-functions/exp2f.texi: Mention the new module and the
6386         IRIX problem.
6387
6388 2012-03-08  Bruno Haible  <bruno@clisp.org>
6389
6390         Tests for module 'exp2'.
6391         * modules/exp2-tests: New file.
6392         * tests/test-exp2.c: New file.
6393         * tests/test-exp2.h: New file.
6394
6395         New module 'exp2'.
6396         * lib/math.in.h (exp2): New declaration.
6397         * lib/exp2.c: New file.
6398         * m4/exp2.m4: New file.
6399         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
6400         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
6401         REPLACE_EXP2.
6402         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
6403         REPLACE_EXP2.
6404         * modules/exp2: New file.
6405         * tests/test-math-c++.cc: Check the declaration of exp2.
6406         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
6407         and OpenBSD problems.
6408
6409 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
6410
6411         savedir: fix comment typo
6412         * lib/savedir.c (savedirstream): Fix typo in comment.
6413
6414 2012-03-08  Bruno Haible  <bruno@clisp.org>
6415
6416         test-readtokens.c: use const; remove unwarranted cast
6417         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
6418
6419 2012-03-08  Bruno Haible  <bruno@clisp.org>
6420
6421         fmal: Avoid compilation error on AIX.
6422         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
6423         AIX 5.2..7.1.
6424
6425 2012-03-08  Bruno Haible  <bruno@clisp.org>
6426
6427         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
6428         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
6429         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
6430         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
6431         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
6432         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
6433         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
6434
6435 2012-03-08  Bruno Haible  <bruno@clisp.org>
6436
6437         remainderf: Override buggy system function on IRIX 6.5.
6438         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
6439         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
6440         when it exists.
6441         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
6442
6443 2012-03-08  Jim Meyering  <meyering@redhat.com>
6444
6445         test-readtokens.c: avoid const-related compilation warnings
6446         * tests/test-readtokens.c: Avoid const-related compilation warnings.
6447
6448 2012-03-07  Jim Meyering  <meyering@redhat.com>
6449             Bruno Haible  <bruno@clisp.org>
6450
6451         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
6452         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
6453         tests/randomd.c.
6454         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
6455         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
6456         tests/randoml.c.
6457         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
6458
6459 2012-03-07  Bruno Haible  <bruno@clisp.org>
6460
6461         expm1l: Avoid compilation error on AIX.
6462         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
6463         AIX 5.2..7.1.
6464
6465 2012-03-07  Bruno Haible  <bruno@clisp.org>
6466
6467         expm1l: Don't override undeclared system function on IRIX 6.5.
6468         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
6469         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
6470         it exists. Set HAVE_DECL_EXPM1L.
6471         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
6472         HAVE_EXPM1L.
6473         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
6474         HAVE_EXPM1L.
6475         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
6476
6477 2012-03-07  Bruno Haible  <bruno@clisp.org>
6478
6479         remainderl: Don't override undeclared system function on IRIX 6.5.
6480         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
6481         HAVE_REMAINDERL.
6482         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
6483         declared when it exists. Set HAVE_DECL_REMAINDERL.
6484         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
6485         not HAVE_REMAINDERL.
6486         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
6487         HAVE_REMAINDERL.
6488         * doc/posix-functions/remainderl.texi: Mention missing declaration
6489         problem.
6490
6491 2012-03-07  Bruno Haible  <bruno@clisp.org>
6492
6493         rintf: Don't override undeclared system function on IRIX 6.5.
6494         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
6495         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
6496         exists. Set HAVE_DECL_RINTF.
6497         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
6498         HAVE_RINTF.
6499         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
6500         HAVE_RINTF.
6501         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
6502
6503 2012-03-07  Bruno Haible  <bruno@clisp.org>
6504
6505         roundl: Avoid compilation error on AIX.
6506         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
6507         AIX 5.2..7.1.
6508
6509 2012-03-07  Bruno Haible  <bruno@clisp.org>
6510
6511         roundl: Don't override undeclared system function on IRIX 6.5.
6512         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
6513         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
6514         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
6515         * modules/roundl (configure.ac): For replacement code, test
6516         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
6517         (Depends-on): Update conditions.
6518         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
6519
6520 2012-03-07  Bruno Haible  <bruno@clisp.org>
6521
6522         roundf: Don't override undeclared system function on IRIX 6.5.
6523         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
6524         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
6525         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
6526         * modules/roundf (configure.ac): For replacement code, test
6527         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
6528         (Depends-on): Update conditions.
6529         * modules/roundf-ieee (Depends-on): Update conditions.
6530         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
6531
6532 2012-03-07  Bruno Haible  <bruno@clisp.org>
6533
6534         round: Don't override undeclared system function on IRIX 6.5.
6535         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
6536         argument.
6537         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
6538         also when it is not declared. Set HAVE_ROUND. For replacement code,
6539         test HAVE_ROUND, not HAVE_DECL_ROUND.
6540         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
6541         not HAVE_DECL_ROUND.
6542         (Depends-on): Update conditions.
6543         * modules/round-ieee (Depends-on): Update conditions.
6544         * doc/posix-functions/round.texi: Mention the IRIX problem.
6545
6546 2012-03-07  Bruno Haible  <bruno@clisp.org>
6547
6548         copysignf: Don't override undeclared system function on IRIX 6.5.
6549         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
6550         HAVE_COPYSIGNF.
6551         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
6552         declared when it exists. Set HAVE_DECL_COPYSIGNF.
6553         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
6554         not HAVE_COPYSIGNF.
6555         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
6556         HAVE_COPYSIGNF.
6557         * doc/posix-functions/copysignf.texi: Mention missing declaration
6558         problem.
6559
6560 2012-03-07  Jim Meyering  <meyering@redhat.com>
6561
6562         readtokens: add tests
6563         * modules/readtokens-tests: New file.
6564         * tests/test-readtokens.c: New file.
6565
6566 2012-03-07  Jim Meyering  <meyering@redhat.com>
6567
6568         quotearg: the module must now include quote.h
6569         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
6570         So must the module.
6571         * modules/quotearg (Files): Add quote.h.
6572
6573 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
6574
6575         readtokens: avoid core dumps with unusual calling patterns
6576         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
6577         * lib/readtokens.c: Include limits.h.
6578         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
6579         (readtoken): Don't cache the delimiters; the cache code was buggy
6580         if !delim && saved_delim, or if the new n_delim differs from the old.
6581         Also, it wasn't thread-safe.
6582
6583 2012-03-07  Bruno Haible  <bruno@clisp.org>
6584
6585         quote: Adhere to common module description layout.
6586         * modules/quote (Makefile.am): Add back empty section.
6587
6588 2012-03-06  Akim Demaille  <demaille@gostai.com>
6589
6590         quote: fuse into quotearg
6591         This patch is made for the benefit of Bison.
6592         quote does not leave the choice of the quoting style to the user.
6593         quoting_style provides poor customizability, yet quoting_options,
6594         which is very rich, is hidden inside quotearg.c.  So in order to
6595         allow quote customization, move its implementation to quotearg.c.
6596         * lib/quote.c: Remove.
6597         * modules/quote: Adjust.
6598         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
6599         warning: provide all the members of literal structs.
6600         (quote_quoting_options): New.
6601         (quote, quote_n): Import implementation from quote.c.
6602         * lib/quote.h: Import the comments from quote.c.
6603         (quote_quoting_options): New.
6604
6605 2012-03-06  Bruno Haible  <bruno@clisp.org>
6606
6607         Tests for module 'expm1l-ieee'.
6608         * modules/expm1l-ieee-tests: New file.
6609         * tests/test-expm1l-ieee.c: New file.
6610
6611         New module 'expm1l-ieee'.
6612         * modules/expm1l-ieee: New file.
6613
6614         Tests for module 'expm1f-ieee'.
6615         * modules/expm1f-ieee-tests: New file.
6616         * tests/test-expm1f-ieee.c: New file.
6617
6618         New module 'expm1f-ieee'.
6619         * modules/expm1f-ieee: New file.
6620
6621         Tests for module 'expm1-ieee'.
6622         * modules/expm1-ieee-tests: New file.
6623         * tests/test-expm1-ieee.c: New file.
6624         * tests/test-expm1-ieee.h: New file.
6625
6626         New module 'expm1-ieee'.
6627         * modules/expm1-ieee: New file.
6628         * m4/expm1-ieee.m4: New file.
6629         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
6630         whether expm1 works with a minus zero argument. Replace it if not.
6631         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
6632         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
6633         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
6634         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
6635         (Depends-on): Update conditions.
6636         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
6637         AIX problem.
6638
6639 2012-03-06  Bruno Haible  <bruno@clisp.org>
6640
6641         Work around expm1f bug on IRIX 6.5.
6642         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
6643         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
6644         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
6645         not work.
6646         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
6647         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
6648         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
6649         (Depends-on): Update conditions.
6650         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
6651
6652 2012-03-06  Bruno Haible  <bruno@clisp.org>
6653
6654         Tests for module 'expm1l'.
6655         * modules/expm1l-tests: New file.
6656         * tests/test-expm1l.c: New file.
6657
6658         New module 'expm1l'.
6659         * lib/math.in.h (expm1l): New declaration.
6660         * lib/expm1l.c: New file.
6661         * m4/expm1l.m4: New file.
6662         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
6663         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
6664         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
6665         * modules/expm1l: New file.
6666         * tests/test-math-c++.cc: Check the declaration of expm1l.
6667         * doc/posix-functions/expm1l.texi: Mention the new module.
6668
6669 2012-03-06  Bruno Haible  <bruno@clisp.org>
6670
6671         Tests for module 'expm1f'.
6672         * modules/expm1f-tests: New file.
6673         * tests/test-expm1f.c: New file.
6674
6675         New module 'expm1f'.
6676         * lib/math.in.h (expm1f): New declaration.
6677         * lib/expm1f.c: New file.
6678         * m4/expm1f.m4: New file.
6679         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
6680         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
6681         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
6682         * modules/expm1f: New file.
6683         * tests/test-math-c++.cc: Check the declaration of expm1f.
6684         * doc/posix-functions/expm1f.texi: Mention the new module.
6685
6686 2012-03-06  Bruno Haible  <bruno@clisp.org>
6687
6688         Tests for module 'expm1'.
6689         * modules/expm1-tests: New file.
6690         * tests/test-expm1.c: New file.
6691         * tests/test-expm1.h: New file.
6692
6693         New module 'expm1'.
6694         * lib/math.in.h (expm1): New declaration.
6695         * lib/expm1.c: New file.
6696         * m4/expm1.m4: New file.
6697         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
6698         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
6699         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
6700         * modules/expm1: New file.
6701         * tests/test-math-c++.cc: Check the declaration of expm1.
6702         * doc/posix-functions/expm1.texi: Mention the new module.
6703
6704 2012-03-06  Bruno Haible  <bruno@clisp.org>
6705
6706         math: Ensure declarations of math functions.
6707         * modules/acosf (Depends-on): Add 'extensions'.
6708         * modules/asinf (Depends-on): Likewise.
6709         * modules/atan2f (Depends-on): Likewise.
6710         * modules/atanf (Depends-on): Likewise.
6711         * modules/cbrt (Depends-on): Likewise.
6712         * modules/cbrtf (Depends-on): Likewise.
6713         * modules/cbrtl (Depends-on): Likewise.
6714         * modules/copysignf (Depends-on): Likewise.
6715         * modules/copysignl (Depends-on): Likewise.
6716         * modules/cosf (Depends-on): Likewise.
6717         * modules/coshf (Depends-on): Likewise.
6718         * modules/expf (Depends-on): Likewise.
6719         * modules/fabsf (Depends-on): Likewise.
6720         * modules/fabsl (Depends-on): Likewise.
6721         * modules/fmaf (Depends-on): Likewise.
6722         * modules/fmal (Depends-on): Likewise.
6723         * modules/fmodf (Depends-on): Likewise.
6724         * modules/fmodl (Depends-on): Likewise.
6725         * modules/frexpf (Depends-on): Likewise.
6726         * modules/frexpl (Depends-on): Likewise.
6727         * modules/hypot (Depends-on): Likewise.
6728         * modules/hypotf (Depends-on): Likewise.
6729         * modules/hypotl (Depends-on): Likewise.
6730         * modules/ldexpf (Depends-on): Likewise.
6731         * modules/ldexpl (Depends-on): Likewise.
6732         * modules/log10f (Depends-on): Likewise.
6733         * modules/log10l (Depends-on): Likewise.
6734         * modules/log1p (Depends-on): Likewise.
6735         * modules/logb (Depends-on): Likewise.
6736         * modules/logf (Depends-on): Likewise.
6737         * modules/modff (Depends-on): Likewise.
6738         * modules/modfl (Depends-on): Likewise.
6739         * modules/powf (Depends-on): Likewise.
6740         * modules/remainderf (Depends-on): Likewise.
6741         * modules/remainderl (Depends-on): Likewise.
6742         * modules/rintf (Depends-on): Likewise.
6743         * modules/rintl (Depends-on): Likewise.
6744         * modules/sinf (Depends-on): Likewise.
6745         * modules/sinhf (Depends-on): Likewise.
6746         * modules/sqrtf (Depends-on): Likewise.
6747         * modules/tanf (Depends-on): Likewise.
6748         * modules/tanhf (Depends-on): Likewise.
6749         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
6750         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
6751         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
6752         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
6753         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
6754         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
6755         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
6756         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
6757         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
6758         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
6759         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
6760         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
6761         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
6762         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
6763         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
6764         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
6765         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
6766         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
6767         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
6768         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
6769         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
6770         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
6771         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
6772         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
6773         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
6774         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
6775         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
6776         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
6777         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
6778         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
6779         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
6780         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
6781         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
6782         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
6783         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
6784         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
6785         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
6786         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
6787         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
6788         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
6789         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
6790
6791 2012-03-06  Bruno Haible  <bruno@clisp.org>
6792
6793         math: Update module names in warnings.
6794         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
6795         tanl): Use specific module name in warn-on-use warning.
6796
6797 2012-03-06  Bruno Haible  <bruno@clisp.org>
6798
6799         expl: Simplify computation.
6800         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
6801
6802 2012-03-05  Bruno Haible  <bruno@clisp.org>
6803
6804         exp* tests: More tests.
6805         * tests/test-exp.h: New file.
6806         * tests/test-exp.c: Include <float.h> and test-exp.h.
6807         (main): Invoke test_function.
6808         * tests/test-expf.c: Include <float.h> and test-exp.h.
6809         (main): Invoke test_function.
6810         * tests/test-expl.c: Include <float.h> and test-exp.h.
6811         (main): Invoke test_function.
6812         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
6813         (Makefile.am): Add randomd.c to test_exp_SOURCES.
6814         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
6815         (Makefile.am): Add randomf.c to test_expf_SOURCES.
6816         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
6817         (Depends-on): Add 'float'.
6818         (Makefile.am): Add randoml.c to test_expl_SOURCES.
6819
6820         expl: Fix precision of computed result.
6821         * lib/expl.c: Completely rewritten.
6822         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
6823         (Maintainer): Add me.
6824         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
6825
6826 2012-03-05  Bruno Haible  <bruno@clisp.org>
6827
6828         cbrt* tests: More tests.
6829         * tests/test-cbrt.h: New file.
6830         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
6831         (main): Invoke test_function.
6832         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
6833         (main): Invoke test_function.
6834         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
6835         (main): Invoke test_function.
6836         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
6837         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
6838         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
6839         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
6840         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
6841         (Depends-on): Add 'float'.
6842         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
6843
6844 2012-03-05  Bruno Haible  <bruno@clisp.org>
6845
6846         hypot* tests: More tests.
6847         * tests/test-hypot.h: New file, partially extracted from
6848         tests/test-hypotl.c.
6849         * tests/test-hypot.c: Include test-hypot.h.
6850         (main): Invoke test_function.
6851         * tests/test-hypotf.c: Include test-hypot.h.
6852         (main): Invoke test_function.
6853         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
6854         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
6855         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
6856         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
6857         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
6858         tests/randomf.c.
6859         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
6860         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
6861         tests/randoml.c.
6862         (Depends-on): Add 'fpucw', 'float'.
6863         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
6864
6865 2012-03-05  Bruno Haible  <bruno@clisp.org>
6866
6867         fpucw: Doc about FreeBSD.
6868         * lib/fpucw.h: Mention FreeBSD in comments.
6869
6870 2012-03-04  Bruno Haible  <bruno@clisp.org>
6871
6872         sqrt* tests: More tests.
6873         * tests/test-sqrt.h: New file.
6874         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
6875         (main): Invoke test_function.
6876         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
6877         (main): Invoke test_function.
6878         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
6879         (main): Invoke test_function.
6880         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
6881         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
6882         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
6883         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
6884         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
6885         (Depends-on): Add 'float'.
6886         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
6887
6888 2012-03-04  Bruno Haible  <bruno@clisp.org>
6889
6890         remainder* tests: More tests.
6891         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
6892         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
6893         (main): Invoke test_function.
6894         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
6895         (main): Invoke test_function.
6896         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
6897         (main): Invoke test_function.
6898         * modules/remainder-tests (Files): Add tests/test-remainder.h,
6899         tests/randomd.c.
6900         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
6901         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
6902         tests/randomf.c.
6903         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
6904         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
6905         tests/randoml.c.
6906         (Depends-on): Add 'float'.
6907         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
6908
6909 2012-03-04  Bruno Haible  <bruno@clisp.org>
6910
6911         remainder, remainderf, remainderl: Fix computation for large quotients.
6912         * lib/remainder.c: Completely rewritten.
6913         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
6914         USE_FLOAT.
6915         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
6916         USE_LONG_DOUBLE.
6917         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
6918         isnand, isinf. Remove round, fma.
6919         * modules/remainderf (Files): Add lib/remainder.c.
6920         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
6921         Remove roundf, fmaf.
6922         * modules/remainderl (Files): Add lib/remainder.c.
6923         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
6924         isinf. Remove roundl, fmal.
6925         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
6926         REMAINDER_LIBM.
6927         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
6928         REMAINDERF_LIBM.
6929         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
6930         REMAINDERL_LIBM.
6931
6932 2012-03-04  Bruno Haible  <bruno@clisp.org>
6933
6934         fmod* tests: More tests.
6935         * tests/test-fmod.h (my_ldexp): New function.
6936         (test_function): Reduce amount of random numbers to test. Add tests
6937         of very large quotients x / y.
6938         * tests/test-fmod.c (MAX_EXP): New macro.
6939         * tests/test-fmodf.c (MAX_EXP): Likewise.
6940         * tests/test-fmodl.c (MAX_EXP): Likewise.
6941
6942 2012-03-04  Bruno Haible  <bruno@clisp.org>
6943
6944         fmod, fmodl: Fix computation for large quotients x / y.
6945         * lib/fmod.c: Completely rewritten.
6946         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
6947         USE_LONG_DOUBLE.
6948         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
6949         isnand. Remove fma.
6950         * modules/fmodl (Files): Add lib/fmod.c.
6951         (Depends-on): Add float, isfinite, signbit, fabsl,
6952         frexpl, ldexpl, isnanl. Remove fma.
6953         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
6954         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
6955
6956 2012-03-03  Bruno Haible  <bruno@clisp.org>
6957
6958         fmod* tests: More tests.
6959         * tests/test-fmod.h: New file.
6960         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
6961         (main): Invoke test_function.
6962         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
6963         (main): Invoke test_function.
6964         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
6965         (main): Invoke test_function.
6966         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
6967         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
6968         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
6969         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
6970         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
6971         (Depends-on): Add 'float'.
6972         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
6973
6974 2012-03-03  Bruno Haible  <bruno@clisp.org>
6975
6976         rint* tests: More tests.
6977         * tests/test-rint.h: New file, partially extracted from
6978         tests/test-rintl.c.
6979         * tests/test-rint.c: Include test-rint.h.
6980         (main): Invoke test_function.
6981         * tests/test-rintf.c: Include test-rint.h.
6982         (main): Invoke test_function.
6983         * tests/test-rintl.c: Include test-rint.h.
6984         (main): Invoke test_function.
6985         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
6986         (Makefile.am): Add randomd.c to test_rint_SOURCES.
6987         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
6988         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
6989         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
6990         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
6991
6992 2012-03-03  Bruno Haible  <bruno@clisp.org>
6993
6994         modf* tests: More tests.
6995         * tests/test-modf.h: New file.
6996         * tests/test-modf.c: Include <float.h> and test-modf.h.
6997         (main): Invoke test_function.
6998         * tests/test-modff.c: Include <float.h> and test-modf.h.
6999         (main): Invoke test_function.
7000         * tests/test-modfl.c: Include <float.h> and test-modf.h.
7001         (main): Invoke test_function.
7002         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
7003         (Makefile.am): Add randomd.c to test_modf_SOURCES.
7004         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
7005         (Makefile.am): Add randomf.c to test_modff_SOURCES.
7006         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
7007         (Depends-on): Add 'float'.
7008         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
7009
7010 2012-03-03  Bruno Haible  <bruno@clisp.org>
7011
7012         fabs* tests: More tests.
7013         * tests/test-fabs.h: New file, partially extracted from
7014         tests/test-fabsl.c.
7015         * tests/test-fabs.c (RANDOM): New macro.
7016         * tests/test-fabsf.c (RANDOM): New macro.
7017         * tests/test-fabsl.c (RANDOM): New macro.
7018         * modules/fabs-tests (Files): Add tests/randomd.c.
7019         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
7020         * modules/fabsf-tests (Files): Add tests/randomf.c.
7021         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
7022         * modules/fabsl-tests (Files): Add tests/randoml.c.
7023         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
7024
7025 2012-03-03  Bruno Haible  <bruno@clisp.org>
7026
7027         ldexp* tests: More tests.
7028         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
7029         * tests/test-ldexp.c (RANDOM): New macro.
7030         * tests/test-ldexpf.c (RANDOM): New macro.
7031         * tests/test-ldexpl.c (RANDOM): New macro.
7032         * modules/ldexp-tests (Files): Add tests/randomd.c.
7033         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
7034         * modules/ldexpf-tests (Files): Add tests/randomf.c.
7035         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
7036         * modules/ldexpl-tests (Files): Add tests/randoml.c.
7037         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
7038
7039 2012-03-03  Bruno Haible  <bruno@clisp.org>
7040
7041         frexp* tests: More tests.
7042         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
7043         * tests/test-frexp.c (RANDOM): New macro.
7044         * tests/test-frexpf.c (RANDOM): New macro.
7045         * tests/test-frexpl.c (RANDOM): New macro.
7046         * modules/frexp-tests (Files): Add tests/randomd.c.
7047         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
7048         * modules/frexpf-tests (Files): Add tests/randomf.c.
7049         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
7050         * modules/frexpl-tests (Files): Add tests/randoml.c.
7051         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
7052
7053 2012-03-03  Bruno Haible  <bruno@clisp.org>
7054
7055         Support for pseudo-random numbers in tests.
7056         * tests/randomf.c: New file.
7057         * tests/randomd.c: New file.
7058         * tests/randoml.c: New file.
7059         * tests/macros.h (randomf, randomd, randoml): New declarations.
7060
7061 2012-03-03  Bruno Haible  <bruno@clisp.org>
7062
7063         frexp* tests: Refactor.
7064         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
7065         * tests/test-frexp.c: Include and use it.
7066         * tests/test-frexpf.c: Likewise.
7067         * tests/test-frexpl.c: Likewise.
7068         * modules/frexp-tests (Files): Add tests/test-frexp.h.
7069         * modules/frexpf-tests (Files): Likewise.
7070         * modules/frexpl-tests (Files): Likewise.
7071
7072 2012-03-02  Jim Meyering  <meyering@redhat.com>
7073
7074         maint: don't specify XZ_OPT=-9ev in dist-related rule
7075         Using xz's -9 option is warranted only if you have a very large
7076         tarball (see xz's documentation for the sizes vs. presets), and
7077         requires 64MiB of memory at decompression time.
7078         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
7079         Automake's default of just "-e" is fine.  Override on a
7080         per-package basis by setting XZ_OPT e.g., in cfg.mk.
7081
7082 2012-03-01  Eric Blake  <eblake@redhat.com>
7083
7084         maint.mk: allow announcement for non-gnulib project
7085         * maint.mk (announcement): Skip gnulib version if not used.
7086
7087 2012-03-01  Jim Meyering  <meyering@redhat.com>
7088
7089         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
7090         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
7091         envvar settings cannot interfere.  Otherwise, setting envvars like
7092         prohibit=foo require=bar, etc. would cause spurious test failures.
7093
7094 2012-03-01  Eric Blake  <eblake@redhat.com>
7095
7096         maint.mk: add per-line exclusions to prohibitions
7097         * maint.mk (_sc_search_regexp): Add $exclude parameter.
7098         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
7099         (sc_const_long_option): Use it.
7100
7101 2012-03-01  Bruno Haible  <bruno@clisp.org>
7102
7103         Tests for module 'expl-ieee'.
7104         * modules/expl-ieee-tests: New file.
7105         * tests/test-expl-ieee.c: New file.
7106
7107         New module 'expl-ieee'.
7108         * modules/expl-ieee: New file.
7109
7110         Tests for module 'exp-ieee'.
7111         * modules/exp-ieee-tests: New file.
7112         * tests/test-exp-ieee.c: New file.
7113
7114         New module 'exp-ieee'.
7115         * modules/exp-ieee: New file.
7116
7117         Tests for module 'expf-ieee'.
7118         * modules/expf-ieee-tests: New file.
7119         * tests/test-expf-ieee.c: New file.
7120         * tests/test-exp-ieee.h: New file.
7121
7122         New module 'expf-ieee'.
7123         * modules/expf-ieee: New file.
7124
7125 2012-02-29  Bruno Haible  <bruno@clisp.org>
7126
7127         cbrtl-ieee: Work around test failure on IRIX 6.5.
7128         * m4/cbrtl-ieee.m4: New file.
7129         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
7130         test whether cbrtl works with a minus zero argument. Replace it if not.
7131         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
7132         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
7133         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
7134         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
7135         (Depends-on): Update conditions.
7136         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
7137         m4/signbit.m4.
7138         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
7139         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
7140         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
7141
7142         Tests for module 'cbrtl-ieee'.
7143         * modules/cbrtl-ieee-tests: New file.
7144         * tests/test-cbrtl-ieee.c: New file.
7145
7146         New module 'cbrtl-ieee'.
7147         * modules/cbrtl-ieee: New file.
7148
7149         Tests for module 'cbrt-ieee'.
7150         * modules/cbrt-ieee-tests: New file.
7151         * tests/test-cbrt-ieee.c: New file.
7152
7153         New module 'cbrt-ieee'.
7154         * modules/cbrt-ieee: New file.
7155
7156         Tests for module 'cbrtf-ieee'.
7157         * modules/cbrtf-ieee-tests: New file.
7158         * tests/test-cbrtf-ieee.c: New file.
7159         * tests/test-cbrt-ieee.h: New file.
7160
7161         New module 'cbrtf-ieee'.
7162         * modules/cbrtf-ieee: New file.
7163
7164 2012-02-29  Bruno Haible  <bruno@clisp.org>
7165
7166         cbrtf: Work around bug in IRIX 6.5 system function.
7167         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
7168         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
7169         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
7170         work.
7171         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
7172         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
7173         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
7174         (Depends-on): Update conditions.
7175         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
7176
7177 2012-02-29  Bruno Haible  <bruno@clisp.org>
7178
7179         Tests for module 'cbrtl'.
7180         * modules/cbrtl-tests: New file.
7181         * tests/test-cbrtl.c: New file.
7182
7183         New module 'cbrtl'.
7184         * lib/math.in.h (cbrtl): New declaration.
7185         * lib/cbrtl.c: New file.
7186         * m4/cbrtl.m4: New file.
7187         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
7188         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
7189         HAVE_DECL_CBRTL.
7190         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
7191         HAVE_DECL_CBRTL.
7192         * modules/cbrtl: New file.
7193         * tests/test-math-c++.cc: Check the declaration of cbrtl.
7194         * doc/posix-functions/cbrtl.texi: Mention the new module.
7195
7196 2012-02-29  Bruno Haible  <bruno@clisp.org>
7197
7198         Tests for module 'cbrtf'.
7199         * modules/cbrtf-tests: New file.
7200         * tests/test-cbrtf.c: New file.
7201
7202         New module 'cbrtf'.
7203         * lib/math.in.h (cbrtf): New declaration.
7204         * lib/cbrtf.c: New file.
7205         * m4/cbrtf.m4: New file.
7206         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
7207         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
7208         HAVE_DECL_CBRTF.
7209         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
7210         HAVE_DECL_CBRTF.
7211         * modules/cbrtf: New file.
7212         * tests/test-math-c++.cc: Check the declaration of cbrtf.
7213         * doc/posix-functions/cbrtf.texi: Mention the new module.
7214
7215 2012-02-29  Bruno Haible  <bruno@clisp.org>
7216
7217         cbrt: Provide replacement on MSVC and Minix.
7218         * lib/math.in.h (cbrt): New declaration.
7219         * lib/cbrt.c: New file.
7220         * m4/cbrt.m4: New file.
7221         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
7222         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
7223         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
7224         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
7225         (Depends-on): Add dependencies.
7226         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
7227         * tests/test-math-c++.cc: Check the declaration of cbrt.
7228         * doc/posix-functions/cbrt.texi: Mention that the module provides a
7229         replacement.
7230
7231 2012-02-29  Bruno Haible  <bruno@clisp.org>
7232
7233         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
7234         * m4/hypotl-ieee.m4: New file.
7235         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
7236         test whether hypotl works with mixed NaN and Infinity arguments.
7237         Replace it if not.
7238         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
7239         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
7240         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
7241         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
7242         (Depends-on): Update conditions.
7243         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
7244         (Depends-on): Add hypot-ieee.
7245         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
7246         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
7247
7248         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
7249         * m4/hypotf-ieee.m4: New file.
7250         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
7251         test whether hypotf works with mixed NaN and Infinity arguments.
7252         Replace it if not.
7253         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
7254         (Depends-on): Add hypot-ieee.
7255         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
7256         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
7257
7258         hypot-ieee: Work around test failure on OSF/1 and native Windows.
7259         * lib/math.in.h (hypot): New declaration.
7260         * lib/hypot.c: New file.
7261         * m4/hypot-ieee.m4: New file.
7262         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
7263         whether hypot works with mixed NaN and Infinity arguments. Replace it
7264         if not.
7265         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
7266         REPLACE_HYPOT.
7267         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
7268         * modules/hypot (Files): Add lib/hypot.c.
7269         (Depends-on): Add dependencies.
7270         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
7271         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
7272         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
7273         * tests/test-math-c++.cc: Check the declaration of hypot.
7274         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
7275
7276         Tests for module 'hypotl-ieee'.
7277         * modules/hypotl-ieee-tests: New file.
7278         * tests/test-hypotl-ieee.c: New file.
7279
7280         New module 'hypotl-ieee'.
7281         * modules/hypotl-ieee: New file.
7282
7283         Tests for module 'hypot-ieee'.
7284         * modules/hypot-ieee-tests: New file.
7285         * tests/test-hypot-ieee.c: New file.
7286
7287         New module 'hypot-ieee'.
7288         * modules/hypot-ieee: New file.
7289
7290         Tests for module 'hypotf-ieee'.
7291         * modules/hypotf-ieee-tests: New file.
7292         * tests/test-hypotf-ieee.c: New file.
7293         * tests/test-hypot-ieee.h: New file.
7294
7295         New module 'hypotf-ieee'.
7296         * modules/hypotf-ieee: New file.
7297
7298 2012-02-29  Bruno Haible  <bruno@clisp.org>
7299
7300         Remove unused variables.
7301         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
7302         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
7303         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
7304         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
7305
7306 2012-02-29  Eric Blake  <eblake@redhat.com>
7307
7308         termios: fix pid_t always, not just for tcgetsid
7309         * doc/posix-headers/termios.texi (termios.h): Mention problem.
7310         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
7311         just when building tcgetsid.
7312
7313 2012-02-29  Bruno Haible  <bruno@clisp.org>
7314
7315         Tests for module 'hypotl'.
7316         * modules/hypotl-tests: New file.
7317         * tests/test-hypotl.c: New file.
7318
7319         New module 'hypotl'.
7320         * lib/math.in.h (hypotl): New declaration.
7321         * lib/hypotl.c: New file.
7322         * m4/hypotl.m4: New file.
7323         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
7324         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
7325         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
7326         * modules/hypotl: New file.
7327         * tests/test-math-c++.cc: Check the hypotl declaration.
7328         * doc/posix-functions/hypotl.texi: Mention the new module.
7329
7330 2012-02-29  Eric Blake  <eblake@redhat.com>
7331
7332         tcgetsid: fix cygwin header bug
7333         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
7334
7335         docs: update cygwin progress
7336         * doc/posix-functions/llround.texi (llround): Added in cygwin
7337         1.7.8.
7338         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
7339         * doc/glibc-functions/program_invocation_name.texi
7340         (program_invocation_name): Likewise.
7341         * doc/glibc-functions/program_invocation_short_name.texi
7342         (program_invocation_short_name): Likewise.
7343         * doc/glibc-functions/madvise.texi (madvise): Likewise.
7344         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
7345         Likewise.
7346         * doc/posix-functions/pthread_spin_destroy.texi
7347         (pthread_spin_destroy): Added in cygwin 1.7.10.
7348         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
7349         Likewise.
7350         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
7351         Likewise.
7352         * doc/posix-functions/pthread_spin_trylock.texi
7353         (pthread_spin_trylock): Likewise.
7354         * doc/posix-functions/pthread_spin_unlock.texi
7355         (pthread_spin_unlock): Likewise.
7356         * doc/posix-functions/pthread_setschedprio.texi
7357         (pthread_setschedprio): Likewise.
7358         * doc/posix-functions/pthread_attr_getstack.texi
7359         (pthread_attr_getstack): Likewise.
7360         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
7361         (pthread_attr_getstackaddr): Likewise.
7362         * doc/glibc-functions/pthread_getattr_np.texi
7363         (pthread_getattr_np): Likewise.
7364         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
7365         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
7366         * doc/posix-functions/clock_settime.texi (clock_settime):
7367         Likewise.
7368         * doc/posix-functions/pthread_attr_getguardsize.texi
7369         (pthread_attr_getguardsize): Likewise.
7370         * doc/posix-functions/pthread_attr_setguardsize.texi
7371         (pthread_attr_setguardsize): Likewise.
7372         * doc/posix-functions/pthread_attr_setstack.texi
7373         (pthread_attr_setstack): Likewise.
7374         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
7375         (pthread_attr_setstackaddr): Likewise.
7376         * doc/posix-functions/clock_getcpuclockid.texi
7377         (clock_getcpuclockid): Likewise.
7378         * doc/posix-functions/pthread_getcpuclockid.texi
7379         (pthread_getcpuclockid): Likewise.
7380         * doc/glibc-functions/error.texi (error): Likewise.
7381         * doc/glibc-functions/error_at_line.texi (error_at_line):
7382         Likewise.
7383         * doc/glibc-functions/error_message_count.texi
7384         (error_message_count): Likewise.
7385         * doc/glibc-functions/error_one_per_line.texi
7386         (error_one_per_line): Likewise.
7387         * doc/glibc-functions/error_print_progname.texi
7388         (error_print_progname): Likewise.
7389         * doc/posix-functions/pthread_condattr_getclock.texi
7390         (pthread_condattr_getclock): Likewise.
7391         * doc/posix-functions/pthread_condattr_setclock.texi
7392         (pthread_condattr_setclock): Likewise.
7393         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
7394         Likewise.
7395         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
7396         * doc/glibc-functions/getpt.texi (getpt): Likewise.
7397         * doc/glibc-functions/get_current_dir_name.texi
7398         (get_current_dir_name): Likewise.
7399         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
7400         Likewise.
7401         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
7402         wrong return type.
7403         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
7404         1.7.11.
7405
7406 2012-02-29  Bruno Haible  <bruno@clisp.org>
7407
7408         Tests for module 'hypotf'.
7409         * modules/hypotf-tests: New file.
7410         * tests/test-hypotf.c: New file.
7411
7412         New module 'hypotf'.
7413         * lib/math.in.h (hypotf): New declaration.
7414         * lib/hypotf.c: New file.
7415         * m4/hypotf.m4: New file.
7416         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
7417         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
7418         REPLACE_HYPOTF.
7419         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
7420         REPLACE_HYPOTF.
7421         * modules/hypotf: New file.
7422         * tests/test-math-c++.cc: Check the hypotf declaration.
7423         * doc/posix-functions/hypotf.texi: Mention the new module.
7424
7425         hypot: Prepare for hypotf module.
7426         * m4/hypot.m4: New file.
7427         * modules/hypot (Files): Add m4/hypot.m4.
7428         (configure.ac): Invoke gl_FUNC_HYPOT.
7429
7430 2012-02-29  Bruno Haible  <bruno@clisp.org>
7431
7432         hypot tests: More tests.
7433         * tests/test-hypot.c: Include <float.h>.
7434         (main): Add tests about overflow and underflow.
7435
7436 2012-02-29  Bruno Haible  <bruno@clisp.org>
7437
7438         math code: Add comments.
7439         * lib/acosl.c: Add comment about related glibc source files.
7440         * lib/asinl.c: Likewise.
7441         * lib/atanl.c: Likewise.
7442         * lib/expl.c: Likewise.
7443         * lib/logl.c: Likewise.
7444         * lib/sincosl.c: Likewise.
7445         * lib/sinl.c: Likewise.
7446         * lib/tanl.c: Likewise.
7447         * lib/trigl.c: Likewise.
7448         * lib/cosl.c: Likewise. Fix comments.
7449
7450 2012-02-28  Bruno Haible  <bruno@clisp.org>
7451
7452         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
7453         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
7454         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
7455         HUGE_VALL are defined.
7456         (numeric_equald): Renamed from numeric_equal.
7457         (numeric_equalf, numeric_equall): New functions.
7458         (main): Check also HUGE_VALF, HUGE_VALL.
7459         * modules/math-tests (Files): Add tests/macros.h.
7460         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
7461         HUGE_VALL.
7462
7463 2012-02-28  Bruno Haible  <bruno@clisp.org>
7464
7465         doc: Move ISO C11 feature notes into POSIX chapters.
7466         * doc/posix-functions/aligned_alloc.texi: Renamed from
7467         doc/glibc-functions/aligned_alloc.texi.
7468         * doc/posix-functions/quick_exit.texi: Renamed from
7469         doc/glibc-functions/quick_exit.texi.
7470         * doc/posix-headers/uchar.texi: Renamed from
7471         doc/glibc-headers/uchar.texi.
7472         * doc/posix-functions/c16rtomb.texi: Renamed from
7473         doc/glibc-functions/c16rtomb.texi.
7474         * doc/posix-functions/c32rtomb.texi: Renamed from
7475         doc/glibc-functions/c32rtomb.texi.
7476         * doc/posix-functions/mbrtoc16.texi: Renamed from
7477         doc/glibc-functions/mbrtoc16.texi.
7478         * doc/posix-functions/mbrtoc32.texi: Renamed from
7479         doc/glibc-functions/mbrtoc32.texi.
7480         * doc/gnulib.texi: Update.
7481         (Glibc uchar.h): Remove section.
7482         Suggested by Eric Blake.
7483
7484 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
7485
7486         stdnoreturn: port to MSVC better
7487         MSVC standard headers use __declspec(noreturn), so #define noreturn
7488         to empty on that platform.  Reported by Bruno Haible in
7489         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
7490         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
7491         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
7492
7493 2012-02-28  Bruno Haible  <bruno@clisp.org>
7494
7495         doc: Mention new glibc headers and functions.
7496         * doc/glibc-headers/uchar.texi: New file.
7497         * doc/glibc-functions/aligned_alloc.texi: New file.
7498         * doc/glibc-functions/c16rtomb.texi: New file.
7499         * doc/glibc-functions/c32rtomb.texi: New file.
7500         * doc/glibc-functions/clock_adjtime.texi: New file.
7501         * doc/glibc-functions/fanotify_init.texi: New file.
7502         * doc/glibc-functions/fanotify_mark.texi: New file.
7503         * doc/glibc-functions/inet6_opt_append.texi: New file.
7504         * doc/glibc-functions/inet6_opt_find.texi: New file.
7505         * doc/glibc-functions/inet6_opt_finish.texi: New file.
7506         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
7507         * doc/glibc-functions/inet6_opt_init.texi: New file.
7508         * doc/glibc-functions/inet6_opt_next.texi: New file.
7509         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
7510         * doc/glibc-functions/inet6_rth_add.texi: New file.
7511         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
7512         * doc/glibc-functions/inet6_rth_init.texi: New file.
7513         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
7514         * doc/glibc-functions/inet6_rth_segments.texi: New file.
7515         * doc/glibc-functions/inet6_rth_space.texi: New file.
7516         * doc/glibc-functions/login.texi: New file.
7517         * doc/glibc-functions/mbrtoc16.texi: New file.
7518         * doc/glibc-functions/mbrtoc32.texi: New file.
7519         * doc/glibc-functions/name_to_handle_at.texi: New file.
7520         * doc/glibc-functions/ntp_gettimex.texi: New file.
7521         * doc/glibc-functions/open_by_handle_at.texi: New file.
7522         * doc/glibc-functions/prlimit.texi: New file.
7523         * doc/glibc-functions/process_vm_readv.texi: New file.
7524         * doc/glibc-functions/process_vm_writev.texi: New file.
7525         * doc/glibc-functions/recvmmsg.texi: New file.
7526         * doc/glibc-functions/scandirat.texi: New file.
7527         * doc/glibc-functions/sendmmsg.texi: New file.
7528         * doc/glibc-functions/setns.texi: New file.
7529         * doc/glibc-functions/timespec_get.texi: New file.
7530         * doc/gnulib.texi: Include them.
7531         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
7532         sections.
7533         Reported by Eric Blake.
7534
7535 2012-02-28  Bruno Haible  <bruno@clisp.org>
7536
7537         Avoid compilation errors with MSVC option -fp:strict.
7538         * lib/floor.c: Use MSVC specific pragma fenv_access.
7539         * lib/ceil.c: Likewise.
7540         * lib/trunc.c: Likewise.
7541         * lib/round.c: Likewise.
7542         * lib/rint.c: Likewise.
7543         * lib/fma.c: Likewise.
7544         * lib/integer_length.c: Likewise.
7545         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
7546         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
7547         * tests/test-floor2.c: Likewise.
7548         * tests/test-floorf2.c: Likewise.
7549         * tests/test-ceil2.c: Likewise.
7550         * tests/test-ceilf2.c: Likewise.
7551         * tests/test-trunc2.c: Likewise.
7552         * tests/test-truncf2.c: Likewise.
7553         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7554
7555 2012-02-27  Bruno Haible  <bruno@clisp.org>
7556
7557         Tests for module 'sqrtl-ieee'.
7558         * modules/sqrtl-ieee-tests: New file.
7559         * tests/test-sqrtl-ieee.c: New file.
7560
7561         New module 'sqrtl-ieee'.
7562         * modules/sqrtl-ieee: New file.
7563
7564         Tests for module 'sqrt-ieee'.
7565         * modules/sqrt-ieee-tests: New file.
7566         * tests/test-sqrt-ieee.c: New file.
7567
7568         New module 'sqrt-ieee'.
7569         * modules/sqrt-ieee: New file.
7570
7571         Tests for module 'sqrtf-ieee'.
7572         * modules/sqrtf-ieee-tests: New file.
7573         * tests/test-sqrtf-ieee.c: New file.
7574         * tests/test-sqrt-ieee.h: New file.
7575
7576         New module 'sqrtf-ieee'.
7577         * modules/sqrtf-ieee: New file.
7578
7579 2012-02-27  Bruno Haible  <bruno@clisp.org>
7580
7581         remainderl-ieee: Work around test failure on OSF/1.
7582         * m4/remainderl-ieee.m4: New file.
7583         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
7584         present, test whether remainderl works with a zero second argument.
7585         Replace it if not.
7586         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
7587         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
7588         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
7589         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
7590         (Depends-on): Update conditions.
7591         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
7592         (Depends-on): Add remainder-ieee.
7593         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
7594         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
7595         module.
7596
7597         remainderf-ieee: Work around test failure on OSF/1.
7598         * m4/remainderf-ieee.m4: New file.
7599         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
7600         present, test whether remainderf works with a zero second argument.
7601         Replace it if not.
7602         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
7603         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
7604         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
7605         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
7606         (Depends-on): Update conditions.
7607         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
7608         (Depends-on): Add remainder-ieee.
7609         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
7610         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
7611         module.
7612
7613         remainder-ieee: Work around test failure on OSF/1.
7614         * m4/remainder-ieee.m4: New file.
7615         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
7616         present, test whether remainder works with a zero second argument.
7617         Replace it if not.
7618         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
7619         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
7620         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
7621         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
7622         (Depends-on): Update dependencies.
7623         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
7624         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
7625         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
7626
7627         Tests for module 'remainderl-ieee'.
7628         * modules/remainderl-ieee-tests: New file.
7629         * tests/test-remainderl-ieee.c: New file.
7630
7631         New module 'remainderl-ieee'.
7632         * modules/remainderl-ieee: New file.
7633
7634         Tests for module 'remainder-ieee'.
7635         * modules/remainder-ieee-tests: New file.
7636         * tests/test-remainder-ieee.c: New file.
7637
7638         New module 'remainder-ieee'.
7639         * modules/remainder-ieee: New file.
7640
7641         Tests for module 'remainderf-ieee'.
7642         * modules/remainderf-ieee-tests: New file.
7643         * tests/test-remainderf-ieee.c: New file.
7644         * tests/test-remainder-ieee.h: New file.
7645
7646         New module 'remainderf-ieee'.
7647         * modules/remainderf-ieee: New file.
7648
7649 2012-02-27  Bruno Haible  <bruno@clisp.org>
7650
7651         modff, modfl: Fix configure syntax error.
7652         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
7653         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
7654
7655 2012-02-27  Bruno Haible  <bruno@clisp.org>
7656
7657         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
7658         * m4/fmodl-ieee.m4: New file.
7659         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
7660         whether fmodl works with zero arguments. Replace it if not.
7661         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
7662         (Depends-on): Add fmod-ieee.
7663         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
7664         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
7665
7666         fmodf-ieee: Work around test failure on OSF/1.
7667         * m4/fmodf-ieee.m4: New file.
7668         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
7669         whether fmodf works with zero arguments. Replace it if not.
7670         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
7671         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
7672         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
7673         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
7674         (Depends-on): Update dependencies.
7675         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
7676         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
7677         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
7678
7679         fmodf-ieee: Work around test failure on MSVC 9.
7680         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
7681         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
7682
7683         fmod-ieee: Work around test failures on OSF/1, mingw.
7684         * m4/fmod-ieee.m4: New file.
7685         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
7686         whether fmod works with zero arguments. Replace it if not.
7687         * lib/math.in.h (fmod): New declaration.
7688         * lib/fmod.c: New file.
7689         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
7690         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
7691         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
7692         * modules/fmod (Files): Add lib/fmod.c.
7693         (Depends-on): Add math, isinf, trunc, fma.
7694         (configure.ac): Arrange to compile lib/fmod.c if needed.
7695         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
7696         m4/signbit.m4.
7697         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
7698         * tests/test-math-c++.cc: Check the declaration of fmod.
7699         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
7700
7701         fmodl-ieee: Fix test failures.
7702         * lib/fmodl.c (fmodl): Treat Inf specially.
7703         * modules/fmodl (Depends-on): Add isinf.
7704
7705         Tests for module 'fmodl-ieee'.
7706         * modules/fmodl-ieee-tests: New file.
7707         * tests/test-fmodl-ieee.c: New file.
7708
7709         New module 'fmodl-ieee'.
7710         * modules/fmodl-ieee: New file.
7711
7712         Tests for module 'fmod-ieee'.
7713         * modules/fmod-ieee-tests: New file.
7714         * tests/test-fmod-ieee.c: New file.
7715
7716         New module 'fmod-ieee'.
7717         * modules/fmod-ieee: New file.
7718
7719         Tests for module 'fmodf-ieee'.
7720         * modules/fmodf-ieee-tests: New file.
7721         * tests/test-fmodf-ieee.c: New file.
7722         * tests/test-fmod-ieee.h: New file.
7723
7724         New module 'fmodf-ieee'.
7725         * modules/fmodf-ieee: New file.
7726
7727 2012-02-27  Bruno Haible  <bruno@clisp.org>
7728
7729         Tests for module 'rintl-ieee'.
7730         * modules/rintl-ieee-tests: New file.
7731         * tests/test-rintl-ieee.c: New file.
7732
7733         New module 'rintl-ieee'.
7734         * modules/rintl-ieee: New file.
7735
7736         Tests for module 'rint-ieee'.
7737         * modules/rint-ieee-tests: New file.
7738         * tests/test-rint-ieee.c: New file.
7739
7740         New module 'rint-ieee'.
7741         * modules/rint-ieee: New file.
7742
7743         Tests for module 'rintf-ieee'.
7744         * modules/rintf-ieee-tests: New file.
7745         * tests/test-rintf-ieee.c: New file.
7746         * tests/test-rint-ieee.h: New file.
7747
7748         New module 'rintf-ieee'.
7749         * modules/rintf-ieee: New file.
7750
7751 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
7752
7753         regex: re_search etc. should return -2 when memory exhausted
7754         This bug was uncovered when testing 'grep'.  Without the fix,
7755         re_search and friends return -1 when memory is exhausted, but -1
7756         means no match, and this causes grep to falsely report no-match
7757         instead of memory-exhaustion.  See
7758         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
7759         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
7760         trouble; this can occur if re_search_internal ran out of memory.
7761
7762 2012-02-26  Bruno Haible  <bruno@clisp.org>
7763
7764         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
7765         * m4/modfl-ieee.m4: New file.
7766         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
7767         whether modfl works with Inf. Replace it if not.
7768         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
7769         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
7770         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
7771         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
7772         (Depends-on): Update dependencies.
7773         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
7774         m4/signbit.m4.
7775         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
7776         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
7777
7778         modfl-ieee: Fix dependencies.
7779         * modules/modfl-ieee (Depends-on): Add modf-ieee.
7780
7781         modfl-ieee: Fix test failures.
7782         * lib/modfl.c (modfl): Treat NaN and Inf specially.
7783         * modules/modfl (Depends-on): Add isfinite, isinf.
7784
7785         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
7786         * m4/modff-ieee.m4: New file.
7787         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
7788         whether modff works with NaN and Inf. Replace it if not.
7789         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
7790         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
7791         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
7792         * modules/modff (configure.ac): Consider REPLACE_MODFF.
7793         (Depends-on): Update dependencies.
7794         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
7795         m4/signbit.m4.
7796         (Depends-on): Add modf-ieee.
7797         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
7798         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
7799
7800         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
7801         * m4/modf-ieee.m4: New file.
7802         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
7803         whether modf works with NaN and Inf. Replace it if not.
7804         * lib/math.in.h (modf): New declaration.
7805         * lib/modf.c: New file.
7806         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
7807         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
7808         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
7809         * modules/modf (Files): Add lib/modf.c.
7810         (Depends-on): Add math, isfinite, trunc, isinf.
7811         (configure.ac): Addrange to compile lib/modf.c if needed.
7812         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
7813         m4/signbit.m4.
7814         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
7815         * tests/test-math-c++.cc: Check the declaration of modf.
7816         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
7817
7818         Tests for module 'modfl-ieee'.
7819         * modules/modfl-ieee-tests: New file.
7820         * tests/test-modfl-ieee.c: New file.
7821
7822         New module 'modfl-ieee'.
7823         * modules/modfl-ieee: New file.
7824
7825         Tests for module 'modf-ieee'.
7826         * modules/modf-ieee-tests: New file.
7827         * tests/test-modf-ieee.c: New file.
7828
7829         New module 'modf-ieee'.
7830         * modules/modf-ieee: New file.
7831
7832         Tests for module 'modff-ieee'.
7833         * modules/modff-ieee-tests: New file.
7834         * tests/test-modff-ieee.c: New file.
7835         * tests/test-modf-ieee.h: New file.
7836
7837         New module 'modff-ieee'.
7838         * modules/modff-ieee: New file.
7839
7840 2012-02-26  Bruno Haible  <bruno@clisp.org>
7841
7842         Tests for module 'fabsl-ieee'.
7843         * modules/fabsl-ieee-tests: New file.
7844         * tests/test-fabsl-ieee.c: New file.
7845
7846         New module 'fabsl-ieee'.
7847         * modules/fabsl-ieee: New file.
7848
7849         Tests for module 'fabs-ieee'.
7850         * modules/fabs-ieee-tests: New file.
7851         * tests/test-fabs-ieee.c: New file.
7852
7853         New module 'fabs-ieee'.
7854         * modules/fabs-ieee: New file.
7855
7856         Tests for module 'fabsf-ieee'.
7857         * modules/fabsf-ieee-tests: New file.
7858         * tests/test-fabsf-ieee.c: New file.
7859         * tests/test-fabs-ieee.h: New file.
7860
7861         New module 'fabsf-ieee'.
7862         * modules/fabsf-ieee: New file.
7863
7864 2012-02-26  Bruno Haible  <bruno@clisp.org>
7865
7866         Tests for module 'fmal-ieee'.
7867         * modules/fmal-ieee-tests: New file.
7868         * tests/test-fmal-ieee.c: New file.
7869
7870         New module 'fmal-ieee'.
7871         * modules/fmal-ieee: New file.
7872
7873         Tests for module 'fma-ieee'.
7874         * modules/fma-ieee-tests: New file.
7875         * tests/test-fma-ieee.c: New file.
7876
7877         New module 'fma-ieee'.
7878         * modules/fma-ieee: New file.
7879
7880         Tests for module 'fmaf-ieee'.
7881         * modules/fmaf-ieee-tests: New file.
7882         * tests/test-fmaf-ieee.c: New file.
7883         * tests/test-fma-ieee.h: New file.
7884
7885         New module 'fmaf-ieee'.
7886         * modules/fmaf-ieee: New file.
7887
7888 2012-02-26  Bruno Haible  <bruno@clisp.org>
7889
7890         Tests for module 'ldexpl-ieee'.
7891         * modules/ldexpl-ieee-tests: New file.
7892         * tests/test-ldexpl-ieee.c: New file.
7893
7894         New module 'ldexpl-ieee'.
7895         * modules/ldexpl-ieee: New file.
7896
7897         Tests for module 'ldexp-ieee'.
7898         * modules/ldexp-ieee-tests: New file.
7899         * tests/test-ldexp-ieee.c: New file.
7900
7901         New module 'ldexp-ieee'.
7902         * modules/ldexp-ieee: New file.
7903
7904         Tests for module 'ldexpf-ieee'.
7905         * modules/ldexpf-ieee-tests: New file.
7906         * tests/test-ldexpf-ieee.c: New file.
7907         * tests/test-ldexp-ieee.h: New file.
7908
7909         New module 'ldexpf-ieee'.
7910         * modules/ldexpf-ieee: New file.
7911
7912 2012-02-26  Bruno Haible  <bruno@clisp.org>
7913
7914         Refactor frexp*-ieee tests.
7915         * tests/test-frexp-ieee.h: New file.
7916         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
7917         (main): Just call test_function.
7918         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
7919         (main): Just call test_function.
7920         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
7921         (main): Just call test_function.
7922         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
7923         * modules/frexp-ieee-tests (Files): Likewise.
7924         * modules/frexpl-ieee-tests (Files): Likewise.
7925
7926         Tests for module 'frexpl-ieee'.
7927         * modules/frexpl-ieee-tests: New file.
7928         * tests/test-frexpl-ieee.c: New file.
7929
7930         New module 'frexpl-ieee'.
7931         * modules/frexpl-ieee: New file.
7932
7933         Tests for module 'frexp-ieee'.
7934         * modules/frexp-ieee-tests: New file.
7935         * tests/test-frexp-ieee.c: New file.
7936
7937         New module 'frexp-ieee'.
7938         * modules/frexp-ieee: New file.
7939
7940         Tests for module 'frexpf-ieee'.
7941         * modules/frexpf-ieee-tests: New file.
7942         * tests/test-frexpf-ieee.c: New file.
7943
7944         New module 'frexpf-ieee'.
7945         * modules/frexpf-ieee: New file.
7946
7947 2012-02-26  Bruno Haible  <bruno@clisp.org>
7948
7949         roundl-ieee tests: More tests.
7950         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7951         (main): Add tests for [MX] shaded specification in POSIX.
7952         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7953         (Depends-on): Add isnanl-nolibm.
7954
7955         round-ieee tests: More tests.
7956         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7957         (main): Add tests for [MX] shaded specification in POSIX.
7958         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7959         (Depends-on): Add isnand-nolibm.
7960
7961         roundf-ieee tests: More tests.
7962         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7963         (main): Add tests for [MX] shaded specification in POSIX.
7964         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7965         (Depends-on): Add isnanf-nolibm.
7966
7967         truncl-ieee tests: More tests.
7968         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7969         (main): Add tests for [MX] shaded specification in POSIX.
7970         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7971         (Depends-on): Add isnanl-nolibm.
7972
7973         trunc-ieee tests: More tests.
7974         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7975         (main): Add tests for [MX] shaded specification in POSIX.
7976         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7977         (Depends-on): Add isnand-nolibm.
7978
7979         truncf-ieee tests: More tests.
7980         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7981         (main): Add tests for [MX] shaded specification in POSIX.
7982         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7983         (Depends-on): Add isnanf-nolibm.
7984
7985         ceill-ieee tests: More tests.
7986         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7987         (main): Add tests for [MX] shaded specification in POSIX.
7988         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7989         (Depends-on): Add isnanl-nolibm.
7990
7991         ceil-ieee tests: More tests.
7992         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7993         (main): Add tests for [MX] shaded specification in POSIX.
7994         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7995         (Depends-on): Add isnand-nolibm.
7996
7997         ceilf-ieee tests: More tests.
7998         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7999         (main): Add tests for [MX] shaded specification in POSIX.
8000         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8001         (Depends-on): Add isnanf-nolibm.
8002
8003         floorl-ieee tests: More tests.
8004         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8005         (main): Add tests for [MX] shaded specification in POSIX.
8006         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8007         (Depends-on): Add isnanl-nolibm.
8008
8009         floor-ieee tests: More tests.
8010         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8011         (main): Add tests for [MX] shaded specification in POSIX.
8012         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8013         (Depends-on): Add isnand-nolibm.
8014
8015         floorf-ieee tests: More tests.
8016         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8017         (main): Add tests for [MX] shaded specification in POSIX.
8018         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8019         (Depends-on): Add isnanf-nolibm.
8020
8021 2012-02-26  Bruno Haible  <bruno@clisp.org>
8022
8023         fpieee: More comments.
8024         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
8025
8026 2012-02-25  Bruno Haible  <bruno@clisp.org>
8027
8028         Tests for module 'log10l'.
8029         * modules/log10l-tests: New file.
8030         * tests/test-log10l.c: New file.
8031         * tests/test-math-c++.cc: Check the declaration of log10l.
8032
8033         New module 'log10l'.
8034         * lib/math.in.h (log10l): New declaration.
8035         * lib/log10l.c: New file.
8036         * m4/log10l.m4: New file.
8037         * modules/log10l: New file.
8038         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
8039         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
8040         HAVE_DECL_LOG10L.
8041         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
8042         HAVE_DECL_LOG10L.
8043         * doc/posix-functions/log10l.texi: Mention the new module.
8044
8045 2012-02-25  Bruno Haible  <bruno@clisp.org>
8046
8047         fmodl, remainder*: Avoid wrong results due to rounding errors.
8048         * lib/fmodl.c (fmodl): Correct the result if it is not within the
8049         expected bounds.
8050         * lib/remainderf.c (remainderf): Likewise.
8051         * lib/remainder.c (remainder): Likewise.
8052         * lib/remainderl.c (remainderl): Likewise.
8053
8054 2012-02-25  Bruno Haible  <bruno@clisp.org>
8055
8056         Tests for module 'remainderl'.
8057         * modules/remainderl-tests: New file.
8058         * tests/test-remainderl.c: New file.
8059         * tests/test-math-c++.cc: Check the declaration of remainderl.
8060
8061         New module 'remainderl'.
8062         * lib/math.in.h (remainderl): New declaration.
8063         * lib/remainderl.c: New file.
8064         * m4/remainderl.m4: New file.
8065         * modules/remainderl: New file.
8066         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
8067         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
8068         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
8069         HAVE_REMAINDERL.
8070         * doc/posix-functions/remainderl.texi: Mention the new module.
8071
8072 2012-02-25  Bruno Haible  <bruno@clisp.org>
8073
8074         Tests for module 'remainderf'.
8075         * modules/remainderf-tests: New file.
8076         * tests/test-remainderf.c: New file.
8077         * tests/test-math-c++.cc: Check the declaration of remainderf.
8078
8079         New module 'remainderf'.
8080         * lib/math.in.h (remainderf): New declaration.
8081         * lib/remainderf.c: New file.
8082         * m4/remainderf.m4: New file.
8083         * modules/remainderf: New file.
8084         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
8085         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
8086         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
8087         HAVE_REMAINDERF.
8088         * doc/posix-functions/remainderf.texi: Mention the new module.
8089
8090 2012-02-25  Bruno Haible  <bruno@clisp.org>
8091
8092         remainder: Support for MSVC.
8093         * lib/math.in.h (remainder): New declaration.
8094         * lib/remainder.c: New file.
8095         * m4/remainder.m4: New file.
8096         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
8097         (Depends-on): Add math, round, fma.
8098         (configure.ac): Use results of gl_FUNC_REMAINDER.
8099         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
8100         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
8101         HAVE_DECL_REMAINDER.
8102         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
8103         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
8104         * tests/test-math-c++.cc: Check the declaration of remainder.
8105         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
8106         problems are fixed.
8107
8108 2012-02-25  Bruno Haible  <bruno@clisp.org>
8109
8110         Tests for module 'fmodl'.
8111         * modules/fmodl-tests: New file.
8112         * tests/test-fmodl.c: New file.
8113         * tests/test-math-c++.cc: Check the declaration of fmodl.
8114
8115         New module 'fmodl'.
8116         * lib/math.in.h (fmodl): New declaration.
8117         * lib/fmodl.c: New file.
8118         * m4/fmodl.m4: New file.
8119         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
8120         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
8121         REPLACE_FMODL.
8122         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
8123         REPLACE_FMODL.
8124         * modules/fmodl: New file.
8125         * doc/posix-functions/fmodl.texi: Mention the new module.
8126
8127 2012-02-25  Bruno Haible  <bruno@clisp.org>
8128
8129         Tests for module 'modfl'.
8130         * modules/modfl-tests: New file.
8131         * tests/test-modfl.c: New file.
8132         * tests/test-math-c++.cc: Check the declaration of modfl.
8133
8134         New module 'modfl'.
8135         * lib/math.in.h (modfl): New declaration.
8136         * lib/modfl.c: New file.
8137         * m4/modfl.m4: New file.
8138         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
8139         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
8140         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
8141         * modules/modfl: New file.
8142         * doc/posix-functions/modfl.texi: Mention the new module.
8143
8144 2012-02-25  Bruno Haible  <bruno@clisp.org>
8145
8146         Tests for module 'fabsl'.
8147         * modules/fabsl-tests: New file.
8148         * tests/test-fabsl.c: New file.
8149         * tests/test-math-c++.cc: Check the declaration of fabsl.
8150
8151         New module 'fabsl'.
8152         * lib/math.in.h (fabsl): New declaration.
8153         * lib/fabsl.c: New file.
8154         * m4/fabsl.m4: New file.
8155         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
8156         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
8157         REPLACE_FABSL.
8158         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
8159         REPLACE_FABSL.
8160         * modules/fabsl: New file.
8161         * doc/posix-functions/fabsl.texi: Mention the new module.
8162
8163 2012-02-25  Bruno Haible  <bruno@clisp.org>
8164
8165         fabs tests: More tests.
8166         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
8167         (zero): New variable.
8168         (main): Add tests for signed zero.
8169         * modules/fabs-tests (Files): Add tests/minus-zero.h.
8170
8171         fabsf tests: More tests.
8172         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
8173         (zero): New variable.
8174         (main): Add tests for signed zero.
8175         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
8176
8177 2012-02-24  Bruno Haible  <bruno@clisp.org>
8178
8179         atanl: Provide function definition on MSVC.
8180         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
8181         function pointer.
8182         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
8183
8184 2012-02-24  Bruno Haible  <bruno@clisp.org>
8185
8186         acosl: Provide function definition on MSVC.
8187         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
8188         function pointer.
8189         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
8190
8191 2012-02-24  Bruno Haible  <bruno@clisp.org>
8192
8193         asinl: Provide function definition on MSVC.
8194         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
8195         function pointer.
8196         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
8197
8198 2012-02-24  Bruno Haible  <bruno@clisp.org>
8199
8200         tanl: Provide function definition on MSVC.
8201         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
8202         function pointer.
8203         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
8204
8205 2012-02-24  Bruno Haible  <bruno@clisp.org>
8206
8207         cosl: Provide function definition on MSVC.
8208         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
8209         function pointer.
8210         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
8211
8212 2012-02-24  Bruno Haible  <bruno@clisp.org>
8213
8214         sinl: Provide function definition on MSVC.
8215         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
8216         function pointer.
8217         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
8218
8219 2012-02-24  Bruno Haible  <bruno@clisp.org>
8220
8221         logl: Provide function definition on MSVC.
8222         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
8223         function pointer.
8224         * lib/math.in.h (logl): Undefine if it does not exist as a function.
8225
8226 2012-02-24  Bruno Haible  <bruno@clisp.org>
8227
8228         expl: Provide function definition on MSVC.
8229         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
8230         function pointer.
8231         * lib/math.in.h (expl): Undefine if it does not exist as a function.
8232
8233 2012-02-24  Bruno Haible  <bruno@clisp.org>
8234
8235         sqrtl: Provide function definition on MSVC.
8236         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
8237         a function pointer.
8238         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
8239
8240 2012-02-24  Bruno Haible  <bruno@clisp.org>
8241
8242         ceill: Provide function definition on MSVC.
8243         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
8244         used as a function pointer.
8245         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
8246
8247 2012-02-24  Bruno Haible  <bruno@clisp.org>
8248
8249         floorl: Provide function definition on MSVC.
8250         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
8251         used as a function pointer.
8252         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
8253
8254 2012-02-24  Bruno Haible  <bruno@clisp.org>
8255
8256         ceilf: Provide function definition on MSVC.
8257         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
8258         used as a function pointer.
8259         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
8260
8261 2012-02-24  Bruno Haible  <bruno@clisp.org>
8262
8263         floorf: Provide function definition on MSVC.
8264         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
8265         used as a function pointer.
8266         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
8267
8268 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
8269
8270         stdnoreturn: new module
8271         This implements a replacement for C11's <stdnoreturn.h>.
8272         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
8273         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
8274         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
8275         * tests/test-stdnoreturn.c: New files.
8276
8277 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
8278
8279         regex: fix false multibyte matches in some regular expressions
8280         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
8281         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
8282         * lib/regex_internal.c (re_string_skip_chars):
8283         Fix miscomputation of remain_len that may cause incomplete
8284         multi-byte character and false match.
8285
8286 2012-02-24  Jim Meyering  <meyering@redhat.com>
8287
8288         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
8289         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
8290         uses with "==" *before* the call, e.g., 0 == strcmp (...)
8291         Remove now-unnecessary str''cmp obfuscation.
8292         Suggested by Akim Demaille.
8293
8294 2012-02-24  Bruno Haible  <bruno@clisp.org>
8295
8296         streq: Rename macro.
8297         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
8298         * NEWS: Mention the change.
8299         * lib/mbrtowc.c (mbrtowc): Update.
8300         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
8301         * lib/wcwidth.c (wcwidth): Update.
8302         Suggested by Akim Demaille and Jim Meyering.
8303
8304 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
8305
8306         regex: fix typo in definition of MIN
8307         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
8308         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
8309
8310 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
8311             Bruno Haible  <bruno@clisp.org>
8312
8313         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
8314         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
8315         entries into a stack-allocated buffer directly.
8316         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
8317
8318 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
8319             Bruno Haible  <bruno@clisp.org>
8320
8321         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
8322
8323          - There were several instances of this pattern:
8324
8325              for (;;) {
8326                n = acl (f, GETACLCNT, 0, NULL);
8327                [ allocate an array A of size N ]
8328                if (acl (f, GETACL, n, a) == n)
8329                  break;
8330              }
8331
8332            This loop might never terminate if some other process is constantly
8333            manipulating the file's ACL.  The loop should be rewritten to
8334            terminate.
8335
8336          - The acl (... GETACLNT ...) call is merely an optimization; its value
8337            is merely a hint as to how big to make the array.  A better
8338            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
8339            and just guess a reasonably-big size, growing the size and trying
8340            again if it's not large enough.  This guarantees termination, and
8341            saves a system call.
8342
8343         * lib/acl-internal.h: Include <limits.h>.
8344         (MIN, SIZE_MAX): New macros.
8345         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
8346         a stack-allocated buffer, and use malloc if it does not fit. Don't
8347         use GETACLCNT.
8348         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
8349
8350 2012-02-19  Bruno Haible  <bruno@clisp.org>
8351
8352         acl: Fix endless loop on Solaris with vxfs.
8353         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
8354         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
8355         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
8356         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
8357         * tests/test-sameacls.c (main)[Solaris]: Likewise.
8358         Reported by Bill Jones in
8359         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
8360
8361 2012-02-19  Bruno Haible  <bruno@clisp.org>
8362
8363         acl: Fix copy-acl test failure on Solaris 11 2011-11.
8364         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
8365         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
8366         that this function returns 0 in some more cases.
8367
8368 2012-02-19  Bruno Haible  <bruno@clisp.org>
8369
8370         acl: Update doc references.
8371         * doc/acl-resources.txt: Update links to Solaris documentation.
8372
8373 2012-02-19  Bruno Haible  <bruno@clisp.org>
8374
8375         Fix test failure in many locales on Solaris 11.
8376         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
8377         'tr' arguments.
8378         * tests/test-pipe-filter-ii1.c (main): Likewise.
8379         * build-aux/bootstrap (check_versions): Run 'tr' command with range
8380         expressions in the C locale.
8381         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
8382         * m4/host-os.m4 (gl_HOST_OS): Likewise.
8383
8384 2012-02-19  Bruno Haible  <bruno@clisp.org>
8385
8386         gnulib-tool: Improve usage message.
8387         * gnulib-tool (func_usage): Move doc of --help and --version to the
8388         section "Operation modes".
8389
8390 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
8391
8392         README-release: make it easier to execute commands
8393         * top/README-release: break commands out on to separate lines.
8394
8395 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
8396
8397         GNUmakefile: simplify detection of unconfigured trees
8398         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
8399         whether the tree make is being run from is already configured or
8400         not.  Related simplifications.
8401
8402 2012-02-13  Simon Josefsson  <simon@josefsson.org>
8403
8404         * gnulib-tool (func_usage): Document --help and --version.
8405
8406 2012-02-11  Jim Meyering  <meyering@redhat.com>
8407
8408         bootstrap: don't exit 0 upon gnulib-tool failure
8409         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
8410         its exit status, not 0.
8411
8412 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
8413
8414         README-release: various improvements
8415         * top/README-release: Give a command to push changes for the
8416         release.  Add "distcheck" to list of other pre-release checks.
8417         Fix instance of "make stable" which should be "make TYPE".
8418
8419 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
8420
8421         maint: replace FSF snail-mail addresses with URLs
8422         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
8423         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
8424         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
8425         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
8426         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
8427         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
8428         * lib/check-version.c, lib/check-version.h, lib/config.charset:
8429         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
8430         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
8431         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
8432         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
8433         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
8434         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
8435         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
8436         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
8437         * lib/glthread/thread.c, lib/glthread/thread.h:
8438         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
8439         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
8440         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
8441         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
8442         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
8443         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
8444         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
8445         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
8446         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
8447         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
8448         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
8449         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
8450         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
8451         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
8452         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
8453         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
8454         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
8455         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
8456         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
8457         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
8458         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
8459         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
8460         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
8461         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
8462         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
8463         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
8464         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
8465         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
8466         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
8467         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
8468         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
8469         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
8470         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
8471         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
8472         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
8473         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
8474         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
8475         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
8476         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
8477         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
8478         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
8479         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
8480         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
8481         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
8482         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
8483         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
8484         * tests/test-poll.c, tests/test-quotearg-simple.c:
8485         * tests/test-quotearg.c, tests/test-quotearg.h:
8486         * tests/test-round-ieee.c, tests/test-round1.c:
8487         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
8488         * tests/test-roundl-ieee.c, tests/test-roundl.c:
8489         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
8490         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
8491         * tests/test-strerror.c, tests/test-strerror_r.c:
8492         * tests/test-strsignal.c, tests/test-strverscmp.c:
8493         * tests/test-xmemdup0.c:
8494         Replace FSF snail mail addresses with URLs, as per GNU coding
8495         standards.  See glibc bug
8496         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
8497
8498 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
8499
8500         README-release: capitalize a word and split a line
8501         * top/README-release: Fix punctuation and spacing.
8502
8503 2012-02-08  Akim Demaille  <demaille@gostai.com>
8504
8505         fatal-signal: use C prototypes (with explicit void).
8506         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
8507         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
8508
8509 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
8510
8511         regex: spelling fix
8512         * lib/regexec.c: spelling fix
8513
8514         regex: rely on stdint.h for SIZE_MAX
8515         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
8516
8517 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
8518
8519         regex: merge glibc changes
8520
8521         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
8522         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
8523         (init_word_char): Work even if bitset words are not exactly 32 or
8524         64 bits wide.  Don't assume there are no padding bits.
8525         * lib/regex.c [_LIBC]: Do not include <config.h>.
8526         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
8527         and -Wtype-limits.
8528         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
8529         needless disagreement with glibc.  All uses changed.  Define it to
8530         1 only if _GNU_SOURCE, to match glibc.
8531         (_REG_RM_NAME): Remove; no longer needed, since the names in
8532         question are now all protected by __USE_GNU.
8533         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
8534         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
8535         * lib/regex_internal.h (MIN): New macro.
8536
8537         2012-01-03 Ulrich Drepper <drepper@gmail.com>
8538         * lib/regcomp.c (init_word_char): Optimize regex a bit.
8539
8540         2011-12-30 Jakub Jelinek <jakub@redhat.com>
8541         * lib/regex_internal.c (re_string_fetch_byte_case):
8542         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
8543         is miscompiled, and it turns out it is because of an incorrect
8544         attribute on re_string_fetch_byte_case.  Unlike
8545         re_string_peek_byte_case, this one is really not pure, it modifies
8546         memory (increments pstr->cur_idx), and with the pure attribute GCC
8547         assumed it doesn't and it cached the presumed value of
8548         regexp->cur_idx in a variable across the
8549          for (;; ++i)
8550            {
8551              if (i >= BRACKET_NAME_BUF_SIZE)
8552                return REG_EBRACK;
8553              if (token->type == OP_OPEN_CHAR_CLASS)
8554                ch = re_string_fetch_byte_case (regexp);
8555              else
8556                ch = re_string_fetch_byte (regexp);
8557              if (re_string_eoi(regexp))
8558                return REG_EBRACK;
8559              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
8560                break;
8561              elem->opr.name[i] = ch;
8562            }
8563
8564         2011-11-29 Andreas Schwab <schwab@redhat.com>
8565         * lib/regcomp.c (build_equiv_class):
8566         Fix access after end of search string in regex matcher.
8567
8568         2011-11-12 Ulrich Drepper <drepper@redhat.com>
8569         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
8570
8571         2011-10-12 Ulrich Drepper <drepper@redhat.com>
8572         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
8573
8574         2011-10-11 Ulrich Drepper <drepper@redhat.com>
8575         * lib/regcomp.c (parse_branch, parse_sub_exp):
8576         More regex memory leak fixes and tests.
8577         (parse_sub_exp, parse_bracket_exp):
8578         Fix memory leak for some invalid regular expressions.
8579
8580         2011-05-28 Ulrich Drepper <drepper@gmail.com>
8581         * lib/regex_internal.c, lib/regexec.c:
8582         Fix unnecessary overallocation due to incomplete character.  When
8583         incomplete characters are found at the end of a string the code
8584         ran amok and allocated lots of memory.  Stricter limits are now in
8585         place.
8586
8587         2011-05-20 Reuben Thomas <rrt@sc3d.org>
8588         * lib/regex.h: Update documentation.
8589
8590         2011-05-16 Aharon Robbins <arnold@skeeve.com>
8591         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
8592
8593         2010-05-05 Andreas Schwab <schwab@redhat.com>
8594         * lib/regexec.c (find_collation_sequence_value):
8595         Fix lookup of collation sequence value during regexp matching.
8596
8597         2010-01-22 Ulrich Drepper <drepper@redhat.com>
8598         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
8599
8600         2008-01-16 Ulrich Drepper <drepper@redhat.com>
8601         * lib/regex.h: Cleanup namespace.
8602
8603         2007-11-26 Ulrich Drepper <drepper@redhat.com>
8604         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
8605
8606         2007-08-26 Ulrich Drepper <drepper@redhat.com>
8607         * lib/regex_internal.h: Prevent some declarations and definitions
8608         to be seen when used in tests.
8609
8610         2005-05-06 Ulrich Drepper <drepper@redhat.com>
8611         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
8612         __libc_lock_* macros if not _LIBC.
8613         (struct re_dfa_t): Add lock.
8614
8615 2012-02-07  Eric Blake  <eblake@redhat.com>
8616
8617         maint.mk: also prohibit lower-case @var@
8618         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
8619         lower case, like @top_srcdir@.
8620
8621 2012-02-04  Eric Blake  <eblake@redhat.com>
8622
8623         canonicalize: avoid uninitialized memory use
8624         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
8625         random '/' left in dest.
8626         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
8627
8628 2012-02-04  Bruno Haible  <bruno@clisp.org>
8629
8630         isatty: Fix test failure of ptsname_r on native Windows.
8631         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
8632         and don't set errno.
8633         (isatty): Test first whether fd is valid. Set errno when returning 0.
8634
8635 2012-02-04  Bruno Haible  <bruno@clisp.org>
8636
8637         spawn-pipe tests: Fix a NULL program name in a diagnostic.
8638         * tests/test-spawn-pipe-main.c: Include progname.h.
8639         (main): Invoke set_program_name.
8640         * modules/spawn-pipe-tests (Depends-on): Add progname.
8641
8642         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
8643         * tests/test-nonblocking-socket-main.c: Include progname.h.
8644         (main): Invoke set_program_name.
8645         * modules/nonblocking-socket-tests (Depends-on): Add progname.
8646
8647         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
8648         * tests/test-nonblocking-pipe-main.c: Include progname.h.
8649         (main): Invoke set_program_name.
8650         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
8651
8652 2012-02-04  Eric Blake  <eblake@redhat.com>
8653
8654         canonicalize-lgpl: fix // handling
8655         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
8656
8657         canonicalize: fix // handling
8658         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
8659         /// to //, since only // is special.
8660
8661 2012-02-04  Bruno Haible  <bruno@clisp.org>
8662
8663         ioctl: Fix test failure on native Windows.
8664         * lib/ioctl.c: Include msvc-nothrow.h.
8665         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
8666
8667 2012-02-04  Bruno Haible  <bruno@clisp.org>
8668
8669         fsync: Avoid test failure on native Windows.
8670         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
8671         read-only.
8672
8673 2012-02-04  Bruno Haible  <bruno@clisp.org>
8674
8675         sys_select: Avoid syntax error on OpenBSD 5.0.
8676         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
8677         currently being included, just include the system's <sys/select.h>.
8678
8679 2012-02-04  Bruno Haible  <bruno@clisp.org>
8680
8681         sys_select: Avoid syntax error on OpenBSD 5.0.
8682         * lib/sys_select.in.h: Include <signal.h> only after the include_next
8683         <sys/select.h>, not before.
8684         Reported by Jiri B <jirib@devio.us>.
8685
8686 2012-02-04  Bruno Haible  <bruno@clisp.org>
8687
8688         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
8689         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
8690         global variables.
8691         * tests/test-get-rusage-data.c (main): Likewise.
8692         Reported by Jim Meyering.
8693
8694 2012-02-04  Bruno Haible  <bruno@clisp.org>
8695
8696         stdioext: Fix last commit.
8697         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
8698
8699 2012-02-03  Bruno Haible  <bruno@clisp.org>
8700
8701         stdioext: Add tentative support for Plan9.
8702         * lib/stdio-impl.h: Include <errno.h>.
8703         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
8704         * lib/freadable.c (freadable): Likewise.
8705         * lib/fwritable.c (fwritable): Likewise.
8706         * lib/fbufmode.c (fbufmode): Likewise.
8707         * lib/freading.c (freading): Likewise.
8708         * lib/fwriting.c (fwriting): Likewise.
8709         * lib/freadptr.c (freadptr): Likewise.
8710         * lib/freadseek.c (freadptrinc): Likewise.
8711         * lib/freadahead.c (freadahead): Likewise.
8712         * lib/fpurge.c (fpurge): Likewise.
8713         * lib/fseeko.c (rpl_fseeko): Likewise.
8714         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
8715         Reported by Jens Staal <staal1978@gmail.com>.
8716
8717 2012-02-02  Jim Meyering  <meyering@redhat.com>
8718
8719         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
8720         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
8721         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
8722         not even to try to add the attribute.  Instead, add a pragma to suppress
8723         the suggestion/warning.
8724
8725 2012-01-31  Karl Berry  <karl@gnu.org>
8726
8727         setstate doc: typo.
8728         * doc/posix-functions/setstate.texi (setstate): { not (.
8729
8730 2012-01-31  Bruno Haible  <bruno@clisp.org>
8731
8732         popen: Make more robust on Windows.
8733         * lib/popen.c: On native Windows, use the _popen based code even if
8734         HAVE_POPEN is set.
8735         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
8736         environment variable on native Windows.
8737
8738 2012-01-30  Bruno Haible  <bruno@clisp.org>
8739
8740         pclose: Fix typo.
8741         * lib/stdio.in.h (pclose): Fix typo in warning message.
8742
8743 2012-01-30  Bruno Haible  <bruno@clisp.org>
8744
8745         doc about getlogin_r, setstate.
8746         * doc/posix-functions/getlogin_r.texi: List the incompatible
8747         declaration problem under "not fixed by gnulib".
8748         * doc/posix-functions/setstate.texi: Mention incompatible declaration
8749         problem on Solaris 11 and other platforms.
8750
8751 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
8752             Bruno Haible  <bruno@clisp.org>
8753
8754         poll tests: Make test more robust.
8755         * tests/test-poll.c: Include macros.h.
8756         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
8757         return value of various I/O operations.
8758         * modules/poll-tests (Files): Add tests/macros.h.
8759
8760 2012-01-30  Bruno Haible  <bruno@clisp.org>
8761
8762         sys_stat: Fix support for mingw64 and MSVC.
8763         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
8764         header files already do it.
8765         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
8766         stat itself.
8767         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
8768
8769 2012-01-30  Bruno Haible  <bruno@clisp.org>
8770
8771         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
8772         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
8773         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
8774
8775 2012-01-29  Bruno Haible  <bruno@clisp.org>
8776
8777         quotearg: Fix test failure on MacOS X 10.5.
8778         * tests/test-quotearg-simple.c: Include localcharset.h.
8779         (main): If the locale encoding is not ASCII, bypass the tests of
8780         locale_quoting_style and clocale_quoting_style.
8781         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
8782
8783 2012-01-29  Jim Meyering  <meyering@redhat.com>
8784
8785         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
8786         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
8787         detect uses of canonicalize_file_name.
8788
8789 2012-01-28  Bruno Haible  <bruno@clisp.org>
8790
8791         test-framework-sh: Fix test failure with AIX 7.1 diff.
8792         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
8793         in column 1, like 'diff -c' does.
8794         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
8795         whether 'diff -u' is used. Instead, test whether the output contains
8796         some '@' character.
8797
8798 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
8799
8800         strtoimax: eliminate need for stdint.h, inttypes.h checks
8801         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
8802         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
8803         the prerequisites for a recently-introduced strtoimax test.
8804         I guess this might cause strtoimax to be replaced when not
8805         strictly necessary on older hosts, but this shouldn't introduce
8806         any bugs and it should make Emacs 'configure' faster on typical
8807         modern hosts.  Problem discovered when importing the latest gnulib
8808         to an Emacs test version.
8809         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
8810
8811 2012-01-28  Bruno Haible  <bruno@clisp.org>
8812
8813         sys_time: Override 'struct timeval' on some native Windows platforms.
8814         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
8815         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
8816         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
8817         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
8818         needs to be overridden.
8819         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
8820         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
8821         * tests/test-sys_select.c: Check that the tv_sec member has the same
8822         size as a 'time_t'.
8823         * tests/test-sys_time.c: Likewise.
8824         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
8825         is set, set also REPLACE_GETTIMEOFDAY.
8826         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
8827         convert the resulting 'struct timeval' before returning.
8828         * lib/select.c: Include <sys/time.h>.
8829         (select, timeval): Undefine at the right place.
8830         * modules/select (Depends-on): Add sys_time.
8831         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
8832         some Windows platforms.
8833         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
8834
8835 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
8836
8837         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
8838         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
8839         an integer.
8840         * lib/fcntl.c (dupfd): Likewise.
8841         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
8842
8843 2012-01-28  Bruno Haible  <bruno@clisp.org>
8844
8845         fcntl: Avoid compilation error on native Windows.
8846         * modules/fcntl (Depends-on): Add 'close'.
8847
8848 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
8849
8850         select, poll, isatty: Avoid warnings on x86_64 mingw64.
8851         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
8852         pointer to an integer.
8853         * lib/poll.c (IsConsoleHandle): Likewise.
8854         * lib/isatty.c (IsConsoleHandle): Likewise.
8855
8856 2012-01-28  Jim Meyering  <meyering@redhat.com>
8857
8858         doc: clarify README-release
8859         * top/README-release: Clarify: you should make a point to have
8860         the latest stable versions of build tools in your PATH, and the
8861         reference to buildreq is solely for its list of tool names, not
8862         for its minimal-functional version numbers.
8863         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
8864
8865         maint.mk: use more readable (yet functionally equivalent) quoting
8866         It is common to quote a single quote in a single quoted string like
8867         this:  '...'\''...'.  Unless you know the idiom, that looks like
8868         gibberish, so prefer to double-quote the string when possible.
8869         Then you can use a more readable, lone single quote: "...'..."
8870         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
8871         "don't" is more readable than the equivalent 'don'\''t'.
8872         (sc_cast_of_x_alloc_return_value): Likewise.
8873         (sc_cast_of_alloca_return_value): Likewise.
8874         (sc_makefile_path_separator_check): Similar: use ":" in '...',
8875         rather than '\'':'\''.
8876
8877 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
8878
8879         stdalign: relax _Alignof and tighten _Alignas test
8880         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
8881         as it was too strict: alignof must divide offsetof, but it need
8882         not equal offsetof.  Inspired by Joseph S. Myers's comment
8883         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
8884         Conversely, tighten the _Alignas test a bit, as the resulting
8885         alignment must be exactly 8.
8886
8887 2012-01-27  Bruno Haible  <bruno@clisp.org>
8888
8889         stdalign: Document the last change.
8890         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
8891
8892 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
8893
8894         stdalign: check that alignof and offsetof are consistent
8895         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
8896         Problem reported for gnulib by Richard W.M. Jones in
8897         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
8898
8899 2012-01-27  Jim Meyering  <meyering@redhat.com>
8900
8901         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
8902         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
8903         convert a sequence with gaps to the minimal containing range.
8904         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
8905         * tests/test-update-copyright.sh: Test for this.
8906         The FSF confirmed it is ok to do this, assuming there is at
8907         least one significant change per year in the affected range:
8908         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
8909
8910 2012-01-26  Bruno Haible  <bruno@clisp.org>
8911
8912         pipe2: refine doc about thread-safety
8913         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
8914         multithread-safety problem.
8915         * doc/glibc-functions/accept4.texi: Likewise.
8916
8917 2012-01-26  Bruno Haible  <bruno@clisp.org>
8918
8919         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
8920         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
8921         In the test program, include <fcntl.h>, for O_RDONLY.
8922
8923 2012-01-26  Eric Blake  <eblake@redhat.com>
8924
8925         pipe2: document lack of thread-safety in replacement
8926         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
8927         issue in replacement.
8928         * doc/glibc-functions/accept4.texi (accept4): Likewise.
8929         Based on a report by Eric Wong.
8930
8931 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
8932             Bruno Haible  <bruno@clisp.org>
8933
8934         malloca: Avoid warnings on x86_64 mingw64.
8935         * lib/malloca.c: Include <stdint.h>.
8936         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
8937         * modules/malloca (Depends-on): Add stdint.
8938         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
8939
8940 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
8941
8942         obstack: remove __STDC__ conditionals
8943         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
8944         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
8945         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
8946         m4/include_next.m4 as the only gnulib-maintained places that still
8947         refer to __STDC__.
8948
8949 2012-01-24  Bruno Haible  <bruno@clisp.org>
8950
8951         havelib: Modern quoting.
8952         * build-aux/config.rpath: Quote 'like this', not `like this', as per
8953         the recent change to the GNU coding standards.
8954
8955 2012-01-24  Bruno Haible  <bruno@clisp.org>
8956
8957         stdint: Improve support for Android.
8958         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
8959         Reported by Simon Josefsson <simon@josefsson.org>.
8960
8961 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
8962
8963         doc: omit trailing empty lines from INSTALL etc.
8964         * doc/Makefile (INSTALL): Omit trailing empty lines.
8965         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
8966         omit trailing empty lines.  This simplifies the build procedure.
8967
8968 2012-01-23  Jim Meyering  <meyering@redhat.com>
8969
8970         tests: avoid spurious warnings about gl_sockets_startup
8971         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
8972         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
8973         reporting a "statement with no effect".
8974         * tests/test-accept.c (main): Mark as "(void)".
8975         * tests/test-accept4.c (main): Likewise.
8976         * tests/test-bind.c (main): Likewise.
8977         * tests/test-connect.c (main): Likewise.
8978         * tests/test-getpeername.c (main): Likewise.
8979         * tests/test-getsockname.c (main): Likewise.
8980         * tests/test-getsockopt.c (main): Likewise.
8981         * tests/test-listen.c (main): Likewise.
8982         * tests/test-recv.c (main): Likewise.
8983         * tests/test-recvfrom.c (main): Likewise.
8984         * tests/test-send.c (main): Likewise.
8985         * tests/test-sendto.c (main): Likewise.
8986         * tests/test-setsockopt.c (main): Likewise.
8987         * tests/test-shutdown.c (main): Likewise.
8988
8989 2012-01-21  Bruno Haible  <bruno@clisp.org>
8990
8991         locale-fr.m4: Fix for Android.
8992         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
8993         failure of the test program on Bionic libc.
8994
8995 2012-01-21  Jim Meyering  <meyering@redhat.com>
8996
8997         bootstrap: fail when bootstrap_post_import_hook fails
8998         Otherwise, it's far too easy to miss diagnostics emitted
8999         between gnulib-tool's output and that of running configure.
9000         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
9001
9002 2012-01-17  Jim Meyering  <meyering@redhat.com>
9003
9004         maint: enable sc_trailing_blank
9005         * build-aux/pmccabe.css: Remove trailing blanks.
9006         * doc/acl-cygwin.txt: Likewise.
9007         * doc/gnu-oids.texi: Likewise
9008         * cfg.mk: Enable sc_trailing_blank.
9009         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
9010
9011 2012-01-17  Jim Meyering  <meyering@redhat.com>
9012
9013         maint: enable sc_prohibit_openat_without_use
9014         * cfg.mk: Enable sc_prohibit_openat_without_use.
9015         Exempt lib/selinux-at.c.
9016
9017 2012-01-17  Jim Meyering  <meyering@redhat.com>
9018
9019         maint: enable sc_prohibit_cloexec_without_use
9020         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
9021         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
9022
9023 2012-01-17  Jim Meyering  <meyering@redhat.com>
9024
9025         maint: enable sc_prohibit_intprops_without_use
9026         * cfg.mk: Enable sc_prohibit_intprops_without_use
9027         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
9028
9029 2012-01-17  Jim Meyering  <meyering@redhat.com>
9030
9031         maint: enable sc_prohibit_hash_pjw_without_use
9032         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
9033         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
9034         to match any use of \<hash_pjw\>, i.e., not necessarily with a
9035         following " (".
9036
9037 2012-01-17  Jim Meyering  <meyering@redhat.com>
9038
9039         maint: enable double-word-prohibiting rule
9040         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
9041         Exempt three files.
9042
9043 2012-01-17  Jim Meyering  <meyering@redhat.com>
9044
9045         maint: remove empty lines at EOF, but excluding modules/*
9046         Apply syntax rules at home as well as abroad.  Most changes
9047         were induced by running this:
9048           make srcdir=. _build-aux=build-aux -f top/maint.mk \
9049             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
9050             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
9051         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
9052         Exempt modules/* and two binary files.
9053         Also exempt doc/INSTALL*, per request from Bruno Haible.
9054         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
9055         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
9056         * doc/Copyright/request-assign.future: Likewise.
9057         * doc/Copyright/request-disclaim.changes: Likewise.
9058         * doc/INSTALL: Likewise.
9059         * doc/INSTALL.ISO: Likewise.
9060         * doc/INSTALL.UTF-8: Likewise.
9061         * doc/acl-cygwin.txt: Likewise.
9062         * doc/acl-resources.txt: Likewise.
9063         * doc/fdl-1.2.texi: Likewise.
9064         * doc/fdl-1.3.texi: Likewise.
9065         * doc/fdl.texi: Likewise.
9066         * lib/argp-pin.c: Likewise.
9067         * lib/round.c: Likewise.
9068         * lib/unicase/u16-totitle.c: Likewise.
9069         * lib/unictype/block_test.c: Likewise.
9070         * lib/uninorm/canonical-decomposition.c: Likewise.
9071         * m4/README: Likewise.
9072         * m4/relocatable-lib.m4: Likewise.
9073         * tests/test-isnand-nolibm.c: Likewise.
9074         * tests/test-isnand.c: Likewise.
9075         * tests/uninorm/NormalizationTest.txt: Likewise.
9076
9077 2012-01-17  Jim Meyering  <meyering@redhat.com>
9078
9079         maint: add framework to run syntax-check rules against gnulib sources
9080         * cfg.mk: New file, to disable all currently-failing tests.
9081         We'll enable them one by one, as they are made to pass.
9082         * Makefile (sc_maint): New rule.
9083
9084 2012-01-21  Bruno Haible  <bruno@clisp.org>
9085
9086         stdint: Add support for Android.
9087         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
9088         include the system's <stdint.h>.
9089         Reported by Simon Josefsson <simon@josefsson.org>.
9090
9091 2012-01-19  Jim Meyering  <meyering@redhat.com>
9092
9093         bootstrap: add bootstrap_post_import_hook
9094         Bison does still need something like the gnulib_mk_hook whose
9095         invocation I had to remove along with slurp in commit 767ccd40.
9096         Technically, we could get along without it, but doing so would
9097         have required living with a warning and a mandatory post-bootstrap
9098         automake rerun.
9099         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
9100         (bootstrap_post_import_hook): New function.
9101         Invoke it after gnulib-tool --import and before autoreconf.
9102
9103 2012-01-18  Jim Meyering  <meyering@redhat.com>
9104
9105         gitlog-to-changelog: don't use "no_"-prefixed variable name
9106         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
9107         to enable both --cluster and --no-cluster.  Change variable name,
9108         s/\$no_cluster/$cluster/, and reverse usage to match.
9109
9110         gitlog-to-changelog: use "||", not "or" in expressions
9111         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
9112         expressions.
9113
9114 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
9115
9116         gitlog-to-changelog: new option --no-cluster
9117         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
9118         clustering of adjacent commit messages.
9119
9120 2012-01-17  Jim Meyering  <meyering@redhat.com>
9121
9122         maint: spell file systems with two words, not one
9123         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
9124         two words, not one.
9125
9126 2012-01-16  Jim Meyering  <meyering@redhat.com>
9127
9128         bootstrap: add a FIXME comment to ensure we eventually remove the hack
9129         * build-aux/bootstrap (gnulib_tool_options): Add comment.
9130
9131 2012-01-16  Eric Blake  <eblake@redhat.com>
9132
9133         bootstrap: cater to autoconf 2.59
9134         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
9135         is not available.
9136
9137         bootstrap: properly check for libtool
9138         * build-aux/bootstrap (libtoolize): Also run libtool when older
9139         usage is detected.
9140
9141 2012-01-15  Bruno Haible  <bruno@clisp.org>
9142
9143         Improve support for MSVC 9.
9144         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
9145         clashes on MSVC.
9146         * lib/fcntl.in.h: Likewise.
9147         * lib/stdlib.in.h: Likewise.
9148         * lib/sys_stat.in.h: Likewise.
9149
9150 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
9151
9152         gnupload: we hold the master copy of this script now
9153         For motivation and more information, see:
9154         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
9155         * build-aux/gnupload: Make it clear in the heading comments that the
9156         master copy of this file is maintained by gnulib.  Since we are at
9157         it, bump its copyright year and ...
9158         ($scriptversion): ... the date in its version.
9159         ($usage): Patches and bug reports should be sent to the gnulib list,
9160         not the automake one.
9161         * config/srclist.txt: Don't try to sync 'gnupload' from automake
9162         anymore.
9163
9164 2012-01-15  Bruno Haible  <bruno@clisp.org>
9165
9166         Fix module 'random'.
9167         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
9168         initstate, setstate are declared.
9169
9170 2012-01-14  Bruno Haible  <bruno@clisp.org>
9171
9172         Tests for module 'random'.
9173         * modules/random-tests: New file.
9174         * tests/test-random.c: New file, based on tests/test-random_r.c.
9175
9176         New module 'random'.
9177         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
9178         declarations.
9179         * lib/random.c: New file, based on glibc/stdlib/random.c.
9180         * m4/random.m4: New file.
9181         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
9182         HAVE_RANDOM.
9183         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
9184         * modules/random: New file.
9185         * config/srclist.txt: Add an entry for random.c.
9186         * doc/posix-functions/random.texi: Mention the 'random' module.
9187         * doc/posix-functions/initstate.texi: Likewise.
9188         * doc/posix-functions/setstate.texi: Likewise.
9189         * doc/posix-functions/srandom.texi: Likewise.
9190
9191 2012-01-12  Bruno Haible  <bruno@clisp.org>
9192
9193         random_r: Use common idioms.
9194         * lib/random_r.c: Include <stdlib.h> first.
9195
9196         random_r: Override incompatible API on AIX, OSF/1.
9197         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
9198         Override the system function if REPLACE_RANDOM_R is 1.
9199         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
9200         and OSF/1, set REPLACE_RANDOM_R.
9201         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
9202         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
9203         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
9204         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
9205         * doc/glibc-functions/random_r.texi: Likewise.
9206         * doc/glibc-functions/setstate_r.texi: Likewise.
9207
9208         random_r: Support for MSVC 9.
9209         * lib/random_r.c: Include stdint.h, not inttypes.h.
9210
9211 2012-01-12  Eric Blake  <eblake@redhat.com>
9212
9213         inet_ntop: guard extra work by IF_LINT
9214         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
9215         better code generation when not checking for warnings.
9216         Suggested by Paul Eggert and Jim Meyering.
9217
9218         strptime: fix regression on mingw
9219         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
9220         Fix regression.  Reported by Bruno Haible.
9221
9222 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
9223             Bruno Haible  <bruno@clisp.org>
9224
9225         copy-file: add error-code-returning variant.
9226         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
9227         (qcopy_file_preserving): New declaration.
9228         * lib/copy-file.c (qcopy_file_preserving): Renamed from
9229         copy_file_preserving. Change return type to 'int'. Don't emit an error
9230         message here.
9231         (copy_file_preserving): New function.
9232         * tests/test-copy-file.c: Include <stdlib.h>.
9233         (main): Test qcopy_file_preserving if the environment variable
9234         NO_STDERR_OUTPUT is set.
9235         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
9236         with NO_STDERR_OUTPUT
9237         * tests/test-copy-file-2.sh: Likewise.
9238
9239 2012-01-10  Bruno Haible  <bruno@clisp.org>
9240
9241         copy-file: Use 'quote' module consistently.
9242         * lib/copy-file.c (copy_file_preserving): Use quote().
9243
9244         copy-file: Refactor.
9245         * lib/copy-file.c: Include quote.h.
9246         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
9247         message here.
9248         * modules/copy-file (Depends-on): Add quote.
9249
9250         acl: Export qcopy_acl.
9251         * lib/acl.h (qcopy_acl): New declaration.
9252         * lib/copy-acl.c (qcopy_acl): Make non-static.
9253
9254         acl: Rename a local variable.
9255         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
9256
9257         acl: Align return values of copy_acl and qcopy_acl.
9258         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
9259         maybe < -1.
9260
9261 2012-01-11  Eric Blake  <eblake@redhat.com>
9262
9263         strptime: silence gcc warnings
9264         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
9265         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
9266         Reported by Daniel P. Berrange.
9267
9268         inet_ntop: silence gcc warning
9269         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
9270         Reported by Daniel P. Berrange.
9271
9272 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
9273
9274         getloadavg test: skip the test on GNU/Linux without /proc mounted
9275         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
9276         file.  When /proc is not mounted, it always fails with ENOENT.
9277         * tests/test-getloadavg.c (main): Treat ENOENT return code from
9278         getloadavg(3) the same way as ENOSYS and ENOTSUP.
9279
9280 2012-01-10  Bruno Haible  <bruno@clisp.org>
9281
9282         regex: Avoid link error on MSVC 9.
9283         * modules/regex (Depends-on): Add wctype.
9284
9285 2012-01-10  Bruno Haible  <bruno@clisp.org>
9286
9287         doc: Mention --with-tests option.
9288         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
9289         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
9290         --with-tests.
9291         Reported by Reuben Thomas.
9292
9293 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
9294
9295         users.txt: order package names lexicographically.
9296         * users.txt: Order package names lexicographically.
9297
9298 2012-01-10  Jim Meyering  <meyering@redhat.com>
9299
9300         maint.mk: fix description in comment
9301         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
9302
9303         ignore-value: remove deprecated ignore_ptr function
9304         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
9305         * NEWS: Note this.
9306
9307 2012-01-09  Jim Meyering  <meyering@redhat.com>
9308
9309         test-init.sh: avoid a subshell
9310         * tests/test-init.sh: Remove protective subshell.
9311         Suggested by Bernhard Voelker.  While a subshell is normally
9312         required to protect against older shells (Solaris, FreeBSD) that
9313         warn about a missing program before performing redirection, the
9314         shell-selection tests performed by init.sh probably exclude any
9315         offending shell.
9316
9317 2012-01-08  Bruno Haible  <bruno@clisp.org>
9318
9319         setlocale tests: Avoid test failure on Solaris 11 2011-11.
9320         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
9321         variable.
9322
9323 2012-01-08  Bruno Haible  <bruno@clisp.org>
9324
9325         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
9326         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
9327         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
9328         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
9329         macro.
9330         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
9331         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
9332         * lib/spawn_faction_addopen.c: Add workaround implementation if
9333         HAVE_WORKING_POSIX_SPAWN.
9334         * modules/spawn (Makefile): Substitute
9335         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
9336         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
9337         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
9338         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
9339         (Depends-on): Update conditions.
9340         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
9341         the Solaris 11 bug.
9342
9343 2012-01-08  Bruno Haible  <bruno@clisp.org>
9344
9345         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
9346         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
9347         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
9348         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
9349         macro.
9350         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
9351         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
9352         * lib/spawn_faction_adddup2.c: Add workaround implementation if
9353         HAVE_WORKING_POSIX_SPAWN.
9354         * modules/spawn (Makefile): Substitute
9355         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
9356         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
9357         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
9358         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
9359         (Depends-on): Update conditions.
9360         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
9361         the Solaris 11 bug.
9362
9363 2012-01-08  Bruno Haible  <bruno@clisp.org>
9364
9365         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
9366         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
9367         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
9368         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
9369         HAVE_WORKING_POSIX_SPAWN.
9370         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
9371         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
9372         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
9373         * lib/spawn_faction_addclose.c: Add workaround implementation if
9374         HAVE_WORKING_POSIX_SPAWN.
9375         * modules/spawn (Makefile): Substitute
9376         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
9377         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
9378         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
9379         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
9380         (Depends-on): Update conditions.
9381         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
9382         the Solaris 11 bug.
9383
9384 2012-01-08  Bruno Haible  <bruno@clisp.org>
9385
9386         doc: Update for Solaris 11 2011-11.
9387         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
9388         * m4/printf.m4: Update comments.
9389
9390 2012-01-08  Bruno Haible  <bruno@clisp.org>
9391
9392         mktime: Avoid compilation error on Solaris 11.
9393         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
9394
9395 2012-01-08  Bruno Haible  <bruno@clisp.org>
9396
9397         doc: Small fix.
9398         * doc/posix-headers/nl_types.texi: Correct platforms list.
9399
9400 2012-01-08  Simon Josefsson  <simon@josefsson.org>
9401
9402         Add lgpl-3.0 module.
9403         * MODULES.html.sh (Support for building documentation): Add
9404         lgpl-3.0.
9405         * modules/lgpl-3.0: New file.
9406
9407 2012-01-08  Jim Meyering  <meyering@redhat.com>
9408
9409         select.c: indent with spaces, not TABs
9410         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
9411
9412 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
9413
9414         quotearg: do not use grave accent for left quote
9415         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
9416         locale_quoting_style.
9417         (quotearg_buffer_restyled): Fix example.
9418         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
9419
9420 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
9421
9422         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
9423         Most programs do not have translation catalogs for English and much
9424         less separate catalogs for British and American English.  Drop the
9425         suggestion to translators about these two, and provide it
9426         automatically for Unicode locales.  Like most programs, even those
9427         using American English, we use single quotation marks.  This conflicts
9428         with the American typographic convention, but works better when you
9429         cite the entire error message within double quotes.  It also tries not
9430         to clash with established practice and with what non-gnulib programs
9431         will usually do.
9432         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
9433         using an UTF-8 or GB-18030 locale.  The list of other locales with
9434         quotes was provided by Bruno Haible.
9435         (quotearg_buffer_restyled): Adjust instructions to translators.
9436         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
9437         text, since this would be wrong when using Unicode.
9438         * modules/quotearg: Depend on c-strcaseeq.
9439
9440 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
9441
9442         quotearg: fix Wikipedia link
9443         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
9444
9445 2012-01-07  Simon Josefsson  <simon@josefsson.org>
9446
9447         Fix for mingw with MSVC9.
9448         * m4/ld-version-script.m4: Check that compiler rejects version
9449         scripts with syntax errors.  Reported by Bruno Haible
9450         <bruno@clisp.org>.
9451
9452 2012-01-06  Bruno Haible  <bruno@clisp.org>
9453
9454         Talk about "native Windows API", not "Woe32".
9455         * lib/accept4.c: Update comments to mention native Windows.
9456         * lib/execute.c: Likewise.
9457         * lib/fatal-signal.c: Likewise.
9458         * lib/localcharset.c: Likewise.
9459         * lib/nanosleep.c: Likewise.
9460         * lib/nl_langinfo.c: Likewise.
9461         * lib/pclose.c: Likewise.
9462         * lib/pipe-filter-gi.c: Likewise.
9463         * lib/pipe-filter-ii.c: Likewise.
9464         * lib/pipe.c: Likewise.
9465         * lib/pipe2.c: Likewise.
9466         * lib/popen.c: Likewise.
9467         * lib/progreloc.c: Likewise.
9468         * lib/relocatable.c: Likewise.
9469         * lib/sigaction.c: Likewise.
9470         * lib/sigprocmask.c: Likewise.
9471         * lib/spawn-pipe.h: Likewise.
9472         * lib/spawn-pipe.c: Likewise.
9473         * lib/spawni.c: Likewise.
9474         * lib/stat-time.h: Likewise.
9475         * lib/w32spawn.h: Likewise.
9476         * tests/test-isatty.c: Likewise.
9477         * lib/config.charset: More comments.
9478         * doc/gnulib-intro.texi: Mention native Windows.
9479         * doc/posix-functions/_Exit_C99.texi: Likewise.
9480         * doc/posix-headers/fcntl.texi: Likewise.
9481
9482 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
9483
9484         argp: Avoid crash if translator uses % characters in a translation.
9485         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
9486         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
9487
9488 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
9489
9490         doc: C11 and C++11 are now official
9491         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
9492         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
9493         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
9494         * modules/stdalign:
9495         Replace references to draft C1X to C11, and to draft C++0X to C++11.
9496
9497 2012-01-06  Bruno Haible  <bruno@clisp.org>
9498
9499         uc-is-grapheme-break tests: Tweak.
9500         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
9501         message.
9502
9503 2012-01-06  Bruno Haible  <bruno@clisp.org>
9504
9505         test-init.sh: correct the test for diff -u
9506         * tests/test-init.sh: Also redirect stdout to /dev/null.
9507
9508 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
9509
9510         Use ', not `, for quoting output.
9511         * build-aux/announce-gen (usage, sizes, print_news_deltas)
9512         (print_changelog_deltas, get_tool_versions, main program):
9513         * build-aux/git-version-gen:
9514         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
9515         * build-aux/move-if-change (help):
9516         * build-aux/useless-if-before-free (usage, main program):
9517         * check-module (parse_module_file, usage)
9518         (find_included_lib_files, check_module):
9519         * lib/argmatch.c (main) [TEST]:
9520         * lib/argp-help.c (_help):
9521         * lib/getopt1.c (main) [TEST]:
9522         * lib/git-merge-changelog.c (usage):
9523         * lib/xstrtol-error.c (xstrtol_error):
9524         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
9525         * m4/argz.m4 (gl_FUNC_ARGZ):
9526         * m4/bison.m4 (gl_BISON):
9527         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
9528         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
9529         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
9530         * m4/fpending.m4 (gl_PREREQ_FPENDING):
9531         * m4/gc-random.m4 (gl_GC_RANDOM):
9532         * m4/intl.m4 (gt_CHECK_DECL):
9533         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
9534         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
9535         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
9536         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
9537         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
9538         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
9539         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
9540         * tests/test-dirname.c (main):
9541         * tests/test-getpass.c (main):
9542         * tests/test-iconvme.c (main):
9543         * tests/test-parse-datetime.c (LOG):
9544         * tests/test-xstrtoimax.sh:
9545         * tests/test-xstrtol.sh:
9546         * tests/test-xstrtoll.sh:
9547         * tests/test-xstrtoumax.sh:
9548         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
9549         * top/GNUmakefile (abort-due-to-no-makefile):
9550         Quote 'like this', not `like this', as per the recent change to
9551         the GNU coding standards.
9552
9553 2012-01-05  Bruno Haible  <bruno@clisp.org>
9554
9555         strtoimax: Don't force a replacement on systems where intmax_t is int.
9556         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
9557         'intmax_t' is not larger than 'int'.
9558         Reported by Pádraig Brady <P@draigBrady.com>.
9559
9560 2012-01-05  Bruno Haible  <bruno@clisp.org>
9561
9562         doc: Mention NetBSD bugs.
9563         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
9564         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
9565
9566 2012-01-05  Bruno Haible  <bruno@clisp.org>
9567
9568         strtoumax tests: Enhance tests.
9569         * tests/test-strtoumax.c (main): Add tests for large values.
9570
9571 2012-01-05  Bruno Haible  <bruno@clisp.org>
9572
9573         strtoimax: Work around AIX 5.1 bug.
9574         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
9575         definition.
9576         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
9577         Set HAVE_STRTOIMAX.
9578         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
9579         REPLACE_STRTOIMAX.
9580         * modules/inttypes-incomplete (Makefile.am): Substitute
9581         REPLACE_STRTOIMAX.
9582         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
9583         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
9584         (Depends-on): Update conditions.
9585         * tests/test-strtoimax.c (main): Add tests for large values.
9586         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
9587
9588 2012-01-05  Bruno Haible  <bruno@clisp.org>
9589
9590         inttypes: Modernize.
9591         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
9592         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
9593         (Makefile.am): Update inttypes.h rule.
9594
9595 2012-01-05  Jim Meyering  <meyering@redhat.com>
9596
9597         init.sh: don't waste a subshell just to redirect stderr
9598         * tests/init.sh: In testing for diff -u and diff -c, use a
9599         stderr-redirecting exec inside `...` rather than a subshell.
9600
9601         test-init.sh: avoid failure on HP-UX 11.00
9602         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
9603         resolves to diff -c or cmp.  Reported by Bruno Haible.
9604
9605 2012-01-05  Bruno Haible  <bruno@clisp.org>
9606
9607         Tests for module 'strtoull'.
9608         * modules/strtoull-tests: New file.
9609         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
9610
9611 2012-01-05  Bruno Haible  <bruno@clisp.org>
9612
9613         Tests for module 'strtoll'.
9614         * modules/strtoll-tests: New file.
9615         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
9616
9617 2012-01-05  Bruno Haible  <bruno@clisp.org>
9618
9619         Tests for module 'strtoul'.
9620         * modules/strtoul-tests: New file.
9621         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
9622
9623 2012-01-05  Bruno Haible  <bruno@clisp.org>
9624
9625         Tests for module 'strtol'.
9626         * modules/strtol-tests: New file.
9627         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
9628
9629 2012-01-04  Jim Meyering  <meyering@redhat.com>
9630
9631         test-init.sh: accommodate Solaris 5.10's different diff -u output
9632         * tests/test-init.sh: Also exempt @@ lines from the comparison
9633         of diff output, since Solaris 5.10 and GNU diff formats differ.
9634         Reported by Stefano Lattarini.
9635
9636 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
9637
9638         test-posixtm: don't assume signed integer wraparound
9639         * tests/test-posixtm.c (main): Don't assume wraparound semantics
9640         after signed integer overflow.  Inspired by (though it may not
9641         fix) Bruno Haible's bug report in
9642         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
9643
9644         Spell out "Windows 9x" and "Windows XP".
9645         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
9646         "Windows 9x" and "WinXP" with "Windows XP".
9647
9648 2012-01-04  Jim Meyering  <meyering@redhat.com>
9649
9650         test-vc-list-files-cvs.sh: remove obsolete comment
9651         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
9652         double exit.  Now that's all encapsulated via skip_ and Exit.
9653
9654 2012-01-04  Bruno Haible  <bruno@clisp.org>
9655
9656         Talk about "native Windows API", not "Win32".
9657         * lib/classpath.c: Update comments to mention native Windows.
9658         * lib/csharpexec.c: Likewise.
9659         * lib/dup2.c: Likewise.
9660         * lib/error.c: Likewise.
9661         * lib/fcntl.c: Likewise.
9662         * lib/filename.h: Likewise.
9663         * lib/findprog.c: Likewise.
9664         * lib/get-rusage-as.c: Likewise.
9665         * lib/get-rusage-data.c: Likewise.
9666         * lib/getpagesize.c: Likewise.
9667         * lib/javaexec.c: Likewise.
9668         * lib/msvc-inval.c: Likewise.
9669         * lib/msvc-nothrow.c: Likewise.
9670         * lib/nanosleep.c: Likewise.
9671         * lib/nonblocking.c: Likewise.
9672         * lib/printf-parse.c: Likewise.
9673         * lib/setlocale.c: Likewise.
9674         * lib/sigaction.c: Likewise.
9675         * lib/strerror_r.c: Likewise.
9676         * lib/tmpdir.c: Likewise.
9677         * lib/vasnprintf.c: Likewise.
9678         * lib/w32spawn.h: Likewise.
9679         * lib/waitpid.c: Likewise.
9680         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
9681         * m4/locale-ar.m4: Likewise.
9682         * m4/locale-fr.m4: Likewise.
9683         * m4/locale-ja.m4: Likewise.
9684         * m4/locale-tr.m4: Likewise.
9685         * m4/locale-zh.m4: Likewise.
9686         * m4/printf.m4: Likewise.
9687         * tests/test-cloexec.c: Likewise.
9688         * tests/test-copy-acl.sh: Likewise.
9689         * tests/test-copy-file.sh: Likewise.
9690         * tests/test-file-has-acl.sh: Likewise.
9691         * tests/test-set-mode-acl.sh: Likewise.
9692         * tests/test-dup-safer.c: Likewise.
9693         * tests/test-dup2.c: Likewise.
9694         * tests/test-dup3.c: Likewise.
9695         * tests/test-fcntl.c: Likewise.
9696         * tests/test-nonblocking-pipe.h: Likewise.
9697         * tests/test-nonblocking-socket.h: Likewise.
9698         * tests/test-pipe.c: Likewise.
9699         * tests/test-pipe2.c: Likewise.
9700         * tests/test-spawn-pipe-child.c: Likewise.
9701         * doc/acl-resources.txt: Likewise.
9702         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
9703         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
9704         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
9705         * lib/localcharset.c: Update comments to mention native Windows.
9706         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
9707         * lib/localename.c: Likewise.
9708         * lib/progreloc.c: Likewise.
9709         * lib/relocatable.c: Likewise.
9710         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
9711         (windows_compute_revents): Renamed from win32_compute_revents.
9712         (windows_compute_revents_socket): Renamed from
9713         win32_compute_revents_socket.
9714         * lib/select.c: Update comments to mention native Windows.
9715         (windows_poll_handle): Renamed from win32_poll_handle.
9716         * m4/threadlib.m4: Update comments to mention native Windows.
9717         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
9718         --enable-threads=windows instead of --enable-threads=win32. Set
9719         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
9720         * lib/glthread/lock.h: Update comments to mention native Windows.
9721         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
9722         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
9723         USE_WIN32_THREADS.
9724         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
9725         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
9726         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
9727         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
9728         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
9729         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
9730         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
9731         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
9732         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
9733         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
9734         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
9735         * tests/test-tls.c: Likewise.
9736         Rationale:
9737         Microsoft renamed the "Win32 API" to "Windows API", as it is available
9738         on both 32-bit and 64-bit Windows systems.
9739         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
9740         line of distinction is between "native Windows" on one side and Unix/
9741         POSIX systems on the other side. More details in
9742         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
9743         Suggested by Paul Eggert.
9744
9745 2012-01-03  Bruno Haible  <bruno@clisp.org>
9746
9747         isatty: Support for MSVC 9.
9748         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
9749         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
9750         (_isatty_nothrow): New function.
9751         (isatty): Use it instead of _isatty.
9752         (IsConsoleHandle): Add comment, from Paolo Bonzini.
9753         * lib/poll.c (IsConsoleHandle): Likewise.
9754         * lib/select.c (IsConsoleHandle): Likewise.
9755         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
9756         (gl_PREREQ_ISATTY): New macro.
9757         * modules/isatty (Depends-on): Add msvc-inval.
9758         (configure.ac): Invoke gl_PREREQ_ISATTY.
9759
9760 2012-01-03  Jim Meyering  <meyering@redhat.com>
9761
9762         maint.mk: remove temporary transition aid from over 1.5 years ago
9763         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
9764         purpose was to aid in the transition (avoiding silent malfunction)
9765         from that old name to the new _sc_search_regexp.  This shim was
9766         added by commit 219c504b.
9767
9768         init.sh: do not try to accommodate compare arguments starting with "-"
9769         * tests/init.sh (compare_dev_null_): Do not try to accommodate
9770         compare arguments that start with "-".  Besides, we do not worry
9771         about this when invoking diff or cmp; why start now with sed?
9772         Using "--" to separate options from argument would trigger sed
9773         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
9774         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
9775
9776 2012-01-02  Bruno Haible  <bruno@clisp.org>
9777
9778         Enhance tests for module 'isatty'.
9779         * modules/isatty-tests (Depends-on): Add pipe-posix.
9780         * tests/test-isatty.c: Include <fcntl.h>.
9781         (DEV_NULL): New macro.
9782         (main): Test the resut of isatty() also on regular files, pipes, and
9783         /dev/null.
9784
9785         New module 'isatty'.
9786         * lib/unistd.in.h (isatty): New declaration.
9787         * lib/isatty.c: New file, based on an idea of
9788         Bastien Roucariès <roucaries.bastien@gmail.com>.
9789         * m4/isatty.m4: New file.
9790         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
9791         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
9792         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
9793         REPLACE_ISATTY.
9794         * modules/isatty: New file.
9795         * doc/posix-functions/isatty.texi: Mention the new module.
9796         Suggested by Paolo Bonzini.
9797
9798 2012-01-02  Bruno Haible  <bruno@clisp.org>
9799
9800         canonicalize: Tweak 2011-12-29 commit.
9801         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
9802         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
9803
9804 2012-01-02  Jim Meyering  <meyering@redhat.com>
9805
9806         gitlog-to-changelog: describe input syntax in --help output
9807         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
9808
9809         gitlog-to-changelog: fix typo in --help: show backslash before email @
9810         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
9811         in sources, but not in actual output.
9812
9813 2011-12-30  Jim Meyering  <meyering@redhat.com>
9814
9815         gitlog-to-changelog: don't malfunction when name contains %-directive
9816         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
9817         in a name string cause trouble.  E.g., with a user name of "%s",
9818         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
9819
9820 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
9821
9822         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
9823         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
9824         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
9825         the "  (tiny change)" notation that is appended to the standard
9826         ChangeLog "date  name  email" header line.
9827
9828 2012-01-01  Jim Meyering  <meyering@redhat.com>
9829
9830         test-framework-sh: init.sh: fix "make dist" failure
9831         When using gnulib-tool's --with-tests option and any module that
9832         depends on test-framework-sh, "make dist" would fail due to the
9833         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
9834         in the gltests directory, and not in the gllib/ directory.
9835         One way to work around that is to move the EXTRA_DIST += init.sh
9836         from the primary module to the -tests one:
9837         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
9838         * modules/test-framework-sh (Makefile.am): ...not here.
9839         Reported by Tom G. Christensen in
9840         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
9841
9842         version-etc: update copyright year reported by --version
9843         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
9844
9845 2011-12-31  Pádraig Brady  <P@draigBrady.com>
9846
9847         canonicalize: only stat() if required
9848         * lib/canonicalize.c (canonicalize_filename_mode):
9849         Avoid calling l?stat() when both CAN_MISSING,
9850         and CAN_NOLINKS are set, as we neither need
9851         to resolve symlinks or test component existence.
9852
9853 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
9854
9855         doc: cover st_ino issues once; add OpenVMS etc.
9856         * doc/posix-functions/stat.texi (stat):
9857         * doc/posix-functions/lstat.texi (lstat):
9858         * doc/posix-functions/fstatat.texi (fstatat):
9859         * doc/posix-functions/fstat.texi (fstat):
9860         Move general 'struct stat' stuff to sys_stat.texi,
9861         leaving behind a pointer.
9862         * doc/posix-headers/sys_stat.texi (sys/stat.h):
9863         Merge duplicate info about 'struct stat' problems into here.
9864         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
9865         and suggest partial workarounds.
9866
9867         same-inode: port to OpenVMS
9868         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
9869         three st_ino values.
9870
9871 2011-12-30  Pádraig Brady  <P@draigBrady.com>
9872
9873         canonicalize: fix references to stat() and lstat()
9874         * lib/canonicalize.c (canonicalize_filename_mode):
9875         Ensure references always resolve to a replacement
9876         function if required (even via a macro).
9877
9878 2011-12-30  Jim Meyering  <meyering@redhat.com>
9879
9880         gitlog-to-changelog: remove a little duplication
9881         * build-aux/gitlog-to-changelog (main): Grep @lines once,
9882         rather than twice.
9883
9884 2011-12-29  Pádraig Brady  <P@draigBrady.com>
9885
9886         canonicalize: add support for not resolving symlinks
9887         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
9888         indicate we don't want to follow symlinks.  Also
9889         provide CAN_MODE_MASK to aid setting these existing
9890         mutually exclusive values.
9891         * lib/canonicalize.c (canonicalize_filename_mode):
9892         Extract the flags from can_mode parameter, which
9893         are currently just used to select between stat()
9894         and lstat().  Also ensure that mutually exclusive
9895         values are flagged immediately as invalid.
9896         * tests/test-canonicalize.c: Verify symlinks are
9897         not followed, and that invalid flag combinations
9898         are diagnosed.
9899
9900 2011-12-25  Jim Meyering  <meyering@redhat.com>
9901
9902         gitlog-to-changelog: do not clump multi-paragraph entries
9903         Identical header lines (date,name,email+coauthors) are suppressed,
9904         thus putting all entries with those same characteristics under
9905         a single header.  However, when a log entry consists of two or
9906         more paragraphs, it may not be clear where it starts and ends.
9907         This change makes it so that such an entry is always separated
9908         from others by a header line, even when that header would
9909         otherwise be suppressed.
9910         * build-aux/gitlog-to-changelog: Implement the above.
9911         Inspired by a related request from Stefano Lattarini in
9912         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
9913
9914 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
9915
9916         announce-gen: fix `cmd' typo in diagnostic
9917         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
9918         diagnostic: a missing '$' meant that the command was not output.
9919
9920 2011-12-23  Jim Meyering  <meyering@redhat.com>
9921
9922         test-framework-sh: distribute init.sh
9923         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
9924         Otherwise, "make -C gnulib-tests check" (at least in grep) would
9925         fail due to the lack of init.sh.
9926
9927         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
9928         * modules/atexit-tests: Rather than listing tests/init.sh,
9929         now that there's a module for it, simply depend on that new module.
9930         * modules/closein-tests: Likewise.
9931         * modules/exclude-tests: Likewise.
9932         * modules/getcwd-tests: Likewise.
9933         * modules/perror-tests: Likewise.
9934         * modules/pread-tests: Likewise.
9935         * modules/pwrite-tests: Likewise.
9936         * modules/vc-list-files-tests: Likewise.
9937         * modules/verify-tests: Likewise.
9938         * modules/xalloc-die-tests: Likewise.
9939         * modules/xstrtoimax-tests: Likewise.
9940         * modules/xstrtol-tests: Likewise.
9941         * modules/xstrtoll-tests: Likewise.
9942         * modules/xstrtoumax-tests: Likewise.
9943         * modules/yesno-tests: Likewise.
9944
9945 2011-12-22  Jim Meyering  <meyering@redhat.com>
9946
9947         test-framework-sh: add minimal tests of init.sh's compare function
9948         * modules/test-framework-sh-tests: New file.
9949         * tests/test-init.sh: New file.
9950
9951         test-framework-sh: new module
9952         * modules/test-framework-sh: New file.
9953         * MODULES.html.sh (Support for maintaining and releasing projects):
9954         List it.
9955
9956         init.sh: do not emit simulated diff output to stderr
9957         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
9958
9959 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
9960
9961         .gitignore: ignore gnulib.dvi and regex.info
9962         * doc/.gitignore:add gnulib.dvi and regex.info
9963
9964 2011-12-22  Jim Meyering  <meyering@redhat.com>
9965
9966         init.sh: correct previous change
9967         * tests/init.sh (compare): My previous change was wrong.
9968         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
9969
9970         init.sh: avoid unwarranted test failure when using "set -e"
9971         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
9972         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
9973         a use like "compare exp out" would get evoke an unconditional failure.
9974
9975 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
9976
9977         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
9978         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
9979         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
9980         autoreconf that did not.
9981         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
9982         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
9983
9984 2011-12-17  Jim Meyering  <meyering@redhat.com>
9985
9986         bootstrap: remove some now-unneeded code
9987         This script arose back when gnulib-tool was young.
9988         Since then, it has seen improvements that render much of this
9989         script unnecessary.  In particular, it can now make symlinks
9990         to the files it uses.  Also, I no longer see as much value in
9991         marking files as read-only via comments.
9992         If you relied on the symlink-creation feature of the preceding
9993         version of this script, you can get most of that functionality
9994         by adding the --symlink option to the definition of
9995         gnulib_tool_option_extras in your bootstrap.conf file.
9996         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
9997         Run autopoint and libtoolize *before* gnulib-tool.
9998         After it, run an abbreviated autoreconf, rather than a loop around
9999         all tools.
10000         (slirp, bt_mark_as_generated): Remove functions.
10001
10002 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
10003
10004         ftoastr: fix typo
10005         * lib/ftoastr.h: Fix misspelling in comment.
10006
10007 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
10008
10009         * top/README-release: fix punctuation.
10010
10011 2011-12-17  Jim Meyering  <meyering@redhat.com>
10012
10013         bootstrap: correct the recent buildreq change
10014         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
10015         had no effect.
10016         * build-aux/bootstrap (buildreq): Bracket each search term with
10017         "*...*", so that the shell "case" statement works as intended.
10018         Add comments.
10019
10020 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
10021
10022         build: let bootstrap resort to wget when downloading .po files
10023         * build-aux/bootstrap (download_po_files): Fallback to wget when
10024         downloading the .po files via rsync fails.  This is necessary to
10025         bootstrap from behind a strict firewall.
10026
10027 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
10028
10029         stdint: don't assume C++11 when compiling with g++
10030         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
10031         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
10032         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
10033         work also in C++ before C++11, as that improperly inhibits
10034         generating a substitute stdint.h for that case.
10035
10036 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
10037
10038         alloca: protect comment from gnulib-tool
10039         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
10040         that gnulib-tool doesn't think it's a license, and munge it to
10041         say "GCC version 3".
10042
10043 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
10044
10045         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
10046         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
10047         $(abs_top_builddir) instead of $(top_builddir).
10048
10049 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
10050
10051         strftime-tests: also test nanoseconds
10052         * tests/test-strftime.c (T): Add a test of %N.
10053
10054 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
10055
10056         inttypes, stdint: add C++11 support
10057         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
10058         when including inttypes.h and stdint.h.  Support this change to
10059         the standard.
10060         * doc/posix-headers/inttypes.texi (inttypes.h):
10061         * doc/posix-headers/stdint.texi (stdint.h): Document this.
10062         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
10063         Define if not defined already, for the benefit of pre-C++11 hosts.
10064         Define the standard format macros (e.g., PRId8) always.
10065         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
10066         Likewise, if __cpluspus.  Define the standard constant and limit
10067         macros (e.g., INT8_C, INT8_MAX) always.
10068         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
10069         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
10070         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
10071         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
10072         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
10073         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
10074         Likewise.
10075
10076 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
10077
10078         nonblocking tests: Fix test failure on Linux/PPC.
10079         Suggested by Prerna Saxena in
10080         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
10081         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
10082         Set to 1100000.
10083
10084 2011-12-12  Jim Meyering  <meyering@redhat.com>
10085
10086         argmatch: don't hard-code `' when listing valid option arguments
10087         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
10088         use the quote function to add quotes.  Use fputs rather than
10089         fprintf for the format string with no format directive.
10090
10091 2011-12-07  Eric Blake  <eblake@redhat.com>
10092
10093         bootstrap: detect tools required by gnulib-tool
10094         * build-aux/bootstrap (buildreq): Provide minimum implicit
10095         dependencies.
10096         * DEPENDENCIES: Mention patch as a prereq.
10097
10098 2011-12-04  Bruno Haible  <bruno@clisp.org>
10099
10100         sethostname: Port to Windows platforms.
10101         * lib/sethostname.c: Provide an alternate implementation for Windows
10102         platforms.
10103         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
10104         (main): Skip the test if sethostname() fails with EPERM. On Windows
10105         platforms, don't check the result of gethostname().
10106
10107 2011-12-04  Bruno Haible  <bruno@clisp.org>
10108             Jim Meyering  <meyering@redhat.com>
10109
10110         tests: Avoid spurious error message on platforms without mktemp program.
10111         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
10112
10113 2011-12-04  Bruno Haible  <bruno@clisp.org>
10114
10115         sethostname: Fix documentation.
10116         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
10117         "not fixed" section.
10118
10119 2011-12-03  Bruno Haible  <bruno@clisp.org>
10120
10121         gnulib-tool: Verify that the License field is present and non-empty.
10122         * gnulib-tool (func_get_license_raw): New function, extracted from
10123         func_get_license.
10124         (func_get_license): Use it. Warn if the module is not a test module and
10125         has no license.
10126         Suggested by Jim Meyering.
10127
10128 2011-12-03  Bruno Haible  <bruno@clisp.org>
10129
10130         sethostname tests: Fix link error on mingw.
10131         * tests/test-sethostname1.c: New file, extracted from
10132         tests/test-sethostname.c.
10133         * tests/test-sethostname2.c: New file, extracted from
10134         tests/test-sethostname.c.
10135         * tests/test-sethostname.c: Remove file.
10136         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
10137         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
10138         (Depends-on): Add gethostname.
10139         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
10140         Link the latter with $(GETHOSTNAME_LIB).
10141
10142         sethostname tests: Fix compilation error on mingw.
10143         * tests/test-sethostname.c: Don't include <sys/types.h>.
10144         (geteuid): Use a dummy value without uid_t.
10145         * modules/sethostname-tests (Depends-on): Remove sys_types.
10146
10147         sethostname tests: Avoid a gcc warning.
10148         * tests/test-sethostname.c (main): Remove an unused variable.
10149
10150         Tweak last commit.
10151         * modules/sethostname-tests (Files): Sort by decreasing importance.
10152         (configure.ac): Check for geteuid.
10153         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
10154         the test when there's nothing to test. Drop an unnecessary cast.
10155         Improve an error message. Verify that the final sethostname() call
10156         succeeds.
10157
10158 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10159
10160         Add a test suite for the sethostname module.
10161         * modules/sethostname-tests: New file.  A test program
10162         for the sethostname module.
10163         * tests/test-sethostname.c: Likewise.
10164
10165 2011-12-03  Bruno Haible  <bruno@clisp.org>
10166
10167         Tweak last commit.
10168         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
10169         Fix preprocessor directives indentation. Fix typos.
10170         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
10171         * modules/unistd (Makefile): Likewise.
10172
10173 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10174
10175         Integrate the sethostname module into unistd.
10176         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
10177         into the unistd.h header.
10178         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
10179         preprocessor directives.
10180         * modules/unistd: Setup the Makefile substitutions of the
10181         SETHOSTNAME preprocessor directives.
10182
10183 2011-12-03  Bruno Haible  <bruno@clisp.org>
10184
10185         Tweak last commit.
10186         * lib/sethostname.c: Don't include <string.h>.
10187         (sethostname): No need to copy the argument string to the stack. Don't
10188         call clearerr. Preserve errno when fprintf failed.
10189         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
10190         Don't invoke AC_REPLACE_FUNCS.
10191         * modules/sethostname (Link): Remove empty section.
10192         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
10193         failure problem.
10194
10195 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10196
10197         New module 'sethostname'.
10198         * lib/sethostname.c (sethostname): New file.  Provide sethostname
10199         for systems that lack it.
10200         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
10201         sethostname declaration and function.
10202         * modules/sethostname: New file.  Define the sethostname module.
10203
10204 2011-12-03  Bruno Haible  <bruno@clisp.org>
10205
10206         Tweak last commit.
10207         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
10208
10209 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10210
10211         Split the HOST_NAME_MAX detection into a separate m4 macro.
10212         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
10213         macro so it can be used by the pending sethostname module.
10214
10215 2011-12-03  Bruno Haible  <bruno@clisp.org>
10216
10217         Fix module descriptions syntax.
10218         * modules/argv-iter (License): Fix syntax.
10219         * modules/di-set (License): Likewise.
10220         * modules/ino-map (License): Likewise.
10221         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
10222
10223 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
10224
10225         stdalign: port to Clang 3.0
10226         Problem reported by Simon Josefsson in
10227         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
10228         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
10229         which has <stdalign.h> but which does not define alignof.
10230         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
10231
10232 2011-12-01  Eric Blake  <eblake@redhat.com>
10233
10234         mktempd: silence dd usage
10235         * build-aux/mktempd (rand_bytes): Silence dd.
10236
10237 2011-11-30  Simon Josefsson  <simon@josefsson.org>
10238
10239         manywarnings: Don't mention gcc version in docstring.
10240         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
10241         Jim Meyering <meyering@redhat.com>.
10242
10243 2011-11-30  Jim Meyering  <meyering@redhat.com>
10244
10245         hash: mark a few floating point constants with "f" suffix
10246         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
10247         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
10248         floating point constants with "f", since they're destined to be
10249         saved/used as "float"s.
10250
10251 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
10252
10253         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
10254         * tests/test-float.c (test_long_double): Correct and re-enable the
10255         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
10256
10257 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
10258
10259         Avoid subtracting two pointers that don't point into the same block.
10260         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
10261         only pointers into the same memory block are subtracted. We cannot
10262         assume that sizeof (ptrdiff_t) == sizeof (void *).
10263
10264 2011-11-29  Eric Blake  <eblake@redhat.com>
10265
10266         maint.mk: add syntax check for use of compare from init.sh
10267         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
10268         moved here from coreutils.
10269
10270         manywarnings: drop -Wunsuffixed-float-constants
10271         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
10272         '1.0D', which is the only way to silence this warning for 'double'.
10273
10274 2011-11-29  Jim Meyering  <meyering@redhat.com>
10275
10276         hash: mark compute_bucket_size with the pure attribute
10277         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
10278
10279         quotearg, propername: correct pragma guard expression
10280         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
10281         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
10282
10283 2011-11-28  Jim Meyering  <meyering@redhat.com>
10284
10285         propername: do not mark proper_name with the const attribute
10286         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
10287         since it examines data pointed to by its parameter.
10288         * lib/propername.c (proper_name): Instead, add a pragma to suppress
10289         the suggestion from -Wsuggest-attribute=const.
10290
10291         propername: mark one more function as const
10292         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
10293
10294 2011-11-27  Jim Meyering  <meyering@redhat.com>
10295
10296         mark functions with const and pure attributes
10297
10298         Mark functions per suggestions from gcc-4.6 when using these options:
10299         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
10300         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
10301         Follow these guidelines: when possible, apply the attribute to
10302         an extern declaration, not to its definition.  Apply it to the
10303         definition only when the definition is static.
10304         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
10305         * lib/argv-iter.h (argv_iter_n_args): Likewise.
10306         * lib/base64.h (isbase64): Likewise.
10307         * lib/basename-lgpl.c (last_component, base_len): Likewise.
10308         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
10309         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
10310         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
10311         (c_tolower, c_toupper): Likewise.
10312         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
10313         * lib/chdir-long.c (find_non_slash): Likewise.
10314         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
10315         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
10316         * lib/file-type.h (file_type): Likewise.
10317         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
10318         * lib/filevercmp.c (verrevcmp): Likewise.
10319         * lib/freadahead.h (freadahead): Likewise.
10320         * lib/fts.c (fts_maxarglen): Likewise.
10321         * lib/hash-pjw.h (hash_pjw): Likewise.
10322         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
10323         * lib/hash.c (is_prime, next_prime): Likewise.
10324         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
10325         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
10326         (hash_table_ok, hash_get_first, hash_string): Likewise.
10327         (compute_bucket_size): Likewise.
10328         * lib/i-ring.h (i_ring_empty): Likewise.
10329         * lib/isnan.c (isnanl): Likewise.
10330         * lib/math.h (isnanl, rpl_isnanl): Likewise.
10331         * lib/memcasecmp.h (memcasecmp): Likewise.
10332         * lib/memchr2.h (memchr2): Likewise.
10333         * lib/memcmp2.h (memcmp2): Likewise.
10334         * lib/parse-datetime.y (lookup_zone): Likewise.
10335         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
10336         [!WINDOWS_SOCKETS]: Likewise.
10337         * lib/strnlen1.h (strnlen1): Likewise.
10338         * lib/uniwidth.in.h (uc_width): Likewise.
10339         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
10340         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
10341         (quoting_options_from_style): Add a comment.
10342         * lib/propername.h (proper_name): Add a comment.
10343
10344 2011-11-27  Bruno Haible  <bruno@clisp.org>
10345
10346         Remove unused macros from !_LIBC code in glibc-borrowed files.
10347         * lib/fnmatch.c (STRCOLL): Remove macro.
10348         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
10349         * lib/glob.c (__stat, __readdir64): Remove macros.
10350         * lib/tempname.c (__open64, __xstat64): Remove macros.
10351         Suggested by Paul Eggert.
10352
10353 2011-11-27  Bruno Haible  <bruno@clisp.org>
10354
10355         getcwd: Fix link error on MSVC 9.
10356         * modules/getcwd (Depends-on): Add readdir, rewinddir.
10357
10358 2011-11-27  Bruno Haible  <bruno@clisp.org>
10359
10360         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
10361         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
10362         HAVE_OPENDIR is 0.
10363         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
10364         HAVE_CLOSEDIR is 0.
10365         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
10366         is 0.
10367         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
10368
10369 2011-11-27  Bruno Haible  <bruno@clisp.org>
10370
10371         getcwd: Fix bug from 2011-08-17.
10372         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
10373         platforms that need it.
10374         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
10375         code of 4 to be a failure, not a success. This ensures that
10376         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
10377
10378 2011-11-27  Bruno Haible  <bruno@clisp.org>
10379
10380         binary-io tests: Avoid test failure on mingw when libtool is used.
10381         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
10382         Don't verify the size of t-bin-out1.tmp here.
10383         * tests/test-binary-io.sh: Verify it here.
10384         Reported by Simon Josefsson.
10385
10386 2011-11-26  Bruno Haible  <bruno@clisp.org>
10387
10388         Fix conflict between two instantiations of module 'unistd'.
10389         * gnulib-tool (func_emit_autoconf_snippet): Substitute
10390         ${include_guard_prefix} also in the autoconf snippet.
10391         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
10392         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
10393         GNULIB_UNISTD_H_GETOPT.
10394         * modules/getopt-posix (configure.ac): Set the
10395         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
10396         * modules/getopt-gnu (configure.ac): Likewise.
10397         * modules/unistd (Makefile.am): Change the substitution value of
10398         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
10399         Reported by Simon Josefsson.
10400
10401 2011-11-25  Bruno Haible  <bruno@clisp.org>
10402
10403         pagealign_alloc: Doc and comments.
10404         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
10405         module.
10406         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
10407
10408 2011-11-25  Jim Meyering  <meyering@redhat.com>
10409
10410         test-update-copyright.sh: avoid false-positive failure
10411         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
10412         around false positive failure on Cygwin/Windows.  The latter was
10413         matching erroneously-created files with names like
10414         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
10415
10416 2011-11-25  Simon Josefsson  <simon@josefsson.org>
10417
10418         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
10419         * m4/valgrind-tests.m4: Check that the parameters that will be
10420         used works, not just a subset of them.  Reported by Bruno Haible
10421         <bruno@clisp.org>.
10422
10423 2011-11-24  Jim Meyering  <meyering@redhat.com>
10424
10425         test-stdalign.c: comment out long double tests
10426         * tests/test-stdalign.c: Don't try to reduce alignment of long double
10427         variables.  That provokes errors like this from gcc-4.7.0 20111124:
10428         error: '_Alignas' specifiers cannot reduce alignment of \
10429         'static_longdouble_alignas'.
10430
10431 2011-11-22  Jim Meyering  <meyering@redhat.com>
10432
10433         init.sh: make "compare /dev/null FILE" output more readable
10434         * tests/init.sh (compare_): Document the preferred order of arguments.
10435         (emit_diff_u_header_): New function.
10436         (compare_dev_null_): Emit a simulated diff, rather than just the
10437         contents of the unexpected file.  Suggestion from Bruno Haible.
10438
10439 2011-11-21  Jim Meyering  <meyering@redhat.com>
10440             Eric Blake  <eblake@redhat.com>
10441
10442         init.sh: work around OSF/1 5.1's mishandling of /dev/null
10443         * tests/init.sh: Make our compare function slightly more portable.
10444         Reported by Bruno Haible in
10445         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
10446
10447 2011-11-21  Simon Josefsson  <simon@josefsson.org>
10448
10449         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
10450         before using it, in code that ends up in config.h.
10451
10452 2011-11-20  Bruno Haible  <bruno@clisp.org>
10453
10454         getcwd: Work around getcwd bug on AIX 5..7.
10455         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
10456         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
10457         Use a different value for gl_cv_func_getcwd_path_max. Move the
10458         definition of HAVE_PARTLY_WORKING_GETCWD from here...
10459         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
10460         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
10461         Define HAVE_MINIMALLY_WORKING_GETCWD.
10462         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
10463         where it is not even minimally working, that is, on AIX.
10464         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
10465         m4/getcwd-path-max.m4.
10466         (main): Update exit code computation.
10467         * doc/posix-functions/getcwd.texi: Mention list of platforms where
10468         getcwd does not handle long file names.
10469
10470 2011-11-20  Bruno Haible  <bruno@clisp.org>
10471
10472         getcwd: Fix bug from 2009-09-10.
10473         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
10474         like "no".
10475
10476 2011-11-20  Simon Josefsson  <simon@josefsson.org>
10477
10478         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
10479
10480 2011-11-20  Bruno Haible  <bruno@clisp.org>
10481
10482         fma tests: Avoid shadowing local variables.
10483         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
10484         expected.
10485
10486 2011-11-20  Bruno Haible  <bruno@clisp.org>
10487
10488         copysignf tests: Fix.
10489         * tests/test-copysignf.c: Fix signature check.
10490
10491 2011-11-20  Bruno Haible  <bruno@clisp.org>
10492
10493         fma: Remove unused code.
10494         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
10495         unused macros.
10496
10497 2011-11-20  Bruno Haible  <bruno@clisp.org>
10498
10499         sethostname: Fix doc about AIX.
10500         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
10501         sethostname; it has it.
10502
10503         sethostname: Mention more portability problems.
10504         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
10505         problem.
10506         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
10507
10508 2011-11-19  Bruno Haible  <bruno@clisp.org>
10509
10510         Depend on module fcntl-h when AT_FDCWD is used.
10511         * modules/utimens (Depends-on): Add fcntl-h.
10512         * modules/areadlinkat (Depends-on): Likewise.
10513         * modules/areadlinkat-with-size (Depends-on): Likewise.
10514         * modules/faccessat (Depends-on): Likewise.
10515         * modules/fchmodat (Depends-on): Likewise.
10516         * modules/fchownat (Depends-on): Likewise.
10517         * modules/getcwd (Depends-on): Likewise.
10518         * modules/mkdirat (Depends-on): Likewise.
10519         * modules/mkfifoat (Depends-on): Likewise.
10520         * modules/readlinkat (Depends-on): Likewise.
10521         * modules/symlinkat (Depends-on): Likewise.
10522         * modules/dup2-tests (Depends-on): Likewise.
10523         * modules/fdutimensat-tests (Depends-on): Likewise.
10524         * modules/futimens-tests (Depends-on): Likewise.
10525
10526 2011-11-19  Bruno Haible  <bruno@clisp.org>
10527
10528         euidaccess: Update a comment.
10529         * lib/euidaccess.c: Update comment about platforms with faccessat.
10530
10531 2011-11-19  Bruno Haible  <bruno@clisp.org>
10532
10533         openat: Fix file list.
10534         * modules/openat (Files): Remove lib/at-func.c.
10535
10536 2011-11-19  Bruno Haible  <bruno@clisp.org>
10537
10538         fstatat: Simplify.
10539         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
10540         gnulib should define rpl_fstatat, there is a
10541         "#define fstatat rpl_fstatat" in <sys/stat.h>.
10542
10543 2011-11-19  Bruno Haible  <bruno@clisp.org>
10544
10545         Ensure 'inline' can be used in tests/test-utimens-common.h.
10546         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
10547         * modules/futimens-tests (configure.ac): Likewise.
10548         * modules/utimens-tests (configure.ac): Likewise.
10549         * modules/utimensat-tests (configure.ac): Likewise.
10550
10551 2011-11-19  Simon Josefsson  <simon@josefsson.org>
10552
10553         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
10554         not hash_insert0.
10555         (hash_insert_if_absent): Doc fix.
10556
10557 2011-11-19  Simon Josefsson  <simon@josefsson.org>
10558
10559         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
10560
10561 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
10562
10563         test-getcwd: disambiguate exit status
10564         * tests/test-getcwd.c (test_long_name): Return 0..7.
10565         (main): Exit with an unambiguous exit status.  The old
10566         code yielded a mysterious mixture of two failure codes.
10567
10568         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
10569         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
10570         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
10571         rpl_fstatat or fstatat.  This should fix the other problem
10572         reported by Kai Habel in
10573         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
10574         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
10575         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
10576         and I reproduced it on a Solaris 8 host we still have in production.
10577
10578 2011-11-18  Jim Meyering  <meyering@redhat.com>
10579
10580         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
10581         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
10582         Add a sentence to the comment.
10583         (hash_insert0): New function that simply calls hash_insert_if_absent.
10584         * lib/hash.h (hash_insert_if_absent): Declare it.
10585         (hash_insert0): Add deprecation attribute.
10586         (_GL_ATTRIBUTE_DEPRECATED): Define.
10587         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
10588         not hash_insert0.
10589         * NEWS: Mention it, even though it's not really an incompatible change.
10590
10591 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
10592
10593         openat: avoid compilation failure due to lack of <errno.h> inclusion
10594         * lib/openat.c: Include <errno.h>.
10595
10596 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
10597
10598         * modules/getcwd (Depends-on): Add fdopendir.
10599         This fixes one of the two problems reported by Kai Habel in
10600         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
10601
10602         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
10603         stdalign problem reported by Ian Beckwith in
10604         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
10605         * modules/crypto/gc-arcfour (Depends-on):
10606         Depend conditionally on crypto/arcfour.
10607         * modules/crypto/gc-arctwo (Depends-on):
10608         Depend conditionally on crypto/arctwo.
10609         * modules/crypto/gc-des (Depends-on):
10610         Depend conditionally on crypto/des.
10611         * modules/crypto/gc-hmac-md5 (Depends-on):
10612         Depend conditionally on crypto/hmac-md5.
10613         * modules/crypto/gc-hmac-sha1 (Depends-on):
10614         Depend conditionally on crypto/hmac-sha1.
10615         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
10616         * modules/crypto/gc-md4 (Depends-on):
10617         Depend conditionally on crypto/md4.
10618         * modules/crypto/gc-md5 (Depends-on):
10619         Depend conditionally on crypto/md5.
10620         * modules/crypto/gc-rijndael (Depends-on):
10621         Depend conditionally on crypto/rijndael.
10622         * modules/crypto/gc-sha1 (Depends-on):
10623         Depend conditionally on crypto/sha1.
10624         * modules/crypto/gc-arcfour:
10625         * modules/crypto/gc-arctwo:
10626         * modules/crypto/gc-des:
10627         * modules/crypto/gc-hmac-md5:
10628         * modules/crypto/gc-hmac-sha1:
10629         * modules/crypto/gc-md2:
10630         * modules/crypto/gc-md4:
10631         * modules/crypto/gc-md5:
10632         * modules/crypto/gc-rijndael:
10633         * modules/crypto/gc-sha1:
10634         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
10635         now that the conditional dependencies do the work for us.
10636
10637 2011-11-17  Jim Meyering  <meyering@redhat.com>
10638
10639         tests: factor st_ctime-comparison out of two headers
10640         * tests/test-utimens-common.h (ctime_compare): Define.
10641         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
10642         * tests/test-lutimens.h (test_lutimens): Likewise.
10643         * tests/test-utimens.h (test_utimens): Likewise.
10644
10645         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
10646         Invoke the test program via an init.sh-using wrapper.
10647         * tests/test-getcwd.sh: New file.
10648         * modules/getcwd-tests (Files): Add it.
10649         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
10650
10651 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
10652
10653         gitlog-to-changelog: support multi-author commits.
10654         The FSF cares about keeping track of all authors of patches to its
10655         projects, but Git doesn't provide obvious support for multi-author
10656         changesets. Consensus seems to be forming around the use of extra
10657         Signed-off-by inspired lines in the log message formatted as
10658         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
10659         multi-author commits between version control systems.
10660         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
10661         log message and output in standard ChangeLog multi-author format.
10662         Reported by Peter Rosin <peda@lysator.liu.se>
10663
10664 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
10665             Bruno Haible  <bruno@clisp.org>
10666
10667         Fix some modules' file list.
10668         * modules/fstatat (Files): Add m4/lstat.m4.
10669         * modules/openat (Files): Likewise.
10670         * modules/unlinkat (Files): Likewise.
10671
10672 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
10673
10674         maint.mk: fix tight-scope.mk generation in VPATH builds.
10675         * top/maint.mk (tight-scope.mk): Make sure to prefix file
10676         reference with $(srcdir) so that the file is found correctly even
10677         when running `make syntax-check' in a VPATH build.
10678
10679 2011-11-13  Bruno Haible  <bruno@clisp.org>
10680             Jim Meyering  <meyering@redhat.com>
10681
10682         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
10683         * tests/init.sh (compare): Remove "No differences encountered" or
10684         synonymous output from the 'diff' program.
10685
10686 2011-11-13  Bruno Haible  <bruno@clisp.org>
10687
10688         Makefile: Tweak indentation.
10689         * Makefile: Use tab as first character in every line that contains rule
10690         commands.
10691
10692 2011-11-13  Bruno Haible  <bruno@clisp.org>
10693
10694         Syntax check for copyright statements.
10695         * check-copyright: New file.
10696         * Makefile (sc_check_copyright): New rule.
10697
10698 2011-11-13  Simon Josefsson  <simon@josefsson.org>
10699
10700         * build-aux/git-version-gen: Add --prefix to configure the tag
10701         match string.
10702
10703 2011-11-13  Simon Josefsson  <simon@josefsson.org>
10704
10705         * build-aux/git-version-gen: Add --help and --version.
10706
10707 2011-11-12  Jim Meyering  <meyering@redhat.com>
10708
10709         revamp the other test-exclude?.sh scripts to use init.sh, too
10710         * tests/test-exclude1.sh: Use init.sh.
10711         * tests/test-exclude2.sh: Likewise.
10712         * tests/test-exclude3.sh: Likewise.
10713         * tests/test-exclude4.sh: Likewise.
10714         * tests/test-exclude5.sh: Likewise.
10715         * tests/test-exclude6.sh: Likewise.
10716         * tests/test-exclude7.sh: Likewise.
10717         * tests/test-exclude8.sh: Likewise.
10718         * modules/exclude-tests (Files): List init.sh.
10719
10720         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
10721         These shell scripts ignored failure of the binary test-exclude,
10722         so making the latter return 77 didn't cause them to be skipped.
10723         * tests/test-exclude5.sh: Exit with test-exclude's error status
10724         when that program fails.  Revamp to use init.sh.
10725         * tests/test-exclude2.sh: Likewise.
10726
10727         test-exclude: fix a typo
10728         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
10729
10730 2011-11-11  Bruno Haible  <bruno@clisp.org>
10731
10732         obstack: Fix compilation error on MSVC 9.
10733         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
10734
10735 2011-11-11  Jim Meyering  <meyering@redhat.com>
10736
10737         test-exclude: skip tests rather than failing on deficient systems
10738         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
10739         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
10740         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
10741         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
10742
10743 2011-11-10  Bruno Haible  <bruno@clisp.org>
10744
10745         ptsname_r test: Avoid gcc warning on glibc systems.
10746         * tests/test-ptsname_r.c (null_ptr): New function.
10747         (test_errors): Use it.
10748
10749 2011-11-10  Bruno Haible  <bruno@clisp.org>
10750
10751         ptsname_r: Avoid compilation error on OSF/1 5.1.
10752         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
10753         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
10754         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
10755         function is not declared or incompatibly declared.
10756         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
10757         * modules/ptsname_r (Depends-on, configure.ac): Update.
10758         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
10759
10760 2011-11-10  Bruno Haible  <bruno@clisp.org>
10761
10762         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
10763         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
10764         When cross-compiling, guess yes on all platforms except AIX.
10765         Reported by Ludovic Courtès <ludo@gnu.org>.
10766
10767 2011-11-09  Bruno Haible  <bruno@clisp.org>
10768
10769         ptsname_r tests: Fix bugs.
10770         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
10771         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
10772
10773 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
10774
10775         fstatat: work with cross-compilation
10776         Problem reported by Ludovic Courtès in
10777         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
10778         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
10779         "cross-compiling" and assume the bug is present.  Replace
10780         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
10781         an inverted sense, to be more conservative about our assumptions.
10782         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
10783
10784 2011-11-09  Bruno Haible  <bruno@clisp.org>
10785
10786         Improve MODULES.html output.
10787         * modules/mkfifoat (Description): Use the word "function".
10788         * modules/readlinkat (Description): Likewise.
10789         * modules/symlinkat (Description): Likewise.
10790
10791 2011-11-09  Eric Blake  <eblake@redhat.com>
10792
10793         ptsname_r-tests: new test module
10794         * modules/ptsname_r-tests: New module.
10795         * tests/test-ptsname_r.c: New file.
10796
10797         ptsname_r: new module
10798         * modules/ptsname_r: New module.
10799         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
10800         * lib/ptsname.c (__ptsname_r): Split...
10801         * lib/ptsname_r.c: ...into new file.
10802         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
10803         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
10804         * modules/stdlib (Makefile.am): Substitute witnesses.
10805         * lib/stdlib.in.h (ptsname_r): Declare it.
10806         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
10807         * MODULES.html.sh (Misc): Likewise.
10808         * modules/ptsname (Depends-on): Alter dependency.
10809         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
10810
10811 2011-11-09  Jim Meyering  <meyering@redhat.com>
10812
10813         announce-gen: be more concise when there's only one URL+tarball
10814         * build-aux/announce-gen (get_tool_versions): When you distribute
10815         only one type of tarball, combine the first two "Here are..."
10816         sections and make the key-checking grammar independent of
10817         how many tarballs there are.
10818
10819 2011-11-09  Eric Blake  <eblake@redhat.com>
10820
10821         openpty: provide a stub on mingw
10822         * lib/pty.in.h (includes): Provide forward declarations.
10823         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
10824
10825         raise: fix mingw handling of SIGPIPE
10826         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
10827
10828 2011-11-08  Bruno Haible  <bruno@clisp.org>
10829
10830         More conditional dependencies.
10831         * modules/faccessat (Depends-on): Add conditions.
10832         * modules/fchmodat (Depends-on): Likewise.
10833         * modules/fchownat (Depends-on): Likewise.
10834         * modules/fstatat (Depends-on): Likewise.
10835         * modules/mkfifoat (Depends-on): Likewise.
10836         * modules/readlinkat (Depends-on): Likewise.
10837         * modules/symlinkat (Depends-on): Likewise.
10838         * modules/unlinkat (Depends-on): Likewise.
10839         * modules/utimensat (Depends-on): Likewise.
10840         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
10841         * modules/linkat (Depends-on): Refine the conditions.
10842         * modules/renameat (Depends-on): Likewise.
10843
10844 2011-11-08  Bruno Haible  <bruno@clisp.org>
10845
10846         faccessat: Move AC_LIBOBJ invocation to module description.
10847         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
10848         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
10849         invocation from here...
10850         * modules/faccessat (configure.ac): ... to here. Invoke
10851         gl_PREREQ_FACCESSAT.
10852
10853 2011-11-08  Bruno Haible  <bruno@clisp.org>
10854
10855         faccessat: Simplify autoconf macro.
10856         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
10857         gl_FUNC_EUIDACCESS.
10858
10859 2011-11-08  Bruno Haible  <bruno@clisp.org>
10860
10861         renameat: Fix dependencies.
10862         * modules/renameat (Depends-on): Add stdbool.
10863
10864 2011-11-08  Bruno Haible  <bruno@clisp.org>
10865
10866         mkfifoat: Fix module description.
10867         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
10868         not gl_UNISTD_MODULE_INDICATOR.
10869
10870 2011-11-08  Bruno Haible  <bruno@clisp.org>
10871
10872         fstatat: Remove unused dependency.
10873         * modules/fstatat (Depends-on): Remove fstat.
10874
10875 2011-11-08  Simon Josefsson  <simon@josefsson.org>
10876
10877         GNUmakefile: behave when Makefile is missing.
10878         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
10879
10880 2011-11-08  Bruno Haible  <bruno@clisp.org>
10881
10882         openat: Conditionalize dependencies.
10883         * lib/openat.c: Reduce the scope of some #includes.
10884         * modules/openat (Depends-on): Add conditions.
10885
10886 2011-11-07  Jim Meyering  <meyering@redhat.com>
10887
10888         maint.mk: extract GPG key ID without using a temporary file
10889         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
10890         without using a temporary file.  Based on a suggestion from Werner Koch
10891         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
10892
10893 2011-11-07  Eric Blake  <eblake@redhat.com>
10894
10895         grantpt: fix typo
10896         * lib/stdlib.in.h (grantpt): Check correct function.
10897
10898         maint.mk: silence new syntax check
10899         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
10900
10901 2011-11-06  Bruno Haible  <bruno@clisp.org>
10902
10903         Doc about floating-point and math API.
10904         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
10905         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
10906
10907 2011-11-06  Bruno Haible  <bruno@clisp.org>
10908
10909         stdalign tests: Skip the test when compiled by Sun C.
10910         * tests/test-stdalign.c (main): Skip the test on Sun C.
10911
10912 2011-11-06  Bruno Haible  <bruno@clisp.org>
10913
10914         ansi-c++-opt: Complete the 2011-06-05 change.
10915         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
10916         does not support namespaces, set the variable to "no", not to ":".
10917
10918 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
10919
10920         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
10921
10922 2011-11-06  Bruno Haible  <bruno@clisp.org>
10923
10924         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
10925         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
10926         (minus_zerol) [HP-UX]: New macro.
10927         (unary_minus) [HP-UX]: New function.
10928         (copysignl) [HP-UX]: Use unary_minus function.
10929
10930 2011-11-06  Bruno Haible  <bruno@clisp.org>
10931
10932         ldexp, ldexpf, ldexpl: Enhance tests.
10933         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
10934         and tests/test-ldexpl.c.
10935         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
10936         LDEXP, MIN_EXP, MAX_EXP): New macros.
10937         Include test-ldexp.h.
10938         (main): Just call test_function.
10939         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
10940         infinity.h, nan.h.
10941         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
10942         MAX_EXP): New macros.
10943         Include test-ldexp.h.
10944         (x, y): Remove variables.
10945         (main): Just call test_function.
10946         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
10947         infinity.h, nan.h.
10948         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
10949         MAX_EXP): New macros.
10950         Include test-ldexp.h.
10951         (x, y): Remove variables.
10952         (main): Just call test_function.
10953         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
10954         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
10955         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
10956         (Depends-on): Add isnand-nolibm, signbit, float.
10957         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
10958         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
10959         (Depends-on): Add isnanf-nolibm, signbit, float.
10960
10961 2011-11-06  Bruno Haible  <bruno@clisp.org>
10962
10963         math tests: Cosmetics.
10964         * tests/test-math-c++.cc: Reorder declarations.
10965
10966 2011-11-05  Bruno Haible  <bruno@clisp.org>
10967
10968         fma*: Simplify test.
10969         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
10970         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
10971
10972         Tests for module 'fmal'.
10973         * modules/fmal-tests: New file.
10974         * tests/test-fmal1.c: New file.
10975         * tests/test-fmal2.c: New file.
10976
10977         New module 'fmal'.
10978         * lib/math.in.h (fmal): New declaration.
10979         * lib/fmal.c: New file.
10980         * m4/fmal.m4: New file.
10981         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
10982         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
10983         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
10984         REPLACE_FMAL.
10985         * modules/fmal: New file.
10986         * doc/posix-functions/fmal.texi: Mention the new module and the various
10987         bugs.
10988
10989         Tests for module 'fmaf'.
10990         * modules/fmaf-tests: New file.
10991         * tests/test-fmaf1.c: New file.
10992         * tests/test-fmaf2.c: New file.
10993
10994         New module 'fmaf'.
10995         * lib/math.in.h (fmaf): New declaration.
10996         * lib/fmaf.c: New file.
10997         * m4/fmaf.m4: New file.
10998         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
10999         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
11000         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
11001         REPLACE_FMAF.
11002         * modules/fmaf: New file.
11003         * doc/posix-functions/fmaf.texi: Mention the new module and the various
11004         bugs.
11005
11006         Tests for module 'fma'.
11007         * modules/fma-tests: New file.
11008         * tests/test-fma1.c: New file.
11009         * tests/test-fma1.h: New file.
11010         * tests/test-fma2.c: New file.
11011         * tests/test-fma2.h: New file.
11012
11013         New module 'fma'.
11014         * lib/math.in.h (fma): New declaration.
11015         * lib/fma.c: New file.
11016         * m4/fma.m4: New file.
11017         * m4/fegetround.m4: New file.
11018         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
11019         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
11020         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
11021         REPLACE_FMA.
11022         * modules/fma: New file.
11023         * doc/posix-functions/fma.texi: Mention the new module and the various
11024         bugs.
11025
11026         Extend gl_MATHFUNC.
11027         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
11028         Support 'void' as argument type.
11029         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
11030
11031 2011-11-05  Jim Meyering  <meyering@redhat.com>
11032
11033         maint.mk: also prohibit inclusion of dirent.h without use
11034         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
11035
11036 2011-11-05  Bruno Haible  <bruno@clisp.org>
11037
11038         ldexpl tests: Avoid test failure on MSVC 9.
11039         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
11040         value. Needed in order to enforce the conversion from a value greater
11041         than LDBL_MAX to Infinity.
11042
11043 2011-11-05  Bruno Haible  <bruno@clisp.org>
11044
11045         New modules 'at-internal', 'openat-h', split off from module 'openat'.
11046         * modules/at-internal: New file, extracted from modules/openat.
11047         * modules/openat-h: New file.
11048         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
11049         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
11050         * modules/openat (Description): Add reference to POSIX function.
11051         (Files): Remove lib/openat.h, lib/openat-proc.c.
11052         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
11053         intprops, unistd.
11054         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
11055         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
11056         gl_FCNTL_MODULE_INDICATOR.
11057         (Include): Remove unistd.h, openat.h.
11058         * modules/areadlinkat (Files): Add lib/at-func.c.
11059         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11060         openat-die, openat-h, save-cwd.
11061         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
11062         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11063         openat-die, openat-h, save-cwd, unistd.
11064         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
11065         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11066         openat-h, save-cwd. Remove fcntl-h, openat.
11067         * modules/fchmodat (Files): Remove lib/openat.h.
11068         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11069         openat, stdbool, unistd.
11070         * modules/fchownat (Files): Remove lib/openat.h.
11071         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11072         openat, stdbool, sys_stat.
11073         * modules/fdopendir (Files): Remove lib/openat-priv.h,
11074         lib/openat-proc.c.
11075         (Depends-on): Add at-internal.
11076         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
11077         * modules/fstatat (Files): Remove lib/openat.h.
11078         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
11079         stdbool, unistd.
11080         * modules/fts (Depends-on): Add openat-h.
11081         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
11082         openat.
11083         * modules/mkdirat (Files): Remove lib/openat.h.
11084         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11085         openat, stdbool, sys_stat.
11086         * modules/mkfifoat (Files): Add lib/at-func.c.
11087         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11088         openat-h, save-cwd. Remove fcntl-h, openat.
11089         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
11090         * modules/readlinkat (Files): Add lib/at-func.c.
11091         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11092         openat-h, save-cwd. Remove fcntl-h, openat.
11093         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
11094         openat.
11095         * modules/selinux-at (Files): Add lib/at-func.c.
11096         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11097         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
11098         * modules/symlinkat (Files): Add lib/at-func.c.
11099         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11100         openat-h, save-cwd. Remove fcntl-h, openat.
11101         * modules/unlinkat (Files): Remove lib/openat.h.
11102         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
11103         stdbool.
11104         * modules/utimensat (Files): Add lib/at-func.c.
11105         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
11106         openat-die, openat-h, save-cwd.
11107         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
11108         * modules/fdutimensat-tests (Depends-on): Add openat.
11109         * modules/fstatat-tests (Depends-on): Add openat-h.
11110         * modules/readlinkat-tests (Depends-on): Add openat.
11111         * modules/symlinkat-tests (Depends-on): Add openat.
11112
11113 2011-11-05  Bruno Haible  <bruno@clisp.org>
11114
11115         openat: Include <stdbool.h>.
11116         * lib/openat.c: Include <stdbool.h>.
11117
11118 2011-11-04  Bruno Haible  <bruno@clisp.org>
11119
11120         fchownat, renameat, unlinkat: Fix dependencies.
11121         * modules/fchownat (Depends-on): Add fstatat.
11122         * modules/renameat (Depends-on): Likewise.
11123         * modules/unlinkat (Depends-on): Likewise.
11124
11125 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
11126
11127         openat: remove direct dependency on dirent
11128         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
11129         and hasn't been needed ever since fdopendir was split into its own
11130         module on 2009-08-31.
11131         * modules/openat (Depends-on): Remove dirent.
11132
11133 2011-11-04  Bruno Haible  <bruno@clisp.org>
11134
11135         renameat: Optimize code size.
11136         * modules/renameat (configure.ac): Don't compile at-func2.c if
11137         REPLACE_RENAMEAT is 1.
11138
11139 2011-11-04  Bruno Haible  <bruno@clisp.org>
11140
11141         openat tests: Fix file list.
11142         * modules/openat-tests (Files): Add tests/test-open.h.
11143
11144 2011-11-04  Bruno Haible  <bruno@clisp.org>
11145
11146         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
11147         * modules/fchmodat (Depends-on): Add openat-die.
11148         * modules/fchownat (Depends-on): Likewise.
11149         * modules/linkat (Depends-on): Likewise.
11150         * modules/renameat (Depends-on): Likewise.
11151         * modules/openat (Depends-on): Add dirent.
11152
11153 2011-11-04  Jim Meyering  <meyering@redhat.com>
11154
11155         at-func*.c: fix comments
11156         * lib/at-func2.c: Correct/improve first-line comment.
11157         * lib/at-func.c: Correct grammar in first-line comment.
11158
11159 2011-11-04  Bruno Haible  <bruno@clisp.org>
11160
11161         New module 'mkdirat', split off from module 'openat'.
11162         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
11163         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
11164         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
11165         * modules/mkdirat: New file, extracted from modules/openat.
11166         * modules/openat (Files): Remove lib/mkdirat.c.
11167         (Depends-on): Remove mkdir.
11168         (configure.ac): Remove AC_LIBOBJ of mkdirat.
11169         (Include): Remove <sys/stat.h>.
11170         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
11171         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
11172         tests/test-mkdir.h.
11173         (Depends-on): Remove ignore-value.
11174         (Makefile.am): Remove rules for test-mkdirat.
11175         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
11176         of module 'openat'.
11177         * NEWS: Mention the change.
11178
11179 2011-11-04  Bruno Haible  <bruno@clisp.org>
11180
11181         closedir: Avoid warning on mingw.
11182         * lib/closedir.c: Include <unistd.h>.
11183
11184 2011-11-04  Bruno Haible  <bruno@clisp.org>
11185
11186         New module 'fstatat', split off from module 'openat'.
11187         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
11188         defined.
11189         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
11190         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
11191         gl_FUNC_FSTATAT.
11192         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
11193         * modules/fstatat: New file, extracted from modules/openat.
11194         * modules/openat (Files): Remove lib/fstatat.c.
11195         (Depends-on): Remove lstat.
11196         (configure.ac): Remove AC_LIBOBJ of fstatat.
11197         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
11198         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
11199         tests/test-lstat.h, tests/test-stat.h.
11200         (Depends-on): Remove getcwd-lgpl.
11201         (Makefile.am): Remove rules for test-fstatat.
11202         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
11203         of module 'openat'.
11204         * NEWS: Mention the change.
11205         * modules/getcwd (Depends-on): Add fstatat.
11206         * modules/linkat (Depends-on): Likewise.
11207         * modules/mkfifoat-tests (Depends-on): Likewise.
11208         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
11209
11210 2011-11-03  Bruno Haible  <bruno@clisp.org>
11211
11212         New module 'unlinkat', split off from module 'openat'.
11213         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
11214         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
11215         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
11216         * modules/unlinkat: New file, extracted from modules/openat. Correct
11217         the dependency conditions.
11218         * modules/openat (Files): Remove lib/unlinkat.c.
11219         (Depends-on): Remove rmdir, unlink.
11220         (configure.ac): Remove AC_LIBOBJ of unlinkat.
11221         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
11222         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
11223         tests/test-rmdir.h, tests/test-unlink.h.
11224         (Depends-on): Remove unlinkdir.
11225         (Makefile.am): Remove rules for test-unlinkat.
11226         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
11227         of module 'openat'.
11228         * NEWS: Mention the change.
11229         * modules/linkat-tests (Depends-on): Add unlinkat.
11230         * modules/mkfifoat-tests (Depends-on): Likewise.
11231         * modules/readlinkat-tests (Depends-on): Likewise.
11232
11233 2011-11-02  Bruno Haible  <bruno@clisp.org>
11234
11235         New module 'fchmodat', split off from module 'openat'.
11236         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
11237         defined.
11238         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
11239         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
11240         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
11241         * modules/fchmodat: New file, extracted from modules/openat.
11242         * modules/openat (Files): Remove lib/fchmodat.c.
11243         (configure.ac): Remove AC_LIBOBJ of fchmodat.
11244         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
11245         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
11246         (Makefile.am): Remove rules for test-fchmodat.
11247         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
11248         of module 'openat'.
11249         * NEWS: Mention the change.
11250
11251 2011-11-02  Jim Meyering  <meyering@redhat.com>
11252
11253         putenv: indent #definition of "environ" to placate cppi
11254         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
11255
11256         gitlog-to-changelog: provide a ChangeLog-repair mechanism
11257         Git logs are often treated as immutable, because editing them
11258         changes the SHA1 checksums of all descendants.  Thus, errors in
11259         git logs tend to stay there forever.  However, when we generate
11260         a ChangeLog file -- typically for distribution -- from that git log,
11261         we can actually make corrections in the generated file.  The key
11262         lies in recording in machine-readable/applicable form the desired
11263         corrections.  See --help for description and an example.
11264         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
11265         (usage): Describe it; alphabetize option descriptions.
11266         (main): Honor the new option, carefully.
11267
11268 2011-11-01  Jim Meyering  <meyering@redhat.com>
11269
11270         gitlog-to-changelog: avoid an infloop
11271         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
11272         that ends up being empty.
11273
11274 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
11275
11276         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
11277         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
11278         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
11279         contains (possibly-quoted) backslashes.  This should avoid
11280         all-too-common shell bugs if COMPLICATED contains backslashes in
11281         the "wrong" places.  Reported by David Evans in
11282         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
11283         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
11284         because we want ASCII ranges.  Is there some reason we don't use
11285         the C locale everywhere in this script?
11286         (func_module, top level): Avoid unwanted pathname expansion when
11287         $repo_url_prefix or $repo_url_suffix_repl contain shell
11288         metacharacters like '?' and '*'.
11289
11290 2011-11-01  Bruno Haible  <bruno@clisp.org>
11291
11292         fchownat: Improve description.
11293         * modules/fchownat (Description): Add link to function.
11294
11295 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
11296
11297         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
11298         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
11299         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
11300         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
11301
11302 2011-11-01  Bruno Haible  <bruno@clisp.org>
11303
11304         alignof: Avoid collision with stdalign module.
11305         * lib/alignof.h (alignof): Remove macro.
11306         * NEWS: Mention the change.
11307         Reported by Paul Eggert.
11308
11309 2011-11-01  Bruno Haible  <bruno@clisp.org>
11310
11311         New module 'fchownat', split off from module 'openat'.
11312         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
11313         defined.
11314         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
11315         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
11316         invoke gl_FUNC_FCHOWNAT.
11317         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
11318         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
11319         * modules/fchownat: New file, extracted from modules/openat.
11320         * modules/openat (Files): Remove lib/fchownat.c.
11321         (Depends-on): Remove lchown.
11322         (configure.ac): Remove AC_LIBOBJ of fchownat.
11323         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
11324         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
11325         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
11326         (Depends-on): Remove mgetgroups, usleep, stat-time.
11327         (configure.ac): Remove test for getegid.
11328         (Makefile.am): Remove rules for test-fchownat.
11329         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
11330         of module 'openat'.
11331         * NEWS: Mention the change.
11332
11333 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
11334
11335         stdalign: port better to MSVC and to Sun C 5.11
11336         This fixes some of the problems reported by Bruno Haible in
11337         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
11338         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
11339         shortcomings of MSVC and of Sun C 5.11.
11340         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
11341         around __declspec arg.
11342         * modules/stdalign-tests (Files): Add tests/macros.h.
11343         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
11344         Include macros.h, for ASSERT.
11345         (DECLARE_ALIGNED): Remove.
11346         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
11347         to catch bug), and to 1 if not (simplifies the rest of the code).
11348         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
11349         (CHECK_AUTO): Remove.
11350         (CHECK_ALIGNED): Check only the alignment of the static vars,
11351         since auto var alignment isn't supported by Sun C 5.11.
11352         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
11353         ASSERT failures are easier to diagnose.
11354
11355 2011-10-31  Bruno Haible  <bruno@clisp.org>
11356
11357         doc about some IRIX 5.3 problems.
11358         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
11359         on IRIX 5.3.
11360         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
11361         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
11362         5.3.
11363         * doc/posix-functions/grantpt.texi: Likewise.
11364         * doc/posix-functions/unlockpt.texi: Likewise.
11365         * doc/posix-functions/lgamma.texi: Likewise.
11366         * doc/posix-functions/nextafter.texi: Likewise.
11367         * doc/posix-functions/remainder.texi: Likewise.
11368         * doc/posix-functions/select.texi: Mention misplaced declaration on
11369         IRIX 5.3.
11370         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11371
11372 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
11373
11374         gitlog-to-changelog: fix git-log invocation.
11375         git-log mishandles date strings before 1970-01-01 UTC, and there is
11376         no use to specify --since=1970-01-01 by default anyway.
11377         * build-aux/gitlog-to-changelog: By default, when no --since option
11378         was given, do not specify explicit --since option to git-log.
11379
11380 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
11381
11382         gitlog-to-changelog: new option --append-dot.
11383         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
11384         first non-blank line of each commit message terminated with a dot.
11385
11386 2011-10-30  Bruno Haible  <bruno@clisp.org>
11387
11388         ffsl, ffsll: Avoid compilation error due to 'restrict'.
11389         * lib/ffsl.h: Include <config.h>.
11390         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
11391
11392 2011-10-30  Jim Meyering  <meyering@redhat.com>
11393
11394         GNUmakefile: reenable "make syntax-check" for most projects
11395         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
11396         build-aux variable", "syntax-check" would do nothing but succeed with
11397         the "No version control files detected..." diagnostic (unless you
11398         happened to override _build-aux via cfg.mk).
11399         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
11400         to precede inclusion of maint.mk.  Otherwise, these variables would
11401         be used undefined in any project that does not override the default.
11402
11403 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
11404
11405         gitlog-to-changelog: treat a message with only blank lines as empty.
11406         * build-aux/gitlog-to-changelog: Move the code that removes leading and
11407         trailing blank lines before the code that issues a warning about an
11408         empty commit message.
11409
11410 2011-10-30  Jim Meyering  <meyering@redhat.com>
11411
11412         test-parse-datetime.c: avoid new DST-related false positive test failure
11413         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
11414         based on the time/date we'll convert, not the current time.
11415         Otherwise, the moment we cross a DST boundary like today's in
11416         Europe, (CEST to CET), that offset ends up being one hour off.
11417
11418 2011-10-27  Bruno Haible  <bruno@clisp.org>
11419
11420         fstat: Tweak documentation.
11421         * modules/fstat (Description): More precise description.
11422
11423 2011-10-27  Bruno Haible  <bruno@clisp.org>
11424
11425         Update documentation regarding 'largefile' module.
11426         * doc/posix-functions/fstat.texi: Tweak wording.
11427         * doc/posix-functions/opendir.texi: Mention that the module fixes the
11428         problems with huge directories and/or small ino_t types.
11429         * doc/posix-functions/readdir.texi: Likewise.
11430         * doc/posix-functions/rewinddir.texi: Likewise.
11431
11432 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
11433
11434         maint.mk: don't maintain a second build-aux variable.
11435         * maint.mk (build_aux): Removed.  The maintainer-makefile module
11436         depends on GNUmakefile, which already maintains a cfg.mk
11437         overridable $(_build-aux) for projects with a non-standard
11438         build-aux directory location, although without the $(srcdir)
11439         prefix.  Use that variable consistently instead of introducing a
11440         second one.  Adjust all call sites.
11441
11442 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
11443
11444         Add stdalign module and use it in other modules.
11445         This is based on a previous proposal by Bruno Haible
11446         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
11447
11448         stdalign: new module
11449         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
11450         * modules/stdalign: New files.
11451         * MODULES.html.sh (c1x_core_properties): Add stdalign.
11452         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
11453
11454         stdalign-tests: new module
11455         * modules/stdalign-tests, tests/test-stdalign.c: New files.
11456
11457         argp: use stdalign
11458         * lib/argp-parse.c: Include <stdalign.h>.
11459         (alignof): Remove.
11460         * modules/argp (Depends-on): Add stdalign.
11461
11462         crypto libraries: use stdalign
11463         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
11464         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
11465         Do not include <stdlib.h> twice, in md4.c.
11466         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
11467         because we are accessing a pointer's bit-pattern, not a size.
11468         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
11469         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
11470         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
11471         * modules/crypto/sha512: Likewise.
11472
11473         sys_socket: use stdalign, not alignof
11474         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
11475         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
11476
11477 2011-10-27  Bruno Haible  <bruno@clisp.org>
11478
11479         raise test: Avoid a test failure on Linux/MIPS.
11480         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
11481         because 99 is a valid signal on Linux/MIPS.
11482
11483 2011-10-27  Bruno Haible  <bruno@clisp.org>
11484
11485         nonblocking tests: Fix test failure on Linux/MIPS.
11486         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
11487         Set to 270000.
11488
11489 2011-10-27  Bruno Haible  <bruno@clisp.org>
11490
11491         utimensat: Work around problem on Linux/hppa.
11492         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
11493         values.
11494         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
11495
11496 2011-10-25  Jim Meyering  <meyering@redhat.com>
11497
11498         maint.mk: fix a bug in sc_prohibit_stddef_without_use
11499         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
11500         after symbols like NULL, size_t, etc.
11501         Reported by Alfred M. Szmidt.
11502
11503         maint.mk: exempt ENODATA from a syntax-check rule
11504         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
11505         from the sc_prohibit_always-defined_macros syntax-check rule.
11506         Add a comment.  See this for more details:
11507         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
11508
11509 2011-10-23  Jim Meyering  <meyering@redhat.com>
11510
11511         fts: close parent dir FD before returning from post-traversal fts_read
11512         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
11513         unlink A, even though an FD open on A remained.  This is suboptimal
11514         (holding a file descriptor open longer than needed), but otherwise not
11515         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
11516         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
11517         that represents a real problem: it causes the removal of A to fail
11518         with e.g., "rm: cannot remove `A': Device or resource busy"
11519
11520         fts visits each directory twice and keeps a cache (fts_fd_ring) of
11521         directory file descriptors.  After completing the final, FTS_DP,
11522         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
11523         cache, but then proceeded to add a new FD to it via the subsequent
11524         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
11525         final file descriptor would be closed only via fts_close's call to
11526         fd_ring_clear.  Now, it is usually closed earlier, via the final
11527         FTS_DP-returning fts_read call.
11528         * lib/fts.c (restore_initial_cwd): New function, converted from
11529         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
11530         Update callers.
11531         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
11532         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
11533
11534 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
11535             Bruno Haible  <bruno@clisp.org>
11536             Jim Meyering  <jim@meyering.net>
11537
11538         readme-release: improve safety of release prep instructions.
11539         * README-release: Don't git pull all branches when only master
11540         is needed for the release process.
11541         Run make maintainer-clean before changing trees and merging.
11542         Don't try to run ./configure right after git pull in case files
11543         that influence the bootstrap process have changed, move the
11544         ./configure step to after running ./bootstrap.
11545         Don't bootstrap "one last time"... it's the first time!
11546
11547 2011-10-22  Bruno Haible  <bruno@clisp.org>
11548
11549         errno, strerror-override: Support for MSVC 10.
11550         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
11551         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
11552         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
11553         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
11554         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
11555         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
11556         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
11557         Assign values compatible with MSVC 10.
11558         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
11559         New macros.
11560         (GNULIB_defined_EWINSOCK): New macro.
11561         * lib/strerror-override.c (strerror_override): Update accordingly.
11562         * lib/strerror-override.h: Likewise.
11563         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
11564         longer equal to the corresponding errno value.
11565         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
11566
11567 2011-10-22  Bruno Haible  <bruno@clisp.org>
11568
11569         perror: Recognize when test program crashes.
11570         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
11571         strerror, set gl_cv_func_perror_works to no.
11572         Reported by Daniel Richard G. <skunk@iskunk.org>.
11573
11574         perror: Fix indentation.
11575         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
11576
11577 2011-10-22  Bruno Haible  <bruno@clisp.org>
11578
11579         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
11580         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
11581         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
11582         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
11583         functions, not as a macro.
11584         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
11585         macros.
11586         (isfinite, isinf, isnan, signbit): Check overloaded functions and
11587         absence of macro.
11588         Suggested by Eric Blake.
11589         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
11590
11591 2011-10-21  Bruno Haible  <bruno@clisp.org>
11592
11593         relocatable-prog-wrapper: Don't leave object files behind.
11594         * build-aux/install-reloc: Re-synchronize list of .o files to be
11595         removed with list of compilation units.
11596
11597 2011-10-20  Bruno Haible  <bruno@clisp.org>
11598
11599         openpty, posix_openpt: Remove code duplication.
11600         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
11601         * lib/openpty.c: Include <stdlib.h>.
11602         (openpty): Use posix_openpt on all platforms except IRIX.
11603         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
11604
11605 2011-10-20  Bruno Haible  <bruno@clisp.org>
11606
11607         unlockpt: Detect invalid argument.
11608         * lib/unlockpt.c: Include <fcntl.h>.
11609         (unlockpt): Check whether fd is valid, using fcntl().
11610         * modules/unlockpt (Depends-on): Add fcntl-h.
11611
11612 2011-10-20  Bruno Haible  <bruno@clisp.org>
11613
11614         openpty: Avoid compilation error on AIX 6.1.
11615         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
11616
11617 2011-10-20  Bruno Haible  <bruno@clisp.org>
11618
11619         posix_openpt: Support for OpenBSD.
11620         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
11621         (posix_openpt) [OpenBSD]: New code.
11622         * lib/grantpt.c: Include <fcntl.h>.
11623         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
11624         * modules/grantpt (Depends-on): Add fcntl-h.
11625
11626 2011-10-20  Bruno Haible  <bruno@clisp.org>
11627
11628         posix_openpt test: Coding style.
11629         * tests/test-posix_openpt.c: Use GNU coding style.
11630
11631 2011-10-20  Bruno Haible  <bruno@clisp.org>
11632
11633         grantpt: Support --avoid=pt_chown.
11634         * modules/grantpt (Files): Add lib/pty-private.h.
11635
11636 2011-10-20  Bruno Haible  <bruno@clisp.org>
11637
11638         posix_openpt: Fix autoconf macro.
11639         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
11640         unneeded check for _getpty.
11641
11642 2011-10-20  Bruno Haible  <bruno@clisp.org>
11643
11644         openpty: Update comments.
11645         * lib/openpty.c: Add comments about Minix.
11646
11647 2011-10-19  Eric Blake  <eblake@redhat.com>
11648
11649         openpty: relax license
11650         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
11651
11652         pt_chown: use configmake to simplify build
11653         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
11654
11655         ptsname and others: relax license
11656         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
11657         * modules/unlockpt (License): Likewise.
11658         * modules/pt_chown (License): Likewise.
11659         * modules/ptsname (License): Likewise.
11660         * modules/ttyname_r (License): Likewise.
11661
11662 2011-10-19  Jim Meyering  <meyering@redhat.com>
11663
11664         posix_openpt: remove spurious #endif
11665         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
11666
11667 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
11668
11669         maint.mk: Respect $(build_aux) in web-manual rule.
11670         * top/maint.mk (web-manual): Find gen-announce script in user's
11671         $(build_aux) directory instead of hard-coding 'build-aux'.
11672
11673 2011-10-19  Bruno Haible  <bruno@clisp.org>
11674
11675         posix_openpt: Fix compilation error.
11676         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
11677         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
11678         Mention the openpty module as an alternative.
11679
11680 2011-10-19  Bruno Haible  <bruno@clisp.org>
11681
11682         Support for old NeXTstep 3.3 frexp().
11683         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
11684         execution time of the test to 5 seconds.
11685         Reported by Daniel Richard G. <skunk@iskunk.org>.
11686
11687 2011-10-19  Bruno Haible  <bruno@clisp.org>
11688
11689         Support for old NeXTstep 3.3 sed.
11690         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
11691         part, use /.../, not \|...|. Escape periods in the header file name.
11692         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
11693         Reported by Daniel Richard G. <skunk@iskunk.org>.
11694
11695 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
11696
11697         Support for old NeXTstep 3.3 gcc.
11698         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
11699         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
11700         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
11701         * lib/spawn.in.h (_Restrict_arr_): Likewise.
11702         * lib/regex.h (_Restrict_arr_): Likewise.
11703         * lib/regex_internal.h (re_token_t): Likewise.
11704         * lib/regexec.c (check_node_accept_bytes): Likewise.
11705         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
11706
11707 2011-10-18  Eric Blake  <eblake@redhat.com>
11708
11709         posix_openpt: new module
11710         * modules/posix_openpt: New module.
11711         * m4/posix_openpt.m4: New file.
11712         * lib/posix_openpt.c: Likewise.
11713         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
11714         (gl_STDLIB_H_DEFAULTS): Set defaults.
11715         * modules/stdlib (Makefile.am): Substitute macros.
11716         * lib/stdlib.in.h (posix_openpt): Declare.
11717         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
11718         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
11719         * modules/posix_openpt-tests: New test module.
11720         * tests/test-posix_openpt.c: New test.
11721
11722 2011-10-15  Bruno Haible  <bruno@clisp.org>
11723
11724         xstrtoll: Fix compilation failure.
11725         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
11726         from lib/strtol.c.
11727         * doc/posix-headers/limits.texi: Mention missing numerical limits on
11728         some platforms.
11729         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11730
11731 2011-10-15  Bruno Haible  <bruno@clisp.org>
11732
11733         vasnprintf: Optimize bit search operation.
11734         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
11735         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
11736         gl_DOUBLE_EXPONENT_LOCATION.
11737         * modules/vasnprintf (Files): Add m4/exponentd.m4.
11738         * modules/unistdio/u8-vasnprintf (Files): Likewise.
11739         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
11740         * modules/unistdio/u16-vasnprintf (Files): Likewise.
11741         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
11742         * modules/unistdio/u32-vasnprintf (Files): Likewise.
11743         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
11744         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
11745         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
11746
11747 2011-10-15  Bruno Haible  <bruno@clisp.org>
11748
11749         vasnprintf: Fix comments.
11750         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
11751
11752 2011-10-14  Bruno Haible  <bruno@clisp.org>
11753
11754         Tests for module 'integer_length_ll'.
11755         * modules/integer_length_ll-tests: New file.
11756         * tests/test-integer_length_ll.c: New file.
11757
11758         New module 'integer_length_ll'.
11759         * lib/integer_length_ll.c: New file.
11760         * modules/integer_length_ll: New file.
11761
11762 2011-10-14  Bruno Haible  <bruno@clisp.org>
11763
11764         Tests for module 'integer_length_l'.
11765         * modules/integer_length_l-tests: New file.
11766         * tests/test-integer_length_l.c: New file.
11767
11768         New module 'integer_length_l'.
11769         * lib/integer_length_l.c: New file.
11770         * modules/integer_length_l: New file.
11771
11772 2011-10-14  Bruno Haible  <bruno@clisp.org>
11773
11774         Tests for module 'integer_length'.
11775         * modules/integer_length-tests: New file.
11776         * tests/test-integer_length.c: New file.
11777
11778         New module 'integer_length'.
11779         * lib/integer_length.h: New file.
11780         * lib/integer_length.c: New file.
11781         * modules/integer_length: New file.
11782
11783 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
11784
11785         popen: Fix dependency conditions.
11786         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
11787
11788 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
11789
11790         perror: Fix autoconf test.
11791         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
11792         <stdlib.h> and <string.h>.
11793
11794 2011-10-14  Bruno Haible  <bruno@clisp.org>
11795
11796         ffsl: Optimize on 64-bit platforms.
11797         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
11798         unrolling.
11799
11800 2011-10-13  Bruno Haible  <bruno@clisp.org>
11801
11802         ffsl: Optimize on 32-bit platforms.
11803         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
11804         use ffs() without a loop.
11805
11806         ffsl, ffsll: Optimize for GCC.
11807         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
11808         * lib/ffsl.c (GCC_BUILTIN): New macro.
11809         * lib/ffsll.c (GCC_BUILTIN): Likewise.
11810
11811 2011-10-13  Bruno Haible  <bruno@clisp.org>
11812
11813         ffs, bcopy, memset: Support symbol renaming via config.h.
11814         * lib/ffs.c: Include <config.h>.
11815         * lib/bcopy.c: Likewise.
11816         * lib/memset.c: Likewise.
11817
11818 2011-10-10  Bruno Haible  <bruno@clisp.org>
11819
11820         atanl: Simplify for platforms where 'long double' == 'double'.
11821         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11822         alternative implementation.
11823         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11824         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11825         * modules/atanl (Depends-on): Add atan. Update conditions.
11826
11827 2011-10-10  Bruno Haible  <bruno@clisp.org>
11828
11829         acosl: Simplify for platforms where 'long double' == 'double'.
11830         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11831         alternative implementation.
11832         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11833         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11834         * modules/acosl (Depends-on): Add acos. Update conditions.
11835
11836 2011-10-10  Bruno Haible  <bruno@clisp.org>
11837
11838         asinl: Simplify for platforms where 'long double' == 'double'.
11839         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11840         alternative implementation.
11841         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11842         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11843         * modules/asinl (Depends-on): Add asin. Update conditions.
11844
11845 2011-10-10  Bruno Haible  <bruno@clisp.org>
11846
11847         tanl: Simplify for platforms where 'long double' == 'double'.
11848         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11849         implementation.
11850         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11851         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11852         * modules/tanl (Depends-on): Add tan. Update conditions.
11853         (configure.ac): Don't compile trigl.c if
11854         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11855
11856 2011-10-10  Bruno Haible  <bruno@clisp.org>
11857
11858         cosl: Simplify for platforms where 'long double' == 'double'.
11859         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11860         implementation.
11861         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11862         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11863         * modules/cosl (Depends-on): Add cos. Update conditions.
11864         (configure.ac): Don't compile sincosl.c and trigl.c if
11865         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11866
11867 2011-10-10  Bruno Haible  <bruno@clisp.org>
11868
11869         sinl: Simplify for platforms where 'long double' == 'double'.
11870         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11871         implementation.
11872         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11873         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11874         * modules/sinl (Depends-on): Add sin. Update conditions.
11875         (configure.ac): Don't compile sincosl.c and trigl.c if
11876         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11877
11878 2011-10-10  Bruno Haible  <bruno@clisp.org>
11879
11880         logl: Simplify for platforms where 'long double' == 'double'.
11881         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11882         implementation.
11883         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11884         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11885         * modules/logl (Depends-on): Add log. Update conditions.
11886
11887 2011-10-10  Bruno Haible  <bruno@clisp.org>
11888
11889         expl: Simplify for platforms where 'long double' == 'double'.
11890         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11891         implementation.
11892         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11893         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11894         * modules/expl (Depends-on): Add exp. Update conditions.
11895
11896 2011-10-10  Bruno Haible  <bruno@clisp.org>
11897
11898         sqrtl: Simplify for platforms where 'long double' == 'double'.
11899         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11900         alternative implementation.
11901         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11902         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11903         * modules/sqrtl (Depends-on): Update conditions.
11904
11905 2011-10-10  Bruno Haible  <bruno@clisp.org>
11906
11907         ldexpl: Simplify for platforms where 'long double' == 'double'.
11908         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11909         alternative implementation.
11910         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11911         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11912         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
11913
11914 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
11915
11916         ffsll: set correct witness
11917         * modules/ffsll (configure.ac): Fix typo.
11918
11919 2011-10-10  Bruno Haible  <bruno@clisp.org>
11920
11921         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
11922         * lib/printf-frexpl.c: Include <config.h>.
11923         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11924         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
11925         second time.
11926         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
11927         gl_LONG_DOUBLE_VS_DOUBLE.
11928         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
11929         conditions.
11930
11931 2011-10-10  Bruno Haible  <bruno@clisp.org>
11932
11933         frexpl: Simplify for platforms where 'long double' == 'double'.
11934         * lib/frexpl.c: Include <config.h>.
11935         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11936         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11937         time.
11938         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11939         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11940         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
11941         * modules/frexpl (Depends-on): Add frexp. Update conditions.
11942         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
11943         conditions.
11944
11945 2011-10-10  Jim Meyering  <meyering@redhat.com>
11946
11947         test-renameat: don't leave behind a temporary file
11948         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
11949           ERROR: files left in build directory after distclean:
11950           ./gltests/test-renameat.too
11951           make[1]: *** [distcleancheck] Error 1
11952         Reported by Tom G. Christensen.
11953
11954 2011-10-09  Bruno Haible  <bruno@clisp.org>
11955
11956         rint: Determine RINT_LIBM correctly on AIX 7.
11957         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
11958         directly, not only through a function pointer. Also accept an optional
11959         4th argument with extra code.
11960         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
11961         rintf() call by gcc when optimizing.
11962
11963         mathfunc.m4: Refactor.
11964         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
11965         m4 variable.
11966
11967 2011-10-09  Bruno Haible  <bruno@clisp.org>
11968
11969         rintl: Simplify for platforms where 'long double' == 'double'.
11970         * lib/rintl.c: Include <config.h>.
11971         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11972         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11973         time.
11974         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11975         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11976         * modules/rintl (Depends-on): Add rint. Update conditions.
11977
11978 2011-10-09  Bruno Haible  <bruno@clisp.org>
11979
11980         roundl: Simplify for platforms where 'long double' == 'double'.
11981         * lib/roundl.c: Include <config.h>.
11982         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11983         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11984         time.
11985         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11986         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11987         * modules/roundl (Depends-on): Add round. Update conditions.
11988
11989 2011-10-09  Bruno Haible  <bruno@clisp.org>
11990
11991         truncl: Simplify for platforms where 'long double' == 'double'.
11992         * lib/truncl.c: Include <config.h>.
11993         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11994         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11995         time.
11996         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11997         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11998         * modules/truncl (Depends-on): Add trunc. Update conditions.
11999
12000 2011-10-09  Bruno Haible  <bruno@clisp.org>
12001
12002         ceill: Simplify for platforms where 'long double' == 'double'.
12003         * lib/ceill.c: Include <config.h>.
12004         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12005         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12006         time.
12007         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12008         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12009         * modules/ceill (Depends-on): Add ceil. Update conditions.
12010
12011 2011-10-09  Bruno Haible  <bruno@clisp.org>
12012
12013         floorl: Simplify for platforms where 'long double' == 'double'.
12014         * lib/floorl.c: Include <config.h>.
12015         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12016         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12017         time.
12018         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12019         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12020         * modules/floorl (Depends-on): Add floor. Update conditions.
12021
12022 2011-10-09  Bruno Haible  <bruno@clisp.org>
12023
12024         rint: Fix ordering constraints.
12025         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
12026         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
12027         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
12028
12029 2011-10-09  Bruno Haible  <bruno@clisp.org>
12030
12031         copysignl: Simplify for platforms where 'long double' == 'double'.
12032         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12033         alternative.
12034         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12035         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12036         * modules/copysignl (Depends-on): Add copysign. Update conditions.
12037
12038 2011-10-09  Bruno Haible  <bruno@clisp.org>
12039
12040         Tests for module 'rintl'.
12041         * modules/rintl-tests: New file.
12042         * tests/test-rintl.c: New file.
12043
12044         New module 'rintl'.
12045         * lib/math.in.h (rintl): New declaration.
12046         * lib/rintl.c: New file.
12047         * m4/rintl.m4: New file.
12048         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
12049         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
12050         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
12051         * modules/rintl: New file.
12052         * tests/test-math-c++.cc: Check the declaration of rintl.
12053         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12054         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
12055         * doc/posix-functions/rintl.texi: Mention the new module.
12056
12057 2011-10-09  Bruno Haible  <bruno@clisp.org>
12058
12059         Tests for module 'rintf'.
12060         * modules/rintf-tests: New file.
12061         * tests/test-rintf.c: New file.
12062
12063         New module 'rintf'.
12064         * lib/math.in.h (rintf): New declaration.
12065         * lib/rintf.c: New file.
12066         * m4/rintf.m4: New file.
12067         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
12068         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
12069         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
12070         * modules/rintf: New file.
12071         * tests/test-math-c++.cc: Check the declaration of rintf.
12072         * doc/posix-functions/rintf.texi: Mention the new module.
12073
12074 2011-10-09  Bruno Haible  <bruno@clisp.org>
12075
12076         rint: Support for MSVC.
12077         * lib/math.in.h (rint): New declaration.
12078         * lib/rint.c: New file.
12079         * m4/rint.m4: New file.
12080         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
12081         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
12082         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
12083         * modules/rint (Description): Fix.
12084         (Files): Add lib/rint.c, m4/rint.m4.
12085         (Depends-on): Add math.
12086         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
12087         gl_MATH_MODULE_INDICATOR.
12088         * tests/test-math-c++.cc: Check the declaration of rint.
12089         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12090         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
12091         * doc/posix-functions/rint.texi: Mention the replacement provided by
12092         the module.
12093
12094         rint tests: More tests.
12095         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
12096         minus-zero.h, infinity.h, nan.h.
12097         (main): Skip the test if the current rounding mode is not standard. Add
12098         tests for negative numbers, minus zero, infinity, NaN.
12099         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
12100         tests/nan.h.
12101         (Depends-on): Add isnand-nolibm.
12102
12103 2011-10-09  Bruno Haible  <bruno@clisp.org>
12104
12105         Tests for module 'copysignl'.
12106         * modules/copysignl-tests: New file.
12107         * tests/test-copysignl.c: New file.
12108
12109         New module 'copysignl'.
12110         * lib/math.in.h (copysignl): New declaration.
12111         * lib/copysignl.c: New file.
12112         * m4/copysignl.m4: New file.
12113         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
12114         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
12115         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
12116         HAVE_COPYSIGNL.
12117         * modules/copysignl: New file.
12118         * tests/test-math-c++.cc: Check the declaration of copysignl.
12119         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12120         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
12121         * doc/posix-functions/copysignl.texi: Mention the new module.
12122
12123 2011-10-09  Bruno Haible  <bruno@clisp.org>
12124
12125         Tests for module 'copysignf'.
12126         * modules/copysignf-tests: New file.
12127         * tests/test-copysignf.c: New file.
12128
12129         New module 'copysignf'.
12130         * lib/math.in.h (copysignf): New declaration.
12131         * lib/copysignf.c: New file.
12132         * m4/copysignf.m4: New file.
12133         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
12134         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
12135         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
12136         HAVE_COPYSIGNF.
12137         * modules/copysignf: New file.
12138         * tests/test-math-c++.cc: Check the declaration of copysignf.
12139         * doc/posix-functions/copysignf.texi: Mention the new module.
12140
12141 2011-10-09  Bruno Haible  <bruno@clisp.org>
12142
12143         Ensure that HAVE_* variables are set to 1 before they are set to 0.
12144         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
12145         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
12146         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
12147         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
12148         gl_SIGNAL_H_DEFAULTS.
12149
12150 2011-10-09  Bruno Haible  <bruno@clisp.org>
12151
12152         poll: Make macro safer.
12153         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
12154         ac_cv_header_poll_h is not set.
12155
12156 2011-10-09  Bruno Haible  <bruno@clisp.org>
12157
12158         copysign: Provide replacement.
12159         * lib/math.in.h (copysign): New declaration.
12160         * lib/copysign.c: New file.
12161         * m4/copysign.m4: New file.
12162         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
12163         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
12164         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
12165         HAVE_COPYSIGN.
12166         * modules/copysign (Description): Clarify.
12167         (Files): Add lib/copysign.c, m4/copysign.m4.
12168         (Depends-on): Add math, signbit.
12169         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
12170         gl_MATH_MODULE_INDICATOR.
12171         * tests/test-math-c++.cc: Check the declaration of copysign.
12172         * doc/posix-functions/copysign.texi: Mention the effects of the module
12173         on Minix and MSVC.
12174
12175 2011-10-09  Bruno Haible  <bruno@clisp.org>
12176
12177         isinf: Ensure macro on AIX 5.1.
12178         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
12179         macro.
12180         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
12181
12182 2011-10-09  Bruno Haible  <bruno@clisp.org>
12183
12184         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
12185         * modules/snprintf-posix-tests (configure.ac): Require
12186         gl_LONG_DOUBLE_VS_DOUBLE.
12187         * modules/sprintf-posix-tests (configure.ac): Likewise.
12188         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
12189         * modules/vasprintf-posix-tests (configure.ac): Likewise.
12190         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
12191         * modules/vsprintf-posix-tests (configure.ac): Likewise.
12192         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
12193         tests on platforms where 'long double' is the same as 'double'.
12194         * tests/test-sprintf-posix.h (test_function): Likewise.
12195         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12196         * tests/test-vasprintf-posix.c (test_function): Likewise.
12197
12198         *printf: Fix for platforms where 'long double' == 'double'.
12199         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
12200         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
12201         * modules/dprintf-posix (Files): Add m4/math_h.m4.
12202         * modules/fprintf-posix (Files): Likewise.
12203         * modules/obstack-printf-posix (Files): Likewise.
12204         * modules/snprintf-posix (Files): Likewise.
12205         * modules/sprintf-posix (Files): Likewise.
12206         * modules/vasnprintf (Files): Likewise.
12207         * modules/vasnprintf-posix (Files): Likewise.
12208         * modules/vasprintf-posix (Files): Likewise.
12209         * modules/vdprintf-posix (Files): Likewise.
12210         * modules/vfprintf-posix (Files): Likewise.
12211         * modules/vsnprintf-posix (Files): Likewise.
12212         * modules/vsprintf-posix (Files): Likewise.
12213         * modules/unistdio/u8-vasnprintf (Files): Likewise.
12214         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
12215         * modules/unistdio/u16-vasnprintf (Files): Likewise.
12216         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
12217         * modules/unistdio/u32-vasnprintf (Files): Likewise.
12218         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
12219         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
12220
12221         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
12222         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
12223         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12224         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
12225         'long double'.
12226         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
12227
12228         isinf: Fix for platforms where 'long double' == 'double'.
12229         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
12230         Don't blindly assume 80-bit 'long double'.
12231
12232         isfinite: Fix for platforms where 'long double' == 'double'.
12233         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
12234         Don't blindly assume 80-bit 'long double'.
12235
12236         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
12237         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
12238         * modules/isfinite-tests (configure.ac): Require
12239         gl_LONG_DOUBLE_VS_DOUBLE.
12240         * modules/isinf-tests (configure.ac): Likewise.
12241         * modules/isnan-tests (configure.ac): Likewise.
12242         * modules/isnanl-tests (configure.ac): Likewise.
12243         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
12244         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
12245         tests on platforms where 'long double' is the same as 'double'.
12246         * tests/test-isinf.c (test_isinfl): Likewise.
12247         * tests/test-isnan.c (test_long_double): Likewise.
12248         * tests/test-isnanl.h (main): Likewise.
12249
12250 2011-10-08  Bruno Haible  <bruno@clisp.org>
12251
12252         Tests for module 'tanhf'.
12253         * modules/tanhf-tests: New file.
12254         * tests/test-tanhf.c: New file.
12255
12256         New module 'tanhf'.
12257         * lib/math.in.h (tanhf): New declaration.
12258         * lib/tanhf.c: New file.
12259         * m4/tanhf.m4: New file.
12260         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
12261         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
12262         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
12263         * modules/tanhf: New file.
12264         * tests/test-math-c++.cc: Check the declaration of tanhf.
12265         * doc/posix-functions/tanhf.texi: Mention the new module.
12266
12267         tanh: Use a .m4 file.
12268         * m4/tanh.m4: New file.
12269         * modules/tanh (Files): Add it.
12270         (configure.ac): Just invoke gl_FUNC_TANH.
12271
12272 2011-10-08  Bruno Haible  <bruno@clisp.org>
12273
12274         Tests for module 'coshf'.
12275         * modules/coshf-tests: New file.
12276         * tests/test-coshf.c: New file.
12277
12278         New module 'coshf'.
12279         * lib/math.in.h (coshf): New declaration.
12280         * lib/coshf.c: New file.
12281         * m4/coshf.m4: New file.
12282         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
12283         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
12284         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
12285         * modules/coshf: New file.
12286         * tests/test-math-c++.cc: Check the declaration of coshf.
12287         * doc/posix-functions/coshf.texi: Mention the new module.
12288
12289         cosh: Use a .m4 file.
12290         * m4/cosh.m4: New file.
12291         * modules/cosh (Files): Add it.
12292         (configure.ac): Just invoke gl_FUNC_COSH.
12293
12294 2011-10-08  Bruno Haible  <bruno@clisp.org>
12295
12296         Tests for module 'sinhf'.
12297         * modules/sinhf-tests: New file.
12298         * tests/test-sinhf.c: New file.
12299
12300         New module 'sinhf'.
12301         * lib/math.in.h (sinhf): New declaration.
12302         * lib/sinhf.c: New file.
12303         * m4/sinhf.m4: New file.
12304         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
12305         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
12306         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
12307         * modules/sinhf: New file.
12308         * tests/test-math-c++.cc: Check the declaration of sinhf.
12309         * doc/posix-functions/sinhf.texi: Mention the new module.
12310
12311         sinh: Use a .m4 file.
12312         * m4/sinh.m4: New file.
12313         * modules/sinh (Files): Add it.
12314         (configure.ac): Just invoke gl_FUNC_SINH.
12315
12316 2011-10-08  Bruno Haible  <bruno@clisp.org>
12317
12318         Tests for module 'atan2f'.
12319         * modules/atan2f-tests: New file.
12320         * tests/test-atan2f.c: New file.
12321
12322         New module 'atan2f'.
12323         * lib/math.in.h (atan2f): New declaration.
12324         * lib/atan2f.c: New file.
12325         * m4/atan2f.m4: New file.
12326         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
12327         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
12328         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
12329         * modules/atan2f: New file.
12330         * tests/test-math-c++.cc: Check the declaration of atan2f.
12331         * doc/posix-functions/atan2f.texi: Mention the new module.
12332
12333         atan2: Use a .m4 file.
12334         * m4/atan2.m4: New file.
12335         * modules/atan2 (Files): Add it.
12336         (configure.ac): Just invoke gl_FUNC_ATAN2.
12337
12338 2011-10-08  Bruno Haible  <bruno@clisp.org>
12339
12340         Tests for module 'atanf'.
12341         * modules/atanf-tests: New file.
12342         * tests/test-atanf.c: New file.
12343
12344         New module 'atanf'.
12345         * lib/math.in.h (atanf): New declaration.
12346         * lib/atanf.c: New file.
12347         * m4/atanf.m4: New file.
12348         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
12349         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
12350         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
12351         * modules/atanf: New file.
12352         * tests/test-math-c++.cc: Check the declaration of atanf.
12353         * doc/posix-functions/atanf.texi: Mention the new module.
12354
12355         atan: Use a .m4 file.
12356         * m4/atan.m4: New file.
12357         * modules/atan (Files): Add it.
12358         (configure.ac): Just invoke gl_FUNC_ATAN.
12359
12360 2011-10-08  Bruno Haible  <bruno@clisp.org>
12361
12362         Tests for module 'acosf'.
12363         * modules/acosf-tests: New file.
12364         * tests/test-acosf.c: New file.
12365
12366         New module 'acosf'.
12367         * lib/math.in.h (acosf): New declaration.
12368         * lib/acosf.c: New file.
12369         * m4/acosf.m4: New file.
12370         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
12371         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
12372         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
12373         * modules/acosf: New file.
12374         * tests/test-math-c++.cc: Check the declaration of acosf.
12375         * doc/posix-functions/acosf.texi: Mention the new module.
12376
12377         acos: Use a .m4 file.
12378         * m4/acos.m4: New file.
12379         * modules/acos (Files): Add it.
12380         (configure.ac): Just invoke gl_FUNC_ACOS.
12381
12382 2011-10-08  Bruno Haible  <bruno@clisp.org>
12383
12384         Tests for module 'asinf'.
12385         * modules/asinf-tests: New file.
12386         * tests/test-asinf.c: New file.
12387
12388         New module 'asinf'.
12389         * lib/math.in.h (asinf): New declaration.
12390         * lib/asinf.c: New file.
12391         * m4/asinf.m4: New file.
12392         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
12393         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
12394         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
12395         * modules/asinf: New file.
12396         * tests/test-math-c++.cc: Check the declaration of asinf.
12397         * doc/posix-functions/asinf.texi: Mention the new module.
12398
12399         asin: Use a .m4 file.
12400         * m4/asin.m4: New file.
12401         * modules/asin (Files): Add it.
12402         (configure.ac): Just invoke gl_FUNC_ASIN.
12403
12404 2011-10-08  Bruno Haible  <bruno@clisp.org>
12405
12406         Tests for module 'tanf'.
12407         * modules/tanf-tests: New file.
12408         * tests/test-tanf.c: New file.
12409
12410         New module 'tanf'.
12411         * lib/math.in.h (tanf): New declaration.
12412         * lib/tanf.c: New file.
12413         * m4/tanf.m4: New file.
12414         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
12415         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
12416         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
12417         * modules/tanf: New file.
12418         * tests/test-math-c++.cc: Check the declaration of tanf.
12419         * doc/posix-functions/tanf.texi: Mention the new module.
12420
12421         tan: Use a .m4 file.
12422         * m4/tan.m4: New file.
12423         * modules/tan (Files): Add it.
12424         (configure.ac): Just invoke gl_FUNC_TAN.
12425
12426 2011-10-08  Bruno Haible  <bruno@clisp.org>
12427
12428         Tests for module 'cosf'.
12429         * modules/cosf-tests: New file.
12430         * tests/test-cosf.c: New file.
12431
12432         New module 'cosf'.
12433         * lib/math.in.h (cosf): New declaration.
12434         * lib/cosf.c: New file.
12435         * m4/cosf.m4: New file.
12436         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
12437         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
12438         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
12439         * modules/cosf: New file.
12440         * tests/test-math-c++.cc: Check the declaration of cosf.
12441         * doc/posix-functions/cosf.texi: Mention the new module.
12442
12443         cos: Use a .m4 file.
12444         * m4/cos.m4: New file.
12445         * modules/cos (Files): Add it.
12446         (configure.ac): Just invoke gl_FUNC_COS.
12447
12448 2011-10-08  Bruno Haible  <bruno@clisp.org>
12449
12450         Tests for module 'sinf'.
12451         * modules/sinf-tests: New file.
12452         * tests/test-sinf.c: New file.
12453
12454         New module 'sinf'.
12455         * lib/math.in.h (sinf): New declaration.
12456         * lib/sinf.c: New file.
12457         * m4/sinf.m4: New file.
12458         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
12459         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
12460         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
12461         * modules/sinf: New file.
12462         * tests/test-math-c++.cc: Check the declaration of sinf.
12463         * doc/posix-functions/sinf.texi: Mention the new module.
12464
12465         sin: Use a .m4 file.
12466         * m4/sin.m4: New file.
12467         * modules/sin (Files): Add it.
12468         (configure.ac): Just invoke gl_FUNC_SIN.
12469
12470 2011-10-08  Bruno Haible  <bruno@clisp.org>
12471
12472         Tests for module 'powf'.
12473         * modules/powf-tests: New file.
12474         * tests/test-powf.c: New file.
12475
12476         New module 'powf'.
12477         * lib/math.in.h (powf): New declaration.
12478         * lib/powf.c: New file.
12479         * m4/powf.m4: New file.
12480         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
12481         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
12482         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
12483         * modules/powf: New file.
12484         * tests/test-math-c++.cc: Check the declaration of powf.
12485         * doc/posix-functions/powf.texi: Mention the new module.
12486
12487         pow: Use a .m4 file.
12488         * m4/pow.m4: New file.
12489         * modules/pow (Files): Add it.
12490         (configure.ac): Just invoke gl_FUNC_POW.
12491
12492 2011-10-08  Bruno Haible  <bruno@clisp.org>
12493
12494         Tests for module 'log10f'.
12495         * modules/log10f-tests: New file.
12496         * tests/test-log10f.c: New file.
12497
12498         New module 'log10f'.
12499         * lib/math.in.h (log10f): New declaration.
12500         * lib/log10f.c: New file.
12501         * m4/log10f.m4: New file.
12502         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
12503         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
12504         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
12505         * modules/log10f: New file.
12506         * tests/test-math-c++.cc: Check the declaration of log10f.
12507         * doc/posix-functions/log10f.texi: Mention the new module.
12508
12509         log10: Use a .m4 file.
12510         * m4/log10.m4: New file.
12511         * modules/log10 (Files): Add it.
12512         (configure.ac): Just invoke gl_FUNC_LOG10.
12513
12514 2011-10-08  Bruno Haible  <bruno@clisp.org>
12515
12516         Tests for module 'logf'.
12517         * modules/logf-tests: New file.
12518         * tests/test-logf.c: New file.
12519
12520         New module 'logf'.
12521         * lib/math.in.h (logf): New declaration.
12522         * lib/logf.c: New file.
12523         * m4/logf.m4: New file.
12524         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
12525         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
12526         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
12527         * modules/logf: New file.
12528         * tests/test-math-c++.cc: Check the declaration of logf.
12529         * doc/posix-functions/logf.texi: Mention the new module.
12530
12531         log: Use a .m4 file.
12532         * m4/log.m4: New file.
12533         * modules/log (Files): Add it.
12534         (configure.ac): Just invoke gl_FUNC_LOG.
12535
12536 2011-10-08  Bruno Haible  <bruno@clisp.org>
12537
12538         Tests for module 'expf'.
12539         * modules/expf-tests: New file.
12540         * tests/test-expf.c: New file.
12541
12542         New module 'expf'.
12543         * lib/math.in.h (expf): New declaration.
12544         * lib/expf.c: New file.
12545         * m4/expf.m4: New file.
12546         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
12547         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
12548         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
12549         * modules/expf: New file.
12550         * tests/test-math-c++.cc: Check the declaration of expf.
12551         * doc/posix-functions/expf.texi: Mention the new module.
12552
12553         exp: Use a .m4 file.
12554         * m4/exp.m4: New file.
12555         * modules/exp (Files): Add it.
12556         (configure.ac): Just invoke gl_FUNC_EXP.
12557
12558 2011-10-08  Bruno Haible  <bruno@clisp.org>
12559
12560         Tests for module 'sqrtf'.
12561         * modules/sqrtf-tests: New file.
12562         * tests/test-sqrtf.c: New file.
12563
12564         New module 'sqrtf'.
12565         * lib/math.in.h (sqrtf): New declaration.
12566         * lib/sqrtf.c: New file.
12567         * m4/sqrtf.m4: New file.
12568         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
12569         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
12570         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
12571         * modules/sqrtf: New file.
12572         * tests/test-math-c++.cc: Check the declaration of sqrtf.
12573         * doc/posix-functions/sqrtf.texi: Mention the new module.
12574
12575 2011-10-08  Bruno Haible  <bruno@clisp.org>
12576
12577         Tests: Avoid link failures w.r.t. libintl.
12578         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
12579         $(LIBINTL).
12580         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
12581         $(LIBINTL).
12582         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
12583         against $(LIBINTL).
12584         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
12585         $(LIBINTL).
12586         * modules/openat-tests (Makefile.am): Link test-fchmodat against
12587         $(LIBINTL).
12588         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
12589
12590 2011-10-08  Bruno Haible  <bruno@clisp.org>
12591
12592         pow tests: Defeat compiler optimizations.
12593         * tests/test-pow.c (main): Assign arguments to x and y before use.
12594
12595 2011-10-08  Bruno Haible  <bruno@clisp.org>
12596
12597         gnulib-tool: Improve last commit.
12598         * gnulib-tool (func_modules_transitive_closure): Simplify code.
12599         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
12600         ignore dependencies that are not among the modules list.
12601
12602 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
12603
12604         gnulib-tool: don't follow dependencies to avoided modules
12605         This fixes a bug that is related to the previous one.
12606         * gnulib-tool (func_modules_transitive_closure)
12607         (func_emit_autoconf_snippets):
12608         Check whether a dependency is acceptable before using it.
12609         (--extract-dependencies): Report an error if --avoid is also used,
12610         since this combination of options is not yet supported.
12611
12612         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
12613         Problem reported by Peter Dyballa in
12614         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
12615         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
12616         when echoing "$condition".
12617
12618 2011-10-07  Bruno Haible  <bruno@clisp.org>
12619
12620         Fix documentation about math functions on MacOS X.
12621         * doc/posix-functions/exp2.texi: Don't say the function is missing on
12622         MacOS X 10.5.
12623         * doc/posix-functions/fdim.texi: Likewise.
12624         * doc/posix-functions/feclearexcept.texi: Likewise.
12625         * doc/posix-functions/fegetenv.texi: Likewise.
12626         * doc/posix-functions/fegetround.texi: Likewise.
12627         * doc/posix-functions/feholdexcept.texi: Likewise.
12628         * doc/posix-functions/feraiseexcept.texi: Likewise.
12629         * doc/posix-functions/fesetenv.texi: Likewise.
12630         * doc/posix-functions/fesetround.texi: Likewise.
12631         * doc/posix-functions/fetestexcept.texi: Likewise.
12632         * doc/posix-functions/feupdateenv.texi: Likewise.
12633         * doc/posix-functions/fmax.texi: Likewise.
12634         * doc/posix-functions/fmin.texi: Likewise.
12635         * doc/posix-functions/log2.texi: Likewise.
12636         * doc/posix-functions/modff.texi: Likewise.
12637         * doc/posix-functions/nan.texi: Likewise.
12638         * doc/posix-functions/nanf.texi: Likewise.
12639         * doc/posix-functions/nextafterf.texi: Likewise.
12640         * doc/posix-functions/remquo.texi: Likewise.
12641
12642 2011-10-07  Bruno Haible  <bruno@clisp.org>
12643
12644         modff: Drop assumption about library that defines modff.
12645         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
12646         AC_CHECK_FUNCS.
12647         * modules/modff (Files): Add m4/mathfunc.m4.
12648
12649 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
12650
12651         raise tests: Avoid a GCC warning.
12652         * tests/test-raise.c (handler): Use _Noreturn.
12653
12654 2011-10-07  Bruno Haible  <bruno@clisp.org>
12655
12656         Tests for module 'ldexpf'.
12657         * modules/ldexpf-tests: New file.
12658         * tests/test-ldexpf.c: New file.
12659
12660         New module 'ldexpf'.
12661         * lib/math.in.h (ldexpf): New declaration.
12662         * lib/ldexpf.c: New file.
12663         * m4/ldexpf.m4: New file.
12664         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
12665         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
12666         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
12667         * modules/ldexpf: New file.
12668         * tests/test-math-c++.cc: Check the declaration of ldexpf.
12669         * doc/posix-functions/ldexpf.texi: Mention the new module.
12670
12671 2011-10-06  Bruno Haible  <bruno@clisp.org>
12672
12673         frexpf: Work around problems on IRIX and mingw.
12674         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
12675         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
12676         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
12677         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
12678         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
12679         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
12680         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
12681
12682 2011-10-06  Bruno Haible  <bruno@clisp.org>
12683
12684         fabsf: Drop assumption about library that defines fabsf.
12685         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
12686         AC_CHECK_FUNCS.
12687         * modules/fabsf (Files): Add m4/mathfunc.m4.
12688
12689 2011-10-06  Bruno Haible  <bruno@clisp.org>
12690
12691         frexpf: Drop assumption about library that defines frexpf.
12692         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
12693         'int *', 'float *', 'long double *', 'float', 'long double'.
12694         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
12695         AC_CHECK_FUNCS.
12696         * modules/frexpf (Files): Add m4/mathfunc.m4.
12697
12698         Tests for module 'frexpf'.
12699         * modules/frexpf-tests: New file.
12700         * tests/test-frexpf.c: New file.
12701
12702         New module 'frexpf'.
12703         * lib/math.in.h (frexpf): New declaration.
12704         * lib/frexpf.c: New file.
12705         * m4/frexpf.m4: New file.
12706         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
12707         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
12708         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
12709         * modules/frexpf: New file.
12710         * tests/test-math-c++.cc: Check the declaration of frexpf.
12711         * doc/posix-functions/frexpf.texi: Mention the new module.
12712
12713 2011-10-06  Bruno Haible  <bruno@clisp.org>
12714
12715         math: Sort function declarations of math.in.h.
12716         * lib/math.in.h (frexp, logb): Move declarations.
12717
12718 2011-10-05  Bruno Haible  <bruno@clisp.org>
12719
12720         Tests for module 'modff'.
12721         * modules/modff-tests: New file.
12722         * tests/test-modff.c: New file.
12723
12724         New module 'modff'.
12725         * lib/math.in.h (modff): New declaration.
12726         * lib/modff.c: New file.
12727         * m4/modff.m4: New file.
12728         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
12729         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
12730         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
12731         * modules/modff: New file.
12732         * tests/test-math-c++.cc: Check the declaration of modff.
12733         * doc/posix-functions/modff.texi: Mention the new module.
12734
12735         modf tests: Make test sharper.
12736         * tests/test-modf.c (main): Strengthen upper bound.
12737
12738         modf: Use a .m4 file.
12739         * m4/modf.m4: New file.
12740         * modules/modf (Files): Add it.
12741         (configure.ac): Just invoke gl_FUNC_MODF.
12742
12743 2011-10-05  Bruno Haible  <bruno@clisp.org>
12744
12745         Tests for module 'fmodf'.
12746         * modules/fmodf-tests: New file.
12747         * tests/test-fmodf.c: New file.
12748
12749         New module 'fmodf'.
12750         * lib/math.in.h (fmodf): New declaration.
12751         * lib/fmodf.c: New file.
12752         * m4/fmodf.m4: New file.
12753         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
12754         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
12755         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
12756         * modules/fmodf: New file.
12757         * tests/test-math-c++.cc: Check the declaration of fmodf.
12758         * doc/posix-functions/fmodf.texi: Mention the new module.
12759
12760         fmod: Use a .m4 file.
12761         * m4/fmod.m4: New file.
12762         * modules/fmod (Files): Add it.
12763         (configure.ac): Just invoke gl_FUNC_FMOD.
12764
12765 2011-10-05  Bruno Haible  <bruno@clisp.org>
12766
12767         Tests for module 'fabsf'.
12768         * modules/fabsf-tests: New file.
12769         * tests/test-fabsf.c: New file.
12770
12771         New module 'fabsf'.
12772         * lib/math.in.h (fabsf): New declaration.
12773         * lib/fabsf.c: New file.
12774         * m4/fabsf.m4: New file.
12775         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
12776         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
12777         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
12778         * modules/fabsf: New file.
12779         * tests/test-math-c++.cc: Check the declaration of fabsf.
12780         * doc/posix-functions/fabsf.texi: Mention the new module.
12781
12782         fabs: Use a .m4 file.
12783         * m4/fabs.m4: New file.
12784         * modules/fabs (Files): Add it.
12785         (configure.ac): Just invoke gl_FUNC_FABS.
12786
12787 2011-10-05  Jim Meyering  <meyering@redhat.com>
12788
12789         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
12790         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
12791         ls -lL regression introduced in coreutils-8.12, it does so at the
12792         cost of an additional stat call in the common case.  Besides, now
12793         that the kernel change that prompted commit 95f7c57f has been reverted
12794         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
12795         we have no use for commit 95f7c57f, "file-has-acl: use
12796         acl_extended_file_nofollow if available".
12797
12798 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
12799
12800         file-has-acl: revert unintended change in behavior of ls -L
12801         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
12802         derived from...
12803         (file_has_acl): ...code here.  Call it.
12804         This problem was introduced with 2011-07-22 commit 95f7c57f,
12805         "file-has-acl: use acl_extended_file_nofollow if available".
12806         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
12807
12808 2011-10-03  Bruno Haible  <bruno@clisp.org>
12809
12810         poll: Avoid link errors on MSVC.
12811         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
12812         * modules/poll (Depends-on): Add sockets.
12813         (Link): New section.
12814         * NEWS: Mention the change.
12815         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
12816         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
12817         $(LIB_POLL) instead of $(LIBSOCKET).
12818
12819 2011-10-03  Bruno Haible  <bruno@clisp.org>
12820
12821         sys_select tests: Fix link error on MSVC 9.
12822         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
12823         with $(LIB_SELECT) instead of $(LIBSOCKET).
12824
12825 2011-10-03  Bruno Haible  <bruno@clisp.org>
12826
12827         sys_select: Fix compilation error on mingw.
12828         * lib/sys_select.in.h: On native Windows, include <io.h>.
12829
12830 2011-10-03  Bruno Haible  <bruno@clisp.org>
12831
12832         wmemset: Support for MSVC.
12833         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
12834         whether wmemset() exists.
12835
12836 2011-10-03  Bruno Haible  <bruno@clisp.org>
12837
12838         wmemmove: Support for MSVC.
12839         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
12840         whether wmemmove() exists.
12841
12842 2011-10-03  Bruno Haible  <bruno@clisp.org>
12843
12844         wmemcpy: Support for MSVC.
12845         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
12846         whether wmemcpy() exists.
12847
12848 2011-10-03  Bruno Haible  <bruno@clisp.org>
12849
12850         wmemcmp: Support for MSVC.
12851         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
12852         whether wmemcmp() exists.
12853
12854 2011-10-03  Bruno Haible  <bruno@clisp.org>
12855
12856         wmemchr: Support for MSVC.
12857         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
12858         whether wmemchr() exists.
12859
12860 2011-10-03  Bruno Haible  <bruno@clisp.org>
12861
12862         glthread/*, strsignal: Support for MSVC.
12863         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
12864         including <winsock.h> on MSVC 9.
12865         * lib/glthread/lock.h: Likewise.
12866         * lib/glthread/thread.h: Likewise.
12867         * lib/glthread/tls.h: Likewise.
12868         * lib/glthread/yield.h: Likewise.
12869         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
12870         if HAVE_UNISTD_H is false.
12871         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
12872
12873 2011-10-03  Bruno Haible  <bruno@clisp.org>
12874
12875         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
12876         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
12877         Set to 100000.
12878
12879 2011-10-03  Bruno Haible  <bruno@clisp.org>
12880
12881         acl: Fix specification.
12882         * lib/file-has-acl.c (file_has_acl): Fix specification.
12883
12884 2011-10-03  Bruno Haible  <bruno@clisp.org>
12885
12886         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
12887         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
12888         (compute_curr_prefix, shared_library_fullname,
12889         find_shared_library_fullname, get_shared_library_fullname, relocate):
12890         Use it together with PIC && INSTALLDIR.
12891         Reported by <jojelino@gmail.com>
12892         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
12893
12894 2011-10-01  Jim Meyering  <meyering@redhat.com>
12895
12896         maint.mk: adjust a release-related rule not to require use of gzip
12897         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
12898         Instead, check each file in $(DIST_ARCHIVES).  This is better for
12899         projects that build only .tar.xz files.  Also fix an erroneous test.
12900
12901         test-linkat: don't leave behind a temporary file
12902         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
12903         Otherwise, coreutils' "make distcheck" would fail with this:
12904           Only in /c/cu/tests/torture/coreutils/test/\
12905             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
12906           make[2]: *** [my-distcheck] Error 1
12907
12908         float, math: add omitted file
12909         * lib/itold.c: Add file, required for yesterday's float change.
12910
12911 2011-10-01  Bruno Haible  <bruno@clisp.org>
12912
12913         isinf: Fix for OpenBSD/x86.
12914         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
12915         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
12916         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
12917
12918 2011-10-01  Bruno Haible  <bruno@clisp.org>
12919
12920         isfinite: Fix syntax error in configure test.
12921         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
12922
12923         isfinite: Fix typo.
12924         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
12925         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
12926
12927 2011-10-01  Bruno Haible  <bruno@clisp.org>
12928
12929         nonblocking tests: Fix test failure on Linux/IA-64.
12930         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
12931         Set to 270000.
12932
12933 2011-10-01  Bruno Haible  <bruno@clisp.org>
12934
12935         mkfifoat tests: Fix a test failure on mingw.
12936         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
12937         with error ENOSYS.
12938
12939 2011-09-30  Bruno Haible  <bruno@clisp.org>
12940
12941         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
12942         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
12943         'long double'. Set REPLACE_ITOLD.
12944         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
12945         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
12946         * lib/itold.c: New file.
12947         * modules/float (Files): Add lib/itold.c.
12948         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
12949         (Makefile.am): Substitute REPLACE_ITOLD.
12950         * modules/math (Depends-on): Add float.
12951         (Makefile.am): Substitute REPLACE_ITOLD.
12952         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
12953         * doc/posix-headers/math.texi: Likewise.
12954         * doc/posix-functions/logl.texi: Likewise.
12955
12956 2011-09-30  Bruno Haible  <bruno@clisp.org>
12957
12958         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
12959         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
12960         Set to 140000.
12961
12962 2011-09-30  Bruno Haible  <bruno@clisp.org>
12963
12964         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
12965         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
12966         invocation, say "right after AC_PROG_CC_STDC", not "right after
12967         AC_PROG_CC".
12968         Reported by Gary V. Vaughan <gary@gnu.org>.
12969
12970 2011-09-30  Bruno Haible  <bruno@clisp.org>
12971
12972         Centralize C99 requirement.
12973         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
12974         * modules/stdarg (configure.ac-early): Invoke it instead of
12975         AC_PROG_CC_STDC.
12976         Reported by Gary V. Vaughan and Paul Eggert.
12977
12978 2011-09-29  Bruno Haible  <bruno@clisp.org>
12979
12980         float: Fix LDBL_MAX value on Linux/PowerPC.
12981         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
12982         on Linux/PowerPC.
12983         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
12984         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
12985         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
12986         platform.
12987         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
12988
12989 2011-09-29  Bruno Haible  <bruno@clisp.org>
12990
12991         doc: Improve doc about gl_EARLY.
12992         * doc/gnulib-tool.texi (Initial import): Mention where to place an
12993         AC_PROG_CC_STDC invocation.
12994         Reported by Gary V. Vaughan <gary@gnu.org>.
12995
12996 2011-09-28  Bruno Haible  <bruno@clisp.org>
12997
12998         fgetc, fputc, fread, fwrite tests: Fix link error.
12999         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
13000         on non-MSVC platforms.
13001         * tests/test-fputc.c (main): Likewise.
13002         * tests/test-fread.c (main): Likewise.
13003         * tests/test-fwrite.c (main): Likewise.
13004         Reported by Jim Meyering.
13005
13006 2011-09-27  Bruno Haible  <bruno@clisp.org>
13007
13008         fputc, fwrite tests: Avoid test failure on MSVC.
13009         * tests/test-fgetc.c: Include msvc-inval.h.
13010         (main): Invoke gl_msvc_inval_ensure_handler.
13011         * tests/test-fputc.c: Include msvc-inval.h.
13012         (main): Invoke gl_msvc_inval_ensure_handler.
13013         * tests/test-fread.c: Include msvc-inval.h.
13014         (main): Invoke gl_msvc_inval_ensure_handler.
13015         * tests/test-fwrite.c: Include msvc-inval.h.
13016         (main): Invoke gl_msvc_inval_ensure_handler.
13017         * modules/fgetc-tests (Depends-on): Add msvc-inval.
13018         * modules/fputc-tests (Depends-on): Likewise.
13019         * modules/fread-tests (Depends-on): Likewise.
13020         * modules/fwrite-tests (Depends-on): Likewise.
13021
13022 2011-09-27  Bruno Haible  <bruno@clisp.org>
13023
13024         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
13025         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
13026         (raise): Remove older, duplicated declaration.
13027         (_gl_raise_SIGPIPE): New declaration.
13028         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
13029         (rpl_raise): Remove function.
13030         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
13031         a gnulib-defined SIGPIPE here.
13032         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
13033         'sigprocmask' has detected missing signal-blocking and the module
13034         'sigpipe' is enabled.
13035         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
13036
13037 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
13038
13039         base64-tests: avoid memory leak
13040         * tests/test-base64.c (main): Plug memory leak.
13041
13042         base32: new module
13043         * modules/base32: New module.
13044         * lib/base32.c: New file.
13045         * lib/base32.h: Likewise.
13046         * m4/base32.m4: Likewise.
13047         * modules/base32-tests: New test.
13048         * tests/test-base32.c: Likewise.
13049         * MODULES.html.sh (Misc): Mention it.
13050
13051 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
13052
13053         gnulib: use more-standard license notice wording
13054         * gnulib-tool (func_emit_copyright_notice): When emitting a
13055         license notice into a file, use the standard wording as suggested
13056         by the current information for GNU maintainers, except say "file"
13057         rather than "program".  The new wording gives a license version
13058         number, which addresses an issue raised by Glenn Morris in
13059         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
13060         * m4/onceonly.m4: Use that same wording here, too.
13061
13062         dup2: minor simplification
13063         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
13064         as lib/dup2.c no longer uses 'inline'.
13065
13066 2011-09-25  Bruno Haible  <bruno@clisp.org>
13067
13068         strings: Fix compilation error on MSVC.
13069         * lib/strings.in.h: Include <stddef.h> for size_t.
13070
13071 2011-09-25  Bruno Haible  <bruno@clisp.org>
13072
13073         fflush et al.: Document limitation on MSVC.
13074         * doc/posix-functions/fflush.texi: Document possible crash in handling
13075         mode other than DEFAULT_HANDLING.
13076         * doc/posix-functions/fgetc.texi: Likewise.
13077         * doc/posix-functions/fputc.texi: Likewise.
13078         * doc/posix-functions/fread.texi: Likewise.
13079         * doc/posix-functions/fwrite.texi: Likewise.
13080
13081 2011-09-25  Bruno Haible  <bruno@clisp.org>
13082
13083         msvc-inval: Allow three invalid parameter handling modes.
13084         * lib/msvc-inval.h: Don't include <stdlib.h> here.
13085         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
13086         macros.
13087         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
13088         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
13089         SANE_LIBRARY_HANDLING as a no-op.
13090         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
13091         <stdlib.h>.
13092         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
13093
13094 2011-09-25  Bruno Haible  <bruno@clisp.org>
13095
13096         msvc-inval: Make handler multithread-safe.
13097         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
13098         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
13099         declarations.
13100         (gl_msvc_inval_current): New declaration.
13101         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
13102         Operate on the structure returned by gl_msvc_inval_current().
13103         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
13104         Remove varaiables.
13105         (tls_index, tls_initialized): New variables.
13106         (not_per_thread): New variable.
13107         (gl_msvc_inval_current): New function.
13108         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
13109         returned by gl_msvc_inval_current().
13110
13111 2011-09-25  Bruno Haible  <bruno@clisp.org>
13112
13113         msvc-inval: Install handler globally.
13114         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
13115         !_MSC_VER.
13116         (gl_msvc_invalid_parameter_handler): Remove declaration.
13117         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
13118         declarations.
13119         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
13120         Install the handler globally, don't uninstall it.
13121         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
13122         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
13123         currently valid, call RaiseException instead.
13124         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
13125         for !_MSC_VER.
13126
13127 2011-09-25  Bruno Haible  <bruno@clisp.org>
13128
13129         strerror_r-posix: Fix for MSVC 9.
13130         * lib/strerror_r.c (local_snprintf): New function.
13131         (snprintf): Define to local_snprintf, not to _snprintf.
13132
13133 2011-09-25  Bruno Haible  <bruno@clisp.org>
13134
13135         ftruncate: Support for MSVC 9.
13136         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
13137         (chsize_nothrow): New function.
13138         (chsize): Redefine as a macro.
13139         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
13140         * modules/ftruncate (Depends-on): Add msvc-inval.
13141
13142 2011-09-25  Bruno Haible  <bruno@clisp.org>
13143
13144         New module 'fstat'.
13145         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
13146         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
13147         * lib/fchdir.c (rpl_fstat): Remove function.
13148         * m4/fstat.m4: New file.
13149         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
13150         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
13151         declared.
13152         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
13153         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
13154         * modules/fstat: New file.
13155         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
13156         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
13157         is set.
13158         * doc/posix-functions/fstat.texi: Mention the new module and the
13159         problem on MSVC.
13160         * NEWS: Mention the change.
13161         * modules/acl (Depends-on): Add fstat.
13162         * modules/chdir-safer (Depends-on): Likewise.
13163         * modules/chown (Depends-on): Likewise.
13164         * modules/copy-file (Depends-on): Likewise.
13165         * modules/fchdir (Depends-on): Likewise.
13166         * modules/fdopendir (Depends-on): Likewise.
13167         * modules/fopen (Depends-on): Likewise.
13168         * modules/fts (Depends-on): Likewise.
13169         * modules/getcwd (Depends-on): Likewise.
13170         * modules/isapipe (Depends-on): Likewise.
13171         * modules/linkat (Depends-on): Likewise.
13172         * modules/lseek (Depends-on): Likewise.
13173         * modules/mkdir-p (Depends-on): Likewise.
13174         * modules/open (Depends-on): Likewise.
13175         * modules/openat (Depends-on): Likewise.
13176         * modules/read-file (Depends-on): Likewise.
13177         * modules/renameat (Depends-on): Likewise.
13178         * modules/utimens (Depends-on): Likewise.
13179
13180 2011-09-25  Bruno Haible  <bruno@clisp.org>
13181
13182         linkat: Fix compilation on MSVC 9.
13183         * lib/linkat.c: Don't include <stdint.h>.
13184
13185 2011-09-25  Bruno Haible  <bruno@clisp.org>
13186
13187         fclose: Support for MSVC 9.
13188         * lib/fclose.c: Include msvc-inval.h.
13189         (fclose_nothrow): New function.
13190         (rpl_fclose): Use it.
13191         * modules/fclose (Depends-on): Add msvc-inval.
13192         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
13193
13194 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
13195
13196         dup2: minor simplifications
13197         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
13198         that it's a performance win.
13199         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
13200         ! defined __CYGWIN__)" to "ifdef F_GETFL".
13201
13202 2011-09-24  Jim Meyering  <meyering@redhat.com>
13203
13204         test-futimens: avoid a warning from gcc -Wshadow
13205         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
13206         to avoid a shadowing warning.
13207
13208 2011-09-24  Bruno Haible  <bruno@clisp.org>
13209
13210         fdopen: Support for MSVC 9.
13211         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
13212         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
13213         * lib/fdopen.c: Include msvc-inval.h.
13214         (fdopen_nothrow): New function.
13215         (rpl_fdopen): Use it.
13216         * modules/fdopen (Depends-on): Add msvc-inval.
13217         * modules/fclose-tests (Depends-on): Add fdopen.
13218         * modules/fflush-tests (Depends-on): Likewise.
13219         * modules/fgetc-tests (Depends-on): Likewise.
13220         * modules/fputc-tests (Depends-on): Likewise.
13221         * modules/fread-tests (Depends-on): Likewise.
13222         * modules/freopen-tests (Depends-on): Likewise.
13223         * modules/fseeko-tests (Depends-on): Likewise.
13224         * modules/ftello-tests (Depends-on): Likewise.
13225         * modules/fwrite-tests  (Depends-on): Likewise.
13226         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
13227
13228 2011-09-24  Bruno Haible  <bruno@clisp.org>
13229
13230         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
13231         * modules/fgetc-tests (Depends-on): Add unistd.
13232         * modules/fputc-tests (Depends-on): Likewise.
13233         * modules/fread-tests (Depends-on): Likewise.
13234         * modules/fwrite-tests (Depends-on): Likewise.
13235
13236 2011-09-24  Bruno Haible  <bruno@clisp.org>
13237
13238         dup: Simplify autoconf test.
13239         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
13240         on gl_MSVC_INVAL's result.
13241
13242 2011-09-24  Bruno Haible  <bruno@clisp.org>
13243
13244         Tests for function fwrite().
13245         * modules/fwrite-tests: New file.
13246         * tests/test-fwrite.c: New file.
13247         * modules/stdio-tests (Depends-on): Add fwrite-tests.
13248
13249         Tests for function fread().
13250         * modules/fread-tests: New file.
13251         * tests/test-fread.c: New file.
13252         * modules/stdio-tests (Depends-on): Add fread-tests.
13253
13254         Activate fputc tests.
13255         * modules/stdio-tests (Depends-on): Add fputc-tests.
13256
13257         Enhance fgetc, fputc tests.
13258         * tests/test-fgetc.c (main): Also test the stream's error indicator.
13259         * tests/test-fputc.c (main): Likewise.
13260
13261 2011-09-24  Bruno Haible  <bruno@clisp.org>
13262
13263         write: Support for MSVC 9.
13264         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
13265         is not 1.
13266         * lib/write.c (write_nothrow): New function.
13267         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
13268         not 1. Use write_nothrow.
13269         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
13270         invalid parameter handler.
13271         (gl_PREREQ_WRITE): New macro.
13272         * modules/write (Depends-on): Add msvc-inval.
13273         (configure.ac): Invoke gl_PREREQ_WRITE.
13274         * doc/posix-functions/write.texi: Mention the problem on MSVC.
13275
13276 2011-09-24  Bruno Haible  <bruno@clisp.org>
13277
13278         read: Fix last commit.
13279         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
13280
13281 2011-09-24  Bruno Haible  <bruno@clisp.org>
13282
13283         dup2: Fix last commit.
13284         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
13285         (rpl_dup2): Disable fcntl workaround on native Windows.
13286
13287         sigprocmask: Make code safer.
13288         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
13289         section that changes macro definitions for this compilation unit.
13290
13291 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
13292
13293         dup2: clarify by coalescing Windows-specific material
13294         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
13295         "msvc-nothrow.h"' to the Windows-specific section, so that the
13296         Emacs source need not contain these include files.
13297         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
13298         Windows-specific fixes into this function rather than just the
13299         nothrow fix, as this shortens and clarifies the code.  Always
13300         define as a function, as that's a bit cleaner than having it be
13301         sometimes a function and sometimes a macro.
13302         (rpl_dup2): Move the Windows-specific stuff out of here and into
13303         ms_windows_dup2.  Don't protect the Haiku-related fix with
13304         "#if !defined __linux__", as the same code also works around
13305         a Linux kernel bug, and it doesn't add any system calls on any
13306         platform.  Add comment about FreeBSD 6.1.
13307
13308         sigprocmask: move #include directive
13309         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
13310         Windows-specific section, so that the Emacs source need not
13311         contain msvc-inval.h.
13312
13313 2011-09-23  Bruno Haible  <bruno@clisp.org>
13314
13315         read: Support for MSVC 9.
13316         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
13317         is not 1.
13318         * lib/read.c (read_nothrow): New function.
13319         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
13320         read_nothrow.
13321         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
13322         invalid parameter handler.
13323         (gl_PREREQ_READ): New macro.
13324         * modules/read (Depends-on): Add msvc-inval.
13325         (configure.ac): Invoke gl_PREREQ_READ.
13326         * doc/posix-functions/read.texi: Mention the problem on MSVC.
13327
13328 2011-09-23  Bruno Haible  <bruno@clisp.org>
13329
13330         close: Support for MSVC 9.
13331         * lib/close.c: Include <errno.h>, msvc-inval.h.
13332         (close_nothrow): New function.
13333         (rpl_close): Use it.
13334         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
13335         invalid parameter handler.
13336         * modules/close (Depends-on): Add msvc-inval.
13337         * modules/dup2-tests (Depends-on): Add close.
13338         * modules/dup3-tests (Depends-on): Likewise.
13339         * modules/fcntl-tests (Depends-on): Likewise.
13340         * modules/spawn-pipe-tests (Depends-on): Likewise.
13341         * modules/unistd-safer-tests (Depends-on): Likewise.
13342         * doc/posix-functions/close.texi: Mention the problem on MSVC.
13343
13344 2011-09-23  Bruno Haible  <bruno@clisp.org>
13345
13346         New module 'dup'.
13347         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
13348         Allow replacement.
13349         * lib/dup.c: New file.
13350         * lib/fchdir.c (rpl_dup): Remove function.
13351         * m4/dup.m4: New file.
13352         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
13353         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
13354         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
13355         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
13356         * modules/dup: New file.
13357         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
13358         'dup' module is in use.
13359         * modules/fdopendir (Depends-on): Add dup.
13360         * modules/fdutimensat-tests (Depends-on): Likewise.
13361         * modules/fts (Depends-on): Likewise.
13362         * modules/futimens-tests (Depends-on): Likewise.
13363         * modules/posix_spawnp-tests (Depends-on): Likewise.
13364         * modules/unistd-safer-tests (Depends-on): Likewise.
13365         * modules/utimens-tests (Depends-on): Likewise.
13366         * doc/posix-functions/dup.texi: Mention the new module and the problem
13367         on MSVC.
13368
13369 2011-09-23  Bruno Haible  <bruno@clisp.org>
13370
13371         getdtablesize: Support for MSVC 9.
13372         * lib/getdtablesize.c: Include msvc-inval.h.
13373         (_setmaxstdio_nothrow): New function.
13374         (_setmaxstdio): Redefine it.
13375         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
13376         * modules/getdtablesize (Depends-on): Add msvc-inval.
13377         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
13378
13379 2011-09-23  Bruno Haible  <bruno@clisp.org>
13380
13381         signal-h: Rename from signal.
13382         * modules/signal-h: Renamed from modules/signal.
13383         * modules/pthread_sigmask (Depends-on): Update.
13384         * modules/raise (Depends-on): Likewise.
13385         * modules/sigaction (Depends-on): Likewise.
13386         * modules/sigpipe (Depends-on): Likewise.
13387         * modules/sigprocmask (Depends-on): Likewise.
13388         * modules/sys_select (Depends-on): Likewise.
13389         * modules/signal-h-tests: Renamed from modules/signal-tests.
13390         (Files, Depends-on, Makefile.am): Update.
13391         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
13392         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
13393         (Files, Makefile.am): Update.
13394         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
13395         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
13396         * modules/signal: New placeholder file.
13397         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
13398         * doc/posix-headers/signal.texi: Update.
13399         * NEWS: Mention the change.
13400
13401 2011-09-23  Bruno Haible  <bruno@clisp.org>
13402
13403         sigprocmask: Avoid crashes through signal() on MSVC 9.
13404         * lib/sigprocmask.c: Include msvc-inval.h.
13405         (signal_nothrow): New function.
13406         (signal): Redefine it.
13407         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
13408         * modules/sigprocmask (Depends-on): Add msvc-inval.
13409         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
13410
13411 2011-09-23  Bruno Haible  <bruno@clisp.org>
13412
13413         Tests for module 'raise'.
13414         * modules/raise-tests: New file.
13415         * tests/test-raise.c: New file.
13416
13417         raise: Support for MSVC.
13418         * lib/signal.in.h (raise): New declaration.
13419         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
13420         for native Windows platforms.
13421         * m4/raise.m4: New file.
13422         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
13423         HAVE_RAISE, REPLACE_RAISE.
13424         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
13425         REPLACE_RAISE.
13426         * modules/raise (Status, Notice): Remove fields.
13427         (Files): Add m4/raise.m4.
13428         (Depends-on): Add signal, msvc-inval.
13429         (configure.ac): Use the common idioms.
13430         (Maintainer): Add me.
13431         * tests/test-signal-c++.cc: Check the signature of raise.
13432         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
13433
13434 2011-09-23  Bruno Haible  <bruno@clisp.org>
13435
13436         pipe2: Fix compilation on pre-C99 compilers.
13437         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
13438
13439 2011-09-23  Bruno Haible  <bruno@clisp.org>
13440
13441         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
13442         * lib/msvc-nothrow.h: New file.
13443         * lib/msvc-nothrow.c: New file.
13444         * m4/msvc-nothrow.m4: New file.
13445         * modules/msvc-nothrow: New file.
13446         * lib/dup2.c: Include msvc-nothrow.h.
13447         (rpl_dup2): No need to protect _get_osfhandle call here.
13448         * lib/accept4.c: Include msvc-nothrow.h.
13449         * lib/error.c: Likewise.
13450         * lib/fcntl.c: Likewise.
13451         * lib/lseek.c: Likewise.
13452         * lib/nonblocking.c: Likewise.
13453         * lib/poll.c: Likewise.
13454         * lib/read.c: Likewise.
13455         * lib/select.c: Likewise.
13456         * lib/sockets.h: Likewise.
13457         * lib/sockets.c: Likewise.
13458         * lib/stdio-read.c: Likewise.
13459         * lib/stdio-write.c: Likewise.
13460         * lib/write.c: Likewise.
13461         * lib/w32sock.h: Likewise.
13462         * lib/w32spawn.h: Likewise.
13463         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
13464         * lib/fsync.c: Likewise.
13465         * lib/isapipe.c: Likewise.
13466         * modules/dup2 (Depends-on): Add msvc-nothrow.
13467         * modules/accept4 (Depends-on): Likewise.
13468         * modules/error (Depends-on): Likewise.
13469         * modules/fcntl (Depends-on): Likewise.
13470         * modules/lseek (Depends-on): Likewise.
13471         * modules/nonblocking (Depends-on): Likewise.
13472         * modules/poll (Depends-on): Likewise.
13473         * modules/read (Depends-on): Likewise.
13474         * modules/select (Depends-on): Likewise.
13475         * modules/sockets (Depends-on): Likewise.
13476         * modules/sigpipe (Depends-on): Likewise.
13477         * modules/write (Depends-on): Likewise.
13478         * modules/accept (Depends-on): Likewise.
13479         * modules/bind (Depends-on): Likewise.
13480         * modules/connect (Depends-on): Likewise.
13481         * modules/gethostname (Depends-on): Likewise.
13482         * modules/getpeername (Depends-on): Likewise.
13483         * modules/getsockname (Depends-on): Likewise.
13484         * modules/getsockopt (Depends-on): Likewise.
13485         * modules/ioctl (Depends-on): Likewise.
13486         * modules/listen (Depends-on): Likewise.
13487         * modules/recv (Depends-on): Likewise.
13488         * modules/recvfrom (Depends-on): Likewise.
13489         * modules/send (Depends-on): Likewise.
13490         * modules/sendto (Depends-on): Likewise.
13491         * modules/setsockopt (Depends-on): Likewise.
13492         * modules/shutdown (Depends-on): Likewise.
13493         * modules/socket (Depends-on): Likewise.
13494         * modules/execute (Depends-on): Likewise.
13495         * modules/spawn-pipe (Depends-on): Likewise.
13496         * modules/flock (Depends-on): Likewise.
13497         * modules/fsync (Depends-on): Likewise.
13498         * modules/isapipe (Depends-on): Likewise.
13499         * tests/test-cloexec.c: Include msvc-nothrow.h.
13500         * tests/test-dup-safer.c: Likewise.
13501         * tests/test-dup2.c: Likewise.
13502         * tests/test-dup3.c: Likewise.
13503         * tests/test-fcntl.c: Likewise.
13504         * tests/test-pipe.c: Likewise.
13505         * tests/test-pipe2.c: Likewise.
13506         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
13507         * modules/unistd-safer-tests (Depends-on): Likewise.
13508         * modules/dup2-tests (Depends-on): Likewise.
13509         * modules/dup3-tests (Depends-on): Likewise.
13510         * modules/fcntl-tests (Depends-on): Likewise.
13511         * modules/pipe-posix-tests (Depends-on): Likewise.
13512         * modules/pipe2-tests (Depends-on): Likewise.
13513
13514 2011-09-23  Bruno Haible  <bruno@clisp.org>
13515
13516         dup2: Make code more maintainable.
13517         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
13518         (rpl_dup2): Use it.
13519         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
13520         * modules/dup2 (configure.ac): Invoke it.
13521         Reported by Paul Eggert.
13522
13523 2011-09-23  Bruno Haible  <bruno@clisp.org>
13524
13525         msvc-inval: Fix compilation error.
13526         * lib/msvc-inval.h: Include <excpt.h>.
13527
13528 2011-09-23  Bruno Haible  <bruno@clisp.org>
13529
13530         mkdir: Tweak for MSVC 9.
13531         * lib/sys_stat.in.h: Update comments.
13532         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
13533
13534         Tests for module 'chdir'.
13535         * modules/chdir-tests: New file.
13536         * tests/test-chdir.c: New file.
13537
13538         New module 'chdir'.
13539         * modules/chdir: New file.
13540         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
13541         (chdir): New declaration.
13542         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
13543         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
13544         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
13545         * tests/test-unistd-c++.cc: Check signature of chdir.
13546         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
13547         * modules/chdir-long (Depends-on): Add chdir.
13548         * modules/fchdir (Depends-on): Likewise.
13549         * modules/rename (Depends-on): Likewise.
13550         * modules/savewd (Depends-on): Likewise.
13551
13552         rmdir: Support for mingw, MSVC 9.
13553         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
13554         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
13555
13556         getcwd: Tweak for MSVC 9.
13557         * lib/unistd.in.h: Update comments.
13558         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
13559
13560 2011-09-22  Bruno Haible  <bruno@clisp.org>
13561
13562         strerror_r-posix: Avoid a link error on MSVC.
13563         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
13564         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
13565
13566 2011-09-22  Bruno Haible  <bruno@clisp.org>
13567
13568         select: Avoid link errors on MSVC.
13569         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
13570         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
13571         * modules/pselect (Link): Likewise.
13572         * NEWS: Mention the change.
13573         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
13574         test-select-stdin against $(LIB_SELECT).
13575         * modules/pselect-tests (Makefile.am): Link test-pselect against
13576         $(LIB_SELECT).
13577
13578 2011-09-22  Bruno Haible  <bruno@clisp.org>
13579
13580         select: Avoid compilation error on MSVC.
13581         * lib/select.c: Don't include <stdbool.h>.
13582
13583 2011-09-21  Bruno Haible  <bruno@clisp.org>
13584
13585         Consolidate all uses of PATH_MAX in *.m4 files.
13586         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
13587         macros.
13588         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
13589         and gl_PATHMAX_SNIPPET.
13590         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
13591         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
13592         * modules/chdir-long (Files): Add m4/pathmax.m4.
13593         * modules/getcwd (Files): Likewise.
13594
13595 2011-09-21  Bruno Haible  <bruno@clisp.org>
13596
13597         ftruncate: Un-deprecate, concentrate on Win32 support.
13598         * modules/ftruncate (Status, Notice): Remove sections.
13599         (Depends-on): Add largefile.
13600         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
13601         non-mingw platforms.
13602         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
13603         include <io.h>.
13604         * modules/perror-tests (Depends-on): Add ftruncate.
13605         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
13606         'ftruncate' module.
13607
13608 2011-09-21  Bruno Haible  <bruno@clisp.org>
13609
13610         Add dependencies to new dirent related modules.
13611         * modules/opendir (Depends-on): Add closedir.
13612         * modules/getcwd (Depends-on): Add opendir, closedir.
13613         * modules/dirent-safer-tests (Depends-on): Likewise.
13614         * modules/fdopendir-tests (Depends-on): Likewise.
13615         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
13616         * modules/renameat-tests (Depends-on): Likewise.
13617
13618 2011-09-21  Bruno Haible  <bruno@clisp.org>
13619
13620         opendir: Avoid compilation error on mingw.
13621         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
13622         * modules/opendir (Depends-on): Add unistd.
13623
13624 2011-09-21  Bruno Haible  <bruno@clisp.org>
13625
13626         ftruncate tests: Avoid a test failure on mingw.
13627         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
13628
13629 2011-09-21  Bruno Haible  <bruno@clisp.org>
13630
13631         select tests: Avoid test failures on OSF/1 5.1 and mingw.
13632         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
13633         native Windows.
13634
13635 2011-09-21  Bruno Haible  <bruno@clisp.org>
13636
13637         New module 'fdopen'.
13638         * lib/stdio.in.h (fdopen): New declaration.
13639         * lib/fdopen.c: New file.
13640         * m4/fdopen.m4: New file.
13641         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
13642         REPLACE_FDOPEN.
13643         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
13644         REPLACE_FDOPEN.
13645         * modules/fdopen: New file.
13646         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
13647         * tests/test-stdio-c++.cc: Check signature of fdopen.
13648         * doc/posix-functions/fdopen.texi: Mention the new module.
13649
13650 2011-09-21  Bruno Haible  <bruno@clisp.org>
13651
13652         unlockpt tests: Avoid test failure on NetBSD 5.1.
13653         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
13654         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
13655
13656 2011-09-21  Bruno Haible  <bruno@clisp.org>
13657
13658         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
13659         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
13660         * tests/test-getlogin_r.c (main): Likewise.
13661
13662 2011-09-20  Bruno Haible  <bruno@clisp.org>
13663
13664         time tests: Don't require pid_t.
13665         * doc/posix-headers/time.texi: Revert last change.
13666         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
13667         * tests/test-time.c: Comment out the check for pid_t.
13668
13669 2011-09-20  Bruno Haible  <bruno@clisp.org>
13670
13671         fsync tests: Avoid a test failure on mingw.
13672         * tests/test-fsync.c (main): Allow a failure with EIO.
13673
13674 2011-09-20  Bruno Haible  <bruno@clisp.org>
13675
13676         euidaccess: Update comments.
13677         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
13678
13679 2011-09-20  Bruno Haible  <bruno@clisp.org>
13680
13681         Ensure EBADF returns for socket functions on mingw.
13682         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
13683         descriptor is invalid.
13684         * lib/bind.c (rpl_bind): Likewise.
13685         * lib/connect.c (rpl_connect): Likewise.
13686         * lib/getpeername.c (rpl_getpeername): Likewise.
13687         * lib/getsockname.c (rpl_getsockname): Likewise.
13688         * lib/getsockopt.c (rpl_getsockopt): Likewise.
13689         * lib/listen.c (rpl_listen): Likewise.
13690         * lib/recv.c (rpl_recv): Likewise.
13691         * lib/recvfrom.c (rpl_recvfrom): Likewise.
13692         * lib/send.c (rpl_send): Likewise.
13693         * lib/sendto.c (rpl_sendto): Likewise.
13694         * lib/setsockopt.c (rpl_setsockopt): Likewise.
13695         * lib/shutdown.c (rpl_shutdown): Likewise.
13696
13697 2011-09-20  Bruno Haible  <bruno@clisp.org>
13698
13699         select tests: EBADF tests.
13700         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
13701         test_bad_fd): New functions.
13702         (test_function): Invoke also test_bad_fd.
13703
13704 2011-09-20  Bruno Haible  <bruno@clisp.org>
13705
13706         Tests for module 'posix_spawn_file_actions_addopen.
13707         * modules/posix_spawn_file_actions_addopen-tests: New file.
13708         * tests/test-posix_spawn_file_actions_addopen.c: New file.
13709
13710         Tests for module 'posix_spawn_file_actions_adddup2'.
13711         * modules/posix_spawn_file_actions_adddup2-tests: New file.
13712         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
13713
13714         Tests for module 'posix_spawn_file_actions_addclose'.
13715         * modules/posix_spawn_file_actions_addclose-tests: New file.
13716         * tests/test-posix_spawn_file_actions_addclose.c: New file.
13717
13718 2011-09-20  Bruno Haible  <bruno@clisp.org>
13719
13720         Tests for module 'unlockpt'.
13721         * modules/unlockpt-tests: New file.
13722         * tests/test-unlockpt.c: New file.
13723         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
13724
13725         Tests for module 'grantpt'.
13726         * modules/grantpt-tests: New file.
13727         * tests/test-grantpt.c: New file.
13728         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
13729
13730 2011-09-20  Bruno Haible  <bruno@clisp.org>
13731
13732         freopen tests: EBADF tests.
13733         * tests/test-freopen.c: Include errno.h, unistd.h.
13734         (main): Add tests for EBADF, commented out for the moment.
13735
13736         fclose tests: EBADF tests.
13737         * tests/test-fclose.c (main): Add tests for EBADF.
13738
13739         fflush tests: EBADF tests.
13740         * tests/test-fflush.c: Include errno.h, macros.h.
13741         (main): Add tests for EBADF.
13742
13743         ftello tests: EBADF tests.
13744         * tests/test-ftello4.sh: New file.
13745         * tests/test-ftello4.c: New file.
13746         * modules/ftello-tests (Files): Add them.
13747         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
13748
13749         fseeko tests: EBADF tests.
13750         * tests/test-fseeko4.sh: New file.
13751         * tests/test-fseeko4.c: New file.
13752         * modules/fseeko-tests (Files): Add them.
13753         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
13754
13755         Tests for function fputc().
13756         * modules/fputc-tests: New file.
13757         * tests/test-fputc.c: New file.
13758         * modules/stdio-tests (Depends-on): Add fputc-tests.
13759
13760         Tests for function fgetc().
13761         * modules/fgetc-tests: New file.
13762         * tests/test-fgetc.c: New file.
13763         * modules/stdio-tests (Depends-on): Add fgetc-tests.
13764
13765         Tests for function fdopen().
13766         * modules/fdopen-tests: New file.
13767         * tests/test-fdopen.c: New file.
13768         * modules/stdio-tests (Depends-on): Add fdopen-tests.
13769
13770         Tests for module 'vdprintf'.
13771         * modules/vdprintf-tests: New file.
13772         * tests/test-vdprintf.c: New file.
13773
13774         Tests for module 'dprintf'.
13775         * modules/dprintf-tests: New file.
13776         * tests/test-dprintf.c: New file.
13777
13778 2011-09-20  Bruno Haible  <bruno@clisp.org>
13779
13780         Tests for module 'ioctl'.
13781         * modules/ioctl-tests: New file.
13782         * tests/test-ioctl.c: New file.
13783
13784 2011-09-20  Bruno Haible  <bruno@clisp.org>
13785
13786         fcntl tests: EBADF tests.
13787         * tests/test-fcntl.c (main): Add more tests for EBADF.
13788
13789 2011-09-20  Bruno Haible  <bruno@clisp.org>
13790
13791         utimensat tests: EBADF tests.
13792         * tests/test-utimensat.c (main): Add tests for EBADF.
13793
13794         renameat tests: EBADF tests.
13795         * tests/test-renameat.c (main): Add tests for EBADF.
13796
13797         mkfifoat tests: EBADF tests.
13798         * tests/test-mkfifoat.c (main): Add tests for EBADF.
13799
13800         readlinkat tests: EBADF tests.
13801         * tests/test-readlinkat.c (main): Add tests for EBADF.
13802
13803         symlinkat tests: EBADF tests.
13804         * tests/test-symlinkat.c (main): Add tests for EBADF.
13805
13806         linkat tests: EBADF tests.
13807         * tests/test-linkat.c (main): Add tests for EBADF.
13808
13809         Tests for module 'faccessat'.
13810         * modules/faccessat-tests: New file.
13811         * tests/test-faccessat.c: New file.
13812
13813         fdopendir tests: EBADF tests.
13814         * tests/test-fdopendir.c (main): Add more tests for EBADF.
13815
13816         openat tests: EBADF tests.
13817         * tests/test-fchownat.c (main): Add tests for EBADF.
13818         * tests/test-fstatat.c (main): Likewise.
13819         * tests/test-mkdirat.c (main): Likewise.
13820         * tests/test-openat.c (main): Likewise.
13821         * tests/test-unlinkat.c (main): Likewise.
13822         * tests/test-fchmodat.c: New file.
13823         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
13824         (Makefile.am): Also run 'test-fchmodat'.
13825
13826 2011-09-20  Bruno Haible  <bruno@clisp.org>
13827
13828         utimens, futimens, fdutimensat tests: EBADF tests.
13829         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
13830
13831         Tests for function fstat().
13832         * modules/fstat-tests: New file.
13833         * tests/test-fstat.c: New file.
13834         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
13835
13836 2011-09-20  Bruno Haible  <bruno@clisp.org>
13837
13838         test-ttyname_r tests: EBADF tests.
13839         * tests/test-ttyname_r.c (main): Add tests for EBADF.
13840
13841         Tests for module 'isatty'.
13842         * modules/isatty-tests: New file.
13843         * tests/test-isatty.c: New file.
13844
13845         Tests for module 'write'.
13846         * modules/write-tests: New file.
13847         * tests/test-write.c: New file.
13848
13849         Tests for module 'read'.
13850         * modules/read-tests: New file.
13851         * tests/test-read.c: New file.
13852
13853         pwrite tests: EBADF tests.
13854         * tests/test-pwrite.c (main): Add tests for EBADF.
13855
13856         pread tests: EBADF tests.
13857         * tests/test-pread.c (main): Add tests for EBADF.
13858
13859         lseek tests: EBADF tests.
13860         * tests/test-lseek.c (main): Add more tests for EBADF.
13861
13862         Tests for module 'ftruncate'.
13863         * modules/ftruncate-tests: New file.
13864         * tests/test-ftruncate.sh: New file.
13865         * tests/test-ftruncate.c: New file.
13866
13867         fsync tests: EBADF tests.
13868         * tests/test-fsync.c (main): Add more tests for EBADF.
13869
13870         fdatasync tests: EBADF tests.
13871         * tests/test-fdatasync.c (main): Add more tests for EBADF.
13872
13873         Tests for module 'fchown'.
13874         * modules/fchown-tests: New file.
13875         * tests/test-fchown.c: New file.
13876
13877         Tests for module 'fchmod'.
13878         * modules/fchmod-tests: New file.
13879         * tests/test-fchmod.c: New file.
13880
13881         fchdir tests: EBADF tests.
13882         * tests/test-fchdir.c (main): Add more tests for EBADF.
13883
13884         dup2 tests: EBADF tests.
13885         * tests/test-dup2.c (main): Add more tests for EBADF.
13886
13887         Tests for module 'dup'.
13888         * modules/dup-tests: New file.
13889         * tests/test-dup.c: New file.
13890
13891         Tests for module 'close'.
13892         * modules/close-tests: New file.
13893         * tests/test-close.c: New file.
13894
13895 2011-09-20  Bruno Haible  <bruno@clisp.org>
13896
13897         Tests for module 'shutdown'.
13898         * modules/shutdown-tests: New file.
13899         * tests/test-shutdown.c: New file.
13900
13901         Tests for module 'setsockopt'.
13902         * modules/setsockopt-tests: New file.
13903         * tests/test-setsockopt.c: New file.
13904
13905         Tests for module 'sendto'.
13906         * modules/sendto-tests: New file.
13907         * tests/test-sendto.c: New file.
13908
13909         Tests for module 'send'.
13910         * modules/send-tests: New file.
13911         * tests/test-send.c: New file.
13912
13913         Tests for module 'recvfrom'.
13914         * modules/recvfrom-tests: New file.
13915         * tests/test-recvfrom.c: New file.
13916
13917         Tests for module 'recv'.
13918         * modules/recv-tests: New file.
13919         * tests/test-recv.c: New file.
13920
13921         Tests for module 'listen'.
13922         * modules/listen-tests: New file.
13923         * tests/test-listen.c: New file.
13924
13925         Tests for module 'getsockopt'.
13926         * modules/getsockopt-tests: New file.
13927         * tests/test-getsockopt.c: New file.
13928
13929         Tests for module 'getsockname'.
13930         * modules/getsockname-tests: New file.
13931         * tests/test-getsockname.c: New file.
13932
13933         Tests for module 'getpeername'.
13934         * modules/getpeername-tests: New file.
13935         * tests/test-getpeername.c: New file.
13936
13937         Tests for module 'connect'.
13938         * modules/connect-tests: New file.
13939         * tests/test-connect.c: New file.
13940
13941         Tests for module 'bind'.
13942         * modules/bind-tests: New file.
13943         * tests/test-bind.c: New file.
13944
13945         accept4 tests: Fix for native Windows.
13946         * tests/test-accept4.c: Include sockets.h.
13947         (main): Invoke gl_sockets_startup.
13948         * modules/accept4-tests (Depends-on): Add sockets.
13949
13950         accept tests: Fix for native Windows.
13951         * tests/test-accept.c: Include sockets.h.
13952         (main): Invoke gl_sockets_startup.
13953         * modules/accept-tests (Depends-on): Add sockets.
13954
13955 2011-09-19  Bruno Haible  <bruno@clisp.org>
13956
13957         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
13958         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
13959         do...while(0).
13960         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
13961         Suggested by Paul Eggert.
13962
13963 2011-09-19  Bruno Haible  <bruno@clisp.org>
13964
13965         sched: Ensure pid_t is defined.
13966         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
13967         not define pid_t.
13968         * lib/sched.in.h: Include <sys/types.h>.
13969         * doc/posix-headers/sched.texi: Mention the pid_t problem.
13970         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13971
13972 2011-09-19  Bruno Haible  <bruno@clisp.org>
13973
13974         msvc-inval: Ensure the entire expansion is a single statement.
13975         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
13976         of braces.
13977
13978 2011-09-19  Jim Meyering  <meyering@redhat.com>
13979
13980         tests: use printf, not echo in init.sh's warn_ function
13981         * tests/init.sh (warn_): Use printf, not echo.  The latter would
13982         misbehave when given strings containing a backslash or starting
13983         with e.g., -n.  James Youngman suggested setting IFS.
13984
13985 2011-09-19  Eric Blake  <eblake@redhat.com>
13986
13987         futimens: enhance test
13988         * tests/test-futimens.h (test_futimens): Also check for EBADF on
13989         closed non-negative fd.
13990
13991         date: accept 'hence' as opposite of 'ago'
13992         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
13993         * tests/test-parse-datetime.c (main): Enhance test.
13994         Suggested by Jesse Wilson.
13995
13996 2011-09-19  Jim Meyering  <meyering@redhat.com>
13997
13998         getcwd: don't fail in a deep directory on a system without openat
13999         Before this change, getcwd would fail when called from a directory
14000         of depth PATH_MAX / 3 or greater.  That was due to the fact that
14001         the non-openat implementation used "..", "../..", "../../..", etc.
14002         to access ancestor directories.  With too many, that string would
14003         be longer than PATH_MAX.
14004         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
14005         using gnulib's openat replacement.
14006         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
14007         we're using the replacement function.
14008
14009 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
14010
14011         maint.mk: avoid warnings from perl about missing files
14012         * top/maint.mk (def_sym_regex): Ignore files listed in
14013         $(gl_other_headers_) that do not exist, say because a project
14014         does not use a corresponding module.
14015
14016 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
14017
14018         stat: use pathmax.h only if needed
14019         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
14020         This is better for Emacs, which does not have a mingw port and
14021         therefore can avoid the pathmax module.
14022
14023         utimens: remove dependency on dup2
14024         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
14025         to work around the Linux kernel bug.
14026         * modules/utimens (Depends-on): Remove dup2.
14027
14028 2011-09-18  Bruno Haible  <bruno@clisp.org>
14029
14030         inet_ntop, inet_pton: Look for it also in libresolv.
14031         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
14032         libnsl, search for it in libresolv.
14033         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
14034         Needed on Solaris 7.
14035
14036 2011-09-18  Bruno Haible  <bruno@clisp.org>
14037
14038         accept, accept4 tests: Avoid link error on Solaris.
14039         * modules/accept-tests (Makefile.am): Link test-accept against
14040         $(LIBSOCKET).
14041         * modules/accept4-tests (Makefile.am): Link test-accept4 against
14042         $(LIBSOCKET).
14043
14044         accept4: Avoid link error on Solaris.
14045         * modules/accept4 (Link): New section.
14046
14047         socket functions: Avoid link errors on Solaris.
14048         * modules/accept (Depends-on): Add socketlib.
14049         (Link): New section.
14050         * modules/bind (Depends-on): Add socketlib.
14051         (Link): New section.
14052         * modules/connect (Depends-on): Add socketlib.
14053         (Link): New section.
14054         * modules/getpeername (Depends-on): Add socketlib.
14055         (Link): New section.
14056         * modules/getsockname (Depends-on): Add socketlib.
14057         (Link): New section.
14058         * modules/getsockopt (Depends-on): Add socketlib.
14059         (Link): New section.
14060         * modules/listen (Depends-on): Add socketlib.
14061         (Link): New section.
14062         * modules/recv (Depends-on): Add socketlib.
14063         (Link): New section.
14064         * modules/recvfrom (Depends-on): Add socketlib.
14065         (Link): New section.
14066         * modules/send (Depends-on): Add socketlib.
14067         (Link): New section.
14068         * modules/sendto (Depends-on): Add socketlib.
14069         (Link): New section.
14070         * modules/setsockopt (Depends-on): Add socketlib.
14071         (Link): New section.
14072         * modules/shutdown (Depends-on): Add socketlib.
14073         (Link): New section.
14074         * modules/socket (Depends-on): Add socketlib.
14075         (Link): New section.
14076
14077 2011-09-18  Bruno Haible  <bruno@clisp.org>
14078
14079         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
14080         * tests/test-ptsname.c (main): Terminate the test if it takes longer
14081         than 5 seconds.
14082         * modules/ptsname-tests (configure.ac): Test for alarm.
14083
14084 2011-09-18  Bruno Haible  <bruno@clisp.org>
14085
14086         posix_spawn_file_actions_add*: Fix module dependencies.
14087         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
14088         posix_spawn_file_actions_init.
14089         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
14090         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
14091
14092 2011-09-18  Bruno Haible  <bruno@clisp.org>
14093
14094         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
14095         * tests/test-rename.h (test_rename): Allow error code EEXIST.
14096         * tests/test-renameat.c (main): Likewise.
14097
14098 2011-09-18  Bruno Haible  <bruno@clisp.org>
14099
14100         Tests for module 'accept4'.
14101         * modules/accept4-tests: New file.
14102         * tests/test-accept4.c: New file.
14103
14104 2011-09-18  Bruno Haible  <bruno@clisp.org>
14105
14106         Tests for module 'accept'.
14107         * modules/accept-tests: New file.
14108         * tests/test-accept.c: New file.
14109
14110 2011-09-18  Bruno Haible  <bruno@clisp.org>
14111
14112         dup2: Support for MSVC.
14113         * lib/dup2.c: Include msvc-inval.h.
14114         (rpl_dup2): Handle invalid parameter notifications during dup2 and
14115         _get_osfhandle calls.
14116         * modules/dup2 (Depends-on): Add msvc-inval.
14117         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
14118
14119         New module 'msvc-inval'.
14120         * lib/msvc-inval.h: New file.
14121         * lib/msvc-inval.c: New file.
14122         * m4/msvc-inval.m4: New file.
14123         * modules/msvc-inval: New file.
14124
14125 2011-09-17  Bruno Haible  <bruno@clisp.org>
14126
14127         Tests for module 'pclose'.
14128         * modules/pclose-tests: New file.
14129
14130         New module 'pclose'.
14131         * lib/stdio.in.h (pclose): New declaration.
14132         * lib/pclose.c: New file.
14133         * m4/pclose.m4: New file.
14134         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
14135         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
14136         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
14137         * modules/pclose: New file.
14138         * modules/popen-tests (Depends-on): Add pclose.
14139         * modules/popen-safer-tests (Depends-on): Likewise.
14140         * doc/posix-functions/pclose.texi: Mention the new module.
14141
14142 2011-09-17  Bruno Haible  <bruno@clisp.org>
14143
14144         popen: Support for MSVC.
14145         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
14146         * lib/popen.c (popen): Provide alternate definition for native Windows.
14147         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
14148         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
14149         * modules/popen (Depends-on, configure.ac): Update condition.
14150         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
14151         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
14152         fixed.
14153
14154 2011-09-17  Bruno Haible  <bruno@clisp.org>
14155
14156         isnanl, isnand, isnanf: Work around MSVC bug.
14157         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
14158
14159 2011-09-17  Bruno Haible  <bruno@clisp.org>
14160
14161         sys_socket tests: Fix recent mistake.
14162         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
14163
14164 2011-09-17  Bruno Haible  <bruno@clisp.org>
14165
14166         putenv: Support for MSVC.
14167         * modules/putenv (Depends-on): Add environ.
14168         * lib/putenv.c (environ): Disable declaration.
14169         * lib/unistd.in.h: Update comment.
14170
14171 2011-09-17  Bruno Haible  <bruno@clisp.org>
14172
14173         math: Avoid macro redefinition warnings on MSVC.
14174         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
14175         Undefine before redefining.
14176
14177 2011-09-17  Bruno Haible  <bruno@clisp.org>
14178
14179         doc: Mention functions which are declared as macros.
14180         * doc/posix-functions/*[fl].texi: Mention that some functions are
14181         defined as macros with arguments only.
14182
14183 2011-09-17  Bruno Haible  <bruno@clisp.org>
14184
14185         Add dependencies to new dirent related modules.
14186         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
14187         * modules/fts (Depends-on): Likewise.
14188         * modules/glob (Depends-on): Likewise.
14189         * modules/savedir (Depends-on): Likewise.
14190         * modules/scandir (Depends-on): Likewise.
14191         * modules/dirent-safer (Depends-on): Add opendir, closedir.
14192         * modules/fdopendir (Depends-on): Add opendir.
14193
14194 2011-09-17  Bruno Haible  <bruno@clisp.org>
14195
14196         inet_pton: Support for MSVC on Windows Vista or newer.
14197         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
14198         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
14199         HAVE_DECL_INET_PTON is defined.
14200         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
14201         On platforms with <winsock2.h>, test whether inet_pton is declared in
14202         <ws2tcpip.h>. If so, arrange to replace it.
14203         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
14204         REPLACE_INET_PTON.
14205         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
14206         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
14207         (Depends-on, configure.ac): Update condition.
14208         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
14209
14210 2011-09-17  Bruno Haible  <bruno@clisp.org>
14211
14212         inet_ntop: Support for MSVC on Windows Vista or newer.
14213         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
14214         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
14215         HAVE_DECL_INET_NTOP is defined.
14216         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
14217         On platforms with <winsock2.h>, test whether inet_ntop is declared in
14218         <ws2tcpip.h>. If so, arrange to replace it.
14219         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
14220         REPLACE_INET_NTOP.
14221         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
14222         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
14223         (Depends-on, configure.ac): Update condition.
14224         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
14225
14226 2011-09-16  Eric Blake  <eblake@redhat.com>
14227
14228         test-fsync: yet another enhancement
14229         * tests/test-fsync.c (main): Also test behavior on read-only text
14230         file.
14231
14232 2011-09-16  Bruno Haible  <bruno@clisp.org>
14233
14234         Enhance fsync, fdatasync tests.
14235         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
14236         * tests/test-fdatasync.c (main): Likewise.
14237
14238 2011-09-16  Bruno Haible  <bruno@clisp.org>
14239
14240         Support for MSVC compiler: Ensure mode_t gets defined.
14241         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
14242         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14243         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
14244         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
14245         * tests/test-fcntl-h.c: Check that mode_t is defined.
14246         * tests/test-sys_stat.c: Likewise.
14247         * tests/test-sys_types.c: Likewise.
14248         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
14249         * doc/posix-headers/sys_stat.texi: Likewise.
14250         * doc/posix-headers/sys_types.texi: Likewise.
14251
14252 2011-09-16  Bruno Haible  <bruno@clisp.org>
14253
14254         sys_stat: Support for MSVC.
14255         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
14256         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
14257         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
14258         MSVC.
14259
14260 2011-09-16  Bruno Haible  <bruno@clisp.org>
14261
14262         Support for MSVC compiler: Ensure off_t gets defined.
14263         * lib/unistd.in.h: Include <sys/types.h>.
14264         * tests/test-fcntl-h.c: Check that off_t is defined.
14265         * tests/test-sys_stat.c: Likewise.
14266         * tests/test-sys_types.c: Likewise.
14267
14268 2011-09-16  Eric Blake  <eblake@redhat.com>
14269
14270         fdatasync: port to Solaris
14271         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
14272         * modules/fdatasync (Link): Document it.
14273         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
14274
14275         fdatasync: port to MacOS X 10.7
14276         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
14277         declared.
14278         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
14279         * modules/unistd (Makefile.am): Substitute it.
14280         * lib/unistd.in.h (fdatasync): Declare on MacOS.
14281         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
14282
14283         fdatasync: minor improvements
14284         * modules/fdatasync (Depends-on): Add condition for fsync.
14285         * lib/fdatasync.c (fdatasync): Add comment.
14286         * tests/test-unistd-c++.cc: Test fdatasync.
14287
14288         unistd: update refs to newer POSIX
14289         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
14290         Suggested by Bruno Haible.
14291
14292         fdatasync: new module
14293         * modules/fsync (Description): Document difference to fdatasync.
14294         * modules/fdatasync: New module.
14295         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
14296         * lib/fdatasync.c (fdatasync): Likewise.
14297         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
14298         defaults.
14299         * modules/unistd (Makefile.am): Set witnesses.
14300         * lib/unistd.in.h (fdatasync): Declare.
14301         * MODULES.html.sh: Document it.
14302         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
14303         * modules/fdatasync-tests: New test.
14304         * tests/test-fdatasync.c: Likewise.
14305
14306 2011-09-16  Eric Blake  <eblake@redhat.com>
14307
14308         test-fsync: enhance tests
14309         * modules/fsync-tests (Depends-on): Add errno, for mingw.
14310         * tests/test-fsync.c (main): Enhance test.
14311
14312 2011-09-15  Bruno Haible  <bruno@clisp.org>
14313
14314         Support for MSVC compiler: Ensure ssize_t gets defined.
14315         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
14316         * doc/posix-headers/stdio.texi: Likewise.
14317         * modules/stdio (Depends-on): Add ssize_t.
14318         * modules/sys_socket (Depends-on): Likewise.
14319         * modules/sys_types (Depends-on): Likewise.
14320         * modules/sys_uio (Depends-on): Likewise.
14321         * modules/unistd (Depends-on): Likewise.
14322         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
14323         * tests/test-sys_types.c: Check that ssize_t is defined.
14324
14325 2011-09-14  Bruno Haible  <bruno@clisp.org>
14326
14327         Avoid using #, the m4 comment starter character, near brackets.
14328         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
14329         delimiter character in sed expressions.
14330         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
14331         Suggested by Eric Blake.
14332
14333         Properly quote AC_CHECK_DECLS' 4th argument.
14334         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
14335         argument.
14336         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
14337         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
14338         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
14339         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
14340         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
14341         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
14342         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
14343         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
14344         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
14345         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
14346         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
14347         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
14348         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
14349         * m4/isinf.m4 (gl_ISINF): Likewise.
14350         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
14351         * m4/readutmp.m4 (gl_READUTMP): Likewise.
14352         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
14353         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
14354         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
14355         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
14356         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
14357         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
14358         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
14359         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
14360         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14361         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14362         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
14363         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
14364         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14365         Reported by Eric Blake.
14366
14367         Properly quote AC_CHECK_DECL's 4th argument.
14368         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
14369         argument.
14370         * m4/argp.m4 (gl_ARGP): Likewise.
14371         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
14372         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
14373         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
14374         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
14375         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
14376         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
14377         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
14378         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
14379         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
14380         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
14381         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
14382         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
14383         Reported by Eric Blake.
14384
14385 2011-09-14  Eric Blake  <eblake@redhat.com>
14386
14387         opendir: avoid compile warning
14388         * lib/opendir.c (includes): Always include errno.h.
14389         Reported by Tatsuro MATSUOKA.
14390
14391 2011-09-14  Jim Meyering  <meyering@redhat.com>
14392
14393         maint.mk: sc_tight_scope: propagate failure from sub-make
14394         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
14395         Reported by Martin von Gagern.
14396
14397 2011-09-13  Bruno Haible  <bruno@clisp.org>
14398
14399         tempname: Support for MSVC.
14400         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
14401         MSVC.
14402         * modules/tempname (Depends-on): Add fcntl-h.
14403
14404 2011-09-13  Bruno Haible  <bruno@clisp.org>
14405
14406         sys_time: Support for MSVC.
14407         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
14408         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
14409         include <winsock2.h>.
14410         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
14411         function declarations that collide with POSIX.
14412         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
14413         (Makefile.am): Substitute HAVE_WINSOCK2_H.
14414
14415 2011-09-13  Bruno Haible  <bruno@clisp.org>
14416
14417         stat: Support for MSVC.
14418         * lib/stat.c: Include pathmax.h.
14419         * modules/stat (Depends-on): Add pathmax.
14420
14421         pathmax: Support for native Windows.
14422         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
14423
14424 2011-09-12  Bruno Haible  <bruno@clisp.org>
14425
14426         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
14427         * lib/dirent.in.h (struct dirent): New type.
14428         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
14429         DT_WHT): New macros.
14430         (DIR): New type.
14431         (opendir, closedir): Declare only if the module 'opendir' is enabled.
14432         (readdir, rewinddir): New declarations.
14433         * lib/dirent-private.h: New file.
14434         * lib/opendir.c: New file.
14435         * lib/readdir.c: New file.
14436         * lib/rewinddir.c: New file.
14437         * lib/closedir.c: New file.
14438         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
14439         * m4/opendir.m4: New file.
14440         * m4/readdir.m4: New file.
14441         * m4/rewinddir.m4: New file.
14442         * m4/closedir.m4: New file.
14443         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
14444         REPLACE_CLOSEDIR here.
14445         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
14446         readdir, rewinddir are declared.
14447         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
14448         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
14449         HAVE_REWINDDIR, HAVE_CLOSEDIR.
14450         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
14451         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
14452         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
14453         * modules/opendir: New file.
14454         * modules/readdir: New file.
14455         * modules/rewinddir: New file.
14456         * modules/closedir: New file.
14457         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
14458         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
14459         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
14460         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
14461         * NEWS: Mention the 'fchdir' change.
14462
14463 2011-09-11  Bruno Haible  <bruno@clisp.org>
14464
14465         asm-underscore.m4: Support for MSVC.
14466         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
14467         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
14468
14469 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
14470
14471         Doc about crypt functions.
14472         * doc/posix-functions/crypt.texi: Expand range of glibc versions
14473         needing for _GNU_SOURCE to get crypt.
14474         * doc/posix-functions/encrypt.texi: Likewise.
14475         * doc/posix-functions/setkey.texi: Likewise.
14476
14477 2011-09-11  Bruno Haible  <bruno@clisp.org>
14478
14479         doc: Update regarding MSVC 9.
14480         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
14481         tested".
14482         * doc/posix-functions/*.texi: Update with info about MSVC 9.
14483         * doc/posix-headers/*.texi: Likewise.
14484         * doc/pastposix-functions/*.texi: Likewise.
14485         * doc/glibc-functions/*.texi: Likewise.
14486         * doc/glibc-headers/*.texi: Likewise.
14487
14488 2011-09-11  Bruno Haible  <bruno@clisp.org>
14489
14490         unistd et al.: Don't assume <unistd.h> exists.
14491         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
14492         does not exist.
14493         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
14494         exist. But include <stdlib.h>.
14495         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
14496         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
14497         symlink() does not exist.
14498         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
14499         include <io.h> instead.
14500         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
14501         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
14502         include <direct.h> instead.
14503         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
14504         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
14505         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
14506         <io.h> instead.
14507         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
14508         correctly if the system does not have hard links.
14509         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
14510         <direct.h> instead.
14511         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
14512         it when looking for function declarations.
14513         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
14514         <direct.h> and <io.h> instead.
14515         * doc/posix-headers/unistd.texi: More details about MSVC problem.
14516
14517 2011-09-11  Bruno Haible  <bruno@clisp.org>
14518
14519         strcase: Support for MSVC.
14520         * modules/strcase (Status, Notice): Remove obsoletion mark.
14521         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
14522         * doc/posix-functions/strncasecmp.texi: Likewise.
14523
14524         strings: Don't assume <strings.h> exists.
14525         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
14526         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
14527         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
14528         * doc/posix-headers/strings.texi: Mention the MSVC problem.
14529
14530 2011-09-11  Bruno Haible  <bruno@clisp.org>
14531
14532         dirent: Don't assume <dirent.h> exists.
14533         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
14534         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
14535         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
14536         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
14537
14538 2011-09-11  Bruno Haible  <bruno@clisp.org>
14539
14540         Fix wint_t on MSVC.
14541         * lib/wchar.in.h (wint_t): On MSVC, override it.
14542         * lib/wctype.in.h (wint_t): Likewise.
14543         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
14544         MSVC.
14545         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
14546         * doc/posix-headers/wctype.texi: Likewise.
14547
14548 2011-09-11  Bruno Haible  <bruno@clisp.org>
14549
14550         sys_types: Fix typo.
14551         * lib/sys_types.in.h: Fix typo in comment.
14552         Reported by Paul Eggert.
14553
14554         Support for MSVC compiler: Ensure size_t gets defined.
14555         * modules/strings (Depends-on): Add 'sys_types'.
14556         * modules/sys_uio (Depends-on): Likewise.
14557         * lib/sys_uio.in.h: Update comment.
14558
14559         C++ tests for module 'sys_types'.
14560         * modules/sys_types-c++-tests: New file.
14561         * tests/test-sys_types-c++.cc: New file.
14562
14563         Tests for module 'sys_types'.
14564         * modules/sys_types-tests: New file.
14565         * tests/test-sys_types.c: New file.
14566
14567         New module 'sys_types'.
14568         * lib/sys_types.in.h: New file.
14569         * m4/sys_types_h.m4: New file.
14570         * modules/sys_types: New file.
14571         * doc/posix-headers/sys_types.texi: Mention the new module and the
14572         size_t problem on MSVC 9.
14573
14574 2011-09-11  Bruno Haible  <bruno@clisp.org>
14575
14576         Support for MSVC compiler: Avoid division by a literal 0.
14577         * lib/math.in.h (NAN): Define through a function call also on MSVC.
14578         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
14579         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
14580         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
14581         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
14582         * tests/infinity.h: New file.
14583         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
14584         on MSVC.
14585         * tests/test-ceilf1.c: Include infinity.h.
14586         (main): Use Infinityf.
14587         * tests/test-ceil1.c: Include infinity.h.
14588         (main): Use Infinityd.
14589         * tests/test-ceill.c: Include infinity.h.
14590         (main): Use Infinityl.
14591         * tests/test-dprintf-posix.c: Include infinity.h.
14592         (test_function): Use Infinityd.
14593         * tests/test-floorf1.c: Include infinity.h.
14594         (main): Use Infinityf.
14595         * tests/test-floor1.c: Include infinity.h.
14596         (main): Use Infinityd.
14597         * tests/test-floorl.c: Include infinity.h.
14598         (main): Use Infinityl.
14599         * tests/test-fprintf-posix.c: Include infinity.h.
14600         (test_function): Use Infinityd.
14601         * tests/test-frexp.c: Include infinity.h.
14602         (main): Use Infinityd.
14603         * tests/test-frexpl.c: Include infinity.h.
14604         (main): Use Infinityl.
14605         * tests/test-isfinite.c: Include infinity.h.
14606         (test_isfinitef): Use Infinityf.
14607         (test_isfinited): Use Infinityd.
14608         (test_isfinitel): Use Infinityl.
14609         * tests/test-isinf.c: Include infinity.h.
14610         (test_isinff): Use Infinityf.
14611         (test_isinfd): Use Infinityd.
14612         (test_isinfl): Use Infinityl.
14613         * tests/test-isnan.c: Include infinity.h.
14614         (test_float): Use Infinityf.
14615         (test_double): Use Infinityd.
14616         (test_long_double): Use Infinityl.
14617         * tests/test-isnanf.h: Include infinity.h.
14618         (main): Use Infinityf.
14619         * tests/test-isnand.h: Include infinity.h.
14620         (main): Use Infinityd.
14621         * tests/test-isnanl.h: Include infinity.h.
14622         (main): Use Infinityl.
14623         * tests/test-ldexpl.c: Include infinity.h.
14624         (main): Use Infinityl.
14625         * tests/test-printf-posix.h: Include infinity.h.
14626         (test_function): Use Infinityd.
14627         * tests/test-roundf1.c: Include infinity.h.
14628         (main): Use Infinityf.
14629         * tests/test-round1.c: Include infinity.h.
14630         (main): Use Infinityd.
14631         * tests/test-roundl.c: Include infinity.h.
14632         (main): Use Infinityl.
14633         * tests/test-signbit.c: Include infinity.h.
14634         (test_signbitf): Use Infinityf.
14635         (test_signbitd): Use Infinityd.
14636         (test_signbitl): Use Infinityl.
14637         * tests/test-snprintf-posix.h: Include infinity.h.
14638         (test_function): Use Infinityd, Infinityl.
14639         * tests/test-sprintf-posix.h: Include infinity.h.
14640         (test_function): Use Infinityd, Infinityl.
14641         * tests/test-truncf1.c: Include infinity.h.
14642         (main): Use Infinityf.
14643         * tests/test-trunc1.c: Include infinity.h.
14644         (main): Use Infinityd.
14645         * tests/test-truncl.c: Include infinity.h.
14646         (main): Use Infinityl.
14647         * tests/test-vasnprintf-posix.c: Include infinity.h.
14648         (test_function): Use Infinityd, Infinityl.
14649         * tests/test-vasprintf-posix.c: Include infinity.h.
14650         (test_function): Use Infinityd, Infinityl.
14651         * modules/ceilf-tests (Files): Add tests/infinity.h.
14652         * modules/ceil-tests (Files): Likewise.
14653         * modules/ceill-tests (Files): Likewise.
14654         * modules/dprintf-posix-tests (Files): Likewise.
14655         * modules/floorf-tests (Files): Likewise.
14656         * modules/floor-tests (Files): Likewise.
14657         * modules/floorl-tests (Files): Likewise.
14658         * modules/fprintf-posix-tests (Files): Likewise.
14659         * modules/frexp-tests (Files): Likewise.
14660         * modules/frexp-nolibm-tests (Files): Likewise.
14661         * modules/frexpl-tests (Files): Likewise.
14662         * modules/frexpl-nolibm-tests (Files): Likewise.
14663         * modules/isfinite-tests (Files): Likewise.
14664         * modules/isinf-tests (Files): Likewise.
14665         * modules/isnan-tests (Files): Likewise.
14666         * modules/isnanf-tests (Files): Likewise.
14667         * modules/isnanf-nolibm-tests (Files): Likewise.
14668         * modules/isnand-tests (Files): Likewise.
14669         * modules/isnand-nolibm-tests (Files): Likewise.
14670         * modules/isnanl-tests (Files): Likewise.
14671         * modules/isnanl-nolibm-tests (Files): Likewise.
14672         * modules/ldexpl-tests (Files): Likewise.
14673         * modules/printf-posix-tests (Files): Likewise.
14674         * modules/roundf-tests (Files): Likewise.
14675         * modules/round-tests (Files): Likewise.
14676         * modules/roundl-tests (Files): Likewise.
14677         * modules/signbit-tests (Files): Likewise.
14678         * modules/snprintf-posix-tests (Files): Likewise.
14679         * modules/sprintf-posix-tests (Files): Likewise.
14680         * modules/truncf-tests (Files): Likewise.
14681         * modules/trunc-tests (Files): Likewise.
14682         * modules/truncl-tests (Files): Likewise.
14683         * modules/vasnprintf-posix-tests (Files): Likewise.
14684         * modules/vasprintf-posix-tests (Files): Likewise.
14685         * modules/vdprintf-posix-tests (Files): Likewise.
14686         * modules/vfprintf-posix-tests (Files): Likewise.
14687         * modules/vprintf-posix-tests (Files): Likewise.
14688         * modules/vsnprintf-posix-tests (Files): Likewise.
14689         * modules/vsprintf-posix-tests (Files): Likewise.
14690         * modules/xprintf-posix-tests (Files): Likewise.
14691
14692 2011-09-11  Bruno Haible  <bruno@clisp.org>
14693
14694         Ensure pid_t gets defined.
14695         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
14696         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
14697         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
14698         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14699         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
14700         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
14701         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
14702         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14703         * tests/test-fcntl-h.c: Check that pid_t is defined.
14704         * tests/test-sched.c: Likewise.
14705         * tests/test-termios.c: Likewise.
14706         * tests/test-time.c: Likewise.
14707         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
14708         * doc/posix-headers/signal.texi: Likewise.
14709         * doc/posix-headers/sys_types.texi: Likewise.
14710         * doc/posix-headers/time.texi: Likewise.
14711
14712 2011-09-11  Bruno Haible  <bruno@clisp.org>
14713
14714         acl: Fix compilation on Solaris 10 (older version).
14715         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
14716         of ACE_EVERYONE.
14717         * lib/set-mode-acl.c (qset_acl): Likewise.
14718         Reported by Christian Jullien <eligis@orange.fr>.
14719
14720 2011-09-10  Bruno Haible  <bruno@clisp.org>
14721
14722         iconv, unsetenv: Add support for MSVC compiler.
14723         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
14724         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
14725
14726 2011-09-10  Bruno Haible  <bruno@clisp.org>
14727
14728         *printf: Add support for MSVC compiler.
14729         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
14730         handles the exception caused by the %n directive. When cross-compiling,
14731         guess no on native Windows.
14732         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
14733         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
14734         emulate it through vsnprintf.
14735         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
14736         * doc/posix-functions/dprintf.texi: Update documentation regarding
14737         MSVC 9.
14738         * doc/posix-functions/fprintf.texi: Likewise.
14739         * doc/posix-functions/printf.texi: Likewise.
14740         * doc/posix-functions/snprintf.texi: Likewise.
14741         * doc/posix-functions/sprintf.texi: Likewise.
14742         * doc/posix-functions/swprintf.texi: Likewise.
14743         * doc/posix-functions/vdprintf.texi: Likewise.
14744         * doc/posix-functions/vfprintf.texi: Likewise.
14745         * doc/posix-functions/vprintf.texi: Likewise.
14746         * doc/posix-functions/vsnprintf.texi: Likewise.
14747         * doc/posix-functions/vsprintf.texi: Likewise.
14748         * doc/glibc-functions/asprintf.texi: Likewise.
14749         * doc/glibc-functions/obstack_printf.texi: Likewise.
14750         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14751         * doc/glibc-functions/vasprintf.texi: Likewise.
14752
14753 2011-09-10  Bruno Haible  <bruno@clisp.org>
14754
14755         nocrash: Add support for native Windows.
14756         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
14757
14758 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
14759             Bruno Haible  <bruno@clisp.org>
14760
14761         absolute-header, include-next: Add support for MSVC compiler.
14762         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
14763         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
14764         directory separator in #line directives.
14765         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
14766         recognize also backslash as directory separator in #line directives.
14767
14768 2011-09-08  Jim Meyering  <meyering@redhat.com>
14769
14770         maint.mk: mark the post-release commit log with "maint: " prefix
14771         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
14772         one-line commit-log summary.
14773
14774 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
14775             Bruno Haible  <bruno@clisp.org>
14776
14777         Doc about crypt functions.
14778         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
14779         systems.
14780         * doc/posix-functions/encrypt.texi: Likewise.
14781         * doc/posix-functions/setkey.texi: Likewise.
14782
14783 2011-09-08  Simon Josefsson  <simon@josefsson.org>
14784
14785         * lib/gc.h: Fix copyright header.
14786
14787 2011-09-07  Bruno Haible  <bruno@clisp.org>
14788
14789         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
14790         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
14791         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
14792
14793 2011-09-07  Bruno Haible  <bruno@clisp.org>
14794
14795         openat: Work around compilation error with OSF/1 5.1 DTK cc.
14796         * lib/fopen.c: Use different syntax for include of <stdio.h>.
14797         * lib/freopen.c: Likewise.
14798         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
14799         * lib/lstat.c: Likewise.
14800         * lib/stat.c: Likewise.
14801         * lib/open.c: Use different syntax for include of <fcntl.h>.
14802         * lib/openat.c: Include fcntl.h again, explicitly.
14803
14804 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
14805
14806         parse-datetime: document the newly accepted format
14807         * doc/parse-datetime.texi (Combined date and time of day items):
14808         New section.
14809
14810 2011-09-06  Bruno Haible  <bruno@clisp.org>
14811
14812         acl: Fix a test failure on newer Solaris 10 with ZFS.
14813         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
14814         ENOSYS as no ACL.
14815         Reported by Jim Meyering.
14816
14817 2011-09-06  Bruno Haible  <bruno@clisp.org>
14818
14819         acl: Update for AIX >= 5.3 with NFS.
14820         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
14821         ENOSYS as no ACL.
14822
14823         acl: Fix a test failure on AIX >= 5.3 with NFS.
14824         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
14825         as no ACL.
14826
14827 2011-09-06  Bruno Haible  <bruno@clisp.org>
14828
14829         acl: Fix a test failure on IRIX 6.5 with NFS.
14830         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
14831         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
14832         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
14833         * lib/copy-acl.c (qcopy_acl): Likewise.
14834
14835 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
14836
14837         openat: port to AIX 7.1 with large files
14838         AIX 7.1 does a "#define openat open64at" if large files are in use,
14839         so we can't simply #undef openat.  Use the orig_openat trick (similar
14840         to orig_open in lib/open.c) to work around the problem.  Problem
14841         reported by Kevin Brott for GNU tar, in the thread containing
14842         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
14843         * lib/openat.c (__need_system_fcntl_h): Define first.
14844         Include <fcntl.h> and <sys/types.h> before undefining.
14845         (orig_openat) [HAVE_OPENAT]: New inline function.
14846         (openat) [HAVE_OPENAT]: Do not undef.
14847         (rpl_openat): Use orig_openat, not openat.
14848
14849 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
14850             Bruno Haible  <bruno@clisp.org>
14851
14852         acl: Avoid errors on NonStop Kernel.
14853         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
14854         ENOTSUP errors.
14855
14856 2011-09-05  Bruno Haible  <bruno@clisp.org>
14857
14858         acl: Clean up Solaris code.
14859         * lib/acl-internal.h: Remove no-op #if.
14860         * lib/file-has-acl.c: Likewise.
14861         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
14862         * lib/copy-acl.c (qcopy_acl): Likewise.
14863
14864 2011-09-05  Bruno Haible  <bruno@clisp.org>
14865
14866         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
14867         binaries built on the original Solaris 10.
14868         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
14869         trivial.
14870
14871 2011-09-05  Bruno Haible  <bruno@clisp.org>
14872
14873         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
14874         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
14875         10.
14876         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
14877         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
14878         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
14879         instead of acl_get, facl_get, acl_set, facl_set.
14880
14881 2011-09-05  Bruno Haible  <bruno@clisp.org>
14882
14883         copy-file: Try unit tests on more file systems.
14884         * tests/test-copy-file-1.sh: New file.
14885         * tests/test-copy-file-2.sh: New file.
14886         * modules/copy-file-tests (Files): Add them.
14887         (Makefile.am): Add them to TESTS.
14888
14889         acl: Try unit tests on more file systems.
14890         * tests/test-file-has-acl-1.sh: New file.
14891         * tests/test-file-has-acl-2.sh: New file.
14892         * tests/test-set-mode-acl-1.sh: New file.
14893         * tests/test-set-mode-acl-2.sh: New file.
14894         * tests/test-copy-acl-1.sh: New file.
14895         * tests/test-copy-acl-2.sh: New file.
14896         * modules/acl-tests (Files): Add them.
14897         (Makefile.am): Add them to TESTS.
14898
14899 2011-09-04  Bruno Haible  <bruno@clisp.org>
14900
14901         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
14902         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
14903         10.
14904         (OLD_ALLOW, OLD_DENY): New macros.
14905         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
14906         ACE_ACCESS_ALLOWED_ACE_TYPE.
14907         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
14908         ACE_ACCESS_DENIED_ACE_TYPE.
14909         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
14910         (NEW_ACE_EXECUTE): Fix value.
14911         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
14912         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
14913         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
14914         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
14915         NEW_ACE_SYNCHRONIZE): New macros.
14916         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
14917         instead of acl_fromtext, acl_set, facl_set.
14918         Fixes a coreutils/tests/cp/perm failure.
14919
14920 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
14921
14922         openat: test for fstatat (..., 0) bug
14923         Further testing with tar suggests that fstatat (..., 0)
14924         does not work in general, on AIX 7.1; see
14925         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
14926         So, give up entirely on AIX 7.1's fstatat, and fall back on our
14927         replacement fstatat (which is what older AIX releases were using
14928         anyway).
14929         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
14930         use is now changed to orig_fstatat.  This was probably the right
14931         thing to do anyway.
14932         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
14933         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
14934         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
14935         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
14936         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
14937         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
14938         if the bug is found.
14939
14940         openat: test for fstatat (AT_FDCWD, ..., 0) bug
14941         This tests for another fstatat bug on AIX 7.1:
14942         fstatat (AT_FDCWD, ..., 0) does not work.  See
14943         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
14944         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
14945         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
14946         (rpl_fstatat): Adjust so that it works around either (or both)
14947         bugs if present.
14948         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
14949
14950 2011-09-03  Karl Berry  <karl@gnu.org>
14951
14952         * doc/regex.texi (Character Class Operators): Avoid literal ":"
14953         in index entries.
14954
14955 2011-09-02  Bruno Haible  <bruno@clisp.org>
14956
14957         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
14958         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
14959         values of AR, ARFLAGS, RANLIB.
14960         Reported by John W. Eaton <jwe@gnu.org> for Octave.
14961
14962 2011-09-02  Bruno Haible  <bruno@clisp.org>
14963
14964         Find 'ar' program that fits with --host argument.
14965         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
14966
14967 2011-09-02  Bruno Haible  <bruno@clisp.org>
14968
14969         tests: init.sh: Support any non-GNU diff.
14970         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
14971         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
14972         Solaris 8.
14973
14974 2011-09-02  Bruno Haible  <bruno@clisp.org>
14975
14976         tests: init.sh: work also with any non-GNU diff that supports -u
14977         * tests/init.sh: Relax check for diff -u support.
14978         Rather than checking for GNU diff via --version, simply check
14979         for support for -u itself.  Useful at least on OpenBSD 4.9,
14980         AIX 7.1, IRIX 6.5, and Solaris 10.
14981
14982 2011-09-01  Bruno Haible  <bruno@clisp.org>
14983
14984         strtoimax, strtoumax: Document problem on HP-UX 11.
14985         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
14986         * doc/posix-functions/strtoumax.texi: Likewise.
14987
14988 2011-09-01  Bruno Haible  <bruno@clisp.org>
14989
14990         strtoumax: Avoid link error on OSF/1 with DTK cc.
14991         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
14992         defined as a function.
14993         * modules/strtoumax (Depends-on, configure.ac): Test only whether
14994         strtoumax is defined, not whether it is declared.
14995
14996 2011-09-01  Bruno Haible  <bruno@clisp.org>
14997
14998         strtoimax: Avoid link error on OSF/1 with DTK cc.
14999         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
15000         defined as a function.
15001         * modules/strtoimax (Depends-on, configure.ac): Test only whether
15002         strtoimax is defined, not whether it is declared.
15003
15004 2011-09-01  Bruno Haible  <bruno@clisp.org>
15005
15006         imaxdiv: Avoid link error on OSF/1 with DTK cc.
15007         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
15008         as a function.
15009         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
15010         whether it is declared.
15011
15012 2011-09-01  Bruno Haible  <bruno@clisp.org>
15013
15014         imaxabs: Avoid link error on OSF/1 with DTK cc.
15015         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
15016         as a function.
15017         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
15018         whether it is declared.
15019
15020 2011-09-01  Bruno Haible  <bruno@clisp.org>
15021
15022         Tests for module 'strtoumax'.
15023         * modules/strtoumax-tests: New file.
15024         * tests/test-strtoumax.c: New file.
15025
15026         Tests for module 'strtoimax'.
15027         * modules/strtoimax-tests: New file.
15028         * tests/test-strtoimax.c: New file.
15029
15030         Tests for module 'imaxdiv'.
15031         * modules/imaxdiv-tests: New file.
15032         * tests/test-imaxdiv.c: New file.
15033
15034         Tests for module 'imaxabs'.
15035         * modules/imaxabs-tests: New file.
15036         * tests/test-imaxabs.c: New file.
15037
15038 2011-09-01  Bruno Haible  <bruno@clisp.org>
15039
15040         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
15041         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
15042         pthread_create.
15043
15044 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
15045
15046         openat: work around AIX 7.1 fstatat issue
15047         This should fix the problem that was not properly fixed
15048         in the previous change, dated 2011-08-30.
15049         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
15050         __need_system_stat_h defined.
15051         (orig_fstatat) [HAVE_FSTATAT]: New function.
15052         (rpl_fstatat): Go back to the old way of doing things,
15053         except call orig_fstatat instead of fstatat.
15054         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
15055         Remove unnecessary check whether fstatat fills in st_size etc.
15056
15057 2011-09-01  Bruno Haible  <bruno@clisp.org>
15058
15059         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
15060         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
15061         just include the system's header.
15062
15063 2011-08-31  Jim Meyering  <meyering@redhat.com>
15064
15065         tests: avoid spurious assertion failure in test-float.c on ppc64
15066         * tests/test-float.c (test_long_double): Comment out an assertion,
15067         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
15068         with gcc-4.4.4.
15069
15070         maint: indent with spaces, not TABs
15071         I need to get in the habit of running gnulib's "make check".
15072         Both of these would have been caught.
15073         * m4/largefile.m4: Indent with spaces, not TABs.
15074         * lib/parse-datetime.y (iso_8601_time): Likewise.
15075         Spotted by Pádraig Brady.
15076
15077         test-parse-datetime.c: accommodate a relatively strict gcc warning
15078         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
15079         to avoid a warning from gcc's -Werror=missing-declarations.
15080         Insert a few spaces-before-funcall-parenthesis.
15081
15082 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
15083
15084         parse-datetime: accept ISO 8601 date and time rep with "T" separator
15085         The parser now accepts ISO 8601 date-time strings with "T" as the
15086         separator.  It has long parsed dates like "2004-02-29 16:21:42"
15087         with a space between the date and time strings.  Now it also parses
15088         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
15089         variants like "2004-02-29T16:21:42.333-07:00"
15090         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
15091         of day representation using the 'T' separator character.
15092         * doc/parse-datetime.texi (General date syntax): replace use of
15093         deprecated --iso-8601 option with --rfc-3339 in example of date
15094         command output formats that can be parsed.
15095         * tests/test-parse-datetime.c (tm_diff): New function, taken from
15096         lib/parse-datetime.y.
15097         (gmt_offset): New function.
15098         (main): Add additional test cases to validate ISO8601 extended
15099         date and time of day parsing.
15100
15101 2011-08-31  Bruno Haible  <bruno@clisp.org>
15102
15103         freopen: Documentation.
15104         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
15105         name.
15106         Reported by Claudio Bley <claudio.bley@gmail.com>.
15107
15108 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
15109
15110         freopen: Don't crash if the filename argument is NULL.
15111         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
15112         NULL.
15113
15114 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
15115
15116         openat: work around AIX 7.1 fstatat bug
15117         Problem reported by Kevin Brott for GNU tar, in the thread containing
15118         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
15119         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
15120         FSTATAT_ST_SIZE_ETC_BROKEN.
15121         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
15122         rpl_fstatat.
15123         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
15124         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
15125         AC_CHECK_FUNCS_ONCE for fstatat.
15126         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
15127         fchmodat, mkdirat, openat and unlinkat.
15128
15129 2011-08-30  Bruno Haible  <bruno@clisp.org>
15130
15131         Avoid endless recursions if config.h includes some header files.
15132         * lib/fopen.c (__need_FILE): Define already before including config.h.
15133         * lib/freopen.c (__need_FILE): Likewise.
15134         * lib/open.c (__need_system_fcntl_h): Likewise.
15135         * lib/stat.c (__need_system_sys_stat_h): Likewise.
15136         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
15137         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
15138
15139 2011-08-25  Karl Berry  <karl@gnu.org>
15140
15141         * config/srclist.txt (ylwrap): new try.
15142         * build-aux/ylwrap: new file.
15143
15144 2011-08-23  Bruno Haible  <bruno@clisp.org>
15145
15146         tmpdir: Use a good default directory on native Windows.
15147         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
15148         (P_tmpdir): Default to _P_tmpdir on native Windows.
15149         (path_search): On native Windows, try the value returned by GetTempPath
15150         before trying P_tmpdir.
15151         * modules/tmpdir (Depends-on): Add pathmax.
15152         Suggested by John Darrington <john@darrington.wattle.id.au>.
15153
15154 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
15155
15156         doc: fix typo in README-release
15157         * top/README-release: Capitalize first word of a sentence.
15158
15159 2011-08-19  Jim Meyering  <meyering@redhat.com>
15160
15161         fts: do not exhaust memory when processing million-entry directories
15162         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
15163         directory would require about 256*N bytes of memory.  Thus, it was
15164         easy to construct a directory too large to be processed by any of
15165         those tools.  With this change, fts' maximum memory utilization is
15166         now limited to around 30MB.
15167         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
15168         (fts_read): When we've processed the final entry (i.e., when
15169         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
15170         using the parent entry to read any remaining entries.  Dispatch
15171         depending on what fts_build returns:
15172         - NULL+stop, aka failure: stop
15173         - NULL otherwise: move up in the dir hierarchy
15174         - non-NULL: handle this new entry
15175         (fts_build): Declare and use new local, continue_readdir.
15176         Prepare to be called from fts_read, when the entries
15177         from a partially-read directory have just been exhausted.
15178         In that case, we'll skip the opendir and instead use the parent's
15179         fts_dirp and derive dir_fd from that.
15180         Finally, in the readdir loop, if we read max_entries entries,
15181         exit the loop ensuring *not* to call closedir.  This is required
15182         so that fts_dirp can be reused on a subsequent call.
15183         Prompted by Ben England's report of memory exhaustion in find
15184         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
15185
15186         maint: fts: move decl of `dp' down into while loop; split a long line
15187         * lib/fts.c (fts_build): No semantic change.
15188
15189         fts: add/use new struct member, fts_dirp
15190         We are about to use this to manage any directory with
15191         too many entries to read all of them into memory at once.
15192         To do that, we'll need to save the DIR* pointer in each
15193         affected FTSENT struct.
15194         * lib/fts_.h: Include <dirent.h>.
15195         (struct FTSENT) [fts_dirp]: New member.
15196         * lib/fts.c (closedir_and_clear): Define.
15197         Use it in place of closedir so that we are sure to
15198         clear the new fts_dirp member when done with it.
15199         (fts_alloc): Initialize the new member.
15200         (fts_lfree): Free, if needed.
15201
15202         maint: fts: give __opendir2 a new parameter and rename
15203         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
15204         than surreptitiously using sole caller's "dir_fd".
15205         (fts_opendir): Rename from __opendir2.
15206
15207         maint: fts.c: remove __opendir2's now-unused parameter, oflag
15208         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
15209
15210         maint: fts.c: correct off-by-one indentation
15211         * lib/fts.c (fts_build): Correct indentation, change style
15212         of a couple of block comments, and bracing style.
15213
15214         maint: fts.c: move __opendir2 #define "up" out of function body
15215         * lib/fts.c (__opendir2): Move "up".  No semantic change.
15216
15217         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
15218         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
15219         out for a long time and besides was useful only on BSD systems.
15220
15221 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
15222
15223         regex: port to Stratus OpenVOS
15224         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
15225         define to empty, rather than attempting nonportable optimizations.
15226         Problem reported by Paul Green in:
15227         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
15228         and fix suggested by Eric Blake in:
15229         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
15230
15231 2011-08-17  Eric Blake  <eblake@redhat.com>
15232
15233         getcwd: fix test failures on mingw
15234         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
15235         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
15236         test if long directory cannot be created, and allow mingw errno.
15237
15238         getcwd-lgpl: fix m4 to match relaxed test for BSD
15239         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
15240         (gl_FUNC_GETCWD_SIGNATURE): New macro.
15241         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
15242         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
15243         signature problem.
15244
15245         getcwd: fix compilation on mingw64
15246         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
15247         getcwd.
15248         Reported by Marc-André Lureau.
15249
15250         pipe2: silence compiler warning
15251         * lib/pipe2.c (pipe2): Hide label if it is not used.
15252
15253 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
15254
15255         relocatable-prog: fix link error
15256         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
15257         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
15258         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
15259         into modules/relocatable-lib without noticing that
15260         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
15261         also needs to build relocatable.c.
15262
15263 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
15264
15265         getaddrinfo: fix sh typo in gai_strerrorA decl checking
15266         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
15267         shell code: it contained a 'break' that was not in a loop.
15268         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
15269         via a shell-language loop; this may have been true in old Autoconf
15270         versions, but it's not true in Autoconf 2.68.  I found this bug
15271         when testing coreutils git on Solaris 8, whose shell complains
15272         about the syntax error.
15273
15274 2011-08-12  Simon Josefsson  <simon@josefsson.org>
15275
15276         * lib/base64.c: Fix comment to reference RFC 4648.
15277         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
15278         <gvtulder@gmail.com>.
15279
15280 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
15281
15282         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
15283
15284         po/Makefile.in.in: fix make -q problem
15285         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
15286         rule, since there's no file named 'check-macro-version' and its
15287         use as a file breaks make -q.
15288         (all): Don't depend on check-macro-version.
15289         (CHECK_MACRO_VERSION): New macro.
15290         (stamp-po): Use it.
15291
15292         configmake: fix make -q problem
15293         * modules/configmake (configmake.h): Update configmake.h's time stamp
15294         even if the file does not change.  Otherwise, 'make -q' fails.
15295         Problem reported by Simon Josefsson in
15296         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
15297
15298 2011-08-11  Jim Meyering  <meyering@redhat.com>
15299
15300         git-version-gen: correct the advice in a comment
15301         * build-aux/git-version-gen: Correct comment.
15302         Don't recommend to list .tarball-version in .gitignore.
15303
15304 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
15305
15306         base64: fix off-by-one buffer size bug
15307         Problem and (trivial) fix reported by Gijs van Tulder in
15308         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
15309         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
15310         * tests/test-base64.c (main): Catch the bug.
15311
15312 2011-08-10  Eric Blake  <eblake@redhat.com>
15313
15314         closein: correct comments
15315         * lib/closein.c (close_stdin): Improve comments.
15316
15317 2011-08-09  Bruno Haible  <bruno@clisp.org>
15318
15319         More tests for 'fseeko'.
15320         * tests/test-fseeko3.c: New file, from Eric Blake.
15321         * tests/test-fseeko3.sh: New file.
15322         * modules/fseeko-tests (Files): Add them.
15323         (TESTS): Add test-fseeko3.sh.
15324         (check_PROGRAMS): Add test-fseeko3.
15325
15326 2011-08-09  Eric Blake  <eblake@redhat.com>
15327
15328         fseeko: remove unneeded hack
15329         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
15330
15331         fseeko: fix bug on glibc
15332         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
15333         Reported by John W. Eaton.
15334
15335 2011-08-08  Bruno Haible  <bruno@clisp.org>
15336
15337         unictype/base: Fix interoperability with preinstalled libunistring.
15338         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
15339         Reported by Simon Josefsson.
15340
15341 2011-08-08  Bruno Haible  <bruno@clisp.org>
15342
15343         iswblank: Detect declaration correctly.
15344         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
15345         AC_CHECK_DECLS invocation.
15346
15347 2011-08-08  Bruno Haible  <bruno@clisp.org>
15348
15349         tcgetsid: Detect declaration correctly.
15350         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
15351         AC_CHECK_DECLS invocation.
15352         Reported by Simon Josefsson.
15353
15354 2011-08-08  Eric Blake  <eblake@redhat.com>
15355
15356         largefile: fix typo that regressed large file support
15357         * modules/largefile (configure.ac-early): Fix section name.
15358
15359 2011-08-06  Karl Berry  <karl@gnu.org>
15360
15361         * MODULES.html.sh (func_all_files): _Noreturn is no longer
15362         a separate module.
15363
15364 2011-08-05  Simon Josefsson  <simon@josefsson.org>
15365
15366         openat: Fix warnings and commens when building unlinkat.c on Hurd.
15367         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
15368         get prototype for free.
15369
15370 2011-08-04  Bruno Haible  <bruno@clisp.org>
15371
15372         Tests for module 'pathmax'.
15373         * modules/pathmax-tests: New file.
15374         * tests/test-pathmax.c: New file.
15375
15376         canonicalize-lgpl: Support larger filenames on the Hurd.
15377         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
15378         Reported by Paul Eggert.
15379
15380         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
15381         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
15382         * lib/chdir-long.h: Include pathmax.h.
15383         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
15384         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
15385         (PATH_MAX): Remove code that is done by pathmax.h.
15386         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
15387         * lib/tmpfile.c: Add a comment.
15388         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
15389         * modules/chdir-long (Depends-on): Add pathmax.
15390         * modules/getcwd (Depends-on): Add pathmax.
15391         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
15392         is not defined.
15393         * doc/posix-headers/limits.texi: Mention the pathmax module.
15394         * NEWS: Mention the change.
15395
15396 2011-08-02  Bruno Haible  <bruno@clisp.org>
15397
15398         pthread_sigmask: Actually use results of gl_THREADLIB.
15399         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
15400         gl_THREADLIB, not gl_[]THREADLIB.
15401         Reported by Eric Blake.
15402
15403 2011-08-02  Jim Meyering  <meyering@redhat.com>
15404
15405         maint.mk: relax the default _gl_TS_function_match regexp
15406         * top/maint.mk (_gl_TS_function_match): Don't require at least one
15407         space between function name and "(" in an "extern" declaration.
15408         That would fail to match a decl with no space there: extern void foo();
15409
15410 2011-07-31  Iain Nicol  <iain@thenicols.net>
15411
15412         git-version-gen: document that EXTRA_DIST must include .version
15413         * build-aux/git-version-gen: In the how-to-use comment, document
15414         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
15415         will fail when run from an unpacked distribution tarball.
15416
15417 2011-08-01  Bruno Haible  <bruno@clisp.org>
15418
15419         wctype-h: Fix last change.
15420         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
15421         REPLACE_TOWLOWER to 0.
15422         Reported by Sam Steingold <sds@gnu.org>.
15423
15424 2011-07-31  Bruno Haible  <bruno@clisp.org>
15425
15426         frexpl: Update autoconf test.
15427         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
15428         according to changes of 2011-06-20.
15429
15430 2011-07-31  Bruno Haible  <bruno@clisp.org>
15431
15432         sys_utsname: Add support for Minix.
15433         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
15434         <sys/utsname.h>.
15435         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15436         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
15437
15438 2011-07-31  Bruno Haible  <bruno@clisp.org>
15439
15440         strings: Add support for Minix.
15441         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
15442         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
15443         * doc/posix-headers/strings.texi: Document the Minix problem.
15444
15445 2011-07-31  Bruno Haible  <bruno@clisp.org>
15446
15447         wctype-h: Add support for Minix.
15448         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
15449         REPLACE_TOWLOWER.
15450         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
15451         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
15452         REPLACE_ISWCNTRL.
15453
15454 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
15455
15456         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
15457         This is a performance improvement for 64-bit hosts: it causes the
15458         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
15459
15460 2011-07-31  Bruno Haible  <bruno@clisp.org>
15461
15462         stdioext: Add support for Minix.
15463         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
15464         * lib/fpurge.c (fpurge): Likewise.
15465         * lib/freadahead.c (freadahead): Likewise.
15466         * lib/freadable.c (freadable): Likewise.
15467         * lib/freading.c (freading): Likewise.
15468         * lib/freadptr.c (freadptr): Likewise.
15469         * lib/freadseek.c (freadptrinc): Likewise.
15470         * lib/fseeko.c (rpl_fseeko): Likewise.
15471         * lib/fseterr.c (fseterr): Likewise.
15472         * lib/fwritable.c (fwritable): Likewise.
15473         * lib/fwriting.c (fwriting): Likewise.
15474         * lib/fflush.c (clear_ungetc_buffer): Update comment.
15475         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
15476
15477 2011-07-31  Bruno Haible  <bruno@clisp.org>
15478
15479         errno: Port to Minix.
15480         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
15481         ECONNABORTED are defined.
15482         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
15483         GNULIB_defined_ECONNABORTED): New macros.
15484         * lib/strerror-override.h (strerror_override): Test also
15485         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
15486         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
15487         ECONNABORTED.
15488         * doc/posix-headers/errno.texi: Mention the Minix problem.
15489
15490 2011-07-31  Bruno Haible  <bruno@clisp.org>
15491
15492         Work around declaration collisions on Minix.
15493         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
15494         defined, set REPLACE_MBSINIT.
15495         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
15496         defined, set REPLACE_MBRTOWC.
15497         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
15498         set REPLACE_MBRLEN.
15499         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
15500         defined, set REPLACE_MBSRTOWCS.
15501         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
15502         defined, set REPLACE_WCRTOMB.
15503         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
15504         defined, set REPLACE_WCSRTOMBS.
15505
15506 2011-07-31  Bruno Haible  <bruno@clisp.org>
15507
15508         Add support for Minix with ACK compiler.
15509         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
15510         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
15511         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
15512
15513 2011-07-31  Bruno Haible  <bruno@clisp.org>
15514
15515         Documentation about Minix.
15516         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
15517         * doc/glibc-headers/*.texi: Likewise.
15518         * doc/posix-functions/*.texi: Likewise.
15519         * doc/glibc-functions/*.texi: Likewise.
15520
15521 2011-07-31  Bruno Haible  <bruno@clisp.org>
15522
15523         snippet/warn-on-use: Fix indentation.
15524         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
15525
15526 2011-07-25  Jim Meyering  <meyering@redhat.com>
15527
15528         tests: test-update-copyright.sh: remove unnecessary "rm" commands
15529         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
15530         commands.
15531
15532 2011-07-27  Jim Meyering  <meyering@redhat.com>
15533
15534         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
15535         * top/maint.mk (gl_extract_significant_defines_): Now that
15536         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
15537         gnulib/lib/signal.in.h, and now that we recommend to
15538         define-if-undefined those two symbols in application code,
15539         we must filter them out of the "significant" list.
15540         This avoids a "make syntax-check" failure in coreutils.
15541
15542 2011-07-26  Eric Blake  <eblake@redhat.com>
15543
15544         warnings: add comments about previous patch
15545         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
15546         * m4/include_next.m4: Likewise.
15547         * m4/warn-on-use.m4: Likewise.
15548         * m4/warnings.m4: Likewise, and simplify use.
15549         Suggested by Stefano Lattarini.
15550
15551         include-next, warnings: support older autoconf
15552         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
15553         AS_VAR_PUSHDEF in a way that works with older autoconf.
15554         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
15555         Reported by Daniel P. Berrange.
15556
15557 2011-07-25  Bruno Haible  <bruno@clisp.org>
15558
15559         fseek, ftell: Fix doc.
15560         * doc/posix-functions/fseek.texi: Reword statement about
15561         AC_SYS_LARGEFILE.
15562         * doc/posix-functions/ftell.texi: Likewise.
15563
15564 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
15565             Bruno Haible  <bruno@clisp.org>
15566
15567         Add dependencies to the 'largefile' module.
15568         * modules/fopen (Depends-on): Add 'largefile'.
15569         * modules/freopen (Depends-on): Likewise.
15570         * modules/fseeko (Depends-on): Likewise.
15571         * modules/ftello (Depends-on): Likewise.
15572         * modules/glob (Depends-on): Likewise.
15573         * modules/lseek (Depends-on): Likewise.
15574         * modules/lstat (Depends-on): Likewise.
15575         * modules/mkostemp (Depends-on): Likewise.
15576         * modules/mkostemps (Depends-on): Likewise.
15577         * modules/mkstemp (Depends-on): Likewise.
15578         * modules/mkstemps (Depends-on): Likewise.
15579         * modules/open (Depends-on): Likewise.
15580         * modules/openat (Depends-on): Likewise.
15581         * modules/pread (Depends-on): Likewise.
15582         * modules/pwrite (Depends-on): Likewise.
15583         * modules/scandir (Depends-on): Likewise.
15584         * modules/stat (Depends-on): Likewise.
15585         * modules/tmpfile (Depends-on): Likewise.
15586         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
15587         since the containing module now depends on the largefile module.
15588         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
15589         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
15590         off_t is fixed by gnulib.
15591         * doc/posix-functions/freopen.texi: Likewise.
15592         * doc/posix-functions/fseeko.texi: Likewise.
15593         * doc/posix-functions/fstatat.texi: Likewise.
15594         * doc/posix-functions/ftello.texi: Likewise.
15595         * doc/posix-functions/glob.texi: Likewise.
15596         * doc/posix-functions/lseek.texi: Likewise.
15597         * doc/posix-functions/lstat.texi: Likewise.
15598         * doc/posix-functions/mkstemp.texi: Likewise.
15599         * doc/posix-functions/open.texi: Likewise.
15600         * doc/posix-functions/openat.texi: Likewise.
15601         * doc/posix-functions/pread.texi: Likewise.
15602         * doc/posix-functions/pwrite.texi: Likewise.
15603         * doc/posix-functions/scandir.texi: Likewise.
15604         * doc/posix-functions/stat.texi: Likewise.
15605         * doc/posix-functions/tmpfile.texi: Likewise.
15606         * doc/glibc-functions/mkostemp.texi: Likewise.
15607         * doc/glibc-functions/mkostemps.texi: Likewise.
15608         * doc/glibc-functions/mkstemps.texi: Likewise.
15609
15610 2011-07-25  Bruno Haible  <bruno@clisp.org>
15611
15612         fcntl: Move AC_LIBOBJ invocation to module description.
15613         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
15614         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
15615
15616         fcntl: Remove call-in from fchdir.m4.
15617         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
15618         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
15619
15620         dup3: Remove potential call-in from fchdir.m4.
15621         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
15622         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
15623
15624         dup2: Move AC_LIBOBJ invocation to module description.
15625         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
15626         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
15627         Don't invoke AC_LIBOBJ.
15628         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
15629
15630         dup2: Remove call-in from fchdir.m4.
15631         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
15632         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
15633
15634         fclose: Move AC_LIBOBJ invocation to module description.
15635         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
15636         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
15637         to 1.
15638         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
15639
15640         fclose: Remove call-in from close.m4.
15641         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
15642         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
15643
15644         close: Move AC_LIBOBJ invocation to module description.
15645         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
15646         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
15647         1.
15648         * modules/close (configure.ac): Invoke AC_LIBOBJ.
15649
15650         close: Remove call-in from fchdir.m4.
15651         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
15652         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
15653
15654         open: Move AC_LIBOBJ invocation to module description.
15655         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
15656         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
15657         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
15658
15659         open: Remove call-in from fchdir.m4.
15660         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
15661         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
15662
15663         fchdir: Start to remove gl_REPLACE_* idiom.
15664         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
15665         (gl_FUNC_FCHDIR): Invoke it.
15666
15667 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
15668
15669         * lib/ftell.c (ftell): Comment out cast.
15670
15671         close: use gl_REPLACE_FCLOSE only if defined
15672         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
15673         is defined.  The close module doesn't depend on the fclose module
15674         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
15675         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
15676         I reproduced the problem with "./gnulib-tool --test close sys_socket".
15677
15678 2011-07-24  Jim Meyering  <meyering@redhat.com>
15679
15680         test-select.h: avoid warning when using gcc's -Wmissing-declarations
15681         * tests/test-select.h (test_function): Declare as "static".
15682
15683 2011-07-24  Bruno Haible  <bruno@clisp.org>
15684
15685         doc: Mention the effects of AC_SYS_LARGEFILE.
15686         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
15687         on this function.
15688         * doc/posix-functions/aio_error.texi: Likewise.
15689         * doc/posix-functions/aio_fsync.texi: Likewise.
15690         * doc/posix-functions/aio_read.texi: Likewise.
15691         * doc/posix-functions/aio_return.texi: Likewise.
15692         * doc/posix-functions/aio_suspend.texi: Likewise.
15693         * doc/posix-functions/aio_write.texi: Likewise.
15694         * doc/posix-functions/fgetpos.texi: Likewise.
15695         * doc/posix-functions/fopen.texi: Likewise.
15696         * doc/posix-functions/freopen.texi: Likewise.
15697         * doc/posix-functions/fsetpos.texi: Likewise.
15698         * doc/posix-functions/fstatvfs.texi: Likewise.
15699         * doc/posix-functions/ftruncate.texi: Likewise.
15700         * doc/posix-functions/ftw.texi: Likewise.
15701         * doc/posix-functions/getrlimit.texi: Likewise.
15702         * doc/posix-functions/glob.texi: Likewise.
15703         * doc/posix-functions/lio_listio.texi: Likewise.
15704         * doc/posix-functions/lockf.texi: Likewise.
15705         * doc/posix-functions/mkstemp.texi: Likewise.
15706         * doc/posix-functions/mmap.texi: Likewise.
15707         * doc/posix-functions/nftw.texi: Likewise.
15708         * doc/posix-functions/openat.texi: Likewise.
15709         * doc/posix-functions/opendir.texi: Likewise.
15710         * doc/posix-functions/posix_fadvise.texi: Likewise.
15711         * doc/posix-functions/posix_fallocate.texi: Likewise.
15712         * doc/posix-functions/pread.texi: Likewise.
15713         * doc/posix-functions/pwrite.texi: Likewise.
15714         * doc/posix-functions/readdir.texi: Likewise.
15715         * doc/posix-functions/readdir_r.texi: Likewise.
15716         * doc/posix-functions/rewinddir.texi: Likewise.
15717         * doc/posix-functions/scandir.texi: Likewise.
15718         * doc/posix-functions/seekdir.texi: Likewise.
15719         * doc/posix-functions/setrlimit.texi: Likewise.
15720         * doc/posix-functions/statvfs.texi: Likewise.
15721         * doc/posix-functions/telldir.texi: Likewise.
15722         * doc/posix-functions/tmpfile.texi: Likewise.
15723         * doc/posix-functions/truncate.texi: Likewise.
15724         * doc/glibc-functions/fallocate.texi: Likewise.
15725         * doc/glibc-functions/fstatfs.texi: Likewise.
15726         * doc/glibc-functions/fts_children.texi: Likewise.
15727         * doc/glibc-functions/fts_read.texi: Likewise.
15728         * doc/glibc-functions/getdirentries.texi: Likewise.
15729         * doc/glibc-functions/mkostemp.texi: Likewise.
15730         * doc/glibc-functions/mkostemps.texi: Likewise.
15731         * doc/glibc-functions/mkstemps.texi: Likewise.
15732         * doc/glibc-functions/preadv.texi: Likewise.
15733         * doc/glibc-functions/pwritev.texi: Likewise.
15734         * doc/glibc-functions/sendfile.texi: Likewise.
15735         * doc/glibc-functions/statfs.texi: Likewise.
15736
15737 2011-07-24  Bruno Haible  <bruno@clisp.org>
15738
15739         doc: Fix typo.
15740         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
15741
15742 2011-07-24  Bruno Haible  <bruno@clisp.org>
15743
15744         doc: Mention fsusage.
15745         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
15746
15747 2011-07-24  Bruno Haible  <bruno@clisp.org>
15748
15749         doc: Mention new glibc headers and functions.
15750         * doc/glibc-headers/gshadow.texi: New file.
15751         * doc/glibc-functions/endsgent.texi: New file.
15752         * doc/glibc-functions/fgetsgent.texi: New file.
15753         * doc/glibc-functions/fgetsgent_r.texi: New file.
15754         * doc/glibc-functions/getsgent.texi: New file.
15755         * doc/glibc-functions/getsgent_r.texi: New file.
15756         * doc/glibc-functions/getsgnam.texi: New file.
15757         * doc/glibc-functions/getsgnam_r.texi: New file.
15758         * doc/glibc-functions/putsgent.texi: New file.
15759         * doc/glibc-functions/setsgent.texi: New file.
15760         * doc/glibc-functions/sgetsgent.texi: New file.
15761         * doc/glibc-functions/sgetsgent_r.texi: New file.
15762         * doc/glibc-functions/malloc_info.texi: New file.
15763         * doc/glibc-functions/preadv.texi: New file.
15764         * doc/glibc-functions/pwritev.texi: New file.
15765         * doc/glibc-functions/register_printf_modifier.texi: New file.
15766         * doc/glibc-functions/register_printf_specifier.texi: New file.
15767         * doc/glibc-functions/register_printf_type.texi: New file.
15768         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
15769         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
15770         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
15771         * doc/glibc-functions/pthread_getname_np.texi: New file.
15772         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
15773         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
15774         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
15775         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
15776         * doc/glibc-functions/pthread_setname_np.texi: New file.
15777         * doc/glibc-functions/pthread_sigqueue.texi: New file.
15778         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
15779         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
15780         * doc/glibc-functions/qsort_r.texi: New file.
15781         * doc/glibc-functions/quick_exit.texi: New file.
15782         * doc/glibc-functions/syncfs.texi: New file.
15783         * doc/gnulib.texi: Include them.
15784         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
15785         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
15786         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
15787         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
15788         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
15789         * doc/glibc-functions/execvpe.texi: Likewise.
15790
15791 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
15792
15793         ftell: don't include <unistd.h>
15794         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
15795         guaranteed to define off_t, and the ftell module depends on the
15796         stdio module.
15797
15798         ftell: do not assume wraparound signed arithmetic
15799         * lib/ftell.c: Include <limits.h>.
15800         (ftell): Don't assume wraparound signed arithmetic.
15801
15802 2011-07-24  Bruno Haible  <bruno@clisp.org>
15803
15804         close: No longer depend on module 'fclose'.
15805         * modules/close (Depends-on): Remove fclose.
15806         * NEWS: Mention the change.
15807         Suggested by Sam Steingold <sds@gnu.org>.
15808
15809 2011-07-24  Bruno Haible  <bruno@clisp.org>
15810
15811         fsusage: Enable large volume support on AIX >= 5.2.
15812         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
15813         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
15814         instead of STAT_STATVFS.
15815         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
15816
15817         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
15818         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
15819         f_blocks field only on MacOS X.
15820
15821         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
15822         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
15823         * modules/fsusage (Depends-on): Add largefile.
15824
15825 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
15826
15827         * README: Modernize discussion of signed integers.
15828         Assuming overflow wraparound is no longer safe.
15829         Mention ones' complement and signed magnitude.
15830
15831 2011-07-22  Bruno Haible  <bruno@clisp.org>
15832
15833         select tests, pselect tests: Refactor.
15834         * tests/test-select.h: New file, extracted from tests/test-select.c.
15835         (select_fn): New type.
15836         (test, do_select, do_select_nowait, do_select_wait, test_tty,
15837         test_connect_first, test_accept_first, test_pair, test_socket_pair,
15838         test_pipe): Add my_select argument.
15839         (test_function): Renamed from main. Add my_select argument.
15840         * tests/test-select.c: Move most code to tests/test-select.h. Include
15841         test-select.h.
15842         * modules/select-tests (Files): Add tests/test-select.h.
15843         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
15844         (my_select, main): New functions.
15845         * modules/pselect-tests (Files): Add tests/test-select.h,
15846         tests/macros.h, tests/signature.h.
15847         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
15848         (configure.ac): Check for <sys/wait.h>.
15849
15850 2011-07-22  Bruno Haible  <bruno@clisp.org>
15851
15852         sys_select tests: Check the signature of FD_*.
15853         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
15854         signature tests from here...
15855         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
15856         here.
15857         * modules/sys_select-tests (Files): Add tests/signature.h.
15858
15859 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
15860
15861         largefile: new module, replacing large-inode
15862         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
15863         * MODULES.html.sh: Add largefile, remove large-inode.
15864         * modules/largefile, m4/largefile.m4: New files.
15865         * modules/large-inode, m4/large-inode.m4: Remove.
15866
15867         fsusage: port to MacOS X 10.7 with 4 TiB file systems
15868         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
15869         implementations that use only 32 bits to count blocks.
15870         On typical hosts with 1024-byte blocks, this fails with file
15871         systems as small as 4 TiB.  Problem reported by Herb Wartens
15872         <http://debbugs.gnu.org/9140> and this should also fix a similar
15873         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
15874
15875         large-inode: New module
15876         * MODULES.html.sh: Add it.
15877         * modules/large-inode, m4/large-inode.m4: New files.
15878
15879         extensions: Enable extensions on MacOS X 10.5 and later.
15880         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
15881
15882 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
15883
15884         file-has-acl: use acl_extended_file_nofollow if available
15885         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
15886         (acl_extended_file): New macro.
15887         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
15888         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
15889
15890 2011-07-21  Bruno Haible  <bruno@clisp.org>
15891
15892         Declare system functions in a way that works with C++.
15893         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
15894         declare fdopendir as extern "C".
15895         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
15896         declare frexpl as extern "C".
15897         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
15898         declare gai_strerror as extern "C".
15899         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
15900         programs, declare gai_strerror as extern "C".
15901         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
15902         declare getlogin_r as extern "C".
15903         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
15904         as extern "C".
15905         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
15906         declare ldexpl as extern "C".
15907         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
15908         as extern "C".
15909         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
15910         program, declare getmntinfo as extern "C".
15911         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
15912         stpncpy as extern "C".
15913         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
15914         program, declare __xpg_strerror_r as extern "C".
15915         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
15916         strndup as extern "C".
15917         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
15918         declare memset and bzero as extern "C".
15919         Reported by Sam Steingold <sds@gnu.org>.
15920
15921 2011-07-12  Jim Meyering  <meyering@redhat.com>
15922
15923         maint.mk: prohibit inclusion of "verify.h" without use
15924         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
15925
15926 2011-07-19  Pádraig Brady  <P@draigBrady.com>
15927
15928         timer-time: A new module to check for timer_settime()
15929         * m4/timer_time.m4: Check for the posix function.
15930         * modules/timer-time: Add the new module.
15931         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
15932         Mention it.
15933
15934 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
15935             Bruno Haible  <bruno@clisp.org>
15936
15937         pthread_sigmask: assume POSIX threads if --avoid=threadlib
15938         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
15939         not defined, assume POSIX threads and look for pthread_sigmask in
15940         $LIBS, without changing $CPPFLAGS.
15941
15942 2011-07-19  Bruno Haible  <bruno@clisp.org>
15943
15944         strstr: Update cross-compilation guess.
15945         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
15946         CPUs, guess no, in view of glibc
15947         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
15948         Suggested by Eric Blake. Reported by Reuben Thomas.
15949
15950 2011-07-19  Pádraig Brady  <P@draigBrady.com>
15951
15952         getopt-gnu: suppress core dumps from detection code
15953         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
15954         to suppress core dumps that may well occur on glibc systems.
15955         * modules/getopt-gnu: Depend on nocrash.
15956
15957 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
15958
15959         pthread_sigmask: ensure usleep is declared
15960         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
15961         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
15962
15963 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
15964
15965         doc: Document NonStop portability issues.
15966         * doc/posix-functions/sigaction.texi (sigaction):
15967         * doc/posix-headers/signal.texi (signal.h):
15968         Document NonStop.  See Joachim Schmitz in
15969         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
15970
15971 2011-07-15  Bruno Haible  <bruno@clisp.org>
15972
15973         ffsl, ffsll: Avoid unportable behaviour.
15974         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
15975
15976 2011-07-15  Bruno Haible  <bruno@clisp.org>
15977
15978         ffs: More tests.
15979         * tests/test-ffs.c (NBITS): New macro.
15980         (main): Add more tests.
15981         * tests/test-ffsl.c (NBITS): New macro.
15982         (main): Add more tests.
15983         * tests/test-ffsll.c (NBITS): New macro.
15984         (main): Add more tests.
15985
15986 2011-07-15  Eric Blake  <eblake@redhat.com>
15987
15988         ffsl, ffsll: new modules
15989         * modules/ffsl: New file.
15990         * modules/ffsll: Likewise.
15991         * m4/ffsl.m4: Likewise.
15992         * m4/ffsll.m4: Likewise.
15993         * lib/ffsl.c: Likewise.
15994         * lib/ffsl.h: Likewise.
15995         * lib/ffsll.c: Likewise.
15996         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
15997         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
15998         * modules/string (Makefile.am): Substitute witnesses.
15999         * lib/strings.in.h (ffsl, ffsll): Declare.
16000         * modules/ffsl-tests: New test file.
16001         * modules/ffsll-tests: Likewise.
16002         * tests/test-ffsl.c: Likewise.
16003         * tests/test-ffsll.c: Likewise.
16004         * MODULES.html.sh (Integer arithmetic functions): Mention it.
16005         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
16006         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
16007
16008         ffs: fix m4 prerequisite
16009         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
16010
16011         ffs: avoid undefined behavior
16012         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
16013         * tests/test-ffs.c (naive, main): Avoid signed shifts.
16014         Reported by Bruno Haible.
16015
16016 2011-07-12  Bruno Haible  <bruno@clisp.org>
16017
16018         pthread_sigmask: Rely on module 'threadlib'.
16019         * modules/pthread_sigmask (Depends-on): Add threadlib.
16020         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
16021         is defined.
16022
16023 2011-07-12  Bruno Haible  <bruno@clisp.org>
16024
16025         regex: Depend on module 'strcase'.
16026         * modules/regex (Depends-on): Add strcase, for strcasecmp().
16027
16028 2011-07-12  Jim Meyering  <meyering@redhat.com>
16029
16030         warn-on-use: fix typo in file name
16031         * modules/snippet/warn-on-use (Files): Correct file name:
16032         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
16033
16034 2011-07-12  Bruno Haible  <bruno@clisp.org>
16035
16036         strings: Document module.
16037         * doc/posix-headers/strings.texi: Mention module 'strings'.
16038
16039 2011-07-12  Bruno Haible  <bruno@clisp.org>
16040
16041         Rename module '_Noreturn' to 'snippet/_Noreturn'.
16042         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
16043         (Files, Makefile.am): Update.
16044         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
16045         * modules/stdlib (Depends-on): Update.
16046
16047 2011-07-12  Bruno Haible  <bruno@clisp.org>
16048
16049         * NEWS: Mention the changes.
16050
16051         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
16052         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
16053         (Files, Makefile.am): Update.
16054         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
16055         * modules/arpa_inet (Depends-on): Update.
16056         * modules/ctype (Depends-on): Update.
16057         * modules/dirent (Depends-on): Update.
16058         * modules/fcntl-h (Depends-on): Update.
16059         * modules/glob (Depends-on): Update.
16060         * modules/iconv-h (Depends-on): Update.
16061         * modules/inttypes-incomplete (Depends-on): Update.
16062         * modules/langinfo (Depends-on): Update.
16063         * modules/locale (Depends-on): Update.
16064         * modules/math (Depends-on): Update.
16065         * modules/netdb (Depends-on): Update.
16066         * modules/poll-h (Depends-on): Update.
16067         * modules/pty (Depends-on): Update.
16068         * modules/search (Depends-on): Update.
16069         * modules/signal (Depends-on): Update.
16070         * modules/spawn (Depends-on): Update.
16071         * modules/stdio (Depends-on): Update.
16072         * modules/stdlib (Depends-on): Update.
16073         * modules/string (Depends-on): Update.
16074         * modules/strings (Depends-on): Update.
16075         * modules/sys_file (Depends-on): Update.
16076         * modules/sys_ioctl (Depends-on): Update.
16077         * modules/sys_select (Depends-on): Update.
16078         * modules/sys_socket (Depends-on): Update.
16079         * modules/sys_stat (Depends-on): Update.
16080         * modules/sys_time (Depends-on): Update.
16081         * modules/sys_times (Depends-on): Update.
16082         * modules/sys_utsname (Depends-on): Update.
16083         * modules/sys_wait (Depends-on): Update.
16084         * modules/termios (Depends-on): Update.
16085         * modules/time (Depends-on): Update.
16086         * modules/unistd (Depends-on): Update.
16087         * modules/wchar (Depends-on): Update.
16088         * modules/wctype-h (Depends-on): Update.
16089         * MODULES.html.sh (Support for building libraries and executables):
16090         Update.
16091
16092         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
16093         * modules/snippet/unused-parameter: Renamed from
16094         modules/unused-parameter.
16095         (Files, Makefile.am): Update.
16096         * build-aux/snippet/unused-parameter.h: Renamed from
16097         build-aux/unused-parameter.h.
16098         * modules/selinux-h (Depends-on): Update.
16099         * modules/unistr/base (Depends-on): Update.
16100         * MODULES.html.sh (Core language properties): Update.
16101
16102         Rename module 'link-warning' to 'snippet/link-warning'.
16103         * modules/snippet/link-warning: Renamed from modules/link-warning.
16104         (Files, Makefile.am): Update.
16105         * build-aux/snippet/link-warning.h: Renamed from
16106         build-aux/link-warning.h.
16107         * MODULES.html.sh (Support for building libraries and executables):
16108         Update.
16109
16110         Rename module 'c++defs' to 'snippet/c++defs'.
16111         * modules/snippet/c++defs: Renamed from modules/c++defs.
16112         (Files, Makefile.am): Update.
16113         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
16114         * modules/arpa_inet (Depends-on): Update.
16115         * modules/ctype (Depends-on): Update.
16116         * modules/dirent (Depends-on): Update.
16117         * modules/fcntl-h (Depends-on): Update.
16118         * modules/glob (Depends-on): Update.
16119         * modules/iconv-h (Depends-on): Update.
16120         * modules/langinfo (Depends-on): Update.
16121         * modules/locale (Depends-on): Update.
16122         * modules/math (Depends-on): Update.
16123         * modules/netdb (Depends-on): Update.
16124         * modules/poll-h (Depends-on): Update.
16125         * modules/pty (Depends-on): Update.
16126         * modules/search (Depends-on): Update.
16127         * modules/signal (Depends-on): Update.
16128         * modules/spawn (Depends-on): Update.
16129         * modules/stdio (Depends-on): Update.
16130         * modules/stdlib (Depends-on): Update.
16131         * modules/string (Depends-on): Update.
16132         * modules/strings (Depends-on): Update.
16133         * modules/sys_ioctl (Depends-on): Update.
16134         * modules/sys_select (Depends-on): Update.
16135         * modules/sys_socket (Depends-on): Update.
16136         * modules/sys_stat (Depends-on): Update.
16137         * modules/sys_time (Depends-on): Update.
16138         * modules/sys_wait (Depends-on): Update.
16139         * modules/termios (Depends-on): Update.
16140         * modules/time (Depends-on): Update.
16141         * modules/unistd (Depends-on): Update.
16142         * modules/wchar (Depends-on): Update.
16143         * modules/wctype-h (Depends-on): Update.
16144
16145         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
16146         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
16147         (Files, Makefile.am): Update.
16148         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
16149         * modules/argv-iter (Depends-on): Update.
16150         * modules/arpa_inet (Depends-on): Update.
16151         * modules/dirent (Depends-on): Update.
16152         * modules/fcntl-h (Depends-on): Update.
16153         * modules/fnmatch (Depends-on): Update.
16154         * modules/getopt-posix (Depends-on): Update.
16155         * modules/glob (Depends-on): Update.
16156         * modules/iconv-h (Depends-on): Update.
16157         * modules/inttypes-incomplete (Depends-on): Update.
16158         * modules/locale (Depends-on): Update.
16159         * modules/math (Depends-on): Update.
16160         * modules/netdb (Depends-on): Update.
16161         * modules/search (Depends-on): Update.
16162         * modules/signal (Depends-on): Update.
16163         * modules/spawn (Depends-on): Update.
16164         * modules/stdio (Depends-on): Update.
16165         * modules/stdlib (Depends-on): Update.
16166         * modules/string (Depends-on): Update.
16167         * modules/strings (Depends-on): Update.
16168         * modules/sys_socket (Depends-on): Update.
16169         * modules/sys_stat (Depends-on): Update.
16170         * modules/sys_time (Depends-on): Update.
16171         * modules/sys_times (Depends-on): Update.
16172         * modules/sys_utsname (Depends-on): Update.
16173         * modules/time (Depends-on): Update.
16174         * modules/unistd (Depends-on): Update.
16175         * modules/wchar (Depends-on): Update.
16176         * MODULES.html.sh (Support for building libraries and executables):
16177         Update.
16178
16179 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
16180
16181         Improvements on _Noreturn and related modules.
16182
16183         modules/_Exit-tests: test _Noreturn too
16184         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
16185         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
16186         (main): Use them.
16187
16188         stdnoreturn, stdnoreturn-tests: remove modules
16189         They're not needed here and a bit premature for use elsewhere.  See
16190         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
16191         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
16192         * tests/test-stdnoreturn.c: Remove files.
16193         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
16194         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
16195         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
16196         and using noreturn.
16197         * modules/openat, modules/sigpipe-die, modules/xalloc:
16198         * modules/xmemdup0, modules/xstrtol:
16199         Remove dependency on stdnoreturn.
16200
16201         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
16202         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
16203         Reparenthesize to avoid GCC warning.
16204         Support Microsoft's syntax.
16205         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
16206
16207         _Noreturn-tests: remove module
16208         * modules/_Noreturn-tests: Remove.
16209         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
16210         * tests/test-_Noreturn.c: Remove.
16211         * tests/test-stdnoreturn.c: Merge from the old
16212         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
16213
16214 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
16215
16216         _Noreturn, stdnoreturn, and related modules.
16217
16218         * top/maint.mk: Adjust to new noreturn support.
16219         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
16220         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
16221
16222         xalloc: use stdnoreturn.h
16223         * lib/xalloc.h: Include <stdnoreturn.h>.
16224         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16225         * modules/xalloc (Depends-on): Add stdnoreturn.
16226
16227         xstrtol: use stdnoreturn.h
16228         * lib/xstrtol.h: Include <stdnoreturn.h>.
16229         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16230         * modules/xstrtol (Depends-on): Add stdnoreturn.
16231
16232         xmemdup0: use stdnoreturn.h
16233         * lib/xmemdup0.h: Include <stdnoreturn.h>.
16234         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16235         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
16236
16237         sigpipe-die: use stdnoreturn.h
16238         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
16239         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16240         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
16241
16242         openat: use stdnoreturn.h
16243         * lib/openat.h: Include <stdnoreturn.h>.
16244         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16245         * modules/openat (Depends-on): Add stdnoreturn.
16246
16247         * lib/openat-die.c (openat_save_fail): Modernize comment.
16248
16249         * lib/xalloc-die.c (xalloc_die): Modernize comment.
16250
16251         * lib/glthread/thread.h: Modernize comment.
16252
16253         obstack: use _Noreturn
16254         * lib/obstack.c (__attribute__): Remove macro.
16255         (print_and_abort): Use _Noreturn.
16256
16257         c-stack: use _Noreturn
16258         * lib/c-stack.c (die, overflow_handler, segv_handler):
16259         Use _Noreturn rather than __attribute__((noreturn)).
16260
16261         argmatch-tests, exclude_tests: use _Noreturn
16262         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
16263         Remove.
16264         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
16265
16266         stdlib: use _Noreturn
16267         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
16268         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
16269         * modules/stdlib (Depends-on): Add _Noreturn.
16270         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
16271
16272         stdnoreturn-tests: new module
16273         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
16274
16275         stdnoreturn: new module
16276         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
16277         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
16278
16279         _Noreturn-tests: new module
16280         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
16281
16282         _Noreturn: new module
16283         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
16284         New section, mentioning it.
16285         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
16286
16287         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
16288
16289 2011-07-11  Eric Blake  <eblake@redhat.com>
16290
16291         ffs: new module
16292         * modules/ffs: New file.
16293         * m4/ffs.m4: Likewise.
16294         * lib/ffs.c: Likewise.
16295         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
16296         * modules/strings (Makefile.am): Substitute witness.
16297         (Depends-on): Add c++defs.
16298         * lib/strings.in.h (ffs): Declare.
16299         * modules/ffs-tests: New test file.
16300         * tests/test-ffs.c: Test new module.
16301         * MODULES.html.sh (Integer arithmetic functions): Mention it.
16302         * doc/posix-functions/ffs.texi (ffs): Likewise.
16303
16304         regex: avoid compiler warning
16305         * lib/regex.c (includes): Include <strings.h>, for use of
16306         strcasecmp in regcomp.c.
16307         Reported by Joachim Schmitz.
16308
16309 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
16310
16311         stdint: respect system's intmax_t if INTMAX_MAX
16312         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
16313         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
16314         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
16315         long but int64_t is long long, and where we will clash with the
16316         system intmax_t if we override it.  See
16317         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
16318         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
16319         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
16320         similarly for UINTMAX_C.
16321
16322 2011-07-08  Bruno Haible  <bruno@clisp.org>
16323
16324         pthread_sigmask tests: Avoid a compiler warning.
16325         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
16326         non-zero.
16327
16328         sigprocmask tests: A better way to avoid a compiler warning.
16329         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
16330         (main): Complain if system() returns non-zero.
16331         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
16332
16333 2011-07-08  Bruno Haible  <bruno@clisp.org>
16334
16335         pthread_sigmask: Work around IRIX bug.
16336         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
16337         bug.
16338         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
16339         there may be unblocked pending signals.
16340         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
16341
16342 2011-07-08  Bruno Haible  <bruno@clisp.org>
16343
16344         pthread_sigmask: Work around Cygwin bug.
16345         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
16346         bug.
16347         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
16348         the system's pthread_sigmask function.
16349         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
16350
16351 2011-07-08  Bruno Haible  <bruno@clisp.org>
16352
16353         pthread_sigmask: Work around bug in single-threaded implementation.
16354         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
16355         FreeBSD, HP-UX, Solaris bug.
16356         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
16357         * lib/pthread_sigmask.c: Include <stddef.h>.
16358         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
16359         the system's pthread_sigmask function.
16360         * modules/pthread_sigmask (configure.ac): Invoke
16361         gl_PREREQ_PTHREAD_SIGMASK.
16362         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
16363         HP-UX, Solaris.
16364
16365 2011-07-08  Eric Blake  <eblake@redhat.com>
16366
16367         test-sigprocmask: avoid compiler warning
16368         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
16369         * tests/test-sigprocmask.c (main): Use it to silence warning.
16370         Reported by Jim Meyering.
16371
16372         test-snprintf: avoid compiler warning
16373         * tests/test-snprintf.c (main): Avoid shadowed declaration.
16374         * tests/test-vsnprintf.c (main): Likewise.
16375         Reported by Jim Meyering.
16376
16377 2011-07-08  Bruno Haible  <bruno@clisp.org>
16378
16379         Tests for module 'pthread_sigmask'.
16380         * modules/pthread_sigmask-tests: New file.
16381         * tests/test-pthread_sigmask1.c: New file, based on
16382         tests/test-sigprocmask.c.
16383         * tests/test-pthread_sigmask2.c: New file.
16384
16385 2011-07-08  Jim Meyering  <meyering@redhat.com>
16386
16387         test-getopt.h: avoid warning about an unused variable
16388         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
16389
16390 2011-07-07  Jim Meyering  <meyering@redhat.com>
16391
16392         maint: reduce list of files exempt from sc_prohibit_leading_TABs
16393         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
16394         now that it no longer contains leading TABs.
16395         Remove unused "url=FIXME" statement.
16396
16397 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
16398
16399         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
16400         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
16401         When gl_THREADLIB is not in use, assume that the POSIX sematics
16402         are desired.  This is better for Emacs, which uses POSIX semantics
16403         on GNUish and/or POSIXish platforms, and does not use threads at
16404         all otherwise.
16405
16406         pthread_sigmask: fix typo when testing for libraries
16407         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
16408         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
16409
16410 2011-07-08  Eric Blake  <eblake@redhat.com>
16411
16412         fts: introduce FTS_NOATIME
16413         * lib/fts_.h (FTS_NOATIME): New bit flag.
16414         (FTS_OPTIONMASK): Adjust.
16415         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
16416         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
16417
16418 2011-07-08  Bruno Haible  <bruno@clisp.org>
16419
16420         Tests for module 'thread'.
16421         * modules/thread-tests: New file.
16422         * tests/test-thread_self.c: New file.
16423         * tests/test-thread_create.cc: New file.
16424
16425 2011-07-08  Bruno Haible  <bruno@clisp.org>
16426
16427         thread: Avoid gcc warnings when using gl_thread_self().
16428         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
16429         'void *'.
16430         (gl_thread_self_pointer): Update.
16431
16432 2011-07-07  Bruno Haible  <bruno@clisp.org>
16433
16434         signal-c++-tests: Check declaration of pthread_sigmask.
16435         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
16436         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
16437         $(LIB_PTHREAD_SIGMASK).
16438
16439 2011-07-07  Bruno Haible  <bruno@clisp.org>
16440
16441         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
16442         * lib/signal.in.h (pthread_sigmask): Override if
16443         REPLACE_PTHREAD_SIGMASK is 1.
16444         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
16445         REPLACE_PTHREAD_SIGMASK.
16446         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
16447         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
16448         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
16449         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
16450         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
16451
16452 2011-07-07  Bruno Haible  <bruno@clisp.org>
16453
16454         pthread_sigmask: Ensure declaration in <signal.h>.
16455         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
16456         include <pthread.h>.
16457         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
16458         problem.
16459
16460 2011-07-07  Bruno Haible  <bruno@clisp.org>
16461
16462         pthread_sigmask: Document the module.
16463         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
16464
16465 2011-07-07  Bruno Haible  <bruno@clisp.org>
16466
16467         pthread_sigmask: Follow gnulib conventions.
16468         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
16469         gl_PTHREAD_SIGMASK.
16470         * modules/pthread_sigmask (configure.ac): Update.
16471
16472 2011-07-07  Bruno Haible  <bruno@clisp.org>
16473
16474         pthread_sigmask: Make declaration C++ safe.
16475         * lib/signal.in.h: In two special conditions, just do an #include_next.
16476         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
16477         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
16478         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
16479         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
16480         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
16481         not REPLACE_PTHREAD_MASK.
16482         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
16483         not REPLACE_PTHREAD_MASK.
16484         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
16485
16486 2011-07-07  Bruno Haible  <bruno@clisp.org>
16487
16488         pthread_sigmask: Fix return value.
16489         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
16490         * lib/pthread_sigmask.c: New file.
16491         * modules/pthread_sigmask (Files): Add it.
16492         (configure.ac): Invoke AC_LIBOBJ.
16493
16494 2011-07-07  Eric Blake  <eblake@redhat.com>
16495
16496         getopt: more portable argv creation
16497         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
16498         const, use char arrays rather than strings.
16499         Suggested by Paul Eggert.
16500
16501 2011-07-07  Bruno Haible  <bruno@clisp.org>
16502
16503         Tests for module 'sigprocmask'.
16504         * modules/sigprocmask-tests: New file.
16505         * tests/test-sigprocmask.c: New file.
16506
16507 2011-07-07  Bruno Haible  <bruno@clisp.org>
16508
16509         float tests: Tweak.
16510         * tests/test-float.c (main): Tweak skip message.
16511
16512 2011-07-07  Eric Blake  <eblake@redhat.com>
16513
16514         getopt: avoid compiler warning during configure
16515         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
16516         assigning string literals to non-const pointer.
16517
16518         getopt-gnu: avoid crash in glibc getopt
16519         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
16520         * tests/test-getopt.h (test_getopt): Enhance test.
16521         * tests/test-getopt_long.h (test_getopt_long): Likewise.
16522         * doc/posix-functions/getopt.texi (getopt): Document it.
16523         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
16524         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16525         Likewise.
16526
16527 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
16528
16529         getopt: handle W; without long options in getopt [BZ #12922]
16530         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
16531         but no long options are defined, just return 'W'.
16532
16533 2011-07-07  Bruno Haible  <bruno@clisp.org>
16534
16535         Avoid literal tabs.
16536         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
16537         variable containing a tab instead of a literal tab.
16538         Reported by Jim Meyering.
16539
16540 2011-07-07  Bruno Haible  <bruno@clisp.org>
16541
16542         Comments.
16543         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
16544
16545 2011-07-06  Bruno Haible  <bruno@clisp.org>
16546
16547         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
16548         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
16549         <winsock2.h>.
16550         (rpl_fd_isset, FD_ISSET): New definitions, copied from
16551         lib/sys_socket.in.h.
16552         (close, gethostname): Hide declarations from <winsock2.h>.
16553         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
16554         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
16555         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
16556         (select): Don't override if gnulib's <sys/select.h> was already
16557         included.
16558         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
16559         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
16560         setsockopt, shutdown, select): Tweak indentation.
16561
16562 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
16563
16564         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
16565         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
16566         in an application that does not use the sys_select module.
16567
16568 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
16569
16570         poll: do not return 0 on timeout=-1
16571         * lib/poll.c: Loop with yield if no events occurred.
16572
16573 2011-07-06  Eric Blake  <eblake@redhat.com>
16574
16575         pthread_sigmask: always replace when not using pthread
16576         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
16577         replacement when using some threading other than pthread.  Fix
16578         logic bug.
16579
16580 2011-07-06  Bruno Haible  <bruno@clisp.org>
16581
16582         Comments.
16583         * m4/printf.m4: Update comments about mingw.
16584
16585 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
16586
16587         sys_select: define sigset_t more portably
16588         * lib/sys_select.in.h: Always include <sys/types.h>, since
16589         we now need sigset_t and mingw defines it there.
16590         Include <signal.h> before split inclusion guard, to avoid
16591         mishaps on Solaris, whose <signal.h> eventually includes us.
16592         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
16593         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
16594         which come from ...
16595         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
16596         gl_CHECK_TYPE_SIGSET_T.
16597         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
16598         does the real work.
16599         * modules/sys_select (Depends-on): Add 'signal'.
16600
16601         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
16602         Suggested by Bruno Haible.
16603
16604         pselect: Use pthread_sigmask, not sigprocmask.
16605         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
16606         multithreaded apps better than sigprocmask does.
16607         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
16608         sigprocmask directly.
16609
16610 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
16611
16612         * lib/pselect.c (pselect): Use plain name, without "rpl_".
16613         Don't #undef,  since we don't need any underlying pselect.
16614         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
16615         (Depends-on): Add select.
16616         (Link): Add $(LIBSOCKET).
16617         These changes suggested by Bruno Haible.
16618
16619         pselect: document better
16620         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
16621         * doc/posix-functions/pselect.texi (pselect): Document new module.
16622
16623         pthread_sigmask: new module
16624         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
16625         * doc/posix-functions/pthread_sigmask.texi: Document new module.
16626         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
16627         This is done only as a macro; I don't know how well that'll
16628         work for C++.  Move <sys/types.h> include before the include_next,
16629         to avoid mishap on Solaris.
16630         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
16631         * modules/signal (Makefile.am): Substitute the check's results.
16632         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
16633
16634         test-pselect: new module
16635         * modules/pselect-tests, tests/test-pselect.c: New files.
16636         * tests/test-select.c, tests/test-sys_select-c++.cc:
16637         If TEST_PSELECT is defined, test pselect instead of testing select.
16638
16639         * tests/test-sys_select.c (sigset_t): Test for it, too.
16640         Suggested by Bruno Haible.
16641
16642 2011-07-05  Eric Blake  <eblake@redhat.com>
16643
16644         snprintf: guarantee %1$d, for libintl
16645         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
16646         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
16647         * doc/posix-functions/snprintf.texi (snprintf): Update.
16648         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16649         * tests/test-snprintf.c (main): Enhance test.
16650         * tests/test-vsnprintf.c (main): Likewise.
16651
16652 2011-07-05  Jim Meyering  <meyering@redhat.com>
16653
16654         maint: exempt stdio-read.c and stdio-write.c from the cppi check
16655         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
16656         per Bruno's request, to accommodate this idiom (no space after "#")
16657         even when the function is inside an #if block:
16658         char *
16659         gets (char *s)
16660         #undef gets
16661         {
16662           ...
16663         }
16664
16665 2011-07-04  Jim Meyering  <meyering@redhat.com>
16666
16667         maint: indent with spaces, not TABs, and add a rule to check this
16668         * tests/test-userspec.c: Indent with spaces, not TABs.
16669         * tests/test-argp.c: Likewise.
16670         * tests/test-c-stack2.sh: Likewise.
16671         * tests/test-parse-duration.sh: Likewise
16672         * m4/strtod.m4: Likewise.
16673         * m4/alloca.m4: Likewise.
16674         * m4/pselect.m4: Likewise.
16675         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
16676
16677 2011-07-03  Jim Meyering  <meyering@redhat.com>
16678
16679         maint.mk: correct omissions in prohibit_argmatch_without_use check
16680         This rule would mistakenly report that argmatch.h is included without
16681         use even when both the argmatch and invalid_arg macro were used.
16682         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
16683         of argmatch and invalid_arg.
16684
16685 2011-07-03  Bruno Haible  <bruno@clisp.org>
16686
16687         Comments about EINTR.
16688         * lib/safe-read.h: Explain the purpose of this module.
16689         * lib/safe-write.h: Likewise.
16690         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
16691         module.
16692         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
16693         module.
16694         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16695
16696 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
16697
16698         xnanosleep: Rewrite to use new dtotimespec module.
16699         It has the conversion code that used to be in xnanosleep.
16700         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
16701         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
16702         (TIME_T_MAX): Remove.
16703         (xnanosleep): Rewrite in terms of dtotimespec.
16704         * modules/xnanosleep (Depends-on): Add dtotimespec.
16705         Remove intprops, stdbool.
16706
16707         timespec-add, timespec-sub: new modules
16708         * lib/timespec.h (timespec_add, timespec_sub): New decls.
16709         * lib/timespec-add.c, lib/timespec-sub.c:
16710         * modules/timespec-add, modules/timespec-sub: New files.
16711
16712         dtotimespec: new module
16713         * lib/timespec.h (dtotimespec): New decl.
16714         * lib/dtotimespec.c, modules/dtotimespec: New files.
16715
16716         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
16717
16718         pselect: new module
16719         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
16720         (pselect): New decls.
16721         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
16722         since the standard pselect decl uses 'restrict'.
16723         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
16724         HAVE_PSELECT, REPLACE_PSELECT.
16725         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
16726         HAVE_PSELECT, REPLACE_PSELECT.
16727         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
16728
16729         sys_select: don't depend on sys_socket
16730         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
16731         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
16732         This fix works on GNU and GNU-like platforms, but has not been tested
16733         on native Windows.
16734         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
16735         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
16736         gl_HEADER_SYS_SOCKET.
16737         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
16738         gl_PREREQ_SYS_H_WINSOCK2.
16739
16740 2011-06-29  Eric Blake  <eblake@redhat.com>
16741
16742         pipe2: fix C89 compile problem
16743         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
16744         Reported by Bruno Haible.
16745
16746         pipe, pipe2: don't corrupt fd on error
16747         * lib/pipe.c (pipe): Leave fd unchanged on error.
16748         * lib/pipe2.c (pipe2): Likewise.
16749         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
16750         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
16751
16752 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
16753
16754         mmap-anon: do not use regular expressions inadvertently
16755         * m4/mmap-anon.m4: Remove trailing period from strings sought
16756         in the output.
16757
16758 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
16759
16760         nanosleep: fix integer overflow problem
16761         * lib/nanosleep.c (my_usleep): Don't assume signed integer
16762         arithmetic wraps around on overflow.
16763
16764         nanosleep: simplify carrying
16765         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
16766         first call to the underyling nanosleep, not for the last one.
16767         This doesn't fix any bugs, but it simplifies the computation of
16768         the remaining delay.  Found while auditing integer overflow issues.
16769
16770         dup2: remove test for existence of fcntl
16771         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
16772         "#if HAVE_FCNTL", in the configure-time test program.
16773         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
16774         and therefore speeds up "configure" a bit.  Found while
16775         adding the dup2 module to Emacs.
16776
16777 2011-06-24  Eric Blake  <eblake@redhat.com>
16778
16779         maint.mk: enhance useless header checks
16780         * top/maint.mk (_sc_header_without_use): Check both include
16781         styles.
16782         (sc_prohibit_assert_without_use)
16783         (sc_prohibit_close_stream_without_use)
16784         (sc_prohibit_getopt_without_use)
16785         (sc_prohibit_quotearg_without_use)
16786         (sc_prohibit_quote_without_use)
16787         (sc_prohibit_long_options_without_use)
16788         (sc_prohibit_inttostr_without_use)
16789         (sc_prohibit_ignore_value_without_use)
16790         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
16791         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
16792         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
16793         (sc_prohibit_hash_pjw_without_use)
16794         (sc_prohibit_safe_read_without_use)
16795         (sc_prohibit_argmatch_without_use)
16796         (sc_prohibit_canonicalize_without_use)
16797         (sc_prohibit_root_dev_ino_without_use)
16798         (sc_prohibit_openat_without_use)
16799         (sc_prohibit_c_ctype_without_use)
16800         (sc_prohibit_signal_without_use)
16801         (sc_prohibit_stdio--_without_use)
16802         (sc_prohibit_stdio-safer_without_use)
16803         (sc_prohibit_strings_without_use)
16804         (sc_prohibit_intprops_without_use)
16805         (sc_prohibit_stddef_without_use)
16806         (sc_prohibit_xfreopen_without_use): Update clients.
16807
16808 2011-06-24  Jim Meyering  <meyering@redhat.com>
16809
16810         syntax-check: keep one maint.mk rule in sync with its header
16811         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
16812         of the bug Eric has just fixed, with today's commit 25e4c2ec.
16813         I prefer to avoid temporary files here, so use <(...), but that
16814         is not supported by /bin/sh, so...
16815         (SHELL): Define to /bin/bash.
16816
16817 2011-06-24  Eric Blake  <eblake@redhat.com>
16818
16819         maint.mk: update sc_prohibit_intprops_without_use
16820         * top/maint.mk (_intprops_names): Match recent changes.
16821
16822 2011-06-24  Bruno Haible  <bruno@clisp.org>
16823
16824         strerror-override: No-op tweak.
16825         * lib/strerror-override.h (strerror_override): Reorder conditions,
16826         for consistency with lib/strerror-override.c.
16827
16828 2011-06-23  Eric Blake  <eblake@redhat.com>
16829
16830         maint.mk: test further PATH_MAX issues
16831         * top/maint.mk (sc_prohibit_path_max_array): Rename...
16832         (sc_prohibit_path_max_allocation): ...and also test alloca.
16833         Suggested by Jim Meyering.
16834
16835 2011-06-22  Eric Blake  <eblake@redhat.com>
16836
16837         maint.mk: add syntax-check to avoid char[PATH_MAX]
16838         * top/maint.mk (sc_prohibit_path_max_array): New rule.
16839
16840         stat: be robust to PATH_MAX definition
16841         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
16842         * modules/stat (Depends-on): Add verify.
16843
16844         link: work around IRIX bug
16845         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
16846         * lib/link.c (rpl_link): Work around it.
16847         * tests/test-link.h (test_link): Enhance test.
16848         * doc/posix-functions/link.texi (link): Document the bug.
16849
16850         getopt: silence clang warning
16851         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
16852         dereference.
16853         Reported by Gustavo Martin Domato.
16854
16855 2011-06-22  Jim Meyering  <meyering@redhat.com>
16856
16857         bootstrap: do not insert a blank line into each .gitignore file
16858         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
16859
16860 2011-06-21  Eric Blake  <eblake@redhat.com>
16861
16862         perror: test for output mismatch
16863         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
16864         perror on IRIX.
16865
16866         strerror_r: fix OpenBSD behavior on out-of-range
16867         * lib/strerror_r.c (strerror_r): Always use maximal string.
16868         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16869
16870         strerror_r: fix OpenBSD behavior on 0
16871         * lib/strerror-override.c (strerror_override): Also override 0
16872         when needed.
16873         * lib/strerror-override.h (strerror_override): Likewise.
16874         * lib/strerror.c (strerror): Simplify, now that 0 override is done
16875         earlier.
16876         * lib/strerror_r.c (strerror_r): Likewise.
16877         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
16878         behavior...
16879         (gl_FUNC_STRERROR_0): ...into new macro.
16880         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
16881         is overridden.
16882         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
16883         * modules/strerror-override (Files): Add strerror.m4.
16884         (configure.ac): Also provide override for 0 when needed.
16885         * doc/posix-functions/strerror.texi (strerror): Document this.
16886         * doc/posix-functions/perror.texi (perror): Likewise.
16887
16888         perror: adjust array size
16889         * modules/perror (Depends-on): Add strerror-override.
16890         * lib/perror.c (perror): Use it to avoid magic number.
16891
16892         strerror-override: reduce size
16893         * lib/strerror-override.c (strerror_override): Use fewer lines.
16894
16895 2011-06-20  Bruno Haible  <bruno@clisp.org>
16896
16897         pathmax: Ensure correct value for PATH_MAX on HP-UX.
16898         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
16899
16900 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
16901
16902         alloca: port to compilers that can optimize like GCC 4.6.0
16903         * lib/alloca.c (find_stack_direction): New signature, taken from
16904         Autoconf git.  This works with GCC 4.6.0.  This code should never
16905         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
16906         be used with other compilers that optimize as well as GCC 4.6.0 does.
16907         (alloca): Adjust to new signature.
16908         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
16909         New macro, which patches Autoconf in a similar way.
16910
16911         c-stack: stop worrying about stack direction
16912         * lib/c-stack.c (find_stack_direction): Remove.
16913         (segv_handler): Don't worry about stack direction growth, as it's
16914         too much of a pain to configure this correctly, given how compilers
16915         are optimizing-away our stack-growth detection code.  Instead, assume
16916         that any access to just before or just after the stack is OK.
16917         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
16918         Don't require AC_FUNC_ALLOCA; no longer needed.
16919
16920 2011-06-20  Eric Blake  <eblake@redhat.com>
16921
16922         test-stat: don't allocate PATH_MAX bytes
16923         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
16924         PATH_MAX-sized buffer.
16925         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
16926         * modules/stat-tests (Depends-on): Likewise.
16927         * tests/test-fstatat.c (includes): Drop pathmax.h.
16928         * tests/test-stat.c (includes): Likewise.
16929         Reported by Bruno Haible.
16930
16931 2011-06-20  Bruno Haible  <bruno@clisp.org>
16932
16933         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
16934         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
16935         * lib/float.c: New file.
16936         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
16937         REPLACE_FLOAT_LDBL.
16938         * modules/float (Files): Add lib/float.c.
16939         (configure.ac): Invoke AC_LIBOBJ.
16940         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
16941
16942 2011-06-20  Bruno Haible  <bruno@clisp.org>
16943
16944         Tests for module 'float'.
16945         * modules/float-tests: New file.
16946         * tests/test-float.c: New file.
16947
16948 2011-06-19  Bruno Haible  <bruno@clisp.org>
16949
16950         isinf: Coding style.
16951         * lib/isinf.c: Use GNU coding style.
16952
16953 2011-06-19  Bruno Haible  <bruno@clisp.org>
16954
16955         linkat test: Avoid test failure on AIX 7.1.
16956         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
16957         * tests/test-link.h (test_link): Likewise.
16958
16959 2011-06-19  Bruno Haible  <bruno@clisp.org>
16960
16961         pread test: Avoid test failure on OpenBSD 4.9.
16962         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
16963
16964 2011-06-19  Bruno Haible  <bruno@clisp.org>
16965
16966         sprintf-posix: Fix test failure on AIX 7.1.
16967         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
16968         * doc/posix-functions/dprintf.texi: Mention limited precision problem
16969         on AIX.
16970         * doc/posix-functions/fprintf.texi: Likewise.
16971         * doc/posix-functions/printf.texi: Likewise.
16972         * doc/posix-functions/snprintf.texi: Likewise.
16973         * doc/posix-functions/sprintf.texi: Likewise.
16974         * doc/posix-functions/vdprintf.texi: Likewise.
16975         * doc/posix-functions/vfprintf.texi: Likewise.
16976         * doc/posix-functions/vprintf.texi: Likewise.
16977         * doc/posix-functions/vsnprintf.texi: Likewise.
16978         * doc/posix-functions/vsprintf.texi: Likewise.
16979
16980 2011-06-19  Bruno Haible  <bruno@clisp.org>
16981
16982         roundl-ieee: Fix test failure on AIX 7.1.
16983         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
16984         * doc/posix-functions/roundl.texi: Mention problem with negative
16985         arguments.
16986
16987 2011-06-19  Bruno Haible  <bruno@clisp.org>
16988
16989         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
16990         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
16991         * doc/posix-functions/round.texi: Mention problem with negative
16992         arguments.
16993         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
16994
16995 2011-06-19  Bruno Haible  <bruno@clisp.org>
16996
16997         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
16998         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
16999         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
17000         * doc/posix-functions/roundf.texi: Mention problem with negative
17001         arguments.
17002         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
17003
17004 2011-06-19  Bruno Haible  <bruno@clisp.org>
17005
17006         ceilf-ieee: Work around bug on MacOS X 10.5.
17007         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
17008
17009         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
17010         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
17011         IEEE compliant, avoid compiler optimizations.
17012         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
17013         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
17014         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
17015         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
17016         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
17017         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
17018         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17019         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
17020         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
17021         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
17022
17023 2011-06-19  Bruno Haible  <bruno@clisp.org>
17024
17025         ceilf-ieee: Work around bug on AIX 7.1.
17026         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
17027         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
17028
17029 2011-06-19  Bruno Haible  <bruno@clisp.org>
17030
17031         ceil-ieee: Work around bug on AIX 7.1.
17032         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
17033         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
17034
17035 2011-06-18  Bruno Haible  <bruno@clisp.org>
17036
17037         fsync test: Avoid test failure on MacOS X and AIX.
17038         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
17039         EINVAL.
17040
17041 2011-06-18  Bruno Haible  <bruno@clisp.org>
17042
17043         openat, fdopendir tests: Fix link errors.
17044         * modules/openat-tests (Depends-on): Add progname.
17045         * modules/fdopendir-tests (Depends-on): Likewise.
17046         * tests/test-fchownat.c: Include progname.h.
17047         (main): Call set_program_name.
17048         * tests/test-fstatat.c: Include progname.h.
17049         (main): Call set_program_name.
17050         * tests/test-mkdirat.c: Include progname.h.
17051         (main): Call set_program_name.
17052         * tests/test-openat.c: Include progname.h.
17053         (main): Call set_program_name.
17054         * tests/test-unlinkat.c: Include progname.h.
17055         (main): Call set_program_name.
17056         * tests/test-fdopendir.c: Include progname.h.
17057         (main): Call set_program_name.
17058
17059 2011-06-18  Bruno Haible  <bruno@clisp.org>
17060
17061         Doc update.
17062         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
17063         HP-UX.
17064         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
17065
17066 2011-06-18  Bruno Haible  <bruno@clisp.org>
17067
17068         getcwd tests: Avoid compilation error on HP-UX 11.31.
17069         * modules/getcwd-tests (Depends-on): Add pathmax.
17070         * tests/test-getcwd.c: Include pathmax.h.
17071
17072 2011-06-18  Bruno Haible  <bruno@clisp.org>
17073
17074         isfinite, isinf: Fix link error on AIX 6 and 7.
17075         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
17076         needed, also test the macro with a 'float' argument.
17077         * m4/isinf.m4 (gl_ISINF): Likewise.
17078
17079 2011-06-18  Bruno Haible  <bruno@clisp.org>
17080
17081         getloadavg: Don't clobber LIBS. Regression from previous commit.
17082         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
17083         AC_CHECK_LIB from here...
17084         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
17085         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
17086         gl_func_getloadavg_done.
17087         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17088
17089 2011-06-18  Bruno Haible  <bruno@clisp.org>
17090
17091         clean-temp: Improve documentation.
17092         * lib/clean-temp.h: Explain better how to use this module.
17093         Reported by John Darrington <john@darrington.wattle.id.au>.
17094
17095 2011-06-17  Bruno Haible  <bruno@clisp.org>
17096
17097         pread, pwrite: Avoid cc warning on AIX.
17098         * lib/unistd.in.h (pread): Undefine before defining as a macro.
17099         (pwrite): Likewise.
17100
17101 2011-06-17  Bruno Haible  <bruno@clisp.org>
17102
17103         spawn-pipe tests: Fix link error.
17104         * tests/test-spawn-pipe-child.c: Undefine fprintf.
17105         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17106
17107 2011-06-17  Bruno Haible  <bruno@clisp.org>
17108
17109         Tests: Remove unnecessary dependency.
17110         * modules/canonicalize-tests (Depends-on): Remove progname.
17111         * modules/chown-tests (Depends-on): Likewise.
17112         * modules/dirname-tests (Depends-on): Likewise.
17113         * modules/fdopendir-tests (Depends-on): Likewise.
17114         * modules/fdutimensat-tests (Depends-on): Likewise.
17115         * modules/hash-tests (Depends-on): Likewise.
17116         * modules/lchown-tests (Depends-on): Likewise.
17117         * modules/linkat-tests (Depends-on): Likewise.
17118         * modules/renameat-tests (Depends-on): Likewise.
17119         * modules/spawn-pipe-tests (Depends-on): Likewise.
17120         * modules/utimensat-tests (Depends-on): Likewise.
17121
17122 2011-06-17  Bruno Haible  <bruno@clisp.org>
17123
17124         spawn-pipe tests: Fix link error.
17125         * tests/test-spawn-pipe-child.c: Undefine fflush.
17126
17127 2011-06-17  Bruno Haible  <bruno@clisp.org>
17128
17129         Fix tests link errors.
17130         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
17131         * modules/chown-tests (Makefile.am): Don't link test-chown with
17132         LIBINTL.
17133         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
17134         LIBINTL.
17135         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
17136         LIBINTL.
17137         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
17138         LIBINTL.
17139
17140 2011-06-16  Bruno Haible  <bruno@clisp.org>
17141
17142         crypto/gc-sha1: Fix recent regression.
17143         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
17144         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
17145
17146         crypto/gc-md5: Fix recent regression.
17147         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
17148
17149         crypto/gc-md4: Fix recent regression.
17150         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
17151         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
17152
17153         crypto/gc-arctwo: Fix recent regression.
17154         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
17155         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
17156
17157         crypto/gc-rijndael: Fix recent regression.
17158         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
17159         (configure.ac): Invoke AC_LIBOBJ here.
17160         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
17161         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17162
17163         crypto/gc-hmac-sha1: Fix recent regression.
17164         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
17165         (configure.ac): Invoke AC_LIBOBJ here.
17166         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
17167         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17168
17169         crypto/gc-hmac-md5: Fix recent regression.
17170         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
17171         (configure.ac): Invoke AC_LIBOBJ here.
17172         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
17173         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17174
17175         crypto/gc-des: Fix recent regression.
17176         * modules/crypto/gc-des (Files): Remove m4/des.m4.
17177         (configure.ac): Invoke AC_LIBOBJ here.
17178         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
17179         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17180
17181         crypto/gc-arcfour: Fix recent regression.
17182         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
17183         (configure.ac): Invoke AC_LIBOBJ here.
17184         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
17185         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17186
17187 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
17188
17189         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
17190         After the 2011-05-21 change, this macro requires
17191         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
17192         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
17193
17194 2011-06-16  Bruno Haible  <bruno@clisp.org>
17195
17196         fprintftime: Move AC_LIBOBJ invocations to module description.
17197         * m4/fprintftime.m4: Remove file.
17198         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
17199         (configure.ac): Remove gl_FPRINTFTIME call.
17200         (Makefile.am): Augment lib_SOURCES.
17201         Reported by Jim Meyering.
17202
17203 2011-06-16  Bruno Haible  <bruno@clisp.org>
17204
17205         tmpfile-safer: Finish 2011-05-23 commit.
17206         * m4/stdio-safer.m4: Really remove file.
17207         Reported by Jim Meyering.
17208
17209 2011-06-16  Bruno Haible  <bruno@clisp.org>
17210
17211         syntax-check: Fix typo.
17212         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
17213         printf-posix.m4.
17214         Reported by Jim Meyering.
17215
17216 2011-06-13  Jim Meyering  <meyering@redhat.com>
17217
17218         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
17219         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
17220
17221 2011-05-23  Bruno Haible  <bruno@clisp.org>
17222
17223         yesno: Move AC_LIBOBJ invocations to module description.
17224         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
17225         * modules/yesno (Makefile.am): Augment lib_SOURCES.
17226
17227 2011-05-23  Bruno Haible  <bruno@clisp.org>
17228
17229         xstrtol: Move AC_LIBOBJ invocations to module description.
17230         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
17231         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
17232
17233 2011-05-23  Bruno Haible  <bruno@clisp.org>
17234
17235         xstrtold: Move AC_LIBOBJ invocations to module description.
17236         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
17237         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
17238
17239 2011-05-23  Bruno Haible  <bruno@clisp.org>
17240
17241         xstrtod: Move AC_LIBOBJ invocations to module description.
17242         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
17243         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
17244
17245 2011-05-23  Bruno Haible  <bruno@clisp.org>
17246
17247         xnanosleep: Move AC_LIBOBJ invocations to module description.
17248         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
17249         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
17250
17251 2011-05-23  Bruno Haible  <bruno@clisp.org>
17252
17253         xgetcwd: Move AC_LIBOBJ invocations to module description.
17254         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
17255         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
17256
17257 2011-05-23  Bruno Haible  <bruno@clisp.org>
17258
17259         xalloc: Move AC_LIBOBJ invocations to module description.
17260         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
17261         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
17262
17263 2011-05-23  Bruno Haible  <bruno@clisp.org>
17264
17265         write-any-file: Move AC_LIBOBJ invocations to module description.
17266         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
17267         invocation.
17268         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
17269
17270 2011-05-23  Bruno Haible  <bruno@clisp.org>
17271
17272         utimens: Move AC_LIBOBJ invocations to module description.
17273         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
17274         * modules/utimens (Makefile.am): Augment lib_SOURCES.
17275
17276 2011-05-23  Bruno Haible  <bruno@clisp.org>
17277
17278         utimecmp: Move AC_LIBOBJ invocations to module description.
17279         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
17280         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
17281
17282 2011-05-23  Bruno Haible  <bruno@clisp.org>
17283
17284         userspec: Move AC_LIBOBJ invocations to module description.
17285         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
17286         * modules/userspec (Makefile.am): Augment lib_SOURCES.
17287
17288 2011-05-23  Bruno Haible  <bruno@clisp.org>
17289
17290         unlinkdir: Move AC_LIBOBJ invocations to module description.
17291         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
17292         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
17293
17294 2011-05-23  Bruno Haible  <bruno@clisp.org>
17295
17296         unistd-safer: Move AC_LIBOBJ invocations to module description.
17297         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
17298         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
17299
17300 2011-05-23  Bruno Haible  <bruno@clisp.org>
17301
17302         tempname: Move AC_LIBOBJ invocations to module description.
17303         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
17304         * modules/tempname (Makefile.am): Augment lib_SOURCES.
17305
17306 2011-05-23  Bruno Haible  <bruno@clisp.org>
17307
17308         strftime: Move AC_LIBOBJ invocations to module description.
17309         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
17310         * modules/strftime (Makefile.am): Augment lib_SOURCES.
17311
17312 2011-05-23  Bruno Haible  <bruno@clisp.org>
17313
17314         stdlib-safer: Move AC_LIBOBJ invocations to module description.
17315         * m4/stdlib-safer.m4: Remove file.
17316         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
17317         (configure.ac): Remove gl_STDLIB_SAFER call.
17318         (Makefile.am): Augment lib_SOURCES.
17319
17320 2011-05-23  Bruno Haible  <bruno@clisp.org>
17321
17322         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
17323         * m4/stdio-safer.m4: Remove file.
17324         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
17325         (configure.ac): Remove gl_TMPFILE_SAFER call.
17326         (Makefile.am): Augment lib_SOURCES.
17327
17328 2011-05-23  Bruno Haible  <bruno@clisp.org>
17329
17330         popen-safer: Move AC_LIBOBJ invocations to module description.
17331         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
17332         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
17333         (configure.ac): Remove gl_POPEN_SAFER call.
17334         (Makefile.am): Augment lib_SOURCES.
17335
17336 2011-05-23  Bruno Haible  <bruno@clisp.org>
17337
17338         freopen-safer: Move AC_LIBOBJ invocations to module description.
17339         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
17340         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
17341         (configure.ac): Remove gl_FREOPEN_SAFER call.
17342         (Makefile.am): Augment lib_SOURCES.
17343
17344 2011-05-23  Bruno Haible  <bruno@clisp.org>
17345
17346         fopen-safer: Move AC_LIBOBJ invocations to module description.
17347         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
17348         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
17349         (configure.ac): Remove gl_FOPEN_SAFER call.
17350         (Makefile.am): Augment lib_SOURCES.
17351
17352 2011-05-23  Bruno Haible  <bruno@clisp.org>
17353
17354         crypto/sha512: Move AC_LIBOBJ invocations to module description.
17355         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
17356         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
17357
17358 2011-05-23  Bruno Haible  <bruno@clisp.org>
17359
17360         crypto/sha256: Move AC_LIBOBJ invocations to module description.
17361         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
17362         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
17363
17364 2011-05-23  Bruno Haible  <bruno@clisp.org>
17365
17366         crypto/sha1: Move AC_LIBOBJ invocations to module description.
17367         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
17368         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
17369
17370 2011-05-23  Bruno Haible  <bruno@clisp.org>
17371
17372         settime: Move AC_LIBOBJ invocations to module description.
17373         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
17374         * modules/settime (Makefile.am): Augment lib_SOURCES.
17375
17376 2011-05-23  Bruno Haible  <bruno@clisp.org>
17377
17378         savedir: Move AC_LIBOBJ invocations to module description.
17379         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
17380         * modules/savedir (Makefile.am): Augment lib_SOURCES.
17381
17382 2011-05-23  Bruno Haible  <bruno@clisp.org>
17383
17384         save-cwd: Move AC_LIBOBJ invocations to module description.
17385         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
17386         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
17387
17388 2011-05-23  Bruno Haible  <bruno@clisp.org>
17389
17390         same: Move AC_LIBOBJ invocations to module description.
17391         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
17392         * modules/same (Makefile.am): Augment lib_SOURCES.
17393
17394 2011-05-23  Bruno Haible  <bruno@clisp.org>
17395
17396         safe-write: Move AC_LIBOBJ invocations to module description.
17397         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
17398         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
17399         instead of gl_SAFE_WRITE.
17400         (Makefile.am): Augment lib_SOURCES.
17401
17402 2011-05-23  Bruno Haible  <bruno@clisp.org>
17403
17404         safe-read: Move AC_LIBOBJ invocations to module description.
17405         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
17406         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
17407         of gl_SAFE_READ.
17408         (Makefile.am): Augment lib_SOURCES.
17409
17410 2011-05-23  Bruno Haible  <bruno@clisp.org>
17411
17412         safe-alloc: Move AC_LIBOBJ invocations to module description.
17413         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
17414         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
17415
17416 2011-05-23  Bruno Haible  <bruno@clisp.org>
17417
17418         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
17419         * m4/rijndael.m4: Remove file.
17420         * modules/crypto/rijndael (Files): Remove it.
17421         (configure.ac): Remove gl_RIJNDAEL call.
17422         (Makefile.am): Augment lib_SOURCES.
17423
17424 2011-05-23  Bruno Haible  <bruno@clisp.org>
17425
17426         readtokens: Move AC_LIBOBJ invocations to module description.
17427         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
17428         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
17429
17430 2011-05-23  Bruno Haible  <bruno@clisp.org>
17431
17432         read-file: Move AC_LIBOBJ invocations to module description.
17433         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
17434         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
17435         of gl_FUNC_READ_FILE.
17436         (Makefile.am): Augment lib_SOURCES.
17437
17438 2011-05-23  Bruno Haible  <bruno@clisp.org>
17439
17440         quotearg: Move AC_LIBOBJ invocations to module description.
17441         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
17442         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
17443
17444 2011-05-23  Bruno Haible  <bruno@clisp.org>
17445
17446         quote: Move AC_LIBOBJ invocations to module description.
17447         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
17448         * modules/quote (Makefile.am): Augment lib_SOURCES.
17449
17450 2011-05-23  Bruno Haible  <bruno@clisp.org>
17451
17452         posixver: Move AC_LIBOBJ invocations to module description.
17453         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
17454         * modules/posixver (Makefile.am): Augment lib_SOURCES.
17455
17456 2011-05-23  Bruno Haible  <bruno@clisp.org>
17457
17458         posixtm: Move AC_LIBOBJ invocations to module description.
17459         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
17460         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
17461
17462 2011-05-23  Bruno Haible  <bruno@clisp.org>
17463
17464         physmem: Move AC_LIBOBJ invocations to module description.
17465         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
17466         * modules/physmem (Makefile.am): Augment lib_SOURCES.
17467
17468 2011-05-23  Bruno Haible  <bruno@clisp.org>
17469
17470         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
17471         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
17472         invocation.
17473         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
17474
17475 2011-05-23  Bruno Haible  <bruno@clisp.org>
17476
17477         mpsort: Move AC_LIBOBJ invocations to module description.
17478         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
17479         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
17480
17481 2011-05-23  Bruno Haible  <bruno@clisp.org>
17482
17483         modechange: Move AC_LIBOBJ invocations to module description.
17484         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
17485         * modules/modechange (Makefile.am): Augment lib_SOURCES.
17486
17487 2011-05-23  Bruno Haible  <bruno@clisp.org>
17488
17489         mkdir-p: Move AC_LIBOBJ invocations to module description.
17490         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
17491         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
17492
17493 2011-05-23  Bruno Haible  <bruno@clisp.org>
17494
17495         mkancesdirs: Move AC_LIBOBJ invocations to module description.
17496         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
17497         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
17498
17499 2011-05-23  Bruno Haible  <bruno@clisp.org>
17500
17501         mgetgroups: Move AC_LIBOBJ invocations to module description.
17502         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
17503         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
17504
17505 2011-05-23  Bruno Haible  <bruno@clisp.org>
17506
17507         memxor: Move AC_LIBOBJ invocations to module description.
17508         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
17509         * modules/memxor (Makefile.am): Augment lib_SOURCES.
17510
17511 2011-05-23  Bruno Haible  <bruno@clisp.org>
17512
17513         memcoll: Move AC_LIBOBJ invocations to module description.
17514         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
17515         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
17516
17517 2011-05-23  Bruno Haible  <bruno@clisp.org>
17518
17519         memcasecmp: Move AC_LIBOBJ invocations to module description.
17520         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
17521         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
17522
17523 2011-05-23  Bruno Haible  <bruno@clisp.org>
17524
17525         crypto/md5: Move AC_LIBOBJ invocations to module description.
17526         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
17527         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
17528
17529 2011-05-23  Bruno Haible  <bruno@clisp.org>
17530
17531         crypto/md4: Move AC_LIBOBJ invocations to module description.
17532         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
17533         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
17534
17535 2011-05-23  Bruno Haible  <bruno@clisp.org>
17536
17537         crypto/md2: Move AC_LIBOBJ invocations to module description.
17538         * m4/md2.m4: Remove file.
17539         * modules/crypto/md2 (Files): Remove it.
17540         (configure.ac): Remove gl_MD2 call.
17541         (Makefile.am): Augment lib_SOURCES.
17542
17543 2011-05-23  Bruno Haible  <bruno@clisp.org>
17544
17545         long-options: Move AC_LIBOBJ invocations to module description.
17546         * m4/long-options.m4: Remove file.
17547         * modules/long-options (Files): Remove it.
17548         (configure.ac): Remove gl_LONG_OPTIONS call.
17549         (Makefile.am): Augment lib_SOURCES.
17550
17551 2011-05-23  Bruno Haible  <bruno@clisp.org>
17552
17553         i-ring: Move AC_LIBOBJ invocations to module description.
17554         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
17555         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
17556
17557 2011-05-23  Bruno Haible  <bruno@clisp.org>
17558
17559         idcache: Move AC_LIBOBJ invocations to module description.
17560         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
17561         * modules/idcache (Makefile.am): Augment lib_SOURCES.
17562
17563 2011-05-23  Bruno Haible  <bruno@clisp.org>
17564
17565         human: Move AC_LIBOBJ invocations to module description.
17566         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
17567         * modules/human (Makefile.am): Augment lib_SOURCES.
17568
17569 2011-05-23  Bruno Haible  <bruno@clisp.org>
17570
17571         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
17572         * m4/hmac-sha1.m4: Remove file.
17573         * modules/crypto/hmac-sha1 (Files): Remove it.
17574         (configure.ac): Remove gl_HMAC_SHA1 call.
17575         (Makefile.am): Augment lib_SOURCES.
17576
17577 2011-05-23  Bruno Haible  <bruno@clisp.org>
17578
17579         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
17580         * m4/hmac-md5.m4: Remove file.
17581         * modules/crypto/hmac-md5 (Files): Remove it.
17582         (configure.ac): Remove gl_HMAC_MD5 call.
17583         (Makefile.am): Augment lib_SOURCES.
17584
17585 2011-05-23  Bruno Haible  <bruno@clisp.org>
17586
17587         hash: Move AC_LIBOBJ invocations to module description.
17588         * m4/hash.m4: Remove file.
17589         * modules/hash (Files): Remove it.
17590         (configure.ac): Remove gl_HASH call.
17591         (Makefile.am): Augment lib_SOURCES.
17592
17593 2011-05-23  Bruno Haible  <bruno@clisp.org>
17594
17595         hard-locale: Move AC_LIBOBJ invocations to module description.
17596         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
17597         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
17598
17599 2011-05-23  Bruno Haible  <bruno@clisp.org>
17600
17601         getugroups: Move AC_LIBOBJ invocations to module description.
17602         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
17603         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
17604
17605 2011-05-23  Bruno Haible  <bruno@clisp.org>
17606
17607         gettime: Move AC_LIBOBJ invocations to module description.
17608         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
17609         * modules/gettime (Makefile.am): Augment lib_SOURCES.
17610
17611 2011-05-23  Bruno Haible  <bruno@clisp.org>
17612
17613         getndelim2: Move AC_LIBOBJ invocations to module description.
17614         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
17615         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
17616
17617 2011-05-23  Bruno Haible  <bruno@clisp.org>
17618
17619         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
17620         * m4/gc-pbkdf2-sha1.m4: Remove file.
17621         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
17622         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
17623         (Makefile.am): Augment lib_SOURCES.
17624
17625 2011-05-23  Bruno Haible  <bruno@clisp.org>
17626
17627         fts: Move AC_LIBOBJ invocations to module description.
17628         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
17629         * modules/fts (configure.ac): ... to here.
17630
17631 2011-05-23  Bruno Haible  <bruno@clisp.org>
17632
17633         file-type: Move AC_LIBOBJ invocations to module description.
17634         * m4/file-type.m4: Remove file.
17635         * modules/file-type (Files): Remove it.
17636         (configure.ac): Remove gl_FILE_TYPE call.
17637         (Makefile.am): Augment lib_SOURCES.
17638
17639 2011-05-23  Bruno Haible  <bruno@clisp.org>
17640
17641         filenamecat*: Respect rules for use of AC_LIBOBJ.
17642         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
17643         Remove AC_LIBOBJ invocation.
17644         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
17645         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
17646
17647 2011-05-23  Bruno Haible  <bruno@clisp.org>
17648
17649         filemode: Move AC_LIBOBJ invocations to module description.
17650         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
17651         * modules/filemode (Makefile.am): Augment lib_SOURCES.
17652
17653 2011-05-23  Bruno Haible  <bruno@clisp.org>
17654
17655         openat-safer: Move AC_LIBOBJ invocations to module description.
17656         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
17657         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
17658
17659 2011-05-23  Bruno Haible  <bruno@clisp.org>
17660
17661         fcntl-safer: Move AC_LIBOBJ invocations to module description.
17662         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
17663         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
17664
17665 2011-05-23  Bruno Haible  <bruno@clisp.org>
17666
17667         exclude: Move AC_LIBOBJ invocations to module description.
17668         * m4/exclude.m4: Remove file.
17669         * modules/exclude (Files): Remove it.
17670         (configure.ac): Remove gl_EXCLUDE call.
17671         (Makefile.am): Augment lib_SOURCES.
17672
17673 2011-05-23  Bruno Haible  <bruno@clisp.org>
17674
17675         dirname*: Respect rules for use of AC_LIBOBJ.
17676         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
17677         invocations.
17678         * modules/dirname (Makefile.am): Augment lib_SOURCES.
17679         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
17680
17681 2011-05-23  Bruno Haible  <bruno@clisp.org>
17682
17683         dirent-safer: Move AC_LIBOBJ invocations to module description.
17684         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
17685         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
17686
17687 2011-05-23  Bruno Haible  <bruno@clisp.org>
17688
17689         crypto/des: Move AC_LIBOBJ invocations to module description.
17690         * m4/des.m4: Remove file.
17691         * modules/crypto/des (Files): Remove it.
17692         (configure.ac): Remove gl_DES call.
17693         (Makefile.am): Augment lib_SOURCES.
17694
17695 2011-05-23  Bruno Haible  <bruno@clisp.org>
17696
17697         cycle-check: Move AC_LIBOBJ invocations to module description.
17698         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
17699         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
17700
17701 2011-05-23  Bruno Haible  <bruno@clisp.org>
17702
17703         c-strtold: Move AC_LIBOBJ invocations to module description.
17704         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
17705         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
17706
17707 2011-05-23  Bruno Haible  <bruno@clisp.org>
17708
17709         c-strtod: Move AC_LIBOBJ invocations to module description.
17710         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
17711         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
17712
17713 2011-05-23  Bruno Haible  <bruno@clisp.org>
17714
17715         crc: Move AC_LIBOBJ invocations to module description.
17716         * m4/crc.m4: Remove file.
17717         * modules/crc (Files): Remove it.
17718         (configure.ac): Remove gl_CRC call.
17719         (Makefile.am): Augment lib_SOURCES.
17720
17721 2011-05-23  Bruno Haible  <bruno@clisp.org>
17722
17723         close-stream: Move AC_LIBOBJ invocations to module description.
17724         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
17725         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
17726
17727 2011-05-23  Bruno Haible  <bruno@clisp.org>
17728
17729         closeout: Move AC_LIBOBJ invocations to module description.
17730         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
17731         * modules/closeout (Makefile.am): Augment lib_SOURCES.
17732
17733 2011-05-23  Bruno Haible  <bruno@clisp.org>
17734
17735         closein: Move AC_LIBOBJ invocations to module description.
17736         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
17737         * modules/closein (Makefile.am): Augment lib_SOURCES.
17738
17739 2011-05-23  Bruno Haible  <bruno@clisp.org>
17740
17741         cloexec: Move AC_LIBOBJ invocations to module description.
17742         * m4/cloexec.m4: Remove file.
17743         * modules/cloexec (Files): Remove it.
17744         (configure.ac): Remove gl_CLOEXEC call.
17745         (Makefile.am): Augment lib_SOURCES.
17746
17747 2011-05-23  Bruno Haible  <bruno@clisp.org>
17748
17749         check-version: Move AC_LIBOBJ invocations to module description.
17750         * m4/check-version.m4: Remove file.
17751         * modules/check-version (Files): Remove it.
17752         (configure.ac): Remove gl_CHECK_VERSION call.
17753         (Makefile.am): Augment lib_SOURCES.
17754
17755 2011-05-23  Bruno Haible  <bruno@clisp.org>
17756
17757         chdir-safer: Move AC_LIBOBJ invocations to module description.
17758         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
17759         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
17760
17761 2011-05-23  Bruno Haible  <bruno@clisp.org>
17762
17763         canonicalize: Move AC_LIBOBJ invocations to module description.
17764         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
17765         AC_LIBOBJ invocation.
17766         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
17767
17768 2011-05-23  Bruno Haible  <bruno@clisp.org>
17769
17770         canon-host: Move AC_LIBOBJ invocations to module description.
17771         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
17772         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
17773         instead of gl_CANON_HOST.
17774         (Makefile.am): Augment lib_SOURCES.
17775
17776 2011-05-23  Bruno Haible  <bruno@clisp.org>
17777
17778         backupfile: Move AC_LIBOBJ invocations to module description.
17779         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
17780         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
17781
17782 2011-05-23  Bruno Haible  <bruno@clisp.org>
17783
17784         argmatch: Move AC_LIBOBJ invocations to module description.
17785         * m4/argmatch.m4: Remove file.
17786         * modules/argmatch (Files): Remove it.
17787         (configure.ac): Remove gl_ARGMATCH call.
17788         (Makefile.am): Augment lib_SOURCES.
17789
17790 2011-05-23  Bruno Haible  <bruno@clisp.org>
17791
17792         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
17793         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
17794         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
17795
17796 2011-05-23  Bruno Haible  <bruno@clisp.org>
17797
17798         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
17799         * m4/arcfour.m4: Remove file.
17800         * modules/crypto/arcfour (Files): Remove it.
17801         (configure.ac): Remove gl_ARCFOUR call.
17802         (Makefile.am): Augment lib_SOURCES.
17803
17804 2011-05-22  Bruno Haible  <bruno@clisp.org>
17805
17806         write: Move AC_LIBOBJ invocations to module description.
17807         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
17808         * modules/write (configure.ac): ... to here.
17809
17810 2011-05-22  Bruno Haible  <bruno@clisp.org>
17811
17812         wmemset: Move AC_LIBOBJ invocations to module description.
17813         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
17814         here...
17815         * modules/wmemset (configure.ac): ... to here.
17816
17817 2011-05-22  Bruno Haible  <bruno@clisp.org>
17818
17819         wmemmove: Move AC_LIBOBJ invocations to module description.
17820         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
17821         here...
17822         * modules/wmemmove (configure.ac): ... to here.
17823
17824 2011-05-22  Bruno Haible  <bruno@clisp.org>
17825
17826         wmemcpy: Move AC_LIBOBJ invocations to module description.
17827         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
17828         here...
17829         * modules/wmemcpy (configure.ac): ... to here.
17830
17831 2011-05-22  Bruno Haible  <bruno@clisp.org>
17832
17833         wmemcmp: Move AC_LIBOBJ invocations to module description.
17834         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
17835         here...
17836         * modules/wmemcmp (configure.ac): ... to here.
17837
17838 2011-05-22  Bruno Haible  <bruno@clisp.org>
17839
17840         wmemchr: Move AC_LIBOBJ invocations to module description.
17841         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
17842         here...
17843         * modules/wmemchr (configure.ac): ... to here.
17844
17845 2011-05-22  Bruno Haible  <bruno@clisp.org>
17846
17847         wcswidth: Move AC_LIBOBJ invocations to module description.
17848         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
17849         here...
17850         * modules/wcswidth (configure.ac): ... to here.
17851
17852 2011-05-22  Bruno Haible  <bruno@clisp.org>
17853
17854         wcwidth: Respect rules for use of AC_LIBOBJ.
17855         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
17856         invocation from here...
17857         * modules/wcwidth (configure.ac): ... to here.
17858         (Depends-on): Update conditions.
17859
17860 2011-05-22  Bruno Haible  <bruno@clisp.org>
17861
17862         wctype: Move AC_LIBOBJ invocations to module description.
17863         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
17864         invocation from here...
17865         * modules/wctype (configure.ac): ... to here.
17866         (Depends-on): Update conditions.
17867
17868 2011-05-22  Bruno Haible  <bruno@clisp.org>
17869
17870         wctrans: Move AC_LIBOBJ invocations to module description.
17871         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
17872         invocation from here...
17873         * modules/wctrans (configure.ac): ... to here.
17874
17875 2011-05-22  Bruno Haible  <bruno@clisp.org>
17876
17877         wctomb: Move AC_LIBOBJ invocations to module description.
17878         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
17879         invocations from here...
17880         * modules/wctomb (configure.ac): ... to here.
17881
17882 2011-05-22  Bruno Haible  <bruno@clisp.org>
17883
17884         wctob: Move AC_LIBOBJ invocations to module description.
17885         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
17886         gl_PREREQ_WCTOB invocations from here...
17887         * modules/wctob (configure.ac): ... to here.
17888         (Depends-on): Update conditions.
17889
17890 2011-05-22  Bruno Haible  <bruno@clisp.org>
17891
17892         wcsxfrm: Move AC_LIBOBJ invocations to module description.
17893         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
17894         here...
17895         * modules/wcsxfrm (configure.ac): ... to here.
17896
17897 2011-05-22  Bruno Haible  <bruno@clisp.org>
17898
17899         wcstok: Move AC_LIBOBJ invocations to module description.
17900         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
17901         * modules/wcstok (configure.ac): ... to here.
17902
17903 2011-05-22  Bruno Haible  <bruno@clisp.org>
17904
17905         wcsstr: Move AC_LIBOBJ invocations to module description.
17906         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
17907         * modules/wcsstr (configure.ac): ... to here.
17908
17909 2011-05-22  Bruno Haible  <bruno@clisp.org>
17910
17911         wcsspn: Move AC_LIBOBJ invocations to module description.
17912         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
17913         * modules/wcsspn (configure.ac): ... to here.
17914
17915 2011-05-22  Bruno Haible  <bruno@clisp.org>
17916
17917         wcsrtombs: Move AC_LIBOBJ invocations to module description.
17918         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
17919         gl_PREREQ_WCSRTOMBS invocations from here...
17920         * modules/wcsrtombs (configure.ac): ... to here.
17921
17922 2011-05-22  Bruno Haible  <bruno@clisp.org>
17923
17924         wcsrchr: Move AC_LIBOBJ invocations to module description.
17925         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
17926         here...
17927         * modules/wcsrchr (configure.ac): ... to here.
17928
17929 2011-05-22  Bruno Haible  <bruno@clisp.org>
17930
17931         wcspbrk: Move AC_LIBOBJ invocations to module description.
17932         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
17933         here...
17934         * modules/wcspbrk (configure.ac): ... to here.
17935
17936 2011-05-22  Bruno Haible  <bruno@clisp.org>
17937
17938         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
17939         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
17940         gl_PREREQ_WCSNRTOMBS invocations from here...
17941         * modules/wcsnrtombs (configure.ac): ... to here.
17942
17943 2011-05-22  Bruno Haible  <bruno@clisp.org>
17944
17945         wcsnlen: Move AC_LIBOBJ invocations to module description.
17946         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
17947         here...
17948         * modules/wcsnlen (configure.ac): ... to here.
17949
17950 2011-05-22  Bruno Haible  <bruno@clisp.org>
17951
17952         wcsncpy: Move AC_LIBOBJ invocations to module description.
17953         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
17954         here...
17955         * modules/wcsncpy (configure.ac): ... to here.
17956
17957 2011-05-22  Bruno Haible  <bruno@clisp.org>
17958
17959         wcsncmp: Move AC_LIBOBJ invocations to module description.
17960         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
17961         here...
17962         * modules/wcsncmp (configure.ac): ... to here.
17963
17964 2011-05-22  Bruno Haible  <bruno@clisp.org>
17965
17966         wcsncat: Move AC_LIBOBJ invocations to module description.
17967         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
17968         here...
17969         * modules/wcsncat (configure.ac): ... to here.
17970
17971 2011-05-22  Bruno Haible  <bruno@clisp.org>
17972
17973         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
17974         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
17975         from here...
17976         * modules/wcsncasecmp (configure.ac): ... to here.
17977
17978 2011-05-22  Bruno Haible  <bruno@clisp.org>
17979
17980         wcslen: Move AC_LIBOBJ invocations to module description.
17981         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
17982         * modules/wcslen (configure.ac): ... to here.
17983
17984 2011-05-22  Bruno Haible  <bruno@clisp.org>
17985
17986         wcsdup: Move AC_LIBOBJ invocations to module description.
17987         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
17988         * modules/wcsdup (configure.ac): ... to here.
17989
17990 2011-05-22  Bruno Haible  <bruno@clisp.org>
17991
17992         wcscspn: Move AC_LIBOBJ invocations to module description.
17993         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
17994         here...
17995         * modules/wcscspn (configure.ac): ... to here.
17996
17997 2011-05-22  Bruno Haible  <bruno@clisp.org>
17998
17999         wcscpy: Move AC_LIBOBJ invocations to module description.
18000         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
18001         * modules/wcscpy (configure.ac): ... to here.
18002
18003 2011-05-22  Bruno Haible  <bruno@clisp.org>
18004
18005         wcscoll: Move AC_LIBOBJ invocations to module description.
18006         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
18007         here...
18008         * modules/wcscoll (configure.ac): ... to here.
18009
18010 2011-05-22  Bruno Haible  <bruno@clisp.org>
18011
18012         wcscmp: Move AC_LIBOBJ invocations to module description.
18013         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
18014         * modules/wcscmp (configure.ac): ... to here.
18015
18016 2011-05-22  Bruno Haible  <bruno@clisp.org>
18017
18018         wcschr: Move AC_LIBOBJ invocations to module description.
18019         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
18020         * modules/wcschr (configure.ac): ... to here.
18021
18022 2011-05-22  Bruno Haible  <bruno@clisp.org>
18023
18024         wcscat: Move AC_LIBOBJ invocations to module description.
18025         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
18026         * modules/wcscat (configure.ac): ... to here.
18027
18028 2011-05-22  Bruno Haible  <bruno@clisp.org>
18029
18030         wcscasecmp: Move AC_LIBOBJ invocations to module description.
18031         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
18032         here...
18033         * modules/wcscasecmp (configure.ac): ... to here.
18034
18035 2011-05-22  Bruno Haible  <bruno@clisp.org>
18036
18037         wcrtomb: Move AC_LIBOBJ invocations to module description.
18038         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
18039         invocations from here...
18040         * modules/wcrtomb (configure.ac): ... to here.
18041
18042 2011-05-22  Bruno Haible  <bruno@clisp.org>
18043
18044         wcpncpy: Move AC_LIBOBJ invocations to module description.
18045         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
18046         here...
18047         * modules/wcpncpy (configure.ac): ... to here.
18048
18049 2011-05-22  Bruno Haible  <bruno@clisp.org>
18050
18051         wcpcpy: Move AC_LIBOBJ invocations to module description.
18052         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
18053         * modules/wcpcpy (configure.ac): ... to here.
18054
18055 2011-05-22  Bruno Haible  <bruno@clisp.org>
18056
18057         waitpid: Move AC_LIBOBJ invocations to module description.
18058         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
18059         invocation from here...
18060         * modules/waitpid (configure.ac): ... to here.
18061
18062 2011-05-22  Bruno Haible  <bruno@clisp.org>
18063
18064         utimensat: Move AC_LIBOBJ invocations to module description.
18065         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
18066         here...
18067         * modules/utimensat (configure.ac): ... to here.
18068
18069 2011-05-22  Bruno Haible  <bruno@clisp.org>
18070
18071         usleep: Move AC_LIBOBJ invocations to module description.
18072         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
18073         here...
18074         * modules/usleep (configure.ac): ... to here.
18075
18076 2011-05-22  Bruno Haible  <bruno@clisp.org>
18077
18078         unlockpt: Move AC_LIBOBJ invocations to module description.
18079         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
18080         gl_PREREQ_UNLOCKPT invocations from here...
18081         * modules/unlockpt (configure.ac): ... to here.
18082
18083 2011-05-22  Bruno Haible  <bruno@clisp.org>
18084
18085         unlink: Respect rules for use of AC_LIBOBJ.
18086         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
18087         * modules/unlink (configure.ac): ... to here.
18088
18089 2011-05-22  Bruno Haible  <bruno@clisp.org>
18090
18091         uname: Move AC_LIBOBJ invocations to module description.
18092         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
18093         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
18094         here...
18095         * modules/uname (configure.ac): ... to here.
18096
18097 2011-05-22  Bruno Haible  <bruno@clisp.org>
18098
18099         ttyname_r: Move AC_LIBOBJ invocations to module description.
18100         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
18101         gl_PREREQ_TTYNAME_R invocations from here...
18102         * modules/ttyname_r (configure.ac): ... to here.
18103
18104 2011-05-22  Bruno Haible  <bruno@clisp.org>
18105
18106         tsearch: Move AC_LIBOBJ invocations to module description.
18107         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
18108         invocations from here...
18109         * modules/tsearch (configure.ac): ... to here.
18110
18111 2011-05-22  Bruno Haible  <bruno@clisp.org>
18112
18113         towctrans: Move AC_LIBOBJ invocations to module description.
18114         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
18115         AC_LIBOBJ invocation from here...
18116         * modules/towctrans (configure.ac): ... to here.
18117
18118 2011-05-22  Bruno Haible  <bruno@clisp.org>
18119
18120         tmpfile: Move AC_LIBOBJ invocations to module description.
18121         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
18122         invocations from here...
18123         * modules/tmpfile (configure.ac): ... to here.
18124
18125 2011-05-22  Bruno Haible  <bruno@clisp.org>
18126
18127         times: Move AC_LIBOBJ invocations to module description.
18128         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
18129         * modules/times (configure.ac): ... to here.
18130
18131 2011-05-22  Bruno Haible  <bruno@clisp.org>
18132
18133         time_r: Move AC_LIBOBJ invocations to module description.
18134         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
18135         invocations from here...
18136         * modules/time_r (configure.ac): ... to here.
18137
18138 2011-05-22  Bruno Haible  <bruno@clisp.org>
18139
18140         timegm: Move AC_LIBOBJ invocations to module description.
18141         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
18142         invocations from here...
18143         * modules/timegm (configure.ac): ... to here.
18144
18145 2011-05-22  Bruno Haible  <bruno@clisp.org>
18146
18147         tcgetsid: Move AC_LIBOBJ invocations to module description.
18148         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
18149         and gl_PREREQ_TCGETSID invocations from here...
18150         * modules/tcgetsid (configure.ac): ... to here.
18151         (Depends-on): Update conditions.
18152
18153 2011-05-22  Bruno Haible  <bruno@clisp.org>
18154
18155         symlinkat: Move AC_LIBOBJ invocations to module description.
18156         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
18157         here...
18158         * modules/symlinkat (configure.ac): ... to here.
18159
18160 2011-05-22  Bruno Haible  <bruno@clisp.org>
18161
18162         symlink: Move AC_LIBOBJ invocations to module description.
18163         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
18164         here...
18165         * modules/symlink (configure.ac): ... to here.
18166
18167 2011-05-22  Bruno Haible  <bruno@clisp.org>
18168
18169         strverscmp: Move AC_LIBOBJ invocations to module description.
18170         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
18171         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
18172         from here...
18173         * modules/strverscmp (configure.ac): ... to here.
18174
18175 2011-05-22  Bruno Haible  <bruno@clisp.org>
18176
18177         strtok_r: Move AC_LIBOBJ invocations to module description.
18178         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
18179         and gl_PREREQ_STRTOK_R invocations from here...
18180         * modules/strtok_r (configure.ac): ... to here.
18181         (Depends-on): Update conditions.
18182
18183 2011-05-22  Bruno Haible  <bruno@clisp.org>
18184
18185         strtoumax: Move AC_LIBOBJ invocations to module description.
18186         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
18187         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
18188         from here...
18189         * modules/strtoumax (configure.ac): ... to here.
18190
18191 2011-05-22  Bruno Haible  <bruno@clisp.org>
18192
18193         strtoimax: Move AC_LIBOBJ invocations to module description.
18194         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
18195         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
18196         from here...
18197         * modules/strtoimax (configure.ac): ... to here.
18198
18199 2011-05-22  Bruno Haible  <bruno@clisp.org>
18200
18201         strtoull: Move AC_LIBOBJ invocations to module description.
18202         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
18203         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
18204         from here...
18205         * modules/strtoull (configure.ac): ... to here.
18206
18207 2011-05-22  Bruno Haible  <bruno@clisp.org>
18208
18209         strtoll: Move AC_LIBOBJ invocations to module description.
18210         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
18211         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
18212         here...
18213         * modules/strtoll (configure.ac): ... to here.
18214
18215 2011-05-22  Bruno Haible  <bruno@clisp.org>
18216
18217         strtoul: Move AC_LIBOBJ invocations to module description.
18218         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
18219         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
18220         * modules/strtoul (configure.ac): ... to here.
18221
18222 2011-05-22  Bruno Haible  <bruno@clisp.org>
18223
18224         strtol: Move AC_LIBOBJ invocations to module description.
18225         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
18226         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
18227         * modules/strtol (configure.ac): ... to here.
18228
18229 2011-05-22  Bruno Haible  <bruno@clisp.org>
18230
18231         strtod: Move AC_LIBOBJ invocations to module description.
18232         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
18233         invocations from here...
18234         * modules/strtod (configure.ac): ... to here.
18235
18236 2011-05-22  Bruno Haible  <bruno@clisp.org>
18237
18238         strstr*: Move AC_LIBOBJ invocations to module description.
18239         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
18240         invocations from here...
18241         * modules/strstr-simple (configure.ac): ... to here.
18242         * modules/strstr (configure.ac): ... and here.
18243
18244 2011-05-22  Bruno Haible  <bruno@clisp.org>
18245
18246         strsignal: Move AC_LIBOBJ invocations to module description.
18247         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
18248         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
18249         * modules/strsignal (configure.ac): ... to here.
18250         (Depends-on): Update conditions.
18251
18252 2011-05-22  Bruno Haible  <bruno@clisp.org>
18253
18254         strsep: Move AC_LIBOBJ invocations to module description.
18255         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
18256         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
18257         here...
18258         * modules/strsep (configure.ac): ... to here.
18259
18260 2011-05-22  Bruno Haible  <bruno@clisp.org>
18261
18262         strptime: Move AC_LIBOBJ invocations to module description.
18263         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
18264         gl_PREREQ_STRPTIME invocations from here...
18265         * modules/strptime (configure.ac): ... to here.
18266
18267 2011-05-22  Bruno Haible  <bruno@clisp.org>
18268
18269         strpbrk: Move AC_LIBOBJ invocations to module description.
18270         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
18271         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
18272         here...
18273         * modules/strpbrk (configure.ac): ... to here.
18274
18275 2011-05-22  Bruno Haible  <bruno@clisp.org>
18276
18277         strnlen: Move AC_LIBOBJ invocations to module description.
18278         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
18279         invocations from here...
18280         * modules/strnlen (configure.ac): ... to here.
18281
18282 2011-05-22  Bruno Haible  <bruno@clisp.org>
18283
18284         strndup: Move AC_LIBOBJ invocations to module description.
18285         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
18286         invocations from here...
18287         * modules/strndup (configure.ac): ... to here.
18288         (Depends-on): Update conditions.
18289
18290 2011-05-22  Bruno Haible  <bruno@clisp.org>
18291
18292         strncat: Move AC_LIBOBJ invocations to module description.
18293         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
18294         invocations from here...
18295         * modules/strncat (configure.ac): ... to here.
18296
18297 2011-05-22  Bruno Haible  <bruno@clisp.org>
18298
18299         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
18300         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
18301         invocations from here...
18302         * modules/strdup (configure.ac): ... to here.
18303         * modules/strdup-posix (configure.ac): ... and here.
18304
18305 2011-05-22  Bruno Haible  <bruno@clisp.org>
18306
18307         strcspn: Move AC_LIBOBJ invocations to module description.
18308         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
18309         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
18310         here...
18311         * modules/strcspn (configure.ac): ... to here.
18312
18313 2011-05-22  Bruno Haible  <bruno@clisp.org>
18314
18315         strchrnul: Move AC_LIBOBJ invocations to module description.
18316         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
18317         gl_PREREQ_STRCHRNUL invocations from here...
18318         * modules/strchrnul (configure.ac): ... to here.
18319
18320 2011-05-22  Bruno Haible  <bruno@clisp.org>
18321
18322         strcasestr*: Move AC_LIBOBJ invocations to module description.
18323         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
18324         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
18325         * modules/strcasestr-simple (configure.ac): ... to here.
18326         * modules/strcasestr (configure.ac): ... and here.
18327
18328 2011-05-22  Bruno Haible  <bruno@clisp.org>
18329
18330         strcase: Move AC_LIBOBJ invocations to module description.
18331         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
18332         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
18333         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
18334         gl_PREREQ_STRNCASECMP invocations from here...
18335         * modules/strcase (configure.ac): ... to here.
18336
18337 2011-05-22  Bruno Haible  <bruno@clisp.org>
18338
18339         stpncpy: Move AC_LIBOBJ invocations to module description.
18340         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
18341         here...
18342         * modules/stpncpy (configure.ac): ... to here.
18343
18344 2011-05-22  Bruno Haible  <bruno@clisp.org>
18345
18346         stpcpy: Move AC_LIBOBJ invocations to module description.
18347         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
18348         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
18349         here...
18350         * modules/stpcpy (configure.ac): ... to here.
18351
18352 2011-05-21  Bruno Haible  <bruno@clisp.org>
18353
18354         stat: Move AC_LIBOBJ invocations to module description.
18355         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
18356         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
18357         here...
18358         * modules/stat (configure.ac): ... to here.
18359
18360 2011-05-21  Bruno Haible  <bruno@clisp.org>
18361
18362         sleep: Move AC_LIBOBJ invocations to module description.
18363         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
18364         * modules/sleep (configure.ac): ... to here.
18365
18366 2011-05-21  Bruno Haible  <bruno@clisp.org>
18367
18368         signbit: Move AC_LIBOBJ invocations to module description.
18369         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
18370         * modules/signbit (configure.ac): ... to here.
18371
18372 2011-05-21  Bruno Haible  <bruno@clisp.org>
18373
18374         sigprocmask: Move AC_LIBOBJ invocations to module description.
18375         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
18376         gl_PREREQ_SIGPROMASK invocations from here...
18377         * modules/sigprocmask (configure.ac): ... to here.
18378
18379 2011-05-21  Bruno Haible  <bruno@clisp.org>
18380
18381         sigaction: Move AC_LIBOBJ invocations to module description.
18382         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
18383         gl_PREREQ_SIGACTION invocations from here...
18384         * modules/sigaction (configure.ac): ... to here.
18385
18386 2011-05-21  Bruno Haible  <bruno@clisp.org>
18387
18388         sig2str: Move AC_LIBOBJ invocations to module description.
18389         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
18390         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
18391         here...
18392         * modules/sig2str (configure.ac): ... to here.
18393
18394 2011-05-21  Bruno Haible  <bruno@clisp.org>
18395
18396         setlocale: Move AC_LIBOBJ invocations to module description.
18397         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
18398         gl_PREREQ_SETLOCALE invocations from here...
18399         * modules/setlocale (configure.ac): ... to here.
18400
18401 2011-05-21  Bruno Haible  <bruno@clisp.org>
18402
18403         unsetenv: Move AC_LIBOBJ invocations to module description.
18404         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
18405         and gl_PREREQ_UNSETENV invocations from here...
18406         * modules/unsetenv (configure.ac): ... to here.
18407         (Depends-on): Update.
18408
18409 2011-05-21  Bruno Haible  <bruno@clisp.org>
18410
18411         setenv: Move AC_LIBOBJ invocations to module description.
18412         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
18413         here...
18414         * modules/setenv (configure.ac): ... to here.
18415
18416 2011-05-21  Bruno Haible  <bruno@clisp.org>
18417
18418         selinux-h: Move AC_LIBOBJ invocations to module description.
18419         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
18420         AC_LIBOBJ invocation from here...
18421         * modules/selinux-h (configure.ac): ... to here.
18422
18423 2011-05-21  Bruno Haible  <bruno@clisp.org>
18424
18425         select: Respect rules for use of AC_LIBOBJ.
18426         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
18427         here...
18428         * modules/select (configure.ac): ... to here.
18429
18430 2011-05-21  Bruno Haible  <bruno@clisp.org>
18431
18432         scandir: Move AC_LIBOBJ invocations to module description.
18433         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
18434         invocations from here...
18435         * modules/scandir (configure.ac): ... to here.
18436
18437 2011-05-21  Bruno Haible  <bruno@clisp.org>
18438
18439         rpmatch: Move AC_LIBOBJ invocations to module description.
18440         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
18441         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
18442         here...
18443         * modules/rpmatch (configure.ac): ... to here.
18444
18445 2011-05-21  Bruno Haible  <bruno@clisp.org>
18446
18447         rmdir: Respect rules for use of AC_LIBOBJ.
18448         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
18449         * modules/rmdir (configure.ac): ... to here.
18450
18451 2011-05-21  Bruno Haible  <bruno@clisp.org>
18452
18453         renameat: Move AC_LIBOBJ invocations to module description.
18454         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
18455         here...
18456         * modules/renameat (configure.ac): ... to here.
18457
18458 2011-05-21  Bruno Haible  <bruno@clisp.org>
18459
18460         rename: Respect rules for use of AC_LIBOBJ.
18461         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
18462         here...
18463         * modules/rename (configure.ac): ... to here.
18464
18465 2011-05-21  Bruno Haible  <bruno@clisp.org>
18466
18467         remove: Move AC_LIBOBJ invocations to module description.
18468         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
18469         here...
18470         * modules/remove (configure.ac): ... to here.
18471
18472 2011-05-21  Bruno Haible  <bruno@clisp.org>
18473
18474         relocatable-lib: Move AC_LIBOBJ invocations to module description.
18475         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
18476         macro.
18477         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
18478         * modules/relocatable-lib (configure.ac): ... to here.
18479         * modules/relocatable-prog-wrapper (configure.ac): Invoke
18480         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
18481
18482 2011-05-21  Bruno Haible  <bruno@clisp.org>
18483
18484         relocatable-prog: Move AC_LIBOBJ invocations to module description.
18485         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
18486         here...
18487         * modules/relocatable-prog (configure.ac): ... to here.
18488
18489 2011-05-21  Bruno Haible  <bruno@clisp.org>
18490
18491         regex: Move AC_LIBOBJ invocations to module description.
18492         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
18493         invocations from here...
18494         * modules/regex (configure.ac): ... to here.
18495
18496 2011-05-21  Bruno Haible  <bruno@clisp.org>
18497
18498         realloc-*: Move AC_LIBOBJ invocations to module description.
18499         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
18500         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
18501         AC_LIBOBJ invocations from here...
18502         * modules/realloc-gnu (configure.ac): ... to here.
18503         * modules/realloc-posix (configure.ac): ... and here.
18504
18505 2011-05-21  Bruno Haible  <bruno@clisp.org>
18506
18507         readutmp: Move AC_LIBOBJ invocations to module description.
18508         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
18509         * modules/readutmp (configure.ac): ... to here.
18510
18511 2011-05-21  Bruno Haible  <bruno@clisp.org>
18512
18513         readlinkat: Move AC_LIBOBJ invocations to module description.
18514         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
18515         here...
18516         * modules/readlinkat (configure.ac): ... to here.
18517
18518 2011-05-21  Bruno Haible  <bruno@clisp.org>
18519
18520         readlink: Move AC_LIBOBJ invocations to module description.
18521         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
18522         gl_PREREQ_READLINK invocations from here...
18523         * modules/readlink (configure.ac): ... to here.
18524
18525 2011-05-21  Bruno Haible  <bruno@clisp.org>
18526
18527         readline: Move AC_LIBOBJ invocations to module description.
18528         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
18529         gl_PREREQ_READLINE invocations from here...
18530         * modules/readline (configure.ac): ... to here.
18531
18532 2011-05-21  Bruno Haible  <bruno@clisp.org>
18533
18534         read: Move AC_LIBOBJ invocations to module description.
18535         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
18536         * modules/read (configure.ac): ... to here.
18537
18538 2011-05-21  Bruno Haible  <bruno@clisp.org>
18539
18540         rawmemchr: Move AC_LIBOBJ invocations to module description.
18541         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
18542         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
18543         from here...
18544         * modules/rawmemchr (configure.ac): ... to here.
18545
18546 2011-05-21  Bruno Haible  <bruno@clisp.org>
18547
18548         random_r: Move AC_LIBOBJ invocations to module description.
18549         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
18550         gl_PREREQ_RANDOM_R invocations from here...
18551         * modules/random_r (configure.ac): ... to here.
18552
18553 2011-05-21  Bruno Haible  <bruno@clisp.org>
18554
18555         pwrite: Move AC_LIBOBJ invocations to module description.
18556         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
18557         * modules/pwrite (configure.ac): ... to here.
18558
18559 2011-05-21  Bruno Haible  <bruno@clisp.org>
18560
18561         putenv: Move AC_LIBOBJ invocations to module description.
18562         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
18563         * modules/putenv (configure.ac): ... to here.
18564
18565 2011-05-21  Bruno Haible  <bruno@clisp.org>
18566
18567         login_tty: Move AC_LIBOBJ invocations to module description.
18568         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
18569         * modules/login_tty (configure.ac): ... to here.
18570
18571 2011-05-21  Bruno Haible  <bruno@clisp.org>
18572
18573         openpty: Move AC_LIBOBJ invocations to module description.
18574         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
18575         * modules/openpty (configure.ac): ... to here.
18576
18577 2011-05-21  Bruno Haible  <bruno@clisp.org>
18578
18579         forkpty: Move AC_LIBOBJ invocations to module description.
18580         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
18581         * modules/forkpty (configure.ac): ... to here.
18582
18583 2011-05-21  Bruno Haible  <bruno@clisp.org>
18584
18585         ptsname: Move AC_LIBOBJ invocations to module description.
18586         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
18587         invocations from here...
18588         * modules/ptsname (configure.ac): ... to here.
18589
18590 2011-05-21  Bruno Haible  <bruno@clisp.org>
18591
18592         pread: Move AC_LIBOBJ invocations to module description.
18593         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
18594         * modules/pread (configure.ac): ... to here.
18595
18596 2011-05-21  Bruno Haible  <bruno@clisp.org>
18597
18598         posix_spawn*: Move AC_LIBOBJ invocations to module description.
18599         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
18600         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
18601         * modules/posix_spawn (configure.ac): ... to here.
18602         * modules/posix_spawnp (configure.ac): ... and here.
18603
18604 2011-05-21  Bruno Haible  <bruno@clisp.org>
18605
18606         popen: Move AC_LIBOBJ invocations to module description.
18607         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
18608         invocations from here...
18609         * modules/popen (configure.ac): ... to here.
18610
18611 2011-05-21  Bruno Haible  <bruno@clisp.org>
18612
18613         poll: Move AC_LIBOBJ invocations to module description.
18614         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
18615         invocations from here...
18616         * modules/poll (configure.ac): ... to here.
18617
18618 2011-05-21  Bruno Haible  <bruno@clisp.org>
18619
18620         pipe-posix: Move AC_LIBOBJ invocations to module description.
18621         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
18622         * modules/pipe-posix (configure.ac): ... to here.
18623
18624 2011-05-21  Bruno Haible  <bruno@clisp.org>
18625
18626         openat: Respect rules for use of AC_LIBOBJ.
18627         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
18628         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
18629         * modules/openat (configure.ac): ... to here.
18630
18631 2011-05-21  Bruno Haible  <bruno@clisp.org>
18632
18633         obstack-printf*: Move AC_LIBOBJ invocations to module description.
18634         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
18635         invocation from here...
18636         * modules/obstack-printf (configure.ac): ... to here.
18637         * modules/obstack-printf-posix (configure.ac): ... and here.
18638
18639 2011-05-21  Bruno Haible  <bruno@clisp.org>
18640
18641         nl_langinfo: Move AC_LIBOBJ invocations to module description.
18642         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
18643         from here...
18644         * modules/nl_langinfo (configure.ac): ... to here.
18645
18646 2011-05-21  Bruno Haible  <bruno@clisp.org>
18647
18648         nanosleep: Move AC_LIBOBJ invocations to module description.
18649         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
18650         gl_PREREQ_NANOSLEEP invocations from here...
18651         * modules/nanosleep (configure.ac): ... to here.
18652
18653 2011-05-21  Bruno Haible  <bruno@clisp.org>
18654
18655         mountlist: Move AC_LIBOBJ invocations to module description.
18656         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
18657         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
18658         * modules/mountlist (configure.ac): ... to here.
18659
18660 2011-05-21  Bruno Haible  <bruno@clisp.org>
18661
18662         mktime: Respect rules for use of AC_LIBOBJ.
18663         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
18664         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
18665         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
18666         (gl_FUNC_MKTIME_INTERNAL): ... and here...
18667         * modules/mktime (configure.ac): ... to here.
18668         * modules/mktime-internal (configure.ac): ... and here.
18669         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
18670
18671 2011-05-21  Bruno Haible  <bruno@clisp.org>
18672
18673         mkstemps: Move AC_LIBOBJ invocations to module description.
18674         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
18675         here...
18676         * modules/mkstemps (configure.ac): ... to here.
18677
18678 2011-05-21  Bruno Haible  <bruno@clisp.org>
18679
18680         mkstemp: Move AC_LIBOBJ invocations to module description.
18681         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
18682         gl_PREREQ_MKSTEMP invocations from here...
18683         * modules/mkstemp (configure.ac): ... to here.
18684
18685 2011-05-21  Bruno Haible  <bruno@clisp.org>
18686
18687         mkostemps: Move AC_LIBOBJ invocations to module description.
18688         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
18689         here...
18690         * modules/mkostemps (configure.ac): ... to here.
18691
18692 2011-05-21  Bruno Haible  <bruno@clisp.org>
18693
18694         mkostemp: Move AC_LIBOBJ invocations to module description.
18695         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
18696         gl_PREREQ_MKOSTEMP invocations from here...
18697         * modules/mkostemp (configure.ac): ... to here.
18698
18699 2011-05-21  Bruno Haible  <bruno@clisp.org>
18700
18701         mknod: Move AC_LIBOBJ invocations to module description.
18702         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
18703         * modules/mknod (configure.ac): ... to here.
18704
18705 2011-05-21  Bruno Haible  <bruno@clisp.org>
18706
18707         mkfifoat: Move AC_LIBOBJ invocations to module description.
18708         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
18709         here...
18710         * modules/mkfifoat (configure.ac): ... to here.
18711
18712 2011-05-21  Bruno Haible  <bruno@clisp.org>
18713
18714         mkfifo: Respect rules for use of AC_LIBOBJ.
18715         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
18716         here...
18717         * modules/mkfifo (configure.ac): ... to here.
18718
18719 2011-05-21  Bruno Haible  <bruno@clisp.org>
18720
18721         mkdtemp: Move AC_LIBOBJ invocations to module description.
18722         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
18723         invocations from here...
18724         * modules/mkdtemp (configure.ac): ... to here.
18725
18726 2011-05-21  Bruno Haible  <bruno@clisp.org>
18727
18728         mkdir: Move AC_LIBOBJ invocations to module description.
18729         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
18730         * modules/mkdir (configure.ac): ... to here.
18731
18732 2011-05-21  Bruno Haible  <bruno@clisp.org>
18733
18734         memset: Move AC_LIBOBJ invocations to module description.
18735         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
18736         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
18737         here...
18738         * modules/memset (configure.ac): ... to here.
18739
18740 2011-05-21  Bruno Haible  <bruno@clisp.org>
18741
18742         memrchr: Move AC_LIBOBJ invocations to module description.
18743         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
18744         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
18745         here...
18746         * modules/memrchr (configure.ac): ... to here.
18747
18748 2011-05-21  Bruno Haible  <bruno@clisp.org>
18749
18750         mempcpy: Move AC_LIBOBJ invocations to module description.
18751         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
18752         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
18753         here...
18754         * modules/mempcpy (configure.ac): ... to here.
18755
18756 2011-05-21  Bruno Haible  <bruno@clisp.org>
18757
18758         memmove: Move AC_LIBOBJ invocations to module description.
18759         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
18760         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
18761         here...
18762         * modules/memmove (configure.ac): ... to here.
18763
18764 2011-05-21  Bruno Haible  <bruno@clisp.org>
18765
18766         memmem*: Move AC_LIBOBJ invocations to module description.
18767         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
18768         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
18769         here...
18770         (gl_FUNC_MEMMEM): ... and here...
18771         * modules/memmem-simple (configure.ac): ... to here.
18772         * modules/memmem (configure.ac): ... and here.
18773
18774 2011-05-21  Bruno Haible  <bruno@clisp.org>
18775
18776         memcpy: Move AC_LIBOBJ invocations to module description.
18777         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
18778         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
18779         here...
18780         * modules/memcpy (configure.ac): ... to here.
18781
18782 2011-05-21  Bruno Haible  <bruno@clisp.org>
18783
18784         memcmp: Simplify autoconf macro.
18785         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
18786         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
18787         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
18788
18789 2011-05-21  Bruno Haible  <bruno@clisp.org>
18790
18791         memcmp: Move AC_LIBOBJ invocations to module description.
18792         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
18793         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
18794         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
18795         * modules/memcmp (configure.ac): ... to here.
18796         (Depends-on): Update conditions.
18797
18798 2011-05-21  Bruno Haible  <bruno@clisp.org>
18799
18800         memchr: Respect rules for use of AC_LIBOBJ.
18801         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
18802         invocations from here...
18803         * modules/memchr (configure.ac): ... to here.
18804
18805 2011-05-21  Bruno Haible  <bruno@clisp.org>
18806
18807         mbtowc: Move AC_LIBOBJ invocations to module description.
18808         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
18809         invocations from here...
18810         * modules/mbtowc (configure.ac): ... to here.
18811
18812 2011-05-21  Bruno Haible  <bruno@clisp.org>
18813
18814         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
18815         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
18816         gl_PREREQ_MBSRTOWCS invocations from here...
18817         * modules/mbsrtowcs (configure.ac): ... to here.
18818
18819 2011-05-21  Bruno Haible  <bruno@clisp.org>
18820
18821         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
18822         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
18823         gl_PREREQ_MBSNRTOWCS invocations from here...
18824         * modules/mbsnrtowcs (configure.ac): ... to here.
18825
18826 2011-05-21  Bruno Haible  <bruno@clisp.org>
18827
18828         mbsinit: Move AC_LIBOBJ invocations to module description.
18829         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
18830         invocations from here...
18831         * modules/mbsinit (configure.ac): ... to here.
18832
18833 2011-05-21  Bruno Haible  <bruno@clisp.org>
18834
18835         mbrlen: Move AC_LIBOBJ invocations to module description.
18836         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
18837         invocations from here...
18838         * modules/mbrlen (configure.ac): ... to here.
18839
18840 2011-05-21  Bruno Haible  <bruno@clisp.org>
18841
18842         mbrtowc: Respect rules for use of AC_LIBOBJ.
18843         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
18844         invocations from here...
18845         * modules/mbrtowc (configure.ac): ... to here.
18846
18847 2011-05-21  Bruno Haible  <bruno@clisp.org>
18848
18849         malloc-*: Move AC_LIBOBJ invocations to module description.
18850         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
18851         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
18852         AC_LIBOBJ invocations from here...
18853         * modules/malloc-gnu (configure.ac): ... to here.
18854         * modules/malloc-posix (configure.ac): ... and here.
18855
18856 2011-05-21  Bruno Haible  <bruno@clisp.org>
18857
18858         lstat, openat: Respect rules for use of AC_LIBOBJ.
18859         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
18860         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
18861         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
18862         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
18863         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
18864         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
18865         here.
18866         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
18867
18868 2011-05-21  Bruno Haible  <bruno@clisp.org>
18869
18870         lseek: Move AC_LIBOBJ invocations to module description.
18871         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
18872         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
18873         * modules/lseek (configure.ac): ... to here.
18874
18875 2011-05-21  Bruno Haible  <bruno@clisp.org>
18876
18877         linkat: Move AC_LIBOBJ invocations to module description.
18878         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
18879         here...
18880         * modules/linkat (configure.ac): ... to here.
18881
18882 2011-05-21  Bruno Haible  <bruno@clisp.org>
18883
18884         link: Respect rules for use of AC_LIBOBJ.
18885         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
18886         * modules/link (configure.ac): ... to here.
18887
18888 2011-05-21  Bruno Haible  <bruno@clisp.org>
18889
18890         lchown: Move AC_LIBOBJ invocations to module description.
18891         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
18892         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
18893         * modules/lchown (configure.ac): ... to here.
18894
18895 2011-05-21  Bruno Haible  <bruno@clisp.org>
18896
18897         iswctype: Move AC_LIBOBJ invocations to module description.
18898         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
18899         here...
18900         * modules/iswctype (configure.ac): ... to here.
18901
18902 2011-05-21  Bruno Haible  <bruno@clisp.org>
18903
18904         iswblank: Move AC_LIBOBJ invocations to module description.
18905         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
18906         here...
18907         * modules/iswblank (configure.ac): ... to here.
18908
18909 2011-05-21  Bruno Haible  <bruno@clisp.org>
18910
18911         atanl: Move AC_LIBOBJ invocations to module description.
18912         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
18913         * modules/atanl (configure.ac): ... to here.
18914
18915 2011-05-21  Bruno Haible  <bruno@clisp.org>
18916
18917         acosl: Move AC_LIBOBJ invocations to module description.
18918         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
18919         * modules/acosl (configure.ac): ... to here.
18920
18921 2011-05-21  Bruno Haible  <bruno@clisp.org>
18922
18923         asinl: Respect rules for use of AC_LIBOBJ.
18924         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
18925         * modules/asinl (configure.ac): ... to here.
18926
18927 2011-05-21  Bruno Haible  <bruno@clisp.org>
18928
18929         tanl: Move AC_LIBOBJ invocations to module description.
18930         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
18931         * modules/tanl (configure.ac): ... to here.
18932
18933 2011-05-21  Bruno Haible  <bruno@clisp.org>
18934
18935         cosl: Move AC_LIBOBJ invocations to module description.
18936         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
18937         * modules/cosl (configure.ac): ... to here.
18938
18939 2011-05-21  Bruno Haible  <bruno@clisp.org>
18940
18941         sinl: Move AC_LIBOBJ invocations to module description.
18942         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
18943         * modules/sinl (configure.ac): ... to here.
18944
18945 2011-05-21  Bruno Haible  <bruno@clisp.org>
18946
18947         logl: Move AC_LIBOBJ invocations to module description.
18948         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
18949         * modules/logl (configure.ac): ... to here.
18950
18951 2011-05-21  Bruno Haible  <bruno@clisp.org>
18952
18953         expl: Move AC_LIBOBJ invocations to module description.
18954         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
18955         * modules/expl (configure.ac): ... to here.
18956
18957 2011-05-21  Bruno Haible  <bruno@clisp.org>
18958
18959         roundl: Move AC_LIBOBJ invocations to module description.
18960         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
18961         * modules/roundl (configure.ac): ... to here.
18962
18963 2011-05-21  Bruno Haible  <bruno@clisp.org>
18964
18965         round: Move AC_LIBOBJ invocations to module description.
18966         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
18967         * modules/round (configure.ac): ... to here.
18968
18969 2011-05-21  Bruno Haible  <bruno@clisp.org>
18970
18971         roundf: Move AC_LIBOBJ invocations to module description.
18972         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
18973         * modules/roundf (configure.ac): ... to here.
18974
18975 2011-05-21  Bruno Haible  <bruno@clisp.org>
18976
18977         truncl: Move AC_LIBOBJ invocations to module description.
18978         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
18979         * modules/truncl (configure.ac): ... to here.
18980
18981 2011-05-21  Bruno Haible  <bruno@clisp.org>
18982
18983         trunc: Move AC_LIBOBJ invocations to module description.
18984         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
18985         * modules/trunc (configure.ac): ... to here.
18986
18987 2011-05-21  Bruno Haible  <bruno@clisp.org>
18988
18989         truncf: Move AC_LIBOBJ invocations to module description.
18990         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
18991         * modules/truncf (configure.ac): ... to here.
18992
18993 2011-05-21  Bruno Haible  <bruno@clisp.org>
18994
18995         ceill: Move AC_LIBOBJ invocations to module description.
18996         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
18997         * modules/ceill (configure.ac): ... to here.
18998
18999 2011-05-21  Bruno Haible  <bruno@clisp.org>
19000
19001         ceil: Move AC_LIBOBJ invocations to module description.
19002         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
19003         * modules/ceil (configure.ac): ... to here.
19004
19005 2011-05-21  Bruno Haible  <bruno@clisp.org>
19006
19007         ceilf: Move AC_LIBOBJ invocations to module description.
19008         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
19009         * modules/ceilf (configure.ac): ... to here.
19010
19011 2011-05-21  Bruno Haible  <bruno@clisp.org>
19012
19013         floorl: Respect rules for use of AC_LIBOBJ.
19014         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
19015         * modules/floorl (configure.ac): ... to here.
19016
19017 2011-05-21  Bruno Haible  <bruno@clisp.org>
19018
19019         floor: Respect rules for use of AC_LIBOBJ.
19020         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
19021         * modules/floor (configure.ac): ... to here.
19022
19023 2011-05-21  Bruno Haible  <bruno@clisp.org>
19024
19025         floorf: Move AC_LIBOBJ invocations to module description.
19026         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
19027         * modules/floorf (configure.ac): ... to here.
19028
19029 2011-05-20  Bruno Haible  <bruno@clisp.org>
19030
19031         sqrtl: Respect rules for use of AC_LIBOBJ.
19032         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
19033         * modules/sqrtl (configure.ac): ... to here.
19034
19035 2011-05-20  Bruno Haible  <bruno@clisp.org>
19036
19037         ldexpl: Respect rules for use of AC_LIBOBJ.
19038         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
19039         * modules/ldexpl (configure.ac): ... to here.
19040
19041 2011-05-20  Bruno Haible  <bruno@clisp.org>
19042
19043         frexpl*: Respect rules for use of AC_LIBOBJ.
19044         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
19045         invocation from here...
19046         * modules/frexpl (configure.ac): ... to here.
19047         * modules/frexpl-nolibm (configure.ac): ... and here.
19048
19049 2011-05-20  Bruno Haible  <bruno@clisp.org>
19050
19051         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
19052         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
19053         invocation from here...
19054         * modules/frexp (configure.ac): ... to here.
19055         * modules/frexp-nolibm (configure.ac): ... and here.
19056
19057 2011-05-20  Bruno Haible  <bruno@clisp.org>
19058
19059         isnan: Respect rules for use of AC_LIBOBJ.
19060         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
19061         invocations here.
19062         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
19063         REPLACE_ISNAN.
19064         * modules/isnand (configure.ac): Likewise.
19065         * modules/isnanl (configure.ac): Likewise.
19066
19067 2011-05-20  Bruno Haible  <bruno@clisp.org>
19068
19069         isnanl*: Respect rules for use of AC_LIBOBJ.
19070         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
19071         invocation from here...
19072         * modules/isnanl (configure.ac): ... to here.
19073         * modules/isnanl-nolibm (configure.ac): ... and here.
19074
19075 2011-05-20  Bruno Haible  <bruno@clisp.org>
19076
19077         isnand*: Move AC_LIBOBJ invocations to module description.
19078         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
19079         invocation from here...
19080         * modules/isnand (configure.ac): ... to here.
19081         * modules/isnand-nolibm (configure.ac): ... and here.
19082
19083 2011-05-20  Bruno Haible  <bruno@clisp.org>
19084
19085         isnanf*: Move AC_LIBOBJ invocations to module description.
19086         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
19087         invocation from here...
19088         * modules/isnanf (configure.ac): ... to here.
19089         * modules/isnanf-nolibm (configure.ac): ... and here.
19090
19091 2011-05-20  Bruno Haible  <bruno@clisp.org>
19092
19093         isnan*: Separate the AC_LIBOBJ invocations.
19094         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
19095         AC_LIBOBJ invocation.
19096         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
19097         here.
19098         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
19099         AC_LIBOBJ invocation.
19100         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
19101         here.
19102         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
19103         AC_LIBOBJ invocation.
19104         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
19105         here.
19106         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
19107
19108 2011-05-08  Bruno Haible  <bruno@clisp.org>
19109
19110         isinf: Move AC_LIBOBJ invocations to module description.
19111         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
19112         * modules/isinf (configure.ac): ... to here.
19113
19114 2011-05-08  Bruno Haible  <bruno@clisp.org>
19115
19116         isfinite: Move AC_LIBOBJ invocations to module description.
19117         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
19118         * modules/isfinite (configure.ac): ... to here.
19119
19120 2011-05-08  Bruno Haible  <bruno@clisp.org>
19121
19122         isblank: Move AC_LIBOBJ invocations to module description.
19123         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
19124         here...
19125         * modules/isblank (configure.ac): ... to here.
19126
19127 2011-05-08  Bruno Haible  <bruno@clisp.org>
19128
19129         isapipe: Move AC_LIBOBJ invocations to module description.
19130         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
19131         gl_PREREQ_ISAPIPE invocations from here...
19132         * modules/isapipe (configure.ac): ... to here.
19133         (Depends-on): Update condition.
19134
19135 2011-05-08  Bruno Haible  <bruno@clisp.org>
19136
19137         ioctl: Move AC_LIBOBJ invocations to module description.
19138         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
19139         invocations from here...
19140         * modules/ioctl (configure.ac): ... to here.
19141         (Depends-on): Update condition.
19142
19143 2011-05-08  Bruno Haible  <bruno@clisp.org>
19144
19145         imaxdiv: Move AC_LIBOBJ invocations to module description.
19146         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
19147         invocations from here...
19148         * modules/imaxdiv (configure.ac): ... to here.
19149
19150 2011-05-08  Bruno Haible  <bruno@clisp.org>
19151
19152         imaxabs: Move AC_LIBOBJ invocations to module description.
19153         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
19154         invocations from here...
19155         * modules/imaxabs (configure.ac): ... to here.
19156
19157 2011-05-08  Bruno Haible  <bruno@clisp.org>
19158
19159         getaddrinfo: Move AC_LIBOBJ invocations to module description.
19160         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
19161         AC_LIBOBJ invocations from here...
19162         * modules/getaddrinfo (configure.ac): ... to here.
19163         (Depends-on): Add conditions.
19164
19165 2011-05-08  Bruno Haible  <bruno@clisp.org>
19166
19167         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
19168         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
19169         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
19170         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
19171         (gl_PREREQ_INET_PTON): ... from here.
19172         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
19173         gl_PREREQ_INET_PTON here.
19174         (Depends-on): Update condition.
19175
19176 2011-05-08  Bruno Haible  <bruno@clisp.org>
19177
19178         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
19179         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
19180         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
19181         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
19182         (gl_PREREQ_INET_NTOP): ... from here.
19183         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
19184         gl_PREREQ_INET_NTOP here.
19185         (Depends-on): Update condition.
19186
19187 2011-05-08  Bruno Haible  <bruno@clisp.org>
19188
19189         iconv_open: Move AC_LIBOBJ invocations to module description.
19190         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
19191         AC_LIBOBJ invocations from here...
19192         * modules/iconv_open (configure.ac): ... to here.
19193
19194 2011-05-08  Bruno Haible  <bruno@clisp.org>
19195
19196         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
19197         If module 'iconv_open' is among the main modules and module
19198         'iconv_open-utf' is among the tests dependencies, then
19199         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
19200         return the special iconv_t values. Therefore iconv() and iconv_close()
19201         must support these special iconv_t values, already in lib, not only in
19202         tests.
19203         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
19204         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
19205         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
19206         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
19207         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
19208         (Depends-on): Add the dependencies of iconv_open-utf.
19209         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
19210         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
19211         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
19212
19213 2011-05-08  Bruno Haible  <bruno@clisp.org>
19214
19215         group-member: Move AC_LIBOBJ invocations to module description.
19216         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
19217         gl_PREREQ_GROUP_MEMBER invocations from here...
19218         * modules/group-member (configure.ac): ... to here.
19219
19220 2011-05-08  Bruno Haible  <bruno@clisp.org>
19221
19222         grantpt: Move AC_LIBOBJ invocations to module description.
19223         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
19224         invocations from here...
19225         * modules/grantpt (configure.ac): ... to here.
19226
19227 2011-05-08  Bruno Haible  <bruno@clisp.org>
19228
19229         glob: Move AC_LIBOBJ invocations to module description.
19230         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
19231         from here...
19232         * modules/glob (configure.ac): ... to here.
19233
19234 2011-05-08  Bruno Haible  <bruno@clisp.org>
19235
19236         getusershell: Move AC_LIBOBJ invocations to module description.
19237         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
19238         Move AC_LIBOBJ invocation from here...
19239         * modules/getusershell (configure.ac): ... to here.
19240         (Depends-on): Update condition.
19241
19242 2011-05-08  Bruno Haible  <bruno@clisp.org>
19243
19244         gettimeofday: Move AC_LIBOBJ invocations to module description.
19245         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
19246         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
19247         gl_PREREQ_GETTIMEOFDAY invocations from here...
19248         * modules/gettimeofday (configure.ac): ... to here.
19249
19250 2011-05-08  Bruno Haible  <bruno@clisp.org>
19251
19252         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
19253         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
19254         just gl_FUNC_TZSET.
19255         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
19256         (gl_FUNC_TZSET_CLOBBER): Remove actions.
19257         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
19258         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
19259
19260 2011-05-08  Bruno Haible  <bruno@clisp.org>
19261
19262         getsubopt: Move AC_LIBOBJ invocations to module description.
19263         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
19264         gl_PREREQ_GETSUBOPT invocations from here...
19265         * modules/getsubopt (configure.ac): ... to here.
19266
19267 2011-05-08  Bruno Haible  <bruno@clisp.org>
19268
19269         getpass-gnu: Move AC_LIBOBJ invocations to module description.
19270         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
19271         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
19272         * modules/getpass-gnu (configure.ac): ... to here.
19273
19274 2011-05-08  Bruno Haible  <bruno@clisp.org>
19275
19276         getpass: Move AC_LIBOBJ invocations to module description.
19277         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
19278         gl_PREREQ_GETPASS invocations from here...
19279         * modules/getpass (configure.ac): ... to here.
19280
19281 2011-05-08  Bruno Haible  <bruno@clisp.org>
19282
19283         getpagesize: Move AC_LIBOBJ invocations to module description.
19284         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
19285         from here...
19286         * modules/getpagesize (configure.ac): ... to here.
19287
19288 2011-05-08  Bruno Haible  <bruno@clisp.org>
19289
19290         getopt: Move AC_LIBOBJ invocations to module description.
19291         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
19292         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
19293         invocations from here...
19294         * modules/getopt-gnu (configure.ac): ... to here.
19295         * modules/getopt-posix (configure.ac): ... and here.
19296         (Depends-on): Update condition.
19297
19298 2011-05-08  Bruno Haible  <bruno@clisp.org>
19299
19300         getopt, argp: Respect rules for use of AC_LIBOBJ.
19301         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
19302         (gl_REPLACE_GETOPT_ALWAYS): New macro.
19303         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
19304         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
19305
19306 2011-05-08  Bruno Haible  <bruno@clisp.org>
19307
19308         getlogin_r: Move AC_LIBOBJ invocations to module description.
19309         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
19310         gl_PREREQ_GETLOGIN_R invocations from here...
19311         * modules/getlogin_r (configure.ac): ... to here.
19312
19313 2011-05-08  Bruno Haible  <bruno@clisp.org>
19314
19315         getlogin: Move AC_LIBOBJ invocations to module description.
19316         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
19317         here...
19318         * modules/getlogin (configure.ac): ... to here.
19319
19320 2011-05-08  Bruno Haible  <bruno@clisp.org>
19321
19322         getloadavg: Move AC_LIBOBJ invocations to module description.
19323         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
19324         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
19325         * modules/getloadavg (configure.ac): ... to here.
19326
19327 2011-05-08  Bruno Haible  <bruno@clisp.org>
19328
19329         gethrxtime: Move AC_LIBOBJ invocations to module description.
19330         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
19331         LIB_GETHRXTIME from here...
19332         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
19333         invocations from here...
19334         * modules/gethrxtime (configure.ac): ... to here.
19335
19336 2011-05-08  Bruno Haible  <bruno@clisp.org>
19337
19338         gethostname: Move AC_LIBOBJ invocations to module description.
19339         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
19340         gl_PREREQ_GETHOSTNAME invocations from here...
19341         * modules/gethostname (configure.ac): ... to here.
19342
19343 2011-05-08  Bruno Haible  <bruno@clisp.org>
19344
19345         getgroups: Move AC_LIBOBJ invocations to module description.
19346         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
19347         here...
19348         * modules/getgroups (configure.ac): ... to here.
19349
19350 2011-05-08  Bruno Haible  <bruno@clisp.org>
19351
19352         getdtablesize: Move AC_LIBOBJ invocations to module description.
19353         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
19354         invocation from here...
19355         * modules/getdtablesize (configure.ac): ... to here.
19356
19357 2011-05-08  Bruno Haible  <bruno@clisp.org>
19358
19359         getdomainname: Move AC_LIBOBJ invocations to module description.
19360         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
19361         gl_PREREQ_GETDOMAINNAME invocations from here...
19362         * modules/getdomainname (configure.ac): ... to here.
19363
19364 2011-05-08  Bruno Haible  <bruno@clisp.org>
19365
19366         getline: Move AC_LIBOBJ invocations to module description.
19367         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
19368         invocations from here...
19369         * modules/getline (configure.ac): ... to here.
19370
19371 2011-05-08  Bruno Haible  <bruno@clisp.org>
19372
19373         getline: Simplify.
19374         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
19375         It's already handled through the module dependency.
19376
19377 2011-05-08  Bruno Haible  <bruno@clisp.org>
19378
19379         getdelim: Move AC_LIBOBJ invocations to module description.
19380         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
19381         and gl_PREREQ_GETDELIM invocations from here...
19382         * modules/getdelim (configure.ac): ... to here.
19383         (Depends-on): Fix condition.
19384
19385 2011-05-08  Bruno Haible  <bruno@clisp.org>
19386
19387         getcwd: Move AC_LIBOBJ invocations to module description.
19388         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
19389         invocations from here...
19390         * modules/getcwd (configure.ac): ... to here.
19391
19392 2011-05-08  Bruno Haible  <bruno@clisp.org>
19393
19394         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
19395         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
19396         here...
19397         * modules/getcwd-lgpl (configure.ac): ... to here.
19398
19399 2011-05-07  Bruno Haible  <bruno@clisp.org>
19400
19401         crypto/gc: Move AC_LIBOBJ invocations to module description.
19402         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
19403         * modules/crypto/gc (configure.ac): ... to here.
19404
19405 2011-05-07  Bruno Haible  <bruno@clisp.org>
19406
19407         fwriting: Move AC_LIBOBJ invocations to module description.
19408         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
19409         here...
19410         * modules/fwriting (configure.ac): ... to here.
19411
19412 2011-05-07  Bruno Haible  <bruno@clisp.org>
19413
19414         fwritable: Move AC_LIBOBJ invocations to module description.
19415         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
19416         here...
19417         * modules/fwritable (configure.ac): ... to here.
19418
19419 2011-05-07  Bruno Haible  <bruno@clisp.org>
19420
19421         futimens: Move AC_LIBOBJ invocations to module description.
19422         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
19423         here...
19424         * modules/futimens (configure.ac): ... to here.
19425
19426 2011-05-07  Bruno Haible  <bruno@clisp.org>
19427
19428         ftruncate: Move AC_LIBOBJ invocations to module description.
19429         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
19430         gl_PREREQ_FTRUNCATE invocations from here...
19431         * modules/ftruncate (configure.ac): ... to here.
19432
19433 2011-05-07  Bruno Haible  <bruno@clisp.org>
19434
19435         fsync: Move AC_LIBOBJ invocations to module description.
19436         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
19437         invocations from here...
19438         * modules/fsync (configure.ac): ... to here.
19439
19440 2011-05-07  Bruno Haible  <bruno@clisp.org>
19441
19442         fsusage: Move AC_LIBOBJ invocations to module description.
19443         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
19444         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
19445         * modules/fsusage (configure.ac): ... to here.
19446
19447 2011-05-07  Bruno Haible  <bruno@clisp.org>
19448
19449         freopen: Move AC_LIBOBJ invocations to module description.
19450         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
19451         invocations from here...
19452         * modules/freopen (configure.ac): ... to here.
19453
19454 2011-05-07  Bruno Haible  <bruno@clisp.org>
19455
19456         free: Move AC_LIBOBJ invocations to module description.
19457         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
19458         invocations from here...
19459         * modules/free (configure.ac): ... to here.
19460
19461 2011-05-07  Bruno Haible  <bruno@clisp.org>
19462
19463         freadable: Move AC_LIBOBJ invocations to module description.
19464         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
19465         here...
19466         * modules/freadable (configure.ac): ... to here.
19467
19468 2011-05-07  Bruno Haible  <bruno@clisp.org>
19469
19470         fpurge: Move AC_LIBOBJ invocations to module description.
19471         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
19472         invocations from here...
19473         * modules/fpurge (configure.ac): ... to here.
19474
19475 2011-05-07  Bruno Haible  <bruno@clisp.org>
19476
19477         fpending: Move AC_LIBOBJ invocations to module description.
19478         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
19479         gl_FUNC_FPENDING.
19480         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
19481         invocations from here...
19482         * modules/fpending (configure.ac): ... to here.
19483
19484 2011-05-07  Bruno Haible  <bruno@clisp.org>
19485
19486         fopen: Move AC_LIBOBJ invocations to module description.
19487         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
19488         invocations from here...
19489         * modules/fopen (configure.ac): ... to here.
19490
19491 2011-05-07  Bruno Haible  <bruno@clisp.org>
19492
19493         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
19494         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
19495         gl_FUNC_FNMATCH_POSIX.
19496         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
19497         invocations from here...
19498         * modules/fnmatch (configure.ac): ... to here.
19499         * modules/fnmatch-gnu (configure.ac): ... and here.
19500
19501 2011-05-07  Bruno Haible  <bruno@clisp.org>
19502
19503         flock: Move AC_LIBOBJ invocations to module description.
19504         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
19505         invocations from here...
19506         * modules/flock (configure.ac): ... to here.
19507
19508 2011-05-07  Bruno Haible  <bruno@clisp.org>
19509
19510         fileblocks: Move AC_LIBOBJ invocations to module description.
19511         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
19512         gl_PREREQ_FILEBLOCKS invocations from here...
19513         * modules/fileblocks (configure.ac): ... to here.
19514
19515 2011-05-06  Bruno Haible  <bruno@clisp.org>
19516
19517         fflush: Move AC_LIBOBJ invocations to module description.
19518         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
19519         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
19520         invocations from here...
19521         * modules/fflush (configure.ac): ... to here.
19522
19523 2011-05-06  Bruno Haible  <bruno@clisp.org>
19524
19525         fdopendir: Move AC_LIBOBJ invocations to module description.
19526         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
19527         here...
19528         * modules/fdopendir (configure.ac): ... to here.
19529         (Depends-on): Improve conditions.
19530
19531 2011-05-06  Bruno Haible  <bruno@clisp.org>
19532
19533         _Exit: Move AC_LIBOBJ invocations to module description.
19534         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
19535         invocations from here...
19536         * modules/_Exit (configure.ac): ... to here.
19537
19538 2011-05-21  Bruno Haible  <bruno@clisp.org>
19539
19540         euidaccess: Respect rules for use of AC_LIBOBJ.
19541         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
19542         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
19543         from here...
19544         * modules/euidaccess (configure.ac): ... to here.
19545
19546 2011-05-06  Bruno Haible  <bruno@clisp.org>
19547
19548         error: Move AC_LIBOBJ invocations to module description.
19549         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
19550         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
19551         invocations from here...
19552         * modules/error (configure.ac): ... to here.
19553
19554 2011-05-06  Bruno Haible  <bruno@clisp.org>
19555
19556         duplocale: Move AC_LIBOBJ invocations to module description.
19557         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
19558         gl_PREREQ_DUPLOCALE invocations from here...
19559         * modules/duplocale (configure.ac): ... to here.
19560
19561 2011-05-05  Bruno Haible  <bruno@clisp.org>
19562
19563         dirfd: Move AC_LIBOBJ invocations to module description.
19564         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
19565         gl_FUNC_DIRFD.
19566         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
19567         here...
19568         * modules/dirfd (configure.ac): ... to here.
19569         (Depends-on): Fix condition.
19570
19571 2011-05-05  Bruno Haible  <bruno@clisp.org>
19572
19573         chown: Respect rules for use of AC_LIBOBJ.
19574         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
19575         * modules/chown (configure.ac): ... to here.
19576
19577 2011-05-05  Bruno Haible  <bruno@clisp.org>
19578
19579         chdir-long: Move AC_LIBOBJ invocations to module description.
19580         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
19581         gl_PREREQ_CHDIR_LONG invocations from here...
19582         * modules/chdir-long (configure.ac): ... to here.
19583
19584 2011-05-05  Bruno Haible  <bruno@clisp.org>
19585
19586         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
19587         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
19588         from here...
19589         * modules/canonicalize-lgpl (configure.ac): ... to here.
19590
19591 2011-05-05  Bruno Haible  <bruno@clisp.org>
19592
19593         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
19594         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
19595         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
19596         REPLACE_CALLOC.
19597         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
19598         * modules/calloc-gnu (configure.ac): Likewise.
19599
19600 2011-05-05  Bruno Haible  <bruno@clisp.org>
19601
19602         btowc: Move AC_LIBOBJ invocations to module description.
19603         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
19604         invocations from here...
19605         * modules/btowc (configure.ac): ... to here.
19606
19607 2011-05-21  Bruno Haible  <bruno@clisp.org>
19608
19609         atexit: Move AC_LIBOBJ invocations to module description.
19610         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
19611         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
19612         here...
19613         * modules/atexit (configure.ac): ... to here.
19614
19615 2011-05-05  Bruno Haible  <bruno@clisp.org>
19616
19617         atoll: Move AC_LIBOBJ invocations to module description.
19618         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
19619         invocations from here...
19620         * modules/atoll (configure.ac): ... to here.
19621
19622 2011-05-05  Bruno Haible  <bruno@clisp.org>
19623
19624         argz: Move AC_LIBOBJ invocations to module description.
19625         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
19626         * modules/argz (configure.ac): ... to here.
19627
19628 2011-05-05  Bruno Haible  <bruno@clisp.org>
19629
19630         alphasort: Move AC_LIBOBJ invocations to module description.
19631         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
19632         gl_PREREQ_ALPHASORT invocations from here...
19633         * modules/alphasort (configure.ac): ... to here.
19634
19635 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
19636
19637         verify: new macro verify_expr; verify_true deprecated
19638         * NEWS: Mention this.
19639         * doc/verify.texi (Compile-time Assertions): Document this.
19640         * lib/verify.h (verify_true): Deprecate.
19641         (verify_expr): New macro.
19642         * tests/test-verify.c (function): Test verify_expr.
19643
19644 2011-06-14  Jim Meyering  <meyering@redhat.com>
19645
19646         init.sh: give more portable redirection-related advice in a comment
19647         * tests/init.sh (stderr_fileno_): Update the advice in comments.
19648         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
19649         for lots of discussion.  Stefano Lattarini suggested the solution
19650         of putting "9>&2" after the command.  Reported by Bruno Haible.
19651
19652 2011-06-13  Bruno Haible  <bruno@clisp.org>
19653
19654         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
19655         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
19656         'none'.
19657
19658 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
19659
19660         ftoastr: use strtof only if HAVE_STRTOF
19661         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
19662         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
19663         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
19664         * modules/ftoastr (configure.ac): Check for strtof.
19665
19666 2011-06-13  Bruno Haible  <bruno@clisp.org>
19667
19668         gnulib-tool: Addendum to 2011-06-08 commit.
19669         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
19670         and --witness-c-macro have been given, augment AM_CPPFLAGS.
19671
19672 2011-06-13  Bruno Haible  <bruno@clisp.org>
19673
19674         fseeko: Provide a non-inline replacement of fseek().
19675         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
19676         * modules/fseeko (Depends-on): Add fseek.
19677         * modules/fseek (License): Change to LGPLv2+.
19678
19679 2011-06-13  Bruno Haible  <bruno@clisp.org>
19680
19681         ftello: Provide a non-inline replacement of ftell().
19682         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
19683         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
19684         not have ftello() (such as on mingw).
19685         * modules/ftello (Depends-on): Add ftell.
19686         * modules/ftell (License): Change to LGPLv2+.
19687
19688 2011-05-07  Bruno Haible  <bruno@clisp.org>
19689
19690         ftell: Move AC_LIBOBJ invocations to module description.
19691         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
19692         * modules/ftell (configure.ac): ... to here.
19693
19694 2011-05-07  Bruno Haible  <bruno@clisp.org>
19695
19696         ftello: Respect rules for use of AC_LIBOBJ.
19697         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
19698         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
19699         here...
19700         * modules/ftello (configure.ac): ... to here.
19701
19702 2011-05-07  Bruno Haible  <bruno@clisp.org>
19703
19704         fseeko: Simplify.
19705         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
19706         (gl_FUNC_FSEEKO): Inline it here.
19707
19708 2011-05-07  Bruno Haible  <bruno@clisp.org>
19709
19710         fseek: Move AC_LIBOBJ invocations to module description.
19711         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
19712         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
19713         * modules/fseek (configure.ac): ... to here.
19714
19715 2011-05-07  Bruno Haible  <bruno@clisp.org>
19716
19717         fseek: Respect rules for use of AC_LIBOBJ.
19718         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
19719         here...
19720         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
19721
19722 2011-05-07  Bruno Haible  <bruno@clisp.org>
19723
19724         fseeko: Respect rules for use of AC_LIBOBJ.
19725         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
19726         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
19727         here...
19728         * modules/fseeko (configure.ac): ... to here.
19729
19730 2011-06-13  Bruno Haible  <bruno@clisp.org>
19731
19732         gnulib-tool: Allow comments in the 'Depends-on' section.
19733         * doc/gnulib.texi (Module description): Mention comment syntax in the
19734         Depends-on section.
19735         * gnulib-tool (func_get_dependencies): Filter out comment lines.
19736
19737 2011-06-13  Bruno Haible  <bruno@clisp.org>
19738
19739         file-set.h: guard __attibute__ use, now that it's not always defined
19740         * lib/file-set.h (record_file): Use __attribute__ only with compiler
19741         versions that support it.  This fixes a coreutils build failure with
19742         the vendor cc on HP-UX 11.31.
19743
19744 2011-06-12  Bruno Haible  <bruno@clisp.org>
19745
19746         acl: Add support for HP-UX >= 11.11 JFS ACLs.
19747         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
19748         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
19749         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
19750         (acl, aclsort): New declarations.
19751         (aclv_nontrivial): New declaration.
19752         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
19753         (file_has_acl): Read also the second kind of HP-UX ACLs.
19754         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
19755         kind of HP-UX ACLs if the first kind fails.
19756         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
19757         second kind of HP-UX ACLs.
19758         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
19759         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
19760         agree.
19761         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
19762         hpuxjfs.
19763         Handle hpuxjfs.
19764         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
19765         hpuxjfs.
19766         Handle hpuxjfs.
19767         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
19768         (func_test_same_acls): Use both lsacl and getacl.
19769         Handle hpuxjfs.
19770         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
19771         (func_test_same_acls): Use both lsacl and getacl.
19772         Handle hpuxjfs.
19773
19774 2011-06-12  Bruno Haible  <bruno@clisp.org>
19775
19776         acl: Complete the 2010-08-10 fix.
19777         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
19778         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
19779         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
19780         explicitly.
19781         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
19782         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
19783
19784 2011-06-12  Bruno Haible  <bruno@clisp.org>
19785
19786         spawn-pipe tests: Comments.
19787         * tests/test-spawn-pipe-child.c (main): Update comment.
19788         Reported by James Youngman <jay@gnu.org>.
19789
19790 2011-06-11  James Youngman  <jay@gnu.org>
19791
19792         New module 'stat-size'.
19793         * modules/stat-size: New module.  Provides macros for accessing
19794         file size information in instances of struct stat.  Depends on the
19795         fileblocks module because it calls st_blocks.
19796         * lib/stat-size.h: New file, adapted from coreutils' system.h.
19797         * doc/gnulib.texi: Include stat-size.texi.
19798         * doc/stat-size.texi: Documentation for this module.
19799         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
19800         * m4/fileblocks.m4: Mention that stat-size depends on the call to
19801         AC_STRUCT_ST_BLOCKS.
19802
19803 2011-06-09  Bruno Haible  <bruno@clisp.org>
19804
19805         thread: Support pthreads-win32.
19806         * lib/glthread/thread.h (gl_thread_self): Define differently on
19807         pthreads-win32.
19808         (gl_null_thread): New declaration.
19809         (gl_thread_self_pointer): New macro.
19810         * lib/glthread/thread.c (gl_null_thread): New constant.
19811         * tests/test-lock.c: Use gl_thread_self_pointer instead of
19812         gl_thread_self.
19813         * tests/test-tls.c: Likewise.
19814         Suggested by Paul Eggert. Reported by Eric Blake.
19815
19816 2011-06-09  Bruno Haible  <bruno@clisp.org>
19817
19818         thread: Fix confusion between NULL and 0.
19819         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
19820         Reported by Paul Eggert.
19821
19822 2011-06-09  Bruno Haible  <bruno@clisp.org>
19823
19824         spawn-pipe tests: Avoid test failure on HP-UX 11.
19825         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
19826         is closed.
19827
19828 2011-06-09  Bruno Haible  <bruno@clisp.org>
19829
19830         acl tests: Fix compilation error on HP-UX 11.
19831         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
19832
19833 2011-06-09  Bruno Haible  <bruno@clisp.org>
19834
19835         rmdir: Avoid test failure on HP-UX 10.20.
19836         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
19837         EEXIST.
19838
19839 2011-06-08  Eric Blake  <eblake@redhat.com>
19840
19841         perror: fix test on mingw
19842         * modules/perror-tests (Depends-on): Add dup2.
19843
19844         strerror_r-posix: fix on MacOS
19845         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
19846         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
19847         logic bug.
19848         * lib/strerror_r.c (strerror_r): Fix the bug.
19849         * lib/strerror.c (strerror): Likewise.
19850         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
19851         problem.
19852         * doc/posix-functions/strerror.texi (strerror): Likewise.
19853         * doc/posix-functions/perror.texi (perror): Likewise.
19854         * tests/test-strerror.c (main): Enhance test.
19855         * tests/test-strerror_r.c (main): Likewise.
19856
19857 2011-06-08  Bruno Haible  <bruno@clisp.org>
19858
19859         gnulib-tool: Better isolation between different gnulib-tool invocations.
19860         * gnulib-tool: New option --witness-c-macro.
19861         (witness_c_macro): New variable.
19862         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
19863         AM_CPPFLAGS define it as a C macro.
19864         (func_emit_tests_Makefile_am): Likewise.
19865         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
19866         read it from there.
19867         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
19868         m4_define, not AC_DEFUN.
19869         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
19870         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
19871         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
19872         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
19873         s|...|...|, to substitute the values of the GNULIB_* module indicator
19874         variables.
19875         * modules/dirent (Makefile.am): Likewise.
19876         * modules/fcntl-h (Makefile.am): Likewise.
19877         * modules/iconv-h (Makefile.am): Likewise.
19878         * modules/langinfo (Makefile.am): Likewise.
19879         * modules/locale (Makefile.am): Likewise.
19880         * modules/math (Makefile.am): Likewise.
19881         * modules/netdb (Makefile.am): Likewise.
19882         * modules/poll-h (Makefile.am): Likewise.
19883         * modules/pty (Makefile.am): Likewise.
19884         * modules/search (Makefile.am): Likewise.
19885         * modules/signal (Makefile.am): Likewise.
19886         * modules/spawn (Makefile.am): Likewise.
19887         * modules/stdio (Makefile.am): Likewise.
19888         * modules/stdlib (Makefile.am): Likewise.
19889         * modules/string (Makefile.am): Likewise.
19890         * modules/sys_ioctl (Makefile.am): Likewise.
19891         * modules/sys_select (Makefile.am): Likewise.
19892         * modules/sys_socket (Makefile.am): Likewise.
19893         * modules/sys_stat (Makefile.am): Likewise.
19894         * modules/sys_times (Makefile.am): Likewise.
19895         * modules/sys_utsname (Makefile.am): Likewise.
19896         * modules/sys_wait (Makefile.am): Likewise.
19897         * modules/termios (Makefile.am): Likewise.
19898         * modules/time (Makefile.am): Likewise.
19899         * modules/unistd (Makefile.am): Likewise.
19900         * modules/wchar (Makefile.am): Likewise.
19901
19902 2011-06-08  Eric Blake  <eblake@redhat.com>
19903
19904         strerror: simplify replacement
19905         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
19906         * modules/strerror (configure.ac): No prereqs needed here...
19907         * modules/strerror-override (configure.ac): ...but this needs it.
19908         (Files): Add file for needed prereq macro.
19909
19910 2011-06-08  Bruno Haible  <bruno@clisp.org>
19911
19912         strerror_r-posix: Tweaks.
19913         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
19914         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
19915         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
19916         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
19917         (gl_FUNC_STRERROR_R): ... to here.
19918         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
19919
19920 2011-06-07  Eric Blake  <eblake@redhat.com>
19921
19922         perror: document fixed bugs
19923         * doc/posix-functions/perror.texi (perror): Document recent
19924         patches.
19925
19926 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
19927
19928         stat-time: get_stat_birthtime failure is better-defined
19929         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
19930         return a timestamp whose tv_sec and tv_nsec values are both -1.
19931         Previously, the spec said only that the tv_nsec value was negative.
19932         This upward-compatible change simplifies GNU tar a bit.
19933
19934 2011-06-07  Eric Blake  <eblake@redhat.com>
19935
19936         strerror_r-posix: work around cygwin 1.7.9
19937         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
19938         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
19939         bug without replacing strerror_r.
19940         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
19941         strerror_r is buggy, but without requiring strerror_r compilation.
19942         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
19943
19944         test-perror: relax test to ignore cygwin bug
19945         * tests/test-perror2.c (main): Relax test on requiring detection
19946         of stream errors, and use unbuffered stream.
19947         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
19948         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
19949         * doc/posix-functions/fputc.texi (fputc): Likewise.
19950         * doc/posix-functions/fputs.texi (fputs): Likewise.
19951         * doc/posix-functions/fputws.texi (fputws): Likewise.
19952         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
19953         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
19954         * doc/posix-functions/getopt.texi (getopt): Likewise.
19955         * doc/posix-functions/perror.texi (perror): Likewise.
19956         * doc/posix-functions/printf.texi (printf): Likewise.
19957         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
19958         * doc/posix-functions/psignal.texi (psignal): Likewise.
19959         * doc/posix-functions/putc.texi (putc): Likewise.
19960         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
19961         Likewise.
19962         * doc/posix-functions/putchar.texi (putchar): Likewise.
19963         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
19964         Likewise.
19965         * doc/posix-functions/puts.texi (puts): Likewise.
19966         * doc/posix-functions/putwc.texi (putwc): Likewise.
19967         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
19968         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
19969         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
19970         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
19971         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
19972         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
19973         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
19974         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
19975
19976 2011-05-22  Bruno Haible  <bruno@clisp.org>
19977
19978         strerror: Move AC_LIBOBJ invocations to module description.
19979         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
19980         gl_PREREQ_STRERROR invocations from here...
19981         * modules/strerror (configure.ac): ... to here.
19982
19983 2011-05-21  Bruno Haible  <bruno@clisp.org>
19984
19985         perror: Use common idiom.
19986         * modules/perror (configure.ac): Reorder statements.
19987
19988 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
19989
19990         tests: fix usage message in 'mktempd_'
19991         * tests/init.sh (mktempd_): In the usage message, use literal
19992         'mktempd_', not '$ME' (which is even undefined), as the name of
19993         the subroutine.
19994
19995 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
19996
19997         tests init: new function 'fatal_', for hard errors
19998         Before this patch, the only way offered by tests/init.sh to
19999         properly signal a hard error was the `framework_failure_'
20000         function.  But the error message issued by that function,
20001         as its name would suggest, refers to a set-up failure in the
20002         testsuite, while hard errors can obviously also be due to
20003         other reasons.  The best way to fix this inconsistency is to
20004         introduce a new function with a more general error message.
20005         * tests/init.sh (fatal_): New function.
20006
20007 2011-06-06  Eric Blake  <eblake@redhat.com>
20008
20009         canonicalize-lgpl: use common idiom
20010         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
20011         over newer POSIX -Rf.
20012         Reported by Bruno Haible.
20013
20014         canonicalize-lgpl: work around AIX realpath bug
20015         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
20016         * doc/posix-functions/realpath.texi (realpath): Document it.
20017         Reported by Bruno Haible.
20018
20019         strerror: work around FreeBSD bug
20020         * lib/strerror.c (strerror): Special case 0.
20021         Reported by Bruno Haible.
20022
20023         strerror-override: avoid bloating errno module
20024         * modules/errno (Files, configure.ac): Move replacement strings...
20025         * modules/strerror-override: ...to new module.
20026         * modules/strerror (Depends-on): Add strerror-override.
20027         * modules/strerror_r-posix (Depends-on): Likewise.
20028         * MODULES.html.sh: Document new module.
20029         Reported by Bruno Haible.
20030
20031 2011-06-06  Bruno Haible  <bruno@clisp.org>
20032
20033         spawn-pipe tests: Rename program.
20034         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
20035         * tests/test-spawn-pipe-child.c: Update comment.
20036         * tests/test-spawn-pipe.sh: Update.
20037         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
20038
20039         spawn-pipe tests: Link the child program only against libc.
20040         * tests/test-spawn-pipe-child.c: New file, extracted from
20041         tests/test-spawn-pipe.c.
20042         (main): Expect only one argument.
20043         (is_open): New function, copied from tests/test-pipe.c.
20044         * tests/test-spawn-pipe.c: Don't include <errno.h>.
20045         (child_main): Remove function.
20046         (test_pipe): Pass only one argument to the child program.
20047         (main): Remove child process code. Expect the child program's name as
20048         first argument.
20049         * tests/test-spawn-pipe.sh: Pass the child program's name as first
20050         argument.
20051         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
20052         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
20053         test-spawn-pipe-child against no libraries.
20054
20055 2011-06-06  Bruno Haible  <bruno@clisp.org>
20056
20057         careadlinkat: Avoid mismatch between ssize_t and int.
20058         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
20059         * lib/careadlinkat.c (careadlinkatcwd): Define always.
20060
20061 2011-06-06  Jim Meyering  <meyering@redhat.com>
20062
20063         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
20064         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
20065         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
20066
20067 2011-06-05  Bruno Haible  <bruno@clisp.org>
20068
20069         ansi-c++-opt: Interoperability with libtool.
20070         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
20071         set the variable to "no", not to ":".
20072         * NEWS: Mention the change.
20073
20074 2011-06-05  Bruno Haible  <bruno@clisp.org>
20075
20076         acl: Fix test failure on AIX 7.
20077         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
20078         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
20079
20080 2011-06-05  Bruno Haible  <bruno@clisp.org>
20081
20082         pipe-filter-ii: Fix test failure on AIX and IRIX.
20083         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
20084         with EAGAIN, retry with a smaller buffer size.
20085
20086 2011-06-05  Bruno Haible  <bruno@clisp.org>
20087
20088         localename: Fix link dependencies.
20089         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
20090         * modules/localename-tests (Makefile.am): Link test-localename with
20091         $(LIBTHREAD).
20092
20093 2011-06-05  Bruno Haible  <bruno@clisp.org>
20094
20095         error: Avoid gcc warning.
20096         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
20097
20098 2011-06-05  Bruno Haible  <bruno@clisp.org>
20099
20100         unsetenv: Avoid gcc warning.
20101         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
20102
20103 2011-06-05  Bruno Haible  <bruno@clisp.org>
20104
20105         setenv: Avoid gcc warning.
20106         * lib/setenv.c (setenv): Provide declaration if system lacks it.
20107
20108 2011-06-05  Bruno Haible  <bruno@clisp.org>
20109
20110         sys_select: Ensure memset is declared also on AIX 7.
20111         * lib/sys_select.in.h: Include <string.h> also on AIX.
20112         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
20113         self-contained also on AIX 7.1.
20114
20115 2011-06-04  Jim Meyering  <meyering@redhat.com>
20116
20117         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
20118         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
20119         function name, "error".
20120         (_gl_translatable_diag_func_re): New configurable variable.
20121
20122 2011-06-04  Bruno Haible  <bruno@clisp.org>
20123
20124         getopt: Avoid gcc warning.
20125         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
20126
20127 2011-06-04  Bruno Haible  <bruno@clisp.org>
20128
20129         strerror_r: Fix comments.
20130         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
20131         commit.
20132
20133 2011-06-04  Bruno Haible  <bruno@clisp.org>
20134
20135         perror: Fix compilation error.
20136         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
20137         Undefine fprintf, not sprintf.
20138         * modules/perror (Depends-on): Remove intprops, verify.
20139
20140 2011-06-04  Bruno Haible  <bruno@clisp.org>
20141
20142         setlocale: Enable replacement on Cygwin 1.5.
20143         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
20144         Cygwin 1.5.x.
20145         * doc/posix-functions/setlocale.texi: Mention that the problem with the
20146         LC_CTYPE category also exists on Cygwin 1.5.x.
20147
20148 2011-06-04  Bruno Haible  <bruno@clisp.org>
20149
20150         strerror-override: Don't disable symbol renamings.
20151         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
20152         * lib/strerror-override.c: Include config.h.
20153         (strerror_override): Don't undefine.
20154
20155 2011-06-03  Bruno Haible  <bruno@clisp.org>
20156
20157         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
20158         * lib/localename.h: Update copyright header.
20159         * lib/localename.c: Likewise.
20160         * lib/relocatable.h: Likewise.
20161         * lib/relocatable.c: Likewise.
20162
20163 2011-06-02  Bruno Haible  <bruno@clisp.org>
20164
20165         doc: Fix a module name.
20166         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
20167
20168 2011-06-02  Bruno Haible  <bruno@clisp.org>
20169
20170         pipe2: Remove dependency on 'nonblocking' module.
20171         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
20172         O_NONBLOCK is defined by gnulib.
20173         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
20174         is zero.
20175         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
20176         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
20177         defined by gnulib.
20178         (get_nonblocking_flag): New function.
20179         (main): Test O_NONBLOCK flag only if it is nonzero.
20180         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
20181
20182 2011-06-03  Jim Meyering  <meyering@redhat.com>
20183
20184         maint: three new prohibit-header-without-use rules
20185         Prohibit use of cloexec.h, posixver.h, same.h without use.
20186         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
20187         (sc_prohibit_posixver_without_use): Likewise.
20188         (sc_prohibit_same_without_use): Likewise.
20189
20190 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
20191
20192         allocator: 'die' routine is now given requested size
20193         * lib/allocator.h (struct allocator.die): New size arg.
20194         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
20195         If the actual problem is an ssize_t limitation, not a size_t or
20196         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
20197
20198 2011-06-01  Eric Blake  <eblake@redhat.com>
20199
20200         strerror: drop strerror_r dependency
20201         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
20202         * lib/strerror-override.c (strerror_override): ...to new file.
20203         * lib/strerror-override.h: Add prototype.
20204         * lib/strerror-impl.h: Delete.
20205         * lib/strerror.c (strerror): New implementation.
20206         * modules/errno (Files): Add new files.
20207         (configure.ac): Compile new file as appropriate.
20208         * modules/strerror (Files): Drop unused file.
20209         (Depends-on): Drop strerror_r-posix.
20210         * MODULES.html.sh: Document strerror_r-posix.
20211         Requested by Sam Steingold.
20212
20213         perror: call strerror_r directly
20214         * modules/perror (Files): Drop strerror-impl.h.
20215         * lib/perror.c (perror): Use our own stack buffer, rather than
20216         calling a wrapper that uses static storage.
20217         * doc/posix-functions/perror.texi (perror): Document a limitation
20218         of our replacement.
20219
20220         strerror_r: fix includes for FreeBSD
20221         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
20222         since we use abort on some platforms.
20223         Reported by Matthias Bolte.
20224
20225 2011-05-31  Bruno Haible  <bruno@clisp.org>
20226
20227         Fix link errors in tests: openat-die uses gettext-h.
20228         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
20229         against $(LIBINTL).
20230         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
20231         against $(LIBINTL).
20232         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
20233         $(LIBINTL).
20234         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
20235         against $(LIBINTL).
20236         * modules/linkat-tests (Makefile.am): Link test-linkat against
20237         $(LIBINTL).
20238         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
20239         $(LIBINTL).
20240         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
20241         against $(LIBINTL).
20242         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
20243         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
20244         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
20245         $(LIBINTL).
20246         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
20247         $(LIBINTL).
20248         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
20249         $(LIBINTL).
20250         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20251
20252 2011-05-31  Bruno Haible  <bruno@clisp.org>
20253
20254         Fix link errors in tests: wait-process uses gettext-h.
20255         * modules/nonblocking-pipe-tests (Makefile.am): Set
20256         test_nonblocking_pipe_main_LDADD.
20257         * modules/nonblocking-socket-tests (Makefile.am): Link
20258         test-nonblocking-socket-main against $(LIBINTL).
20259         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20260
20261 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
20262
20263         assert-h: work around 'verify' incompatibility
20264         * lib/verify.h: Use @...@ directives, not ifdef.
20265         * modules/assert-h (assert.h): Implement the directives.
20266         (assert.h): Substitute the symbol-prefix more consistently.
20267
20268 2011-05-29  Jim Meyering  <meyering@redhat.com>
20269
20270         trim: remove three superfluous assignments
20271         * lib/trim.c (trim2): Remove three superfluous assignments
20272         and correct brace positioning.
20273
20274 2011-05-29  Bruno Haible  <bruno@clisp.org>
20275
20276         wctype-h: Avoid namespace pollution on Solaris 2.6.
20277         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
20278         identifiers.
20279         * doc/posix-headers/wctype.texi: Mention the problem.
20280         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20281
20282 2011-05-28  Jim Meyering  <meyering@redhat.com>
20283
20284         parse-datetime.y: accommodate -Wstrict-overflow
20285         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
20286         placate -Wstrict-overflow.
20287
20288         trim: avoid a warning from -O2 -Wstrict-overflow
20289         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
20290
20291 2011-05-29  Bruno Haible  <bruno@clisp.org>
20292
20293         gnulib-tool: Fix bug in yesterday's commit.
20294         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
20295         twice.
20296
20297 2011-05-29  Bruno Haible  <bruno@clisp.org>
20298
20299         Allow multiple gnulib generated include files to be combined.
20300         * gnulib-tool (func_compute_include_guard_prefix): New function.
20301         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
20302         ${gl_include_guard_prefix} references.
20303         (func_import, func_create_testdir): Invoke
20304         func_compute_include_guard_prefix.
20305         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
20306         * lib/ctype.in.h: Likewise.
20307         * lib/dirent.in.h: Likewise.
20308         * lib/errno.in.h: Likewise.
20309         * lib/fcntl.in.h: Likewise.
20310         * lib/float.in.h: Likewise.
20311         * lib/getopt.in.h: Likewise.
20312         * lib/iconv.in.h: Likewise.
20313         * lib/langinfo.in.h: Likewise.
20314         * lib/locale.in.h: Likewise.
20315         * lib/math.in.h: Likewise.
20316         * lib/netdb.in.h: Likewise.
20317         * lib/netinet_in.in.h: Likewise.
20318         * lib/poll.in.h: Likewise.
20319         * lib/pthread.in.h: Likewise.
20320         * lib/pty.in.h: Likewise.
20321         * lib/sched.in.h: Likewise.
20322         * lib/se-selinux.in.h: Likewise.
20323         * lib/search.in.h: Likewise.
20324         * lib/signal.in.h: Likewise.
20325         * lib/spawn.in.h: Likewise.
20326         * lib/stdarg.in.h: Likewise.
20327         * lib/stddef.in.h: Likewise.
20328         * lib/stdint.in.h: Likewise.
20329         * lib/stdio.in.h: Likewise.
20330         * lib/stdlib.in.h: Likewise.
20331         * lib/string.in.h: Likewise.
20332         * lib/strings.in.h: Likewise.
20333         * lib/sys_file.in.h: Likewise.
20334         * lib/sys_ioctl.in.h: Likewise.
20335         * lib/sys_select.in.h: Likewise.
20336         * lib/sys_socket.in.h: Likewise.
20337         * lib/sys_stat.in.h: Likewise.
20338         * lib/sys_time.in.h: Likewise.
20339         * lib/sys_times.in.h: Likewise.
20340         * lib/sys_uio.in.h: Likewise.
20341         * lib/sys_utsname.in.h: Likewise.
20342         * lib/sys_wait.in.h: Likewise.
20343         * lib/sysexits.in.h: Likewise.
20344         * lib/termios.in.h: Likewise.
20345         * lib/time.in.h: Likewise.
20346         * lib/unistd.in.h: Likewise.
20347         * lib/wchar.in.h: Likewise.
20348         * lib/wctype.in.h: Likewise.
20349         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
20350         * modules/ctype (Makefile.am): Likewise.
20351         * modules/dirent (Makefile.am): Likewise.
20352         * modules/errno (Makefile.am): Likewise.
20353         * modules/fcntl-h (Makefile.am): Likewise.
20354         * modules/float (Makefile.am): Likewise.
20355         * modules/getopt-posix (Makefile.am): Likewise.
20356         * modules/iconv-h (Makefile.am): Likewise.
20357         * modules/langinfo (Makefile.am): Likewise.
20358         * modules/locale (Makefile.am): Likewise.
20359         * modules/math (Makefile.am): Likewise.
20360         * modules/netdb (Makefile.am): Likewise.
20361         * modules/netinet_in (Makefile.am): Likewise.
20362         * modules/poll-h (Makefile.am): Likewise.
20363         * modules/pthread (Makefile.am): Likewise.
20364         * modules/pty (Makefile.am): Likewise.
20365         * modules/sched (Makefile.am): Likewise.
20366         * modules/search (Makefile.am): Likewise.
20367         * modules/selinux-h (Makefile.am): Likewise.
20368         * modules/signal (Makefile.am): Likewise.
20369         * modules/spawn (Makefile.am): Likewise.
20370         * modules/stdarg (Makefile.am): Likewise.
20371         * modules/stddef (Makefile.am): Likewise.
20372         * modules/stdint (Makefile.am): Likewise.
20373         * modules/stdio (Makefile.am): Likewise.
20374         * modules/stdlib (Makefile.am): Likewise.
20375         * modules/string (Makefile.am): Likewise.
20376         * modules/strings (Makefile.am): Likewise.
20377         * modules/sys_file (Makefile.am): Likewise.
20378         * modules/sys_ioctl (Makefile.am): Likewise.
20379         * modules/sys_select (Makefile.am): Likewise.
20380         * modules/sys_socket (Makefile.am): Likewise.
20381         * modules/sys_stat (Makefile.am): Likewise.
20382         * modules/sys_time (Makefile.am): Likewise.
20383         * modules/sys_times (Makefile.am): Likewise.
20384         * modules/sys_uio (Makefile.am): Likewise.
20385         * modules/sys_utsname (Makefile.am): Likewise.
20386         * modules/sys_wait (Makefile.am): Likewise.
20387         * modules/sysexits (Makefile.am): Likewise.
20388         * modules/termios (Makefile.am): Likewise.
20389         * modules/time (Makefile.am): Likewise.
20390         * modules/unistd (Makefile.am): Likewise.
20391         * modules/wchar (Makefile.am): Likewise.
20392         * modules/wctype-h (Makefile.am): Likewise.
20393         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
20394
20395 2011-05-29  Bruno Haible  <bruno@clisp.org>
20396
20397         assert-h: Allow multiple gnulib generated replacements to coexist.
20398         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
20399
20400 2011-05-29  Bruno Haible  <bruno@clisp.org>
20401
20402         argp: Allow coexistence with strerror_r-posix module.
20403         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
20404         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
20405         by gnulib's <string.h> replacement), assume it has the POSIX signature,
20406         not the glibc signature.
20407
20408 2011-05-28  Bruno Haible  <bruno@clisp.org>
20409
20410         gnulib-tool: Alternative structure of testdirs, similar to --import.
20411         * gnulib-tool: New option --single-configure.
20412         (func_usage): Document it.
20413         (single_configure): New variable.
20414         (func_modules_transitive_closure_separately,
20415         func_modules_transitive_closure_separately,
20416         func_determine_use_libtests, func_modules_add_dummy_separately,
20417         func_modules_to_filelist_separately): New functions, extracted from
20418         func_import.
20419         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
20420         (func_import): Use the new functions.
20421         (func_create_testdir): Set final_modules. Handle $single_configure =
20422         true case.
20423
20424 2011-05-28  Bruno Haible  <bruno@clisp.org>
20425
20426         getloadavg: Remove an unreliable safety check.
20427         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
20428         getloadavg.c is in place.
20429         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
20430         Reported by Sam Steingold <sds@gnu.org>.
20431
20432 2011-05-28  Bruno Haible  <bruno@clisp.org>
20433
20434         doc: Cleanup yet another file produced by texinfo.tex.
20435         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
20436
20437 2011-05-28  Bruno Haible  <bruno@clisp.org>
20438
20439         Finish the conditional dependencies mechanism.
20440         * gnulib-tool: New option --no-conditional-dependencies.
20441         (func_usage): Document it. Don't mark --conditional-dependencies as
20442         experimental.
20443         (cond_dependencies): The possible values can now be true, false, empty.
20444         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
20445         (func_import): Store setting in gnulib-cache.m4 and read it from there.
20446         * doc/gnulib-tool.texi (Conditional dependencies): New section.
20447
20448 2011-05-28  Bruno Haible  <bruno@clisp.org>
20449
20450         doc: Use a recent texinfo.tex.
20451         * doc/Makefile (tex_opts): New variable.
20452         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
20453
20454 2011-05-28  Jim Meyering  <meyering@redhat.com>
20455
20456         intprops.h: adjust comment to match code change
20457         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
20458         only once, it *may* have side effects.  Also fix an unrelated typo.
20459         (_GL_INT_SIGNED): Likewise.
20460
20461 2011-05-26  Simon Josefsson  <simon@josefsson.org>
20462
20463         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
20464
20465 2011-05-26  Bruno Haible  <bruno@clisp.org>
20466
20467         mbsrchr: Avoid collision with system function on Interix.
20468         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
20469         Reported by Markus Duft <mduft@gentoo.org>.
20470
20471 2011-05-15  James Youngman  <jay@gnu.org>
20472
20473         getopt: for ambiguous options, enumerate the possibilities.
20474         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
20475         the ambiguous options when an ambiguous prefix is given. This was
20476         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
20477         glibc change was
20478         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
20479
20480 2011-05-25  Eric Blake  <eblake@redhat.com>
20481
20482         getcwd: work around mingw bug
20483         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
20484         * doc/posix-functions/getcwd.texi (getcwd): Document it.
20485         Reported by Matthias Bolte.
20486
20487 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
20488
20489         test-intprops: disable -Wtype-limits diagnostics
20490         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
20491         diagnostics.  Otherwise, the integer overflow macros generate many
20492         diagnostics.  Reported by Jim Meyering in
20493         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
20494
20495         intprops: shorten, to pacify gcc -Woverlength-strings
20496         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
20497         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
20498         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
20499         likely to run afoul of C compiler limits for string constant lengths.
20500         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
20501
20502 2011-05-24  Eric Blake  <eblake@redhat.com>
20503
20504         docs: document recently fixed glibc printf bug
20505         * doc/posix-functions/fprintf.texi (fprintf): Document it.
20506         * doc/posix-functions/printf.texi (printf): Likewise.
20507         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
20508         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
20509
20510         closein-tests: convert to init.sh
20511         * modules/closein-tests (Files): Add init.sh
20512         * tests/test-closein.sh Use it.
20513
20514         yesno-tests: convert to init.sh
20515         * modules/yesno-tests (Files): Add init.sh.
20516         * tests/test-yesno.sh: Use it.
20517
20518         atexit-tests: ensure reliable exit status
20519         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
20520         Reported by Bruno Haible.
20521
20522 2011-05-24  Bruno Haible  <bruno@clisp.org>
20523
20524         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
20525         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
20526         gl_PREREQ_STRERROR_R invocations from here...
20527         * modules/strerror_r-posix (configure.ac): ... to here.
20528
20529 2011-05-24  Eric Blake  <eblake@redhat.com>
20530
20531         strerror_r: fix missing header
20532         * lib/strerror_r.c: Avoid compiler warning about snprintf.
20533
20534         strerror_r: fix AIX test failures
20535         * lib/strerror_r.c (strerror_r): Convert silent truncation to
20536         ERANGE failure.
20537
20538         strerror_r: fix Solaris test failures
20539         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
20540         failures.
20541         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
20542
20543         strerror_r: enforce POSIX recommendations
20544         * lib/strerror_r.c (safe_copy): New helper method.
20545         (strerror_r): Guarantee a non-empty string.
20546         * tests/test-strerror_r.c (main): Enhance tests to incorporate
20547         recent POSIX rulings and to match our strerror guarantees.
20548         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
20549
20550 2011-05-24  Jim Meyering  <meyering@redhat.com>
20551
20552         test-perror2.c: avoid warning about unused variable
20553         * tests/test-perror2.c (main): Remove declaration of unused "fp".
20554
20555 2011-05-24  Eric Blake  <eblake@redhat.com>
20556
20557         perror: avoid spurious test failure on HP-UX
20558         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
20559
20560         tests: fix logic bug in init.sh
20561         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
20562         shell.
20563
20564 2011-05-24  Jim Meyering  <meyering@redhat.com>
20565
20566         utimensat: do not reference an out-of-scope buffer
20567         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
20568         declared in an inner scope, yet "times" would be dereferenced outside
20569         the scope in which "ts" was valid.
20570         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
20571         of ts[2] "out/up", so that the use of aliased "times" (via
20572         "times = ts;") does not end up referencing an out-of-scope "ts"
20573
20574         opendir-safer.c: don't clobber errno; don't close negative FD
20575         * lib/opendir-safer.c (opendir_safer):
20576         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
20577         file descriptor, and more importantly, don't clobber the
20578         offending errno value with EINVAL.  Before, upon failure
20579         of dup_safer, we would pass the negative file descriptor to
20580         fdopendir, which would clobber errno.
20581
20582 2011-05-23  Bruno Haible  <bruno@clisp.org>
20583
20584         idcache: Fix module description.
20585         * modules/idcache (Include): Set to "idcache.h".
20586
20587 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
20588
20589         gnulib-tool: fix portability problem with MacOS sed
20590         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
20591         before the "}".  Problem reported by Leo in
20592         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
20593         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
20594         sed_extract_condition1, sed_extract_condition2.
20595
20596 2011-05-23  Bruno Haible  <bruno@clisp.org>
20597
20598         hash: Simplify autoconf macro.
20599         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
20600
20601 2011-05-23  Bruno Haible  <bruno@clisp.org>
20602
20603         getugroups: Fix module description.
20604         * modules/getugroups (Include): Set to "getugroups.h".
20605
20606 2011-05-23  Bruno Haible  <bruno@clisp.org>
20607
20608         linkat: Simplify autoconf macro.
20609         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
20610
20611 2011-05-23  Bruno Haible  <bruno@clisp.org>
20612             Eric Blake  <eblake@redhat.com>
20613
20614         linkat, renameat: Update dependencies.
20615         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
20616         * modules/linkat (Depends-on): Likewise. Remove also readlink,
20617         symlinkat.
20618
20619 2011-05-23  Jim Meyering  <meyering@redhat.com>
20620
20621         maint.mk: more tight_scope improvements
20622         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
20623         (_gl_TS_headers): Define only in if-0'd block.
20624         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
20625         sometimes we must *not* use it.  Adjust uses accordingly.
20626         (sc_tight_scope): Use much simpler grep-based test to determine
20627         whether we skip this rule.
20628
20629         maint.mk: generalize/improve the tight-scope rule
20630         * top/maint.mk: Emit a warning when the test is skipped.
20631         (_gl_TS_dir): Add $(srcdir)/ prefix.
20632         (_gl_TS_function_match): Simplify, rather than trying
20633         to enumerate common types.  Otherwise, it would fail to match an
20634         "extern unsigned char const *" declaration in idutils.
20635         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
20636         a way to support use of that type of macro.
20637         (_gl_TS_var_match): Simplify regexp.
20638         (_gl_TS_obj_files): New configurable variable.
20639         (_gl_TS_headers): Likewise.
20640
20641 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
20642
20643         verify: fix bug when gnulib <assert.h> is also included
20644         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
20645         is defined, not if _GL_STATIC_ASSERT_H is not defined.
20646         Perhaps there's a better way, but this fixes the immediate problem.
20647         Problem reported by Bruno Haible in
20648         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
20649
20650 2011-05-22  Bruno Haible  <bruno@clisp.org>
20651
20652         xgetcwd: Simplify autoconf macro.
20653         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
20654
20655 2011-05-22  Bruno Haible  <bruno@clisp.org>
20656
20657         New module 'mktime-internal'.
20658         * modules/mktime-internal: New file.
20659         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
20660         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
20661         mktime_internal as a C macro if libc has __mktime_internal.
20662         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
20663         conditions.
20664         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
20665
20666 2011-05-22  Bruno Haible  <bruno@clisp.org>
20667
20668         timegm: Correct mktime replacement statements.
20669         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
20670         defining mktime as a C macro. This completes a 2009-07-28 commit.
20671
20672 2011-05-22  Bruno Haible  <bruno@clisp.org>
20673
20674         timegm: Simplify autoconf macro.
20675         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
20676
20677 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
20678
20679         clock-time: change to LGPLv2+.
20680         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
20681         BSD-like but we have no mark for that; this is good enough for now.
20682
20683 2011-05-21  Bruno Haible  <bruno@clisp.org>
20684
20685         strerror_r: Fix comments.
20686         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
20687
20688 2011-05-21  Bruno Haible  <bruno@clisp.org>
20689
20690         relocatable-prog-wrapper: Fix possible link error.
20691         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
20692         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
20693         (gl_FUNC_SETENV): ... to here.
20694         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
20695         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
20696
20697 2011-05-21  Bruno Haible  <bruno@clisp.org>
20698
20699         relocatable-prog-wrapper: Assume strerror() exists.
20700         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
20701         m4/strerror.m4.
20702         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
20703         * lib/relocwrapper.c: Remove mention of strerror module.
20704         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
20705         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
20706         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
20707         C macro.
20708
20709 2011-05-21  Bruno Haible  <bruno@clisp.org>
20710
20711         select: Simplify replacement idiom.
20712         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
20713         Win32 platforms.
20714         * lib/sys_select.in.h (select): Simplify accordingly.
20715         * modules/select (Depends-on): Likewise.
20716
20717 2011-05-21  Bruno Haible  <bruno@clisp.org>
20718
20719         mkdir-p: Simplify autoconf macro.
20720         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
20721         gl_FUNC_LCHOWN.
20722
20723 2011-05-21  Eric Blake  <eblake@redhat.com>
20724
20725         strerror_r: avoid clobbering strerror on cygwin
20726         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
20727         fall back instead to sys_errlist.
20728         * modules/strerror (configure.ac): Add witness.
20729         * tests/test-strerror_r.c (main): Enhance test.
20730         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
20731         * tests/test-perror2.c (main): Free memory before exit.
20732
20733 2011-05-21  Bruno Haible  <bruno@clisp.org>
20734
20735         mkdtemp: Use gnulib naming conventions.
20736         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
20737         * modules/mkdtemp (configure.ac): Update.
20738
20739 2011-05-20  Eric Blake  <eblake@redhat.com>
20740
20741         strerror_r: avoid corrupting errno on Solaris
20742         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
20743         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
20744
20745         strerror_r: avoid compiler warning
20746         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
20747
20748         strerror_r: simplify AIX code
20749         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
20750
20751         test-perror: avoid spurious failure on FreeBSD
20752         * modules/perror-tests (Depends-on): Add strerror, now that
20753         strerror_r no longer pulls it in.
20754
20755 2011-05-20  Bruno Haible  <bruno@clisp.org>
20756
20757         strerror_r-posix: Remove unused dependencies.
20758         * modules/strerror_r-posix (Depends-on): Remove strerror.
20759         Reported by Eric Blake.
20760
20761 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
20762
20763         intprops: remove assumption about A|B representation
20764         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
20765         is a valid integer if both A and B are.  Although this is true for
20766         all known practical hosts, the C standard doesn't guarantee it,
20767         and the code need not assume it.  Also, this change may work around
20768         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
20769         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
20770
20771 2011-05-20  Eric Blake  <eblake@redhat.com>
20772
20773         perror: work around FreeBSD bug
20774         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
20775         is broken.  Move AC_LIBOBJ...
20776         * modules/perror (configure.ac): Here.
20777         * doc/posix-functions/perror.texi (perror): Document this.
20778         * tests/test-perror2.c (main): Enhance test.
20779
20780         test-perror: check for strerror interactions
20781         * tests/macros.h (STREQ): Add macro.
20782         * modules/perror-tests (Files): Add second test.
20783         * tests/test-perror2.c (main): New file.
20784         * doc/posix-functions/perror.texi (perror): Document glibc bug.
20785
20786         test-perror: rewrite to use init script
20787         * modules/perror-tests (Files): Add init.sh.
20788         * tests/test-perror.sh: Use temporary directory.
20789
20790 2011-05-20  Jim Meyering  <meyering@redhat.com>
20791
20792         maint: replace misused "a" with "an"
20793         * doc/intprops.texi: "a integer"
20794         * doc/regex.texi: "a explanation"
20795         * lib/alignof.h: "a object"
20796         * lib/argmatch.h: "a explanation"
20797         * lib/argp-help.c: "a option" and "a OPTION_DOC"
20798         * lib/stdint.in.h: "a integer"
20799         * lib/userspec.c: "a owner"
20800         * doc/gnulib.texi: Fix "a idea", and reword.
20801
20802 2011-05-19  Jim Meyering  <meyering@redhat.com>
20803
20804         maint: correct misuse of "a" and "an"
20805         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
20806         * lib/argp-help.c: "an docum...": s/an/a/
20807         * lib/argp-parse.c: "An vector": s/An/A/
20808         * lib/execute.c: "an native": s/an/a/
20809         * lib/spawn-pipe.c: Likewise.
20810         * lib/gc.h: "an Gc_rc": s/an/a/
20811         * lib/unigbrk.in.h: "an grapheme": s/an/a/
20812         * lib/fts.c: "an stat.st_dev": s/an/a/
20813
20814 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
20815
20816         intprops-tests: work around HP-UX 11.23 cc bug with constants
20817         * tests/test-intprops.c (VERIFY): New macro.
20818         (main): Use it, instead of verify, to work around the compiler bug; see
20819         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
20820
20821         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
20822         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
20823         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
20824         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
20825         (_GL_REMAINDER_OVERFLOW): Use it.
20826
20827         intprops-tests: revert unsigned part of previous change
20828         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
20829         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
20830         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
20831         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
20832
20833 2011-05-19  Bruno Haible  <bruno@clisp.org>
20834
20835         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
20836         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
20837         strerror_r() returned without filling the buffer.
20838         Reported by Eric Blake.
20839
20840 2011-05-19  Eric Blake  <eblake@redhat.com>
20841
20842         strerror_r: guarantee unchanged errno
20843         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
20844         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
20845         failure.
20846         * tests/test-strerror_r.c (main): Enhance test.
20847
20848 2011-05-19  Bruno Haible  <bruno@clisp.org>
20849
20850         strerror_r: Reorder #if blocks.
20851         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
20852         for consistency with the previous commit.
20853
20854 2011-05-19  Bruno Haible  <bruno@clisp.org>
20855
20856         perror: Avoid clobbering the strerror buffer when possible.
20857         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
20858         * lib/strerror.c: Include it.
20859         * modules/strerror (Files): Add lib/strerror-impl.h.
20860         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
20861         (my_strerror): New function, defined through lib/strerror-impl.h.
20862         (perror): Use it instead of strerror.
20863         * modules/perror (Files): Add lib/strerror-impl.h.
20864         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
20865
20866 2011-05-19  Eric Blake  <eblake@redhat.com>
20867
20868         strerror_r: fix on newer cygwin
20869         * lib/strerror_r.c (strerror_r): Cygwin now has
20870         __xpg_strerror_r, use it.
20871
20872 2011-05-19  Bruno Haible  <bruno@clisp.org>
20873
20874         strerror_r: Avoid clobbering the strerror buffer when possible.
20875         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
20876         (sys_nerr, sys_errlist): New declarations.
20877         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
20878         HP-UX, native Win32, IRIX, and 32-bit Solaris.
20879         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
20880
20881 2011-05-19  Bruno Haible  <bruno@clisp.org>
20882
20883         strerror_r: Fix test failure on mingw.
20884         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
20885         EXTEND_STRERROR_R.
20886         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
20887         macros from errno.in.h instead.
20888
20889 2011-05-19  Eric Blake  <eblake@redhat.com>
20890
20891         strerror: relax test for Solaris
20892         * tests/test-strerror.c (main): Permit Solaris behavior.
20893         * tests/test-strerror_r.c (main): Likewise.
20894
20895         strerror: enforce POSIX ruling on strerror(0)
20896         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
20897         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
20898         * lib/strerror_r.c (rpl_strerror_r): Work around it.
20899         * doc/posix-functions/strerror.texi (strerror): Document it.
20900         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
20901         * tests/test-strerror.c (main): Strengthen test.
20902         * tests/test-strerror_r.c (main): Likewise.
20903
20904 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
20905
20906         intprop-tests: port to older and more-pedantic compilers
20907         * modules/intprops-tests (Files): Add tests/macros.h.
20908         * tests/test-intprops.c: Include macros.h.
20909         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
20910         it's no longer documented to expand to an integer constant expression.
20911         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
20912         argument is floating point, as it's no longer documented to expand
20913         to an integer constant expression in that case.
20914         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
20915         compiler bugs reported by Bruno Haible.  See
20916         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
20917         (U0, U1): New constants, to work around the same bugs.  Also,
20918         in tests, use e.g., "(unsigned int) 39" rather than "39u".
20919
20920         intprops: work around C compiler bugs
20921         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
20922         bug in Sun C 5.11 2010/08/13 and other compilers; see
20923         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
20924
20925         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
20926         * doc/intprops.texi (Integer Type Determination): Fix
20927         documentation for TYPE_IS_INTEGER: it returns an constant
20928         expression, not an integer constant expression.  Fix doc for
20929         TYPE_SIGNED: it returns an integer constant expression only if its
20930         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
20931         hardly worth documented that way....)
20932
20933 2011-05-18  Bruno Haible  <bruno@clisp.org>
20934
20935         strerror_r: Avoid clobbering the strerror buffer when possible.
20936         * lib/strerror_r.c (strerror_r): Merge the three implementations.
20937         Handle gnulib defined errno values here. When strerror() returns NULL
20938         or an empty string, return EINVAL.
20939         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
20940         gnulib defined errno values here.
20941         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
20942
20943 2011-05-18  Eric Blake  <eblake@redhat.com>
20944
20945         fnmatch: avoid compiler warning
20946         * lib/fnmatch_loop.c (FCT): Use correct type.
20947         Reported by Matthias Bolte.
20948
20949 2011-05-13  Jim Meyering  <meyering@redhat.com>
20950
20951         maint.mk: three new prohibit_<HDR>_without_use rules
20952         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
20953         (sc_prohibit_stdio-safer_without_use): Likewise.
20954         (sc_prohibit_xfreopen_without_use): Likewise.
20955
20956 2011-05-17  Jim Meyering  <meyering@redhat.com>
20957
20958         announce-gen: fail if the NEWS delta is empty
20959         If there's nothing noteworthy in NEWS, then either you forgot
20960         or you shouldn't be releasing.
20961         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
20962
20963 2011-05-17  Pádraig Brady <P@draigBrady.com>
20964
20965         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
20966         reserved symbols starting with double underscore from the check.
20967
20968 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
20969
20970         intprops: add doc
20971         * doc/intprops.texi: New file, documenting intprops.
20972         * doc/gnulib.texi (Particular Modules): Include it.
20973
20974         verify: add doc to gnulib manual and fix example
20975         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
20976         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
20977         (Compile-time Assertions): Fix example so it can't overflow.
20978
20979 2011-05-17  Jim Meyering  <meyering@redhat.com>
20980
20981         warnings.m4: don't usurp save_CPPFLAGS variable name
20982         * m4/warnings.m4: Prefix local temporary variable name with gl_.
20983
20984         doc: fix typo
20985         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
20986
20987 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
20988             Bruno Haible  <bruno@clisp.org>
20989
20990         doc: Tweak recent change.
20991         * README (Portability guidelines): Tweak new text.
20992         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
20993         Interix 6.1.
20994
20995 2011-05-16  Eric Blake  <eblake@redhat.com>
20996
20997         inttypes: avoid autoconf warning
20998         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
20999         * m4/stdint.m4 (gl_STDINT_H): Likewise.
21000
21001 2011-05-16  Sam Steingold <sds@gnu.org>
21002         and Eric Blake  <eblake@redhat.com>
21003
21004         vc-list-files: accept multiple directory operands
21005         * build-aux/vc-list-files: Iterate over all remaining operands.
21006
21007 2011-05-16  Bruno Haible  <bruno@clisp.org>
21008
21009         Fix confusion regarding deprecated modules.
21010         * modules/calloc (Status, Notice): Mark module as deprecated, not
21011         obsolete.
21012         * modules/fnmatch-posix (Status, Notice): Likewise.
21013         * modules/getdate (Status, Notice): Likewise.
21014         * modules/getopt (Status, Notice): Likewise.
21015         * modules/malloc (Status, Notice): Likewise.
21016         * modules/pipe (Status, Notice): Likewise.
21017         * modules/realloc (Status, Notice): Likewise.
21018         * modules/rename-dest-slash (Status, Notice): Likewise.
21019         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
21020         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
21021         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
21022         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
21023         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
21024
21025 2011-05-16  Bruno Haible  <bruno@clisp.org>
21026
21027         doc: List the target platforms.
21028         * doc/gnulib-intro.texi (Target Platforms): New section.
21029         * doc/gnulib.texi (Introduction): Update menu.
21030         * README (Portability guidelines): Refer to the new section. Update
21031         statement about oldest supported environment. Remove rationale why
21032         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
21033         unportable C89 function.
21034         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
21035         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
21036
21037 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
21038
21039         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
21040
21041 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
21042
21043         intprops-tests: new module
21044         * modules/intprops-tests, tests/test-intprops.c: New files.
21045
21046         intprops: add safe, portable integer overflow checking
21047         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
21048         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
21049         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
21050         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
21051         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
21052         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
21053         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
21054         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
21055         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
21056         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
21057         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
21058
21059 2011-05-12  James Youngman  <jay@gnu.org>
21060
21061         Add a test for glibc's Bugzilla bug #12378.
21062         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
21063         doesn't allow the literal matching of a lone "[" (which is
21064         required by POSIX).
21065         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
21066
21067 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
21068
21069         Sync glibc change fixing Bugzilla bug #12378.
21070         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
21071         beginning and fall back to matching as normal character if the
21072         string ends before the matching ']' is found.  This is what POSIX
21073         requires.
21074
21075 2011-05-13  Eric Blake  <eblake@redhat.com>
21076
21077         getcwd-lgpl: relax test for FreeBSD
21078         * doc/posix-functions/getcwd.texi (getcwd): Document portability
21079         issue.
21080         * tests/test-getcwd-lgpl.c (main): Relax test.
21081         Reported by Matthias Bolte.
21082
21083 2011-05-11  Eric Blake  <eblake@redhat.com>
21084
21085         test-fflush: silence compiler warning
21086         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
21087
21088 2011-05-11  Bruno Haible  <bruno@clisp.org>
21089
21090         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
21091         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
21092         * modules/canonicalize (Depends-on): Add 'nocrash'.
21093         * modules/canonicalize-lgpl (Depends-on): Likewise.
21094         * doc/posix-functions/realpath.texi: Update platforms list.
21095         Reported by Ryan Schmidt <ryandesign@macports.org>.
21096
21097 2011-05-11  Bruno Haible  <bruno@clisp.org>
21098
21099         group-member: Declare function in <unistd.h>.
21100         * lib/unistd.in.h (group_member): New declaration.
21101         * lib/group-member.h: Remove file.
21102         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
21103         * tests/test-unistd-c++.cc: Check signature of group_member.
21104         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
21105         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
21106         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
21107         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
21108         HAVE_GROUP_MEMBER.
21109         * modules/group-member (Files): Remove lib/group-member.h.
21110         (Depends-on): Add unistd. Specify conditions.
21111         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
21112         (Include): Change to <unistd.h>.
21113         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
21114         HAVE_GROUP_MEMBER.
21115         * NEWS: Mention the change.
21116         * lib/euidaccess.c: Don't include group-member.h.
21117
21118 2011-05-11  Bruno Haible  <bruno@clisp.org>
21119
21120         group-member: Document module.
21121         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
21122         module.
21123
21124 2011-05-11  Bruno Haible  <bruno@clisp.org>
21125
21126         fclose: Fix mistake earlier today.
21127         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
21128
21129 2011-05-11  Eric Blake  <eblake@redhat.com>
21130
21131         fclose: preserve fflush errors
21132         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
21133         Reported by Jim Meyering.
21134
21135         bootstrap: support a prereq of 'rpcgen -' on RHEL5
21136         * build-aux/bootstrap (check_versions): When no specific version
21137         is required, merely check that the app produces an exit status
21138         that indicates its existence.
21139
21140         maint.mk: drop redundant check
21141         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
21142         the same but better.
21143
21144 2011-05-11  Bruno Haible  <bruno@clisp.org>
21145
21146         fclose: Fix possible link error.
21147         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
21148         unregister_shadow_fd. Improve comments.
21149         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
21150         Eric Blake.
21151
21152 2011-05-11  Jim Meyering  <meyering@redhat.com>
21153
21154         maint.mk: improve "can not" detection and generalize rule name
21155         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
21156         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
21157         Use the same technique as in sc_prohibit_doubled_word, so that
21158         we recognize "can not" also when the words are separated by a newline.
21159         Suggested by Eric Blake.
21160         (perl_filename_lineno_text_): Define.  Factored out of...
21161         (prohibit_doubled_word_): ...here.  Use the new definition.
21162         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
21163         (prohibit_undesirable_word_seq_RE_): New overridable variable.
21164         (ignore_undesirable_word_sequence_RE_): New overridable variable.
21165
21166 2011-05-10  Eric Blake  <eblake@redhat.com>
21167
21168         fclose: avoid double close race when possible
21169         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
21170         all but WINDOWS_SOCKETS.
21171
21172 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
21173
21174         openat: correct new comment
21175         * lib/openat-proc.c (openat_proc_name): Correct the comment.
21176
21177 2011-05-10  Jim Meyering  <meyering@redhat.com>
21178
21179         openat: add comments
21180         * lib/openat-proc.c (openat_proc_name): Add comments,
21181         mostly from Eric Blake.
21182
21183 2011-05-09  Eric Blake  <eblake@redhat.com>
21184
21185         openat: reduce syscalls in first probe of /proc
21186         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
21187         be a directory.  Simplify the probe for .. bugs.
21188         * modules/openat (Depends-on): Drop same-inode.
21189         Reported by Bastien ROUCARIES.
21190
21191 2011-05-09  Jim Meyering  <meyering@redhat.com>
21192
21193         maint.mk: change semantics/name of tight_scope variables
21194         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
21195         Rename variables to align with semantics that make them more useful.
21196
21197         maint.mk: tweak new rule's name not to impinge
21198         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
21199         (sc_tight_scope): Use new rule name rather than $@-0.
21200
21201         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
21202         * top/maint.mk (sc_tight_scope): New rule.
21203         (sc_tight_scope-0): New rule, ifdef'd out.
21204         (_gl_TS_dir): Default.
21205         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
21206         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
21207
21208 2011-05-09  Simon Josefsson  <simon@josefsson.org>
21209
21210         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
21211         Haible <bruno@clisp.org>.
21212
21213 2011-05-08  Bruno Haible  <bruno@clisp.org>
21214
21215         Comments.
21216         * m4/isnanf.m4: Add comment.
21217         * m4/isnanl.m4: Likewise.
21218
21219 2011-05-08  Bruno Haible  <bruno@clisp.org>
21220
21221         glob: Remove obsolete macro.
21222         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
21223
21224 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
21225
21226         intprops: Sun C 5.11 supports __typeof__
21227         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
21228         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
21229         which is new.
21230         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
21231
21232         intprops: switch to usual gnulib indenting and naming
21233         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
21234         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
21235
21236         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
21237
21238 2011-05-08  Jim Meyering  <meyering@redhat.com>
21239
21240         maint.mk: suppress "Entering/Leaving directory" diag in announcement
21241         * top/maint.mk (release-prep): Use make's --no-print-directory
21242         option when generating the announcement.  This eliminates the
21243         pesky "make[2]: Entering/Leaving directory" diagnostics in the
21244         generated announcement template.
21245
21246 2011-05-08  Bruno Haible  <bruno@clisp.org>
21247
21248         tzset: Fix gettimeofday wrapper on Solaris 2.6.
21249         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
21250         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
21251
21252 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
21253
21254         ignore-value, verify: Omit include files from lib_SOURCES.
21255         * modules/ignore-value, modules/verify (Makefile.am):
21256         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
21257         that leads Automake to duplicate use of am__objects_... variables
21258         in Makefile.in.  See
21259         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
21260
21261 2011-05-07  Bruno Haible  <bruno@clisp.org>
21262
21263         fclose: Simplify autoconf macro.
21264         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
21265         defined.
21266
21267 2011-05-07  Bruno Haible  <bruno@clisp.org>
21268
21269         canonicalize-lgpl: Fix autoconf macro ordering bug.
21270         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
21271         gl_STDLIB_H_DEFAULTS.
21272
21273 2011-05-06  Eric Blake  <eblake@redhat.com>
21274
21275         maintainer-makefile: make sc_po_check easier to tune
21276         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
21277         to probe for strings, such as an alternate location for gnulib.
21278
21279         fclose: guarantee behavior on seekable stdin
21280         * modules/fclose (Depends-on): Add fflush.
21281         * doc/posix-functions/fclose.texi (fclose): Document this.
21282         * tests/test-fclose.c (main): Make test for this unconditional.
21283
21284 2011-05-06  Bruno Haible  <bruno@clisp.org>
21285
21286         fflush, fpurge: Relicense under LGPLv2+.
21287         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
21288         * modules/fpurge (License): Likewise.
21289         With permission from Eric Blake and Jim Meyering.
21290         Suggested by Eric Blake.
21291
21292 2011-05-06  Karl Berry  <karl@gnu.org>
21293
21294         * MODULES.html.sh (func_all_modules): remove exit.
21295
21296 2011-05-06  Jim Meyering  <meyering@redhat.com>
21297
21298         maint.mk: use info-gnu@ as the default only for a stable release
21299         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
21300         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
21301         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
21302         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
21303
21304 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
21305
21306         assert-h: new module, which supports C1X-style static_assert
21307         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
21308         * lib/verify.h: Revamp so that this can be copied into assert.h,
21309         while retaining the ability to use it standalone as before.
21310         Rename private identifiers so as not to encroach on the
21311         standard C namespace, since this is now used by assert.h.
21312         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
21313         the old verify_true.
21314         (_GL_VERIFY_TRUE): New macro, with much of the contents of
21315         the old verify_true.  Use _GL_VERIFY_TYPE.
21316         (_GL_VERIFY): New macro, with much of the contents of the old verify.
21317         (static_assert): New macro, if _GL_STATIC_ASSERT_H
21318         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
21319         defined when this file is copied into the replacement assert.h.
21320         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
21321         and _Static_assert is not built in.
21322         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
21323         defined, and use the new macros mentioned above.
21324         * doc/posix-headers/assert.texi: Document this.
21325
21326 2011-05-05  Bruno Haible  <bruno@clisp.org>
21327
21328         fclose, fflush: Respect rules for use of AC_LIBOBJ.
21329         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
21330         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
21331         gl_REPLACE_FCLOSE here.
21332         * modules/fflush (Depends-on): Remove fclose.
21333         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
21334         combination with module 'fclose'.
21335
21336 2011-05-05  Bruno Haible  <bruno@clisp.org>
21337
21338         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
21339         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
21340         gl_FUNC_FFLUSH.
21341         (gl_FUNC_FFLUSH): Use it.
21342         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
21343         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
21344         gl_REPLACE_FSEEKO here.
21345
21346 2011-05-05  Bruno Haible  <bruno@clisp.org>
21347
21348         tzset: Relicense under LGPL.
21349         * modules/tzset (License): Change to LGPL.
21350         No agreement needed; it's a no-op.
21351
21352         strtoimax, strtoumax: Relicense under LGPL.
21353         * modules/strtoimax (License): Change to LGPL.
21354         * modules/strtoumax (License): Likewise.
21355         With permission from Jim Meyering, Paul Eggert:
21356         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
21357         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
21358
21359         getgroups: Relicense under LGPL.
21360         * modules/getgroups (License): Change to LGPL.
21361         With permission from Jim Meyering, Paul Eggert, Eric Blake:
21362         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
21363         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
21364         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21365
21366         nanosleep: Relicense under LGPL.
21367         * modules/nanosleep (License): Change to LGPL.
21368         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
21369         Haible:
21370         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
21371         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
21372         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21373         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
21374
21375         futimens: Relicense under LGPL.
21376         * modules/futimens (License): Change to LGPL.
21377         With permission from Eric Blake:
21378         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21379
21380         fflush: Relicense under LGPL.
21381         * modules/fflush (License): Change to LGPL.
21382         With permission from Eric Blake, Bruno Haible, Jim Meyering:
21383         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21384         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
21385         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
21386
21387         tmpfile: Relicense under LGPL.
21388         * modules/tmpfile (License): Change to LGPL.
21389         With permission from Ben Pfaff:
21390         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
21391
21392         isfinite: Relicense under LGPL.
21393         * modules/isfinite (License): Change to LGPL.
21394         With permission from Ben Pfaff, Bruno Haible:
21395         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
21396         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
21397
21398         acosl..tanl: Relicense under LGPL.
21399         * modules/acosl (License): Change to LGPL.
21400         * modules/asinl (License): Likewise.
21401         * modules/atanl (License): Likewise.
21402         * modules/cosl (License): Likewise.
21403         * modules/expl (License): Likewise.
21404         * modules/logl (License): Likewise.
21405         * modules/sinl (License): Likewise.
21406         * modules/sqrtl (License): Likewise.
21407         * modules/tanl (License): Likewise.
21408         Source code originally from glibc and Paolo Bonzini. Agreements:
21409         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
21410         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
21411
21412 2011-05-05  Bruno Haible  <bruno@clisp.org>
21413
21414         signal: Define sighandler_t.
21415         * lib/signal.in.h (sighandler_t): New type.
21416         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
21417         whether sighandler_t is defined.
21418         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
21419         * modules/signal (Depends-on): Add extensions.
21420         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
21421         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
21422         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
21423
21424 2011-05-05  Eric Blake  <eblake@redhat.com>
21425
21426         maint: remove useless REPLACE_*_H macros
21427         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
21428         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
21429         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
21430         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
21431         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
21432         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
21433         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
21434         * m4/btowc.m4: Update callers.
21435         * m4/dirfd.m4: Likewise.
21436         * m4/duplocale.m4: Likewise.
21437         * m4/fchdir.m4: Likewise.
21438         * m4/fdopendir.m4: Likewise.
21439         * m4/inet_ntop.m4: Likewise.
21440         * m4/inet_pton.m4: Likewise.
21441         * m4/ioctl.m4: Likewise.
21442         * m4/mbrlen.m4: Likewise.
21443         * m4/mbrtowc.m4: Likewise.
21444         * m4/mbsinit.m4: Likewise.
21445         * m4/mbsnrtowcs.m4: Likewise.
21446         * m4/mbsrtowcs.m4: Likewise.
21447         * m4/poll.m4: Likewise.
21448         * m4/setlocale.m4: Likewise.
21449         * m4/wcrtomb.m4: Likewise.
21450         * m4/wcsnrtombs.m4: Likewise.
21451         * m4/wcsrtombs.m4: Likewise.
21452         * m4/wctob.m4: Likewise.
21453         * m4/wcwidth.m4: Likewise.
21454         * modules/posix_spawn: Likewise.
21455         * modules/posix_spawn_file_actions_addclose: Likewise.
21456         * modules/posix_spawn_file_actions_adddup2: Likewise.
21457         * modules/posix_spawn_file_actions_addopen: Likewise.
21458         * modules/posix_spawn_file_actions_destroy: Likewise.
21459         * modules/posix_spawn_file_actions_init: Likewise.
21460         * modules/posix_spawnattr_destroy: Likewise.
21461         * modules/posix_spawnattr_getflags: Likewise.
21462         * modules/posix_spawnattr_getpgroup: Likewise.
21463         * modules/posix_spawnattr_getschedparam: Likewise.
21464         * modules/posix_spawnattr_getschedpolicy: Likewise.
21465         * modules/posix_spawnattr_getsigdefault: Likewise.
21466         * modules/posix_spawnattr_getsigmask: Likewise.
21467         * modules/posix_spawnattr_init: Likewise.
21468         * modules/posix_spawnattr_setflags: Likewise.
21469         * modules/posix_spawnattr_setpgroup: Likewise.
21470         * modules/posix_spawnattr_setschedparam: Likewise.
21471         * modules/posix_spawnattr_setschedpolicy: Likewise.
21472         * modules/posix_spawnattr_setsigdefault: Likewise.
21473         * modules/posix_spawnattr_setsigmask: Likewise.
21474         * modules/posix_spawnp: Likewise.
21475
21476 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
21477
21478         Add option to do-release-commit-and-tag to specify branch.
21479         * build-aux/do-release-commit-and-tag: Add --branch.
21480
21481 2011-05-03  Bruno Haible  <bruno@clisp.org>
21482
21483         Avoid unnecessary compilation units, through conditional dependencies.
21484         * modules/accept (Depends-on): Add conditions to the dependencies.
21485         * modules/acosl (Depends-on): Likewise.
21486         * modules/argz (Depends-on): Likewise.
21487         * modules/asinl (Depends-on): Likewise.
21488         * modules/atanl (Depends-on): Likewise.
21489         * modules/atoll (Depends-on): Likewise.
21490         * modules/bind (Depends-on): Likewise.
21491         * modules/btowc (Depends-on): Likewise.
21492         * modules/canonicalize-lgpl (Depends-on): Likewise.
21493         * modules/ceil (Depends-on): Likewise.
21494         * modules/ceilf (Depends-on): Likewise.
21495         * modules/ceill (Depends-on): Likewise.
21496         * modules/chdir-long (Depends-on): Likewise.
21497         * modules/chown (Depends-on): Likewise.
21498         * modules/close (Depends-on): Likewise.
21499         * modules/connect (Depends-on): Likewise.
21500         * modules/cosl (Depends-on): Likewise.
21501         * modules/dirfd (Depends-on): Likewise.
21502         * modules/dprintf (Depends-on): Likewise.
21503         * modules/dprintf-posix (Depends-on): Likewise.
21504         * modules/error (Depends-on): Likewise.
21505         * modules/euidaccess (Depends-on): Likewise.
21506         * modules/expl (Depends-on): Likewise.
21507         * modules/faccessat (Depends-on): Likewise.
21508         * modules/fchdir (Depends-on): Likewise.
21509         * modules/fclose (Depends-on): Likewise.
21510         * modules/fcntl (Depends-on): Likewise.
21511         * modules/fdopendir (Depends-on): Likewise.
21512         * modules/fflush (Depends-on): Likewise.
21513         * modules/floor (Depends-on): Likewise.
21514         * modules/floorf (Depends-on): Likewise.
21515         * modules/floorl (Depends-on): Likewise.
21516         * modules/fnmatch (Depends-on): Likewise.
21517         * modules/fopen (Depends-on): Likewise.
21518         * modules/fprintf-posix (Depends-on): Likewise.
21519         * modules/frexp (Depends-on): Likewise.
21520         * modules/frexp-nolibm (Depends-on): Likewise.
21521         * modules/frexpl (Depends-on): Likewise.
21522         * modules/frexpl-nolibm (Depends-on): Likewise.
21523         * modules/fseek (Depends-on): Likewise.
21524         * modules/fsusage (Depends-on): Likewise.
21525         * modules/ftell (Depends-on): Likewise.
21526         * modules/ftello (Depends-on): Likewise.
21527         * modules/futimens (Depends-on): Likewise.
21528         * modules/getcwd (Depends-on): Likewise.
21529         * modules/getcwd-lgpl (Depends-on): Likewise.
21530         * modules/getdelim (Depends-on): Likewise.
21531         * modules/getdomainname (Depends-on): Likewise.
21532         * modules/getgroups (Depends-on): Likewise.
21533         * modules/gethostname (Depends-on): Likewise.
21534         * modules/getline (Depends-on): Likewise.
21535         * modules/getlogin_r (Depends-on): Likewise.
21536         * modules/getopt-posix (Depends-on): Likewise.
21537         * modules/getpeername (Depends-on): Likewise.
21538         * modules/getsockname (Depends-on): Likewise.
21539         * modules/getsockopt (Depends-on): Likewise.
21540         * modules/getsubopt (Depends-on): Likewise.
21541         * modules/getusershell (Depends-on): Likewise.
21542         * modules/glob (Depends-on): Likewise.
21543         * modules/grantpt (Depends-on): Likewise.
21544         * modules/iconv_open (Depends-on): Likewise.
21545         * modules/iconv_open-utf (Depends-on): Likewise.
21546         * modules/inet_ntop (Depends-on): Likewise.
21547         * modules/inet_pton (Depends-on): Likewise.
21548         * modules/ioctl (Depends-on): Likewise.
21549         * modules/isapipe (Depends-on): Likewise.
21550         * modules/isfinite (Depends-on): Likewise.
21551         * modules/isinf (Depends-on): Likewise.
21552         * modules/lchown (Depends-on): Likewise.
21553         * modules/ldexpl (Depends-on): Likewise.
21554         * modules/link (Depends-on): Likewise.
21555         * modules/linkat (Depends-on): Likewise.
21556         * modules/listen (Depends-on): Likewise.
21557         * modules/logl (Depends-on): Likewise.
21558         * modules/lstat (Depends-on): Likewise.
21559         * modules/mbrlen (Depends-on): Likewise.
21560         * modules/mbrtowc (Depends-on): Likewise.
21561         * modules/mbsinit (Depends-on): Likewise.
21562         * modules/mbsnrtowcs (Depends-on): Likewise.
21563         * modules/mbsrtowcs (Depends-on): Likewise.
21564         * modules/mbtowc (Depends-on): Likewise.
21565         * modules/memcmp (Depends-on): Likewise.
21566         * modules/mkdir (Depends-on): Likewise.
21567         * modules/mkdtemp (Depends-on): Likewise.
21568         * modules/mkfifo (Depends-on): Likewise.
21569         * modules/mkfifoat (Depends-on): Likewise.
21570         * modules/mknod (Depends-on): Likewise.
21571         * modules/mkostemp (Depends-on): Likewise.
21572         * modules/mkostemps (Depends-on): Likewise.
21573         * modules/mkstemp (Depends-on): Likewise.
21574         * modules/mkstemps (Depends-on): Likewise.
21575         * modules/mktime (Depends-on): Likewise.
21576         * modules/nanosleep (Depends-on): Likewise.
21577         * modules/open (Depends-on): Likewise.
21578         * modules/openat (Depends-on): Likewise.
21579         * modules/perror (Depends-on): Likewise.
21580         * modules/poll (Depends-on): Likewise.
21581         * modules/popen (Depends-on): Likewise.
21582         * modules/posix_spawn (Depends-on): Likewise.
21583         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
21584         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
21585         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
21586         * modules/posix_spawnp (Depends-on): Likewise.
21587         * modules/pread (Depends-on): Likewise.
21588         * modules/printf-posix (Depends-on): Likewise.
21589         * modules/ptsname (Depends-on): Likewise.
21590         * modules/putenv (Depends-on): Likewise.
21591         * modules/pwrite (Depends-on): Likewise.
21592         * modules/readline (Depends-on): Likewise.
21593         * modules/readlink (Depends-on): Likewise.
21594         * modules/readlinkat (Depends-on): Likewise.
21595         * modules/recv (Depends-on): Likewise.
21596         * modules/recvfrom (Depends-on): Likewise.
21597         * modules/regex (Depends-on): Likewise.
21598         * modules/remove (Depends-on): Likewise.
21599         * modules/rename (Depends-on): Likewise.
21600         * modules/renameat (Depends-on): Likewise.
21601         * modules/rmdir (Depends-on): Likewise.
21602         * modules/round (Depends-on): Likewise.
21603         * modules/roundf (Depends-on): Likewise.
21604         * modules/roundl (Depends-on): Likewise.
21605         * modules/rpmatch (Depends-on): Likewise.
21606         * modules/select (Depends-on): Likewise.
21607         * modules/send (Depends-on): Likewise.
21608         * modules/sendto (Depends-on): Likewise.
21609         * modules/setenv (Depends-on): Likewise.
21610         * modules/setlocale (Depends-on): Likewise.
21611         * modules/setsockopt (Depends-on): Likewise.
21612         * modules/shutdown (Depends-on): Likewise.
21613         * modules/sigaction (Depends-on): Likewise.
21614         * modules/signbit (Depends-on): Likewise.
21615         * modules/sigprocmask (Depends-on): Likewise.
21616         * modules/sinl (Depends-on): Likewise.
21617         * modules/sleep (Depends-on): Likewise.
21618         * modules/snprintf (Depends-on): Likewise.
21619         * modules/snprintf-posix (Depends-on): Likewise.
21620         * modules/socket (Depends-on): Likewise.
21621         * modules/sprintf-posix (Depends-on): Likewise.
21622         * modules/sqrtl (Depends-on): Likewise.
21623         * modules/stat (Depends-on): Likewise.
21624         * modules/strchrnul (Depends-on): Likewise.
21625         * modules/strdup-posix (Depends-on): Likewise.
21626         * modules/strerror (Depends-on): Likewise.
21627         * modules/strerror_r-posix (Depends-on): Likewise.
21628         * modules/strndup (Depends-on): Likewise.
21629         * modules/strnlen (Depends-on): Likewise.
21630         * modules/strptime (Depends-on): Likewise.
21631         * modules/strsep (Depends-on): Likewise.
21632         * modules/strsignal (Depends-on): Likewise.
21633         * modules/strstr-simple (Depends-on): Likewise.
21634         * modules/strtod (Depends-on): Likewise.
21635         * modules/strtoimax (Depends-on): Likewise.
21636         * modules/strtok_r (Depends-on): Likewise.
21637         * modules/strtoumax (Depends-on): Likewise.
21638         * modules/symlink (Depends-on): Likewise.
21639         * modules/symlinkat (Depends-on): Likewise.
21640         * modules/tanl (Depends-on): Likewise.
21641         * modules/tcgetsid (Depends-on): Likewise.
21642         * modules/tmpfile (Depends-on): Likewise.
21643         * modules/trunc (Depends-on): Likewise.
21644         * modules/truncf (Depends-on): Likewise.
21645         * modules/truncl (Depends-on): Likewise.
21646         * modules/uname (Depends-on): Likewise.
21647         * modules/unlink (Depends-on): Likewise.
21648         * modules/unlockpt (Depends-on): Likewise.
21649         * modules/unsetenv (Depends-on): Likewise.
21650         * modules/usleep (Depends-on): Likewise.
21651         * modules/utimensat (Depends-on): Likewise.
21652         * modules/vasprintf (Depends-on): Likewise.
21653         * modules/vdprintf (Depends-on): Likewise.
21654         * modules/vdprintf-posix (Depends-on): Likewise.
21655         * modules/vfprintf-posix (Depends-on): Likewise.
21656         * modules/vprintf-posix (Depends-on): Likewise.
21657         * modules/vsnprintf (Depends-on): Likewise.
21658         * modules/vsnprintf-posix (Depends-on): Likewise.
21659         * modules/vsprintf-posix (Depends-on): Likewise.
21660         * modules/wcrtomb (Depends-on): Likewise.
21661         * modules/wcscasecmp (Depends-on): Likewise.
21662         * modules/wcscspn (Depends-on): Likewise.
21663         * modules/wcsdup (Depends-on): Likewise.
21664         * modules/wcsncasecmp (Depends-on): Likewise.
21665         * modules/wcsnrtombs (Depends-on): Likewise.
21666         * modules/wcspbrk (Depends-on): Likewise.
21667         * modules/wcsrtombs (Depends-on): Likewise.
21668         * modules/wcsspn (Depends-on): Likewise.
21669         * modules/wcsstr (Depends-on): Likewise.
21670         * modules/wcstok (Depends-on): Likewise.
21671         * modules/wcswidth (Depends-on): Likewise.
21672         * modules/wctob (Depends-on): Likewise.
21673         * modules/wctomb (Depends-on): Likewise.
21674         * modules/wctype (Depends-on): Likewise.
21675         * modules/wcwidth (Depends-on): Likewise.
21676         * modules/write (Depends-on): Likewise.
21677
21678 2011-05-03  Bruno Haible  <bruno@clisp.org>
21679
21680         Support for conditional dependencies.
21681         * doc/gnulib.texi (Module description): Document the syntax of
21682         conditional dependencies.
21683         * gnulib-tool: New option --conditional-dependencies.
21684         (func_usage): Document it.
21685         (cond_dependencies): New variable.
21686         (func_get_automake_snippet_conditional,
21687         func_get_automake_snippet_unconditional): New functions, extracted from
21688         func_get_automake_snippet.
21689         (func_get_automake_snippet): Use them.
21690         (sed_first_32_chars): New variable.
21691         (func_module_shellfunc_name): New function.
21692         (func_module_shellvar_name): New function.
21693         (func_module_conditional_name): New function.
21694         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
21695         func_cond_module_condition): New functions.
21696         (func_modules_transitive_closure): Add support for conditional
21697         dependencies.
21698         (func_emit_lib_Makefile_am): For a conditional module, enclose the
21699         conditional automake snippet in an automake conditional.
21700         (func_emit_autoconf_snippets): Emit shell functions that contain the
21701         code for conditional modules.
21702         (func_import, func_create_testdir): Update specification.
21703
21704 2011-05-03  Eric Blake  <eblake@redhat.com>
21705
21706         test-getaddrinfo: report error information
21707         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
21708
21709 2011-05-03  Jim Meyering  <meyering@redhat.com>
21710
21711         bootstrap: avoid build failure when $GZIP is set
21712         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
21713         program name.  If defined at all, it is supposed to list gzip options.
21714         Reported by Alan Curry in http://debbugs.gnu.org/8609
21715
21716 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
21717
21718         readme-release: new module with release instructions
21719         * modules/readme-release: New module.
21720         * top/README-release: New file, from coreutils, grep, diffutils.
21721         * MODULES.html.sh (Support for maintaining and releasing): Add it.
21722
21723 2011-05-02  Eric Blake  <eblake@redhat.com>
21724
21725         fflush: also replace fclose when fixing fflush
21726         * modules/fflush (Depends-on): Add fclose.
21727         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
21728         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
21729         memstreams with no backing fd.
21730         * doc/posix-functions/fclose.texi (fclose): Document the use of
21731         fflush module to fix the bug.
21732         * tests/test-fclose.c (main): Relax test when fclose is used in
21733         isolation.
21734
21735         fclose: add some tests
21736         * modules/fclose-tests: New test module.
21737         * tests/test-fclose.c: New file.
21738         * doc/posix-functions/fclose.texi (fclose): Document the bug.
21739
21740         fclose: reduced dependencies
21741         * modules/fclose (Depends-on): Switch from fflush/fseeko to
21742         simpler lseek.
21743         * lib/fclose.c (rpl_fclose): Likewise.
21744         Reported by Simon Josefsson.
21745
21746         exit: drop remaining clients
21747         * modules/argmatch (Depends-on): Replace exit with stdlib.
21748         * modules/copy-file (Depends-on): Likewise.
21749         * modules/execute (Depends-on): Likewise.
21750         * modules/exitfail (Depends-on): Likewise.
21751         * modules/obstack (Depends-on): Likewise.
21752         * modules/pagealign_alloc (Depends-on): Likewise.
21753         * modules/pipe-filter-gi (Depends-on): Likewise.
21754         * modules/pipe-filter-ii (Depends-on): Likewise.
21755         * modules/savewd (Depends-on): Likewise.
21756         * modules/spawn-pipe (Depends-on): Likewise.
21757         * modules/wait-process (Depends-on): Likewise.
21758         * modules/xsetenv (Depends-on): Likewise.
21759         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
21760         * modules/git-merge-changelog (Depends-on): Likewise.
21761         * modules/long-options (Depends-on): Likewise.
21762         * modules/pt_chown (Depends-on): Likewise.
21763         * modules/sysexits (Depends-on): Likewise.
21764
21765         freading: relax license from LGPLv3+ to LGPLv2+
21766         * modules/freading (License): Relax LGPL version.
21767
21768 2011-05-02  Bruno Haible  <bruno@clisp.org>
21769
21770         fchdir: Remove unused dependencies.
21771         * modules/fchdir (Depends-on): Remove include_next.
21772
21773 2011-05-02  Bruno Haible  <bruno@clisp.org>
21774
21775         gnulib-tool: Refactor.
21776         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
21777         from func_emit_autoconf_snippets.
21778         (func_emit_autoconf_snippets): Use it.
21779
21780 2011-05-02  Simon Josefsson  <simon@josefsson.org>
21781
21782         * NEWS: Document removal of 'exit'.
21783         * modules/exit: Remove file.
21784
21785 2011-05-01  Bruno Haible  <bruno@clisp.org>
21786
21787         Update DEPENDENCIES.
21788         * DEPENDENCIES (gettext): Recommend the newest release.
21789         Reported by Simon Josefsson.
21790
21791 2011-05-01  Bruno Haible  <bruno@clisp.org>
21792
21793         gnulib-tool: Reduce code duplication.
21794         * gnulib-tool (func_emit_autoconf_snippets): New function.
21795         (func_import, func_create_testdir): Use it.
21796
21797 2011-04-30  Eric Blake  <eblake@redhat.com>
21798
21799         fclose: don't fail on non-seekable input stream
21800         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
21801         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
21802         since fflush is allowed to fail in that case.
21803
21804 2011-04-30  Bruno Haible  <bruno@clisp.org>
21805
21806         dup3: cleanup
21807         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
21808
21809 2011-04-30  Bruno Haible  <bruno@clisp.org>
21810
21811         netdb: Make it work in C++ mode.
21812         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
21813         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
21814         module.
21815         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
21816         gl_MODULE_INDICATOR_FOR_TESTS.
21817         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
21818         * modules/netdb-c++-tests: New file.
21819         * tests/test-netdb-c++.cc: New file.
21820
21821 2011-04-30  Bruno Haible  <bruno@clisp.org>
21822
21823         New modules 'vfscanf', 'vscanf'.
21824         * modules/vfscanf: New file.
21825         * modules/vscanf: New file.
21826         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
21827         here.
21828         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
21829         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
21830
21831 2011-04-30  Bruno Haible  <bruno@clisp.org>
21832
21833         passfd: Add comments.
21834         * lib/passfd.c: Add comments about platforms.
21835
21836 2011-04-30  Bruno Haible  <bruno@clisp.org>
21837
21838         sys_uio: Make <sys/uio.h> self-contained.
21839         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
21840         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
21841
21842 2011-04-30  Bruno Haible  <bruno@clisp.org>
21843
21844         sys_socket: Ensure 'struct iovec' definition.
21845         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
21846         <sys/socket.h>.
21847         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
21848
21849 2011-04-30  Bruno Haible  <bruno@clisp.org>
21850
21851         sys_uio: Protect definition of 'struct iovec'.
21852         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
21853         it as a C struct.
21854
21855 2011-04-30  Bruno Haible  <bruno@clisp.org>
21856
21857         manywarnings: fix indentation
21858         * m4/manywarnings.m4: Indent by 2 spaces consistently.
21859
21860 2011-04-30  Pádraig Brady <P@draigBrady.com>
21861
21862         manywarnings: add -Wno-missing-field-initializers if needed.
21863         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
21864         option if it's needed to allow initialization with { 0, }
21865
21866 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
21867
21868         announce-gen: cosmetic improvement
21869         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
21870
21871 2011-04-29  Jim Meyering  <meyering@redhat.com>
21872
21873         vc-list-files: indent with spaces, not TABs
21874         * build-aux/vc-list-files: Convert leading TABs to spaces,
21875         to match the style of most other files in gnulib.
21876
21877         announce-gen: indent with spaces, not TABs
21878         * build-aux/announce-gen: Convert all TABs to spaces, to match
21879         the style of most other files in gnulib.
21880
21881 2011-04-29  Eric Blake  <eblake@redhat.com>
21882
21883         quotearg: avoid uninitialized variable use
21884         * lib/quotearg.c (quoting_options_from_style): Initialize
21885         remaining fields, and ensure that custom styles are only used via
21886         quoting_options rather than quoting_style.
21887
21888 2011-04-29  Jim Meyering  <meyering@redhat.com>
21889
21890         maint.mk: remove unused VC-tag variable
21891         * top/maint.mk (VC-tag): Remove unused variable.
21892
21893 2011-04-29  Bruno Haible  <bruno@clisp.org>
21894
21895         netdb: fix gai_strerror replacements
21896         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
21897         * modules/netdb: Substitute it.
21898
21899 2011-04-29  Jim Meyering  <meyering@redhat.com>
21900
21901         test-getcwd.c: avoid new set-but-not-used warning
21902         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
21903         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
21904         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
21905         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
21906
21907         test-hash.c: avoid a new shadowing warning
21908         * tests/test-hash.c (main): Don't shadow "dup".
21909
21910 2011-04-28  Eric Blake  <eblake@redhat.com>
21911
21912         getaddrinfo: fix gai_strerror signature
21913         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
21914         and work around mingw with UNICODE defined.
21915         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
21916         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
21917         * modules/netdb (Makefile.am): Substitute it.
21918         * lib/netdb.in.h (gai_strerror): Declare replacement.
21919         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
21920         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
21921         the fix.
21922
21923         getsockopt: avoid compiler warning
21924         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
21925         Reported by Matthias Bolte.
21926
21927         tests: drop unused link dependency
21928         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
21929         * modules/dirent-safer-tests (Makefile.am): Likewise.
21930         * modules/fdopendir-tests (Makefile.am): Likewise.
21931         * modules/mkfifoat-tests (Makefile.am): Likewise.
21932         * modules/openat-safer-tests (Makefile.am): Likewise.
21933         * modules/openat-tests (Makefile.am): Likewise.
21934         * modules/readlinkat-tests (Makefile.am): Likewise.
21935         * modules/symlinkat-tests (Makefile.am): Likewise.
21936         * modules/linkat-tests (Makefile.am): Likewise.
21937         (Depends-on): Switch to filenamecat-lgpl.
21938         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
21939         LIBINTL.
21940         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
21941         * tests/test-linkat.c (main): Don't require xalloc.
21942
21943         hash, mgetgroups: drop xalloc dependency
21944         * lib/hash.c (includes): Adjust includes.
21945         * lib/mgetgroups.c (includes): Likewise.
21946         (xgetgroups): Move...
21947         * lib/xgetgroups.c: ...to new file.
21948         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
21949         * modules/xgetgroups: New file, split from...
21950         * modules/mgetgroups: ...here.
21951         (Depends-on): Add xalloc-oversized.
21952         * modules/hash (Depends-on): Likewise.
21953         * modules/hash-tests (Depends-on): Drop xalloc.
21954         (test_hash_LDADD): Drop unused library.
21955         * tests/test-hash.c (main): Break xalloc dependency.
21956         (includes): Drop unused include.
21957
21958         xalloc-oversized: new module
21959         * modules/xalloc-oversized: New module.
21960         * modules/xalloc (Depends-on): Add it.
21961         * lib/xalloc.h (xalloc_oversized): Move...
21962         * lib/xalloc-oversized.h: ...into new file.
21963
21964         utimecmp: drop dependency on xmalloc
21965         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
21966         due to memory pressure.
21967         * modules/utimecmp (Depends-on): Drop xalloc.
21968
21969 2011-04-27  Eric Blake  <eblake@redhat.com>
21970
21971         getcwd: fix mingw bugs
21972         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
21973         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
21974         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
21975
21976 2011-04-27  Bruno Haible  <bruno@clisp.org>
21977
21978         mkstemps: Ensure declaration on MacOS X 10.5.
21979         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
21980         * doc/glibc-functions/mkstemps.texi: Document header file problem on
21981         MacOS X.
21982
21983 2011-04-27  Bruno Haible  <bruno@clisp.org>
21984
21985         mkstemp: More documentation.
21986         * doc/posix-functions/mkstemp.texi: Document header file problem on
21987         MacOS X.
21988
21989 2011-04-27  Bruno Haible  <bruno@clisp.org>
21990
21991         mkstemp: Tweak configure message when cross-compiling.
21992         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
21993         result as a guess.
21994
21995 2011-04-27  Bruno Haible  <bruno@clisp.org>
21996
21997         clean-temp: Clarify what it does.
21998         * lib/clean-temp.h: Add more comments.
21999         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
22000         module.
22001         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
22002         * doc/glibc-functions/mkstemps.texi: Likewise.
22003         * doc/glibc-functions/mkostemps.texi: Likewise.
22004
22005 2011-04-27  Eric Blake  <eblake@redhat.com>
22006
22007         fchdir: avoid extra chdir and fix test
22008         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
22009         getcwd-lgpl.
22010         * lib/fchdir.c (get_name): Any absolute name will do; it does not
22011         have to be canonical.
22012         (canonicalize_file_name): Drop unused macro.
22013         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
22014
22015         filenamecat-lgpl: fix licence
22016         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
22017         when it was first created.
22018
22019         linkat, renameat: add missing dependency
22020         * modules/linkat (Depends-on): Require getcwd-lgpl.
22021         * modules/renameat (Depends-on): Likewise.
22022
22023         tests: reduce dependencies
22024         * tests/test-linkat.c (main): Use lighter-weight getcwd.
22025         * tests/test-renameat.c (main): Likewise.
22026         * modules/linkat-tests (Depends-on): Relax dependency.
22027         * modules/renameat-tests (Depends-on): Likewise.
22028         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
22029         dependency explicit.
22030
22031         save-cwd: reduce default dependency
22032         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
22033         * lib/save-cwd.c: Update comments.
22034         * NEWS: Document the semantic change.
22035
22036         getcwd: enhance tests
22037         * tests/test-getcwd-lgpl.c: New file, taken from...
22038         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
22039         repeat long path stress tests from m4 probe.
22040         * modules/getcwd-lgpl-tests: New module.
22041         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
22042         * m4/getcwd-abort-bug.m4: Update comment.
22043         * m4/getcwd-path-max.m4: Likewise.
22044
22045         getcwd-lgpl: new module
22046         * modules/getcwd-lgpl: New module.
22047         * lib/getcwd-lgpl.c: New file.
22048         * doc/posix-functions/getcwd.texi (getcwd): Document it.
22049         * MODULES.html.sh (lacking POSIX:2008): Likewise.
22050         * modules/getcwd (configure.ac): Set C witness.
22051         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
22052
22053         getcwd: tweak comments
22054         * m4/getcwd-abort-bug.m4: Fix comments.
22055         * m4/getcwd-path-max.m4: Likewise.
22056         * m4/getcwd.m4: Likewise.
22057
22058 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
22059         and Eric Blake  <eblake@redhat.com>
22060
22061         mkstemp: replace if system version uses wrong permissions
22062         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
22063         read/write mode bits set in file created by mkstemp.
22064         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
22065
22066 2011-04-27  Eric Blake  <eblake@redhat.com>
22067
22068         passfd: avoid compiler warning
22069         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
22070         Reported by Laine Stump.
22071
22072 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
22073
22074         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
22075         required by the NetBSD (and perhaps other 4.4BSD derived) join.
22076
22077 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
22078         and Eric Blake  <eblake@redhat.com>
22079
22080         mkstemp: mention clean-temp module
22081         * lib/mkstemp.c: Add comment.
22082         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
22083
22084 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
22085
22086         inttypes: also provide default values for 32-bit tests
22087         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
22088         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
22089
22090 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
22091
22092         strtoumax: remove dependency on strtoimax
22093         This is like the strtoull change of yesterday.
22094         * modules/strtoumax (Files): Add lib/strtoimax.c.
22095         (Depends-on): Remove strtoimax and add verify.
22096
22097         inttypes-incomplete: new module
22098         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
22099         all but the PRI* and SCN* parts of gl_INTTYPES_H.
22100         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
22101         of gl_INTTYPES_H.
22102         (gl_INTTYPES_H): Rewrite in terms of these new macros.
22103         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
22104         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
22105         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
22106         * modules/strtoumax, modules/xstrtol (Depends-on):
22107         Depend on inttypes-incomplete, not inttypes.
22108         * modules/inttypes-incomplete: New module, containing the contents
22109         of the old modules/inttypes module, except that the Files: section
22110         omits m4/inttypes-pri.m4, and the configure.ac section invokes
22111         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
22112         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
22113         (Depends-on): Depend only on inttypes-incomplete.
22114         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
22115
22116         inttypes: omit now-redundant strtoimax and strtoumax work
22117         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
22118         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
22119
22120         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
22121         This supports apps that need pointers to strtoimax and strtoumax,
22122         and ports to HP-UX 11.00 64.bit, which has macros that expand to
22123         nonexistent functions.  See
22124         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
22125         et seq.
22126         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
22127         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
22128         a macro.
22129         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
22130
22131 2011-04-25  Simon Josefsson  <simon@josefsson.org>
22132
22133         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
22134
22135 2011-04-25  Bruno Haible  <bruno@clisp.org>
22136
22137         strtol, strtoul: Mark modules as obsolete.
22138         * modules/strtol (Status, Notice): New sections.
22139         * modules/strtoul (Status, Notice): New sections.
22140
22141 2011-04-25  Bruno Haible  <bruno@clisp.org>
22142
22143         strtod: Remove check for strtod, unless supporting old platforms.
22144         * modules/strtod-obsolete: New file.
22145         * m4/strtod-obsolete.m4: New file.
22146         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
22147         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
22148         * modules/strtod (Depends-on): Add strtod-obsolete.
22149         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
22150
22151 2011-04-25  Bruno Haible  <bruno@clisp.org>
22152
22153         strcase: Make module obsolete.
22154         * modules/strcase (Status, Notice): New sections.
22155
22156 2011-04-25  Bruno Haible  <bruno@clisp.org>
22157
22158         dup2: Remove check for dup2, unless supporting old obsolete platforms.
22159         * modules/dup2-obsolete: New file.
22160         * m4/dup2-obsolete.m4: New file.
22161         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
22162         gl_FUNC_DUP2_OBSOLETE is not also defined.
22163         * modules/dup2 (Depends-on): Add dup2-obsolete.
22164         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
22165
22166 2011-04-25  Bruno Haible  <bruno@clisp.org>
22167
22168         strnlen: Avoid memchr related link error on old obsolete platforms.
22169         * modules/memchr-obsolete: New file.
22170         * m4/memchr-obsolete.m4: New file.
22171         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
22172         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
22173         * modules/memchr (Depends-on): Add memchr-obsolete.
22174         * modules/strnlen (Depends-on): Likewise.
22175         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
22176
22177 2011-04-25  Jim Meyering  <meyering@redhat.com>
22178
22179         maint.mk: makefile_at_at_check extend and clean up
22180         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
22181         in addition to */Makefile.am.
22182         Exempt legitimate uses of @VAR@ notation, e.g.,
22183         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
22184         Remove obsolete coreutils-specific comment.
22185         Prompted by discussion here:
22186         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
22187
22188 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
22189
22190         strtoul: remove dependency on strtol
22191         This is so that 'configure' need not check for strtol merely because
22192         the application needs strtoul.
22193         * modules/strtoul (Files): Add lib/strtol.c.
22194         (Depends-on): Remove strtol.
22195
22196         strtoull: remove dependency on strtoul
22197         This is like the strtoll change.
22198         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
22199         (Depends-on): Remove strtoul.
22200
22201         strtoll: remove dependency on strtol
22202         This is so that 'configure' need not check for strtol merely because
22203         the application needs strtoll.
22204         * modules/strtoll (Files): Add lib/strtol.c.
22205         (Depends-on): Remove strtol.
22206
22207 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22208
22209         inttypes: Move some configure check to module 'imaxdiv'.
22210         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
22211         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
22212         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
22213
22214 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22215
22216         inttypes: Move some configure check to module 'imaxabs'.
22217         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
22218         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
22219         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
22220
22221 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22222
22223         inttypes: Remove configure tests that are not needed since 2009-12-31.
22224         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
22225         gl_cv_header_working_inttypes_h.
22226
22227 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22228
22229         * modules/strnlen (Depends-on): Remove memchr.
22230         The strnlen implementation doesn't need the memchr module's fixes; see
22231         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
22232
22233         strtol: remove dependency on wchar
22234         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
22235         * modules/strtol (Depends-on): Remove wchar.
22236
22237 2011-04-21  Eric Blake  <eblake@redhat.com>
22238
22239         passfd: fix test regression on Linux
22240         * modules/passfd-tests (configure.ac): Correct socketpair check.
22241
22242         passfd: speed up configure and drop unused code
22243         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
22244         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
22245         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
22246         Instead of probing at configure for unix_scm_rights_bsd44_way,
22247         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
22248         check to a struct member probe.
22249         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
22250         (sendfd, recvfd): Update preprocessor checks.
22251         * modules/passfd (Files): Reflect rename, and drop unused file.
22252         (Depends-on): Drop unused dependency.
22253
22254         passfd: allow compilation on mingw
22255         * modules/sys_socket (Depends-on): Add sys_uio.
22256         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
22257         iovec and a minimal struct msghdr.
22258         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
22259         * tests/test-sys_socket.c (main): Enhance test.
22260         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
22261         guaranteed to provide what we need.
22262         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
22263         * modules/passfd-tests (Depends-on): Add sys_wait.
22264         * tests/test-passfd.c (main): Skip test on mingw, for now.
22265         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
22266         partial 'struct msghdr' implementation.
22267
22268         sys_uio: new module
22269         * modules/sys_uio: New module.
22270         * modules/sys_uio-tests: Likewise.
22271         * lib/sys_uio.in.h: New file.
22272         * m4/sys_uio_h.m4: Likewise.
22273         * tests/test-sys_uio.c: Likewise.
22274         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
22275         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
22276
22277 2011-04-20  Jim Meyering  <meyering@redhat.com>
22278
22279         useless-if-before-free: avoid false-positive
22280         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
22281         disjunct so that it too requires a terminating ";".  Without that,
22282         this script would identify as useless one statement from gcc that
22283         was not:
22284           if (aligned_ptr)
22285             free (((void **) aligned_ptr) [-1]);
22286
22287 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
22288
22289         doc: update users.txt.
22290         * users.txt: Add barcode.
22291
22292 2011-04-19  Bruno Haible  <bruno@clisp.org>
22293
22294         ioctl: Remove link dependency on native Windows.
22295         * lib/fd-hook.h: Renamed from lib/close-hook.h.
22296         (gl_close_fn, gl_ioctl_fn): New types.
22297         (struct fd_hook): Renamed from struct close_hook. Change type of
22298         private_close_fn field. Add private_ioctl_fn field.
22299         (close_hook_fn): Add parameter for primary close method.
22300         (execute_close_hooks, execute_all_close_hooks): Likewise.
22301         (ioctl_hook_fn): New type.
22302         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
22303         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
22304         argument.
22305         (unregister_fd_hook): Renamed from unregister_close_hook.
22306         * lib/fd-hook.c: Renamed from lib/close-hook.c.
22307         Don't include <unistd.h>.
22308         (close): Remove undef.
22309         (anchor): Update.
22310         (execute_close_hooks): Add argument for primary close method.
22311         (execute_all_close_hooks): Likewise.
22312         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
22313         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
22314         argument. Allow each argument to be NULL.
22315         (unregister_fd_hook): Renamed from unregister_close_hook.
22316         * lib/close.c (rpl_close): Pass 'close' function pointer to
22317         execute_all_close_hooks.
22318         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
22319         (primary_ioctl): New function.
22320         (ioctl): Don't call ioctlsocket here. Instead, call
22321         execute_all_ioctl_hooks.
22322         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
22323         close method.
22324         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
22325         (fd_sockets_hook): Renamed from close_sockets_hook.
22326         (gl_sockets_startup, gl_sockets_cleanup): Update.
22327         * modules/fd-hook: Renamed from modules/close-hook. Update.
22328         * modules/close (Depends-on): Add fd-hook, remove close-hook.
22329         * modules/sockets (Depends-on): Likewise.
22330         * modules/ioctl (Depends-on): Add fd-hook.
22331         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
22332         GNULIB_SOCKET.
22333
22334 2011-04-19  Bruno Haible  <bruno@clisp.org>
22335
22336         Move the support of O_NONBLOCK in open() to the 'open' module.
22337         * modules/nonblocking (Depends-on): Remove 'open'.
22338         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
22339         gl_cv_have_open_O_NONBLOCK.
22340         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
22341         O_NONBLOCK support.
22342         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
22343
22344 2011-04-17  Bruno Haible  <bruno@clisp.org>
22345
22346         pipe2: Simplify code.
22347         * lib/pipe2.c (pipe2): Reduce code duplication.
22348
22349 2011-04-17  Bruno Haible  <bruno@clisp.org>
22350
22351         nonblocking: Add comment.
22352         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
22353
22354 2011-04-17  Bruno Haible  <bruno@clisp.org>
22355
22356         nonblocking: Add tests for sockets.
22357         * tests/test-nonblocking-socket.sh: New file.
22358         * tests/test-nonblocking-socket-main.c: New file.
22359         * tests/test-nonblocking-socket-child.c: New file.
22360         * tests/test-nonblocking-socket.h: New file.
22361         * tests/socket-server.h: New file.
22362         * tests/socket-client.h: New file.
22363         * modules/nonblocking-socket-tests: New file.
22364         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
22365
22366 2011-04-17  Bruno Haible  <bruno@clisp.org>
22367
22368         nonblocking: Add tests for pipes.
22369         * tests/test-nonblocking-pipe.sh: New file.
22370         * tests/test-nonblocking-pipe-main.c: New file.
22371         * tests/test-nonblocking-pipe-child.c: New file.
22372         * tests/test-nonblocking-pipe.h: New file.
22373         * tests/test-nonblocking-writer.h: New file.
22374         * tests/test-nonblocking-reader.h: New file.
22375         * tests/test-nonblocking-misc.h: New file.
22376         * modules/nonblocking-pipe-tests: New file.
22377         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
22378
22379 2011-04-16  Bruno Haible  <bruno@clisp.org>
22380
22381         gettext: Clarify the needed programmer actions.
22382         * modules/gettext (Notice): New field.
22383         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
22384
22385 2011-04-16  Bruno Haible  <bruno@clisp.org>
22386
22387         strchrnul: Tweak last commit.
22388         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
22389         bug.
22390         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
22391         as in _GL_FUNCDECL_SYS.
22392         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
22393         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
22394
22395 2011-04-15  Eric Blake  <eblake@redhat.com>
22396
22397         strchrnul: work around cygwin bug
22398         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
22399         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
22400         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
22401         * modules/string (Makefile.am): Substitute it.
22402         * lib/string.in.h (strchrnul): Use it.
22403
22404 2011-04-15  Bruno Haible  <bruno@clisp.org>
22405
22406         Don't require lib/stdio-write.c when only module 'stdio' is used.
22407         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
22408         invocation.
22409         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
22410
22411 2011-04-14  Bruno Haible  <bruno@clisp.org>
22412
22413         Support non-blocking pipe I/O in read() on native Windows.
22414         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
22415         (read): New declaration.
22416         * lib/read.c: New file.
22417         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
22418         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
22419         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
22420         vscanf): New declarations.
22421         * lib/stdio-read.c: New file.
22422         * m4/read.m4: New file.
22423         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
22424         REPLACE_READ.
22425         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
22426         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
22427         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
22428         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
22429         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
22430         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
22431         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
22432         * modules/read: New file.
22433         * modules/nonblocking (Files): Add lib/stdio-read.c.
22434         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
22435         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
22436         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
22437         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
22438         * modules/pread (Depends-on): Add read.
22439         * modules/safe-read (Depends-on): Likewise.
22440         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
22441         gets, scanf, vfscanf, vscanf): Verify signatures.
22442         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
22443         problem with non-blocking pipes.
22444         * doc/posix-functions/fgetc.texi: Likewise.
22445         * doc/posix-functions/fgets.texi: Likewise.
22446         * doc/posix-functions/fread.texi: Likewise.
22447         * doc/posix-functions/fscanf.texi: Likewise.
22448         * doc/posix-functions/getc.texi: Likewise.
22449         * doc/posix-functions/getchar.texi: Likewise.
22450         * doc/posix-functions/gets.texi: Likewise.
22451         * doc/posix-functions/scanf.texi: Likewise.
22452         * doc/posix-functions/vfscanf.texi: Likewise.
22453         * doc/posix-functions/vscanf.texi: Likewise.
22454
22455 2011-04-14  Bruno Haible  <bruno@clisp.org>
22456
22457         Support non-blocking pipe I/O in write() on native Windows.
22458         * lib/write.c (rpl_write): Split a write request that failed merely
22459         because the byte count was larger than the pipe buffer's size.
22460         * doc/posix-functions/write.texi: Mention the problem with large byte
22461         counts.
22462
22463 2011-04-14  Bruno Haible  <bruno@clisp.org>
22464
22465         wchar: Ensure that wchar_t gets defined on uClibc.
22466         * lib/wchar.in.h: On uClibc, include <stddef.h>.
22467         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
22468
22469 2011-04-13  Bruno Haible  <bruno@clisp.org>
22470
22471         safe-write, full-read: Avoid unnecessary compilation units.
22472         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
22473         (Depends-on): Remove safe-read. Add ssize_t.
22474         * modules/full-read (Files): Add lib/full-write.c.
22475         (Depends-on): Add full-write.
22476
22477 2011-04-13  Bruno Haible  <bruno@clisp.org>
22478
22479         Support non-blocking pipe I/O and SIGPIPE in pwrite().
22480         * modules/pwrite (Depends-on): Add 'write'.
22481
22482 2011-04-13  Bruno Haible  <bruno@clisp.org>
22483
22484         Support non-blocking pipe I/O in write() on native Windows.
22485         * lib/unistd.in.h (write): Enable replacement also if
22486         GNULIB_UNISTD_H_NONBLOCKING is 1.
22487         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
22488         (rpl_write): When failing to write on a non-blocking pipe, change
22489         errno from ENOSPC to EAGAIN.
22490         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
22491         putchar, puts, vfprintf, vprintf): Enable replacement also if
22492         GNULIB_STDIO_H_NONBLOCKING is 1.
22493         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
22494         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
22495         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
22496         CALL_WITH_SIGPIPE_EMULATION.
22497         (CALL_WITH_SIGPIPE_EMULATION): Use them.
22498         * m4/nonblocking.m4: New file.
22499         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
22500         for non-blocking I/O support.
22501         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22502         GNULIB_UNISTD_H_NONBLOCKING.
22503         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
22504         required for non-blocking I/O support.
22505         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
22506         * modules/nonblocking (Files): Add m4/nonblocking.m4,
22507         lib/stdio-write.c, m4/asm-underscore.m4.
22508         (Depends-on): Add stdio, unistd.
22509         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
22510         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
22511         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
22512         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
22513         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
22514         problem with non-blocking pipes.
22515         * doc/posix-functions/fputc.texi: Likewise.
22516         * doc/posix-functions/fputs.texi: Likewise.
22517         * doc/posix-functions/fwrite.texi: Likewise.
22518         * doc/posix-functions/printf.texi: Likewise.
22519         * doc/posix-functions/putc.texi: Likewise.
22520         * doc/posix-functions/putchar.texi: Likewise.
22521         * doc/posix-functions/puts.texi: Likewise.
22522         * doc/posix-functions/vfprintf.texi: Likewise.
22523         * doc/posix-functions/vprintf.texi: Likewise.
22524         * doc/posix-functions/write.texi: Likewise.
22525
22526 2011-04-10  Jim Meyering  <meyering@redhat.com>
22527
22528         maint.mk: prohibit doubled words
22529         Detect them also when they're separated by a newline.
22530         There are 3 ways to customize it:
22531           - disable the test on a per file basis, as usual with rules using
22532             $(VC_LIST_EXCEPT)
22533           - replace the default doubled-word-selecting regexp (affects all files)
22534           - ignore a particular file-vs-doubled-word match
22535         I nearly used that last one to ignore the "is is" match in
22536         coreutils' NEWS file, since the text was "ls -is is ..."
22537         To do that, I would have added this line to cfg.mk:
22538           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
22539         but it would have ignored any "is is" match in NEWS.
22540         Low probability, but still...
22541         Instead, I changed the text, slightly:
22542           -  ls -is is now consistent with ls -lis in ignoring values returned
22543           +  "ls -is" is now consistent with ls -lis in ignoring values returned
22544         * top/maint.mk (prohibit_double_word_RE_): Provide default.
22545         (prohibit_doubled_word_): Define.
22546         (sc_prohibit_doubled_word): New rule.
22547         (sc_prohibit_the_the): Remove.  Subsumed by the above.
22548
22549 2011-04-10  Jim Meyering  <meyering@redhat.com>
22550
22551         maint: fix doubled-word typo in comment
22552         * m4/gethostname.m4: s/is is/it is/
22553         * m4/getdomainname.m4: Likewise.
22554
22555 2011-04-10  Jim Meyering  <meyering@redhat.com>
22556
22557         maint: remove doubled word: s/it it/it/
22558         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
22559
22560 2011-04-10  Jim Meyering  <meyering@redhat.com>
22561
22562         maint.mk: remove useless semicolon and backslash
22563         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
22564         semicolon and backslash.
22565
22566 2011-04-10  Bruno Haible  <bruno@clisp.org>
22567
22568         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
22569         * modules/stdint-tests (Depends-on): Add wchar.
22570
22571 2011-04-10  Jim Meyering  <meyering@redhat.com>
22572
22573         maint: remove doubled words in comments, e.g., s/a a/a/
22574         * lib/strptime.c (day_of_the_week): s/the the/the/
22575         * tests/test-chown.h (test_chown): s/a a/a/
22576
22577         test-chown.h: correct a cast
22578         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
22579         when the destination is a stat.st_gid.
22580
22581 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
22582
22583         getaddrinfo: Fix test for sa_len member.
22584         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
22585         include <sys/types.h> before <sys/socket.h>.
22586
22587 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
22588
22589         maint: change "can not" to "cannot"
22590         * doc/posix-functions/iconv.texi (iconv): This one crossed line
22591         boundaries.
22592
22593 2011-04-09  Jim Meyering  <meyering@redhat.com>
22594
22595         maint: change "a a" to "a"
22596         * tests/test-lchown.h (test_lchown): s/a a/a/
22597
22598         maint.mk: prohibit \<the the\>
22599         * top/maint.mk (sc_prohibit_the_the): New rule.
22600
22601         maint: fix "the the" in comment
22602         * lib/count-one-bits.h: s/the the/the/
22603
22604         maint: change "can not" to "cannot"
22605         But do not change the occurrences in maintain.texi or in
22606         build-aux/po/Makefile.in.in, which I presume comes from gettext.
22607         * doc/gnulib-tool.texi: s/can not/cannot/
22608         * doc/posix-functions/accept.texi (accept): Likewise.
22609         * doc/posix-functions/socket.texi (socket): Likewise.
22610         * lib/mbrtowc.c: Likewise.
22611
22612         maint.mk: prohibit use of "can not"
22613         * top/maint.mk (sc_prohibit_can_not): New rule.
22614         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
22615
22616 2011-04-09  Bruno Haible  <bruno@clisp.org>
22617
22618         careadlinkat: Guard against misuse of careadlinkatcwd.
22619         * lib/careadlinkat.c: Include <stdlib.h>.
22620         (careadlinkatcwd): Check that the fd argument is as expected.
22621
22622 2011-04-09  Bruno Haible  <bruno@clisp.org>
22623
22624         careadlinkat: Use common coding style.
22625         * lib/careadlinkat.c: Move gnulib includes after system includes.
22626
22627 2011-04-09  Bruno Haible  <bruno@clisp.org>
22628
22629         careadlinkat: Clarify specification.
22630         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
22631         (careadlinkatcwd): Add comment.
22632         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
22633
22634 2011-04-09  Bruno Haible  <bruno@clisp.org>
22635
22636         areadlinkat: Avoid link error on many platforms.
22637         * modules/areadlinkat (Depends-on): Add areadlink.
22638
22639 2011-04-09  Bruno Haible  <bruno@clisp.org>
22640
22641         allocator, careadlinkat: Fix double-inclusion guard.
22642         * lib/allocator.h: Fix double-inclusion guard.
22643         * lib/careadlinkat.h: Likewise.
22644
22645 2011-04-09  Bruno Haible  <bruno@clisp.org>
22646
22647         relocatable-prog-wrapper: Update after module 'areadlink' changed.
22648         * lib/relocwrapper.c: Update dependencies hierarchy.
22649         * build-aux/install-reloc: Update list of files to be compiled.
22650         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
22651         lib/allocator.[hc].
22652
22653 2011-04-08  Eric Blake  <eblake@redhat.com>
22654
22655         strftime: silence gnulib-tool warning
22656         * modules/strftime-tests (Depends-on): Drop automatic dependency.
22657
22658 2011-04-08  Bruno Haible  <bruno@clisp.org>
22659
22660         verify: Fix syntax error with GCC 4.6 in C++ mode.
22661         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
22662         (HAVE_STATIC_ASSERT): New macro.
22663         (verify_true, verify): Use 'static_assert' if it is supported and
22664         '_Static_assert' is not supported.
22665
22666 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
22667
22668         allocator: New module.
22669         * modules/allocator, lib/allocator.c: New files.
22670         * lib/allocator.h (stdlib_allocator): New decl.
22671         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
22672         Remove.  Do not include <stdlib.h>.
22673         (careadlinkat): Use stdlib_allocator instead of rolling our own.
22674         * modules/careadlinkat (Files): Remove lib/allocator.h.
22675         (Depends-on): Add allocator.
22676
22677         stdlib: let modules use system malloc, realloc
22678         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
22679         if !_GL_USE_STDLIB_ALLOC.
22680         (malloc, realloc): Limit this change to a smaller scope.
22681
22682         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
22683         (malloc, realloc): Don't #undef; no longer needed.
22684         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22685         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22686         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
22687         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22688         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22689         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22690         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22691         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
22692
22693         careadlinkat: rename members to avoid problem
22694         * lib/allocator.h (struct allocator): Rename members from
22695         malloc/realloc to allocate/reallocate, to avoid problems if malloc
22696         and realloc are #define'd.  Reported by Eric Blake in
22697         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
22698         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
22699
22700 2011-04-08  Eric Blake  <eblake@redhat.com>
22701
22702         nonblocking: reduce dependency
22703         * tests/test-nonblocking.c: Only test sockets when in use.
22704         * modules/nonblocking-tests (Depends-on): Drop socket.
22705         (Makefile.am): Link even if sockets are not present.
22706         * modules/pipe2-tests (Makefile.am): Likewise.
22707         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
22708
22709         pipe2: fix O_NONBLOCK support on mingw
22710         * modules/pipe2 (Depends-on): Add nonblocking.
22711         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
22712         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
22713         * tests/test-nonblocking.c (main): Likewise.
22714         * modules/pipe2-tests (Makefile.am): Avoid link failure.
22715
22716         fcntl-h: fix O_ACCMODE on cygwin
22717         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
22718         * lib/fcntl.in.h (O_ACCMODE): Fix it.
22719
22720         pipe-filter: drop O_NONBLOCK workarounds
22721         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
22722         * modules/pipe-filter-ii (Depends-on): Likewise.
22723         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
22724
22725         nonblocking: provide O_NONBLOCK for mingw
22726         * modules/nonblocking (Depends-on): Add open.
22727         (configure.ac): Set new witness macro.
22728         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
22729         * modules/fcntl-h (Makefile.am): Substitute it.
22730         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
22731         nonblocking module is in use.
22732         * lib/nonblocking.c: Adjust portability test.
22733         * lib/open.c (open): Don't let native open see gnulib flag.
22734         * tests/test-fcntl-h.c (main): Enhance test.
22735         * tests/test-open.h (test_open): Likewise.
22736         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
22737
22738         careadlinkat: fix compilation error on mingw
22739         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
22740         within struct allocator.
22741
22742 2011-04-06  Eric Blake  <eblake@redhat.com>
22743
22744         binary-io: relicense under LGPLv2+
22745         * modules/binary-io (License): Relax to LGPLv2+.
22746         Requested for libvirt, and required by pipe2.
22747
22748 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
22749
22750         verify: use _Static_assert if available
22751         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
22752         (verify_true, verify): Use it if available.  This generates better
22753         diagnostics with GCC 4.6.0 and later.
22754
22755 2011-04-05  Bruno Haible  <bruno@clisp.org>
22756
22757         Remove leftover generated .h files after config.status changed.
22758
22759         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
22760         GL_GENERATE_ALLOCA_H.
22761         * modules/alloca-opt (Makefile.am): Remove alloca.h if
22762         GL_GENERATE_ALLOCA_H evaluates to false.
22763
22764         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
22765         GL_GENERATE_ARGZ_H.
22766         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
22767         evaluates to false.
22768
22769         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
22770         GL_GENERATE_BYTESWAP_H.
22771         * modules/byteswap (Makefile.am): Remove byteswap.h if
22772         GL_GENERATE_BYTESWAP_H evaluates to false.
22773
22774         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
22775         GL_GENERATE_ERRNO_H.
22776         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
22777         evaluates to false.
22778
22779         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
22780         GL_GENERATE_FLOAT_H.
22781         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
22782         evaluates to false.
22783
22784         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
22785         GL_GENERATE_FNMATCH_H.
22786         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
22787         GL_GENERATE_FNMATCH_H evaluates to false.
22788
22789         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
22790         GL_GENERATE_GLOB_H.
22791         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
22792         evaluates to false.
22793
22794         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
22795         automake conditional GL_GENERATE_ICONV_H.
22796         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
22797         evaluates to false.
22798
22799         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
22800         GL_GENERATE_NETINET_IN_H.
22801         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
22802         GL_GENERATE_NETINET_IN_H evaluates to false.
22803
22804         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
22805         conditional GL_GENERATE_PTHREAD_H.
22806         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
22807         * modules/pthread (Makefile.am): Remove pthread.h if
22808         GL_GENERATE_PTHREAD_H evaluates to false.
22809
22810         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
22811         GL_GENERATE_SCHED_H.
22812         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
22813         evaluates to false.
22814
22815         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
22816         conditional GL_GENERATE_SELINUX_CONTEXT_H.
22817         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
22818         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
22819
22820         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
22821         GL_GENERATE_STDARG_H.
22822         * modules/stdarg (Makefile.am): Remove stdarg.h if
22823         GL_GENERATE_STDARG_H evaluates to false.
22824
22825         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
22826         GL_GENERATE_STDBOOL_H.
22827         * modules/stdbool (Makefile.am): Remove stdbool.h if
22828         GL_GENERATE_STDBOOL_H evaluates to false.
22829
22830         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
22831         conditional GL_GENERATE_STDDEF_H.
22832         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
22833         * modules/stddef (Makefile.am): Remove stddef.h if
22834         GL_GENERATE_STDDEF_H evaluates to false.
22835
22836         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
22837         GL_GENERATE_STDINT_H.
22838         * modules/stdint (Makefile.am): Remove stdint.h if
22839         GL_GENERATE_STDINT_H evaluates to false.
22840
22841         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
22842         GL_GENERATE_SYSEXITS_H.
22843         * modules/sysexits (Makefile.am): Remove sysexits.h if
22844         GL_GENERATE_SYSEXITS_H evaluates to false.
22845
22846         Reported by Karl Berry and Ralf Wildenhues.
22847
22848 2011-04-05  Bruno Haible  <bruno@clisp.org>
22849
22850         Ensure to rebuild generated .h files when config.status has changed.
22851         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
22852         config.status.
22853         * modules/ctype (Makefile.am): Likewise.
22854         * modules/dirent (Makefile.am): Likewise.
22855         * modules/errno (Makefile.am): Likewise.
22856         * modules/fcntl-h (Makefile.am): Likewise.
22857         * modules/float (Makefile.am): Likewise.
22858         * modules/getopt-posix (Makefile.am): Likewise.
22859         * modules/glob (Makefile.am): Likewise.
22860         * modules/iconv-h (Makefile.am): Likewise.
22861         * modules/inttypes (Makefile.am): Likewise.
22862         * modules/langinfo (Makefile.am): Likewise.
22863         * modules/locale (Makefile.am): Likewise.
22864         * modules/math (Makefile.am): Likewise.
22865         * modules/netdb (Makefile.am): Likewise.
22866         * modules/netinet_in (Makefile.am): Likewise.
22867         * modules/poll-h (Makefile.am): Likewise.
22868         * modules/pthread (Makefile.am): Likewise.
22869         * modules/pty (Makefile.am): Likewise.
22870         * modules/sched (Makefile.am): Likewise.
22871         * modules/search (Makefile.am): Likewise.
22872         * modules/selinux-h (Makefile.am): Likewise.
22873         * modules/signal (Makefile.am): Likewise.
22874         * modules/spawn (Makefile.am): Likewise.
22875         * modules/stdarg (Makefile.am): Likewise.
22876         * modules/stdbool (Makefile.am): Likewise.
22877         * modules/stddef (Makefile.am): Likewise.
22878         * modules/stdint (Makefile.am): Likewise.
22879         * modules/stdio (Makefile.am): Likewise.
22880         * modules/stdlib (Makefile.am): Likewise.
22881         * modules/string (Makefile.am): Likewise.
22882         * modules/strings (Makefile.am): Likewise.
22883         * modules/sys_file (Makefile.am): Likewise.
22884         * modules/sys_ioctl (Makefile.am): Likewise.
22885         * modules/sys_select (Makefile.am): Likewise.
22886         * modules/sys_socket (Makefile.am): Likewise.
22887         * modules/sys_stat (Makefile.am): Likewise.
22888         * modules/sys_time (Makefile.am): Likewise.
22889         * modules/sys_times (Makefile.am): Likewise.
22890         * modules/sys_utsname (Makefile.am): Likewise.
22891         * modules/sys_wait (Makefile.am): Likewise.
22892         * modules/sysexits (Makefile.am): Likewise.
22893         * modules/termios (Makefile.am): Likewise.
22894         * modules/time (Makefile.am): Likewise.
22895         * modules/unistd (Makefile.am): Likewise.
22896         * modules/wchar (Makefile.am): Likewise.
22897         * modules/wctype-h (Makefile.am): Likewise.
22898         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
22899
22900 2011-04-05  Bruno Haible  <bruno@clisp.org>
22901
22902         pipe2: Relicense under LGPLv2+.
22903         * modules/pipe2 (License): Change to LGPLv2+.
22904         Requested by Eric Blake, for libvirt.
22905
22906 2011-04-05  Bruce Korb  <bkorb@gnu.org>
22907
22908         bootstrap: compute gnulib_extra_files after updating build_aux
22909         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
22910         change build_aux or also supply gnulib_extra_files.  Handle correctly.
22911
22912 2011-04-05  Eric Blake  <eblake@redhat.com>
22913
22914         bootstrap: preserve git whitelist item sorting
22915         * build-aux/bootstrap (sort_patterns): New function.
22916         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
22917
22918 2011-04-05  Simon Josefsson  <simon@josefsson.org>
22919
22920         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
22921         sc_space_tab check.
22922
22923 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
22924
22925         areadlink, areadlinkat: rewrite in terms of careadlinkat
22926         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
22927         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
22928         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
22929         (malloc, realloc): Remove #undefs.
22930         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
22931         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
22932         readlink, ssize_t, stdint, unistd.
22933         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
22934         areadlink, stdint.
22935
22936         careadlinkat: new module
22937         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
22938         * modules/careadlinkat: New files, written by me with
22939         a review and feedback from Ben Pfaff in
22940         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
22941
22942 2011-04-01  Bruno Haible  <bruno@clisp.org>
22943
22944         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
22945         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
22946         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
22947         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
22948         Reported by Bruce Korb <bruce.korb@gmail.com>.
22949
22950 2011-04-01  Bruno Haible  <bruno@clisp.org>
22951
22952         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
22953         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
22954         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
22955         * modules/wcpcpy (Depends-on): Add extensions.
22956         * modules/wcpncpy (Depends-on): Likewise.
22957         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
22958         systems.
22959         * doc/posix-functions/wcpncpy.texi: Likewise.
22960         * doc/posix-functions/wcwidth.texi: Likewise.
22961
22962 2011-03-31  Eric Blake  <eblake@redhat.com>
22963
22964         nonblocking: fix mingw test failures
22965         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
22966         non-blocking flag on regular file.
22967         (get_nonblocking_flag): Set errno on invalid fd.
22968         * tests/test-nonblocking.c (main): Avoid test failure on
22969         directories if fchdir is not active.
22970         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
22971
22972 2011-03-31  Bruno Haible  <bruno@clisp.org>
22973
22974         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
22975         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
22976         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
22977         Reported by Simon Josefsson <simon@josefsson.org>.
22978
22979 2011-03-31  Bruno Haible  <bruno@clisp.org>
22980         and Eric Blake  <eblake@redhat.com>
22981
22982         nonblocking: new module
22983         * modules/nonblocking: New module.
22984         * modules/nonblocking-tests: Likewise.
22985         * lib/nonblocking.h: New file.
22986         * lib/nonblocking.c: Likewise.
22987         * tests/test-nonblocking.c: New test.
22988         * lib/ioctl.c (ioctl) [mingw]: Update comment.
22989
22990 2011-03-30  Bruno Haible  <bruno@clisp.org>
22991
22992         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
22993         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
22994         instead of 'printf' format for GCC >= 4.4.
22995         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
22996         (fprintf, printf, vfprintf, vprintf): Declare with
22997         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
22998         the system's vfprintf() function.
22999         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
23000
23001 2011-03-30  Eric Blake  <eblake@redhat.com>
23002
23003         passfd: fix scoping bug
23004         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
23005         before sendmsg/recvmsg.
23006
23007         passfd: standardize coding conventions
23008         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
23009         can be learned at compile time.
23010         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
23011         ifdefs.
23012         (sendfd, recvfd): Follow gnulib code conventions.
23013
23014         passfd: fix incorrect sendmsg arguments
23015         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
23016         incorrect msg_controllen value.
23017         * modules/passfd-tests (Depends-on): Check for alarm.
23018         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
23019         Reported by Bastien ROUCARIES.
23020
23021 2011-03-30  Bruno Haible  <bruno@clisp.org>
23022
23023         c-strcasestr: Relicense under LGPLv2+.
23024         * modules/c-strcasestr (License): Change to LGPLv2+.
23025         Requested by Eric Blake, for libvirt.
23026
23027 2011-03-30  Simon Josefsson  <simon@josefsson.org>
23028
23029         * users.txt: Add libidn2.  Fix libtasn1 link.
23030
23031 2011-03-30  Jim Meyering  <meyering@redhat.com>
23032
23033         tests: readlink* ("",... fails with EINVAL on newer kernels
23034         readlink and readlinkat have typically failed with ENOENT for
23035         the invalid, empty file name,  "".  However, with the advent
23036         of linux-2.6.39, they fail with EINVAL.
23037         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
23038         when operating on the empty file name.
23039         * tests/test-readlink.h (test_readlink): Likewise.
23040
23041 2011-03-29  Bruno Haible  <bruno@clisp.org>
23042
23043         Relicense some modules under LGPLv2+, for libidn2.
23044         * modules/array-mergesort (License): Change to LGPLv2+.
23045         * modules/c-strcaseeq (License): Likewise.
23046         * modules/striconveh (License): Likewise.
23047         * modules/striconveha (License): Likewise.
23048         * modules/uniconv/base (License): Likewise.
23049         * modules/uniconv/u8-conv-from-enc (License): Likewise.
23050         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
23051         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
23052         * modules/unictype/base (License): Likewise.
23053         * modules/unictype/bidiclass-of (License): Likewise.
23054         * modules/unictype/category-M (License): Likewise.
23055         * modules/unictype/category-none (License): Likewise.
23056         * modules/unictype/category-of (License): Likewise.
23057         * modules/unictype/category-test (License): Likewise.
23058         * modules/unictype/category-test-withtable (License): Likewise.
23059         * modules/unictype/combining-class (License): Likewise.
23060         * modules/unictype/joiningtype-of (License): Likewise.
23061         * modules/unictype/scripts (License): Likewise.
23062         * modules/uninorm/base (License): Likewise.
23063         * modules/uninorm/canonical-decomposition (License): Likewise.
23064         * modules/uninorm/composition (License): Likewise.
23065         * modules/uninorm/decompose-internal (License): Likewise.
23066         * modules/uninorm/decomposition-table (License): Likewise.
23067         * modules/uninorm/nfc (License): Likewise.
23068         * modules/uninorm/nfd (License): Likewise.
23069         * modules/uninorm/u32-normalize (License): Likewise.
23070         * modules/unistr/base (License): Likewise.
23071         * modules/unistr/u32-cpy (License): Likewise.
23072         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
23073         * modules/unistr/u32-to-u8 (License): Likewise.
23074         * modules/unistr/u32-uctomb (License): Likewise.
23075         * modules/unistr/u8-check (License): Likewise.
23076         * modules/unistr/u8-mblen (License): Likewise.
23077         * modules/unistr/u8-mbtouc (License): Likewise.
23078         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
23079         * modules/unistr/u8-mbtoucr (License): Likewise.
23080         * modules/unistr/u8-prev (License): Likewise.
23081         * modules/unistr/u8-strlen (License): Likewise.
23082         * modules/unistr/u8-to-u32 (License): Likewise.
23083         * modules/unistr/u8-uctomb (License): Likewise.
23084         * modules/unitypes (License): Likewise.
23085         Requested by Simon Josefsson.
23086
23087 2011-03-29  Simon Josefsson  <simon@josefsson.org>
23088
23089         lib-symbol-visibility: Add a notice.
23090         * modules/lib-symbol-visibility (Notice): New field.
23091
23092 2011-03-29  Bruno Haible  <bruno@clisp.org>
23093
23094         getaddrinfo: Doc fix.
23095         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
23096         section "fixed in Gnulib".
23097
23098 2011-03-28  Simon Josefsson  <simon@josefsson.org>
23099
23100         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
23101         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
23102
23103 2011-03-26  Bruno Haible  <bruno@clisp.org>
23104
23105         unictype/property-byname: Reduce the number of load-time relocations.
23106         * lib/unictype/pr_byname.c: Include <stdlib.h>.
23107         (UC_PROPERTY_INDEX_*): New enumeration values.
23108         (uc_property_byname): Convert an index from the lookup table to an
23109         uc_property_t.
23110         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
23111         values.
23112
23113 2011-03-26  Bruno Haible  <bruno@clisp.org>
23114
23115         unictype/property-byname: Allow omitted word separators and aliases.
23116         * lib/unictype/pr_byname.gperf: Add property names without word
23117         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
23118         for 'space'.
23119
23120 2011-03-26  Bruno Haible  <bruno@clisp.org>
23121
23122         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
23123         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
23124         also hyphens to space.
23125         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
23126         without spaces.
23127         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
23128
23129 2011-03-26  Bruno Haible  <bruno@clisp.org>
23130
23131         unictype/joiningtype-byname: Recognize long names as well.
23132         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
23133         a long name.
23134         * lib/unictype/joiningtype_byname.c: Include <string.h>,
23135         unictype/joiningtype_byname.h.
23136         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
23137         * lib/unictype/joiningtype_byname.gperf: New file.
23138         * modules/unictype/joiningtype-byname (Files): Add
23139         lib/unictype/joiningtype_byname.gperf.
23140         (Depends-on): Add gperf.
23141         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
23142         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
23143         long names.
23144
23145         Tests for module 'unictype/joiningtype-longname'.
23146         * modules/unictype/joiningtype-longname-tests: New file.
23147         * tests/unictype/test-joiningtype_longname.c: New file.
23148
23149         New module 'unictype/joiningtype-longname'.
23150         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
23151         * lib/unictype/joiningtype_longname.c: New file.
23152         * modules/unictype/joiningtype-longname: New file.
23153         * modules/unictype/joiningtype-all (Depends-on): Add
23154         unictype/joiningtype-longname.
23155
23156 2011-03-26  Bruno Haible  <bruno@clisp.org>
23157
23158         unictype/bidiclass-byname: Recognize long names as well.
23159         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
23160         name.
23161         * lib/unictype/bidi_byname.c: Include <string.h>,
23162         unictype/bidi_byname.h.
23163         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
23164         * lib/unictype/bidi_byname.gperf: New file.
23165         * modules/unictype/bidiclass-byname (Files): Add
23166         lib/unictype/bidi_byname.gperf.
23167         (Depends-on): Add gperf.
23168         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
23169         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
23170         long names.
23171
23172         Tests for module 'unictype/bidiclass-longname'.
23173         * modules/unictype/bidiclass-longname-tests: New file.
23174         * tests/unictype/test-bidi_longname.c: New file.
23175
23176         New module 'unictype/bidiclass-longname'.
23177         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
23178         * lib/unictype/bidi_longname.c: New file.
23179         * modules/unictype/bidiclass-longname: New file.
23180         * modules/unictype/bidiclass-all (Depends-on): Add
23181         unictype/bidiclass-longname.
23182
23183 2011-03-26  Bruno Haible  <bruno@clisp.org>
23184
23185         unictype/bidi*: Rename modules.
23186         * modules/unictype/bidiclass-all: Renamed from
23187         modules/unictype/bidicategory-all.
23188         * modules/unictype/bidiclass-name: Renamed from
23189         modules/unictype/bidiclass-name.
23190         (Description): Update.
23191         * modules/unictype/bidiclass-name-tests: Renamed from
23192         modules/unictype/bidicategory-name-tests.
23193         * modules/unictype/bidiclass-byname: Renamed from
23194         modules/unictype/bidicategory-byname.
23195         (Description): Update.
23196         * modules/unictype/bidiclass-byname-tests: Renamed from
23197         modules/unictype/bidicategory-byname-tests.
23198         * modules/unictype/bidiclass-of: Renamed from
23199         modules/unictype/bidicategory-of.
23200         (Description): Update.
23201         * modules/unictype/bidiclass-of-tests: Renamed from
23202         modules/unictype/bidicategory-of-tests.
23203         * modules/unictype/bidiclass-test: Renamed from
23204         modules/unictype/bidicategory-test.
23205         (Description): Update.
23206         * modules/unictype/bidiclass-test-tests: Renamed from
23207         modules/unictype/bidicategory-test-tests.
23208         * modules/unictype/bidicategory-all: New file, a simple redirection.
23209         * modules/unictype/bidicategory-name: Likewise.
23210         * modules/unictype/bidicategory-byname: Likewise.
23211         * modules/unictype/bidicategory-of: Likewise.
23212         * modules/unictype/bidicategory-test: Likewise.
23213         * modules/unictype/property-bidi-* (Dependencies): Update.
23214         * lib/unictype/bidi_*.c: Update comment.
23215
23216 2011-03-26  Bruno Haible  <bruno@clisp.org>
23217
23218         unictype/bidi*: Rename functions, part 2.
23219         * modules/unictype/bidicategory-name (configure.ac): Update required
23220         libunistring version.
23221         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
23222
23223 2011-03-25  Bruno Haible  <bruno@clisp.org>
23224
23225         New module 'unictype/combining-class-all'.
23226         * modules/unictype/combining-class-all: New file.
23227
23228         Tests for module 'unictype/combining-class-byname'.
23229         * modules/unictype/combining-class-byname-tests: New file.
23230         * tests/unictype/test-combiningclass_byname.c: New file.
23231
23232         New module 'unictype/combining-class-byname'.
23233         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
23234         * lib/unictype/combiningclass_byname.c: New file.
23235         * lib/unictype/combiningclass_byname.gperf: New file.
23236         * modules/unictype/combining-class-byname: New file.
23237
23238         Tests for module 'unictype/combining-class-longname'.
23239         * modules/unictype/combining-class-longname-tests: New file.
23240         * tests/unictype/test-combiningclass_longname.c: New file.
23241
23242         New module 'unictype/combining-class-longname'.
23243         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
23244         * lib/unictype/combiningclass_longname.c: New file.
23245         * modules/unictype/combining-class-longname: New file.
23246
23247         Tests for module 'unictype/combining-class-name'.
23248         * modules/unictype/combining-class-name-tests: New file.
23249         * tests/unictype/test-combiningclass_name.c: New file.
23250
23251         New module 'unictype/combining-class-name'.
23252         * lib/unictype.in.h (uc_combining_class_name): New declaration.
23253         * lib/unictype/combiningclass_name.c: New file.
23254         * modules/unictype/combining-class-name: New file.
23255
23256 2011-03-25  Bruno Haible  <bruno@clisp.org>
23257
23258         unictype/combining-class: Rename source files.
23259         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
23260         of unictype/combining.h.
23261         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
23262         Update.
23263         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
23264         * modules/unictype/combining-class (Description): Fix.
23265         (Files, Makefile.am): Update.
23266         * tests/unictype/test-combiningclass.c: Renamed from
23267         tests/unictype/test-combining.c.
23268         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
23269
23270 2011-03-25  Bruno Haible  <bruno@clisp.org>
23271
23272         unictype: Update list of canonical combining classes.
23273         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
23274
23275 2011-03-25  Bruno Haible  <bruno@clisp.org>
23276
23277         unictype/category-byname: Recognize long names as well.
23278         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
23279         a long name.
23280         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
23281         unictype/categ_byname.h.
23282         (UC_CATEGORY_INDEX_*): New enumeration values.
23283         (uc_general_category_byname): Use uc_general_category_lookup and
23284         convert from index to value.
23285         * lib/unictype/categ_byname.gperf: New file.
23286         * modules/unictype/category-byname (Files): Add
23287         lib/unictype/categ_byname.gperf.
23288         (Depends-on): Add gperf.
23289         (Makefile.am): Add rule for generating unictype/categ_byname.h.
23290         * tests/unictype/test-categ_byname.c (main): Test the recognition of
23291         long names.
23292
23293         Tests for module 'unictype/category-longname'.
23294         * modules/unictype/category-longname-tests: New file.
23295         * tests/unictype/test-categ_longname.c: New file.
23296
23297         New module 'unictype/category-longname'.
23298         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
23299         * lib/unictype/categ_longname.c: New file.
23300         * modules/unictype/category-longname: New file.
23301         * modules/unictype/category-all (Depends-on): Add it.
23302
23303 2011-03-25  Bruno Haible  <bruno@clisp.org>
23304
23305         Tests for module 'unictype/category-LC'.
23306         * modules/unictype/category-LC-tests: New file.
23307         * tests/unictype/test-categ_LC.c: New file, automatically generated.
23308
23309         New module 'unictype/category-LC'.
23310         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
23311         (UC_CATEGORY_LC): New declaration.
23312         (UC_CASED_LETTER): New macro.
23313         * lib/gen-uni-tables.c (is_category_LC): New function.
23314         (output_categories): Also handle category LC.
23315         (UC_CATEGORY_MASK_LC): New enumeration value.
23316         (general_category_byname): Also handle category LC.
23317         * lib/unictype/categ_LC.c: New file.
23318         * lib/unictype/categ_LC.h: New file, automatically generated.
23319         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
23320         category LC.
23321         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
23322         * modules/unictype/category-LC: New file.
23323         * modules/unictype/category-byname (Depends-on): Add
23324         unictype/category-LC.
23325         * modules/unictype/category-all (Depends-on): Likewise.
23326
23327 2011-03-25  Eric Blake  <eblake@redhat.com>
23328
23329         xmalloc: revert yesterday's regression
23330         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
23331         realloc's underlying behavior (allowing allocation of zero-size
23332         objects, especially if malloc-gnu is also in use).
23333
23334 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
23335
23336         maint.mk: add missing version to VC-tag
23337         * top/maint.mk: git tag was missing actual tag name; add it.
23338
23339         valgrind: do leak checking, and exit with code 1 on error (not 0)
23340         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
23341         to VALGRIND.
23342
23343 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
23344
23345         posix-modules: say what it does.
23346         * posix-modules: Add a line to the --help output saying what it does.
23347
23348 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
23349
23350         xmalloc: Do not leak if underlying realloc is C99 compatible.
23351         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
23352         This avoids a leak on C99-based systems.  See
23353         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
23354
23355 2011-03-24  Eric Blake  <eblake@redhat.com>
23356
23357         realloc: document portability problem
23358         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
23359         passing 0 size to realloc.
23360
23361 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
23362
23363         doc: update users.txt
23364         * users.txt: Add cvsps, tmpwatch
23365
23366 2011-03-23  Matt Rice  <ratmice@gmail.com>
23367
23368         doc: update users.txt
23369         * users.txt: Add gdb.
23370
23371 2011-03-23  Jim Meyering  <meyering@redhat.com>
23372
23373         doc: update users.txt
23374         Looking through matches up to the following URL (there are still
23375         several more pages), I found several projects that use gnulib:
23376         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
23377         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
23378         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
23379
23380 2011-03-22  Bruno Haible  <bruno@clisp.org>
23381
23382         unictype/bidi*: Rename functions.
23383         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
23384         uc_bidi_class, uc_is_bidi_class): New declarations.
23385         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
23386         uc_bidi_category_byname.
23387         (uc_bidi_category_byname): New function.
23388         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
23389         u_bidi_category_name.
23390         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
23391         (uc_bidi_category_name): New function.
23392         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
23393         uc_bidi_category.
23394         (uc_bidi_category): New function.
23395         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
23396         uc_is_bidi_category. Invoke uc_bidi_class.
23397         (uc_is_bidi_category): New function.
23398         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
23399         instead of uc_bidi_category_byname.
23400         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
23401         instead of uc_bidi_category_name.
23402         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
23403         uc_bidi_category.
23404         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
23405         instead of uc_is_bidi_category.
23406
23407 2011-03-21  Bruno Haible  <bruno@clisp.org>
23408
23409         New module 'unictype/joininggroup-all'.
23410         * modules/unictype/joininggroup-all: New file.
23411
23412         Tests for module 'unictype/joininggroup-of'.
23413         * modules/unictype/joininggroup-of-tests: New file.
23414         * tests/unictype/test-joininggroup_of.c: New file.
23415         * tests/unictype/test-joininggroup_of.h: New file, automatically
23416         generated by gen-uni-tables.
23417
23418         New module 'unictype/joininggroup-of'.
23419         * modules/unictype/joininggroup-of: New file.
23420         * lib/unictype/joininggroup_of.c: New file.
23421         * lib/unictype/joininggroup_of.h: New file, automatically generated by
23422         gen-uni-tables.
23423
23424         Tests for module 'unictype/joininggroup-byname'.
23425         * modules/unictype/joininggroup-byname-tests: New file.
23426         * tests/unictype/test-joininggroup_byname.c: New file.
23427
23428         New module 'unictype/joininggroup-byname'.
23429         * modules/unictype/joininggroup-byname: New file.
23430         * lib/unictype/joininggroup_byname.c: New file.
23431         * lib/unictype/joininggroup_byname.gperf: New file.
23432
23433         Tests for module 'unictype/joininggroup-name'.
23434         * modules/unictype/joininggroup-name-tests: New file.
23435         * tests/unictype/test-joininggroup_name.c: New file.
23436
23437         New module 'unictype/joininggroup-name'.
23438         * modules/unictype/joininggroup-name: New file.
23439         * lib/unictype/joininggroup_name.c: New file.
23440         * lib/unictype/joininggroup_name.h: New file.
23441
23442         New module 'unictype/joiningtype-all'.
23443         * modules/unictype/joiningtype-all: New file.
23444
23445         Tests for module 'unictype/joiningtype-of'.
23446         * modules/unictype/joiningtype-of-tests: New file.
23447         * tests/unictype/test-joiningtype_of.c: New file.
23448         * tests/unictype/test-joiningtype_of.h: New file, automatically
23449         generated by gen-uni-tables.
23450
23451         New module 'unictype/joiningtype-of'.
23452         * modules/unictype/joiningtype-of: New file.
23453         * lib/unictype/joiningtype_of.c: New file.
23454         * lib/unictype/joiningtype_of.h: New file, automatically generated by
23455         gen-uni-tables.
23456
23457         Tests for module 'unictype/joiningtype-byname'.
23458         * modules/unictype/joiningtype-byname-tests: New file.
23459         * tests/unictype/test-joiningtype_byname.c: New file.
23460
23461         New module 'unictype/joiningtype-byname'.
23462         * modules/unictype/joiningtype-byname: New file.
23463         * lib/unictype/joiningtype_byname.c: New file.
23464
23465         Tests for module 'unictype/joiningtype-name'.
23466         * modules/unictype/joiningtype-name-tests: New file.
23467         * tests/unictype/test-joiningtype_name.c: New file.
23468
23469         New module 'unictype/joiningtype-name'.
23470         * modules/unictype/joiningtype-name: New file.
23471         * lib/unictype/joiningtype_name.c: New file.
23472
23473         unictype: Add support for Arabic shaping properties.
23474         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
23475         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
23476         declarations.
23477         (UC_JOINING_GROUP_*): New enumeration values.
23478         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
23479         declarations.
23480         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
23481         (unicode_joining_type): New variable.
23482         (UC_JOINING_GROUP_*): New enumeration values.
23483         (unicode_joining_group): New variable.
23484         (fill_arabicshaping, joining_type_as_c_identifier,
23485         output_joining_type_test, output_joining_type,
23486         joining_group_as_c_identifier, output_joining_group_test,
23487         output_joining_group): New functions.
23488         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
23489         fill_arabicshaping and output_joining_type_test, output_joining_type,
23490         output_joining_group_test, output_joining_group.
23491         Reported by Simon Josefsson.
23492
23493 2011-03-21  Jim Meyering  <meyering@redhat.com>
23494
23495         strftime: fix a bug in yesterday's change
23496         * lib/strftime.c (add): Accommodate width's initial value of -1.
23497         Otherwise, nstrftime would copy uninitialized data into
23498         the result buffer.
23499
23500 2011-03-21  Jim Meyering  <meyering@redhat.com>
23501
23502         tests: add strftime-tests module
23503         * tests/test-strftime.c: New file.
23504         * modules/strftime-tests: New module.
23505
23506 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
23507
23508         strftime: don't assume a byte count fits in 'int'
23509         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
23510         found this problem by static analysis, using gcc -Wstrict-overflow
23511         (GCC 4.5.2, x86-64).  This reported an optimization that depended
23512         on an integer overflow having undefined behavior, but it turns out
23513         that the argument is a size, which might not fit in 'int' anyway,
23514
23515 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
23516
23517         stdio: don't require ignore_value around fwrite
23518
23519         This patch works around libc bug 11959
23520         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
23521         Without this patch, applications must often write
23522         ignore_value (fwrite (...)) even though the ignore_value is
23523         not helpful here.  It's common to write many objects, using
23524         fwrite/printf/etc., and then use ferror to detect output error.
23525
23526         I considered making this patch optional, but decided against it,
23527         because libc is obviously being inconsistent here: there is no
23528         reason libc should insist that user code must inspect fwrite
23529         return's value without also insisting that it inspect printf's,
23530         putchar's, etc.  If user code wants to have a strict style where
23531         all these functions' values are checked (so that ferror need not
23532         be checked), we could add support for that style in a new gnulib
23533         module, but in the meantime it's better to be consistent and to
23534         support common usage.
23535
23536         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
23537         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
23538         that we are compiling in checking mode, and if not C++, and
23539         if not already wrapping fwrite for some other reason.
23540         (fwrite): #define to rpl_fwrite if the latter is defined.
23541
23542 2011-03-20  Bruno Haible  <bruno@clisp.org>
23543
23544         verror: Fix compilation error introduced on 2011-02-13.
23545         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
23546         instead of __attribute__.
23547         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23548
23549 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
23550             Bruno Haible  <bruno@clisp.org>
23551
23552         socklen: do not depend on sys_socket
23553         While trying to modify Emacs to use gnulib's socklen module,
23554         I discovered a circular dependency: socklen depends on sys_socket
23555         and vice versa.  Emacs can use socklen, but it does not need
23556         sys_socket because it has its own substitute for sys/socket.h.
23557         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
23558         gl_TYPE_SOCKLEN_T.
23559         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
23560         gl_PREREQ_SYS_H_SOCKET.
23561         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
23562         gl_PREREQ_SYS_H_SOCKET.
23563         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
23564         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
23565         * modules/socklen (Depends-on): Do not depend on sys_socket.
23566         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
23567
23568 2011-03-20  Jim Meyering  <meyering@redhat.com>
23569
23570         maint.mk: sort file names *after* new transformation
23571         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
23572         prefix would have led to an unwarranted failure in GNU parted.
23573         Sort after that transformation.
23574
23575 2011-03-19  Jim Meyering  <meyering@redhat.com>
23576
23577         maint.mk: fix po-file syntax-check rule
23578         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
23579         Patch by Bruno Haible.
23580
23581 2011-03-19  Bruno Haible  <bruno@clisp.org>
23582
23583         socklen: Update comment.
23584         * m4/socklen.m4: Update comment about platforms.
23585
23586 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
23587             Bruno Haible  <bruno@clisp.org>
23588
23589         inet_ntop, inet_pton: Simplify.
23590         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
23591         documented to provide socklen_t and we already depend on sys_socket.
23592         * modules/inet_pton (Depends-on): Likewise.
23593         * lib/arpa_inet.in.h: Adjust comment.
23594
23595 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
23596             Bruno Haible  <bruno@clisp.org>
23597
23598         netdb: Simplify.
23599         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
23600         documented to provide socklen_t and we already depend on sys_socket.
23601         * lib/netdb.in.h: Adjust comment.
23602
23603 2011-03-19  Bruno Haible  <bruno@clisp.org>
23604
23605         sys_socket, netdb: Document problem with socklen_t.
23606         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
23607         platforms.
23608         * doc/posix-headers/netdb.texi: Likewise.
23609
23610 2011-03-18  Eric Blake  <eblake@redhat.com>
23611
23612         maint.mk: let po check work in VPATH build
23613         * top/maint.mk (po_file): Allow cfg.mk override.
23614         (sc_po_check): Allow VPATH use.
23615         Reported by Jiri Denemark.
23616
23617 2011-03-16  Jim Meyering  <meyering@redhat.com>
23618
23619         maint.mk: allow fine-grained syntax-check exclusion via Make variables
23620         Before, you would have had to create one .x-sc_ file per rule in order
23621         to exempt offending files.  Now, you may instead use a Make variable --
23622         usually defined in cfg.mk -- whose name identifies the affected rule.
23623         * top/maint.mk (_sc_excl): Define.
23624         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
23625         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
23626
23627 2011-03-13  Bruno Haible  <bruno@clisp.org>
23628
23629         ignore-value tests: Avoid warnings.
23630         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
23631         empty for gcc < 3.4.
23632
23633 2011-03-13  Bruno Haible  <bruno@clisp.org>
23634
23635         passfd: Fix link error on Solaris.
23636         * modules/passfd (Description): Correct.
23637         (Depends-on): Add socketlib.
23638         (Link): New section.
23639         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
23640
23641 2011-03-13  Bruno Haible  <bruno@clisp.org>
23642
23643         passfd: Fix link error on AIX 5.2.
23644         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
23645
23646 2011-03-13  Bruno Haible  <bruno@clisp.org>
23647
23648         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
23649         * lib/sys_socket.in.h: Include <stddef.h>.
23650         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
23651         CMSG_FIRSTHDR. Remove unused variable.
23652
23653 2011-03-13  Bruno Haible  <bruno@clisp.org>
23654
23655         passfd: Fix compilation error on OpenBSD.
23656         * lib/passfd.c: Include <sys/uio.h>.
23657
23658 2011-03-13  Bruno Haible  <bruno@clisp.org>
23659
23660         passfd test: Fix warnings.
23661         * tests/test-passfd.c: Include <sys/wait.h>.
23662         (main): Fix typo.
23663
23664 2011-03-13  Bruno Haible  <bruno@clisp.org>
23665
23666         passfd module, part 4, tweaks.
23667         * tests/test-passfd.c: Reorder includes.
23668         (main): Fix perror and printf calls.
23669
23670 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
23671
23672         passfd module, part 4.
23673         * modules/passfd-tests: New file.
23674         * tests/test-passfd.c: New file.
23675
23676 2011-03-13  Jim Meyering  <meyering@redhat.com>
23677
23678         Makefile: rely on GNU make; derive syntax-check rule names
23679         Rather than requiring that each sc_ rule be listed as a dependent
23680         of "check", use features of GNU make to derive the list.
23681         * Makefile (syntax-check-rules): Define.
23682         (check): Depend on the new variable, not the hard-coded list.
23683
23684 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
23685             Bruno Haible  <bruno@clisp.org>
23686
23687         passfd module, part 3.
23688         * lib/passfd.h (recvfd): Add a flags argument.
23689         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
23690         (recvfd): Add a flags argument.
23691         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
23692         exists.
23693         * modules/passfd (Depends-on): Add cloexec.
23694         Suggested by Eric Blake.
23695
23696 2011-03-13  Bruno Haible  <bruno@clisp.org>
23697
23698         passfd module, part 2, tweaks.
23699         * modules/passfd (Files): Reorder.
23700         (Depends-on): Remove errno.
23701         (Include): Remove <sys/socket.h>, <sys/un.h>.
23702         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
23703         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
23704         specification header. Include <sys/socket.h> always. Don't include
23705         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
23706         (sendfd): Clarify that it sets errno when it fails.
23707         (recvfd): Fix specification.
23708
23709 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
23710
23711         passfd module, part 2.
23712         * modules/passfd: New file.
23713         * lib/passfd.h: New file.
23714         * lib/passfd.c: New file.
23715
23716 2011-03-12  Bruno Haible  <bruno@clisp.org>
23717
23718         wcswidth, mbswidth: Avoid integer overflow.
23719         * lib/wcswidth.c: Include <limits.h>.
23720         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
23721         * lib/mbswidth.c: Include <limits.h>.
23722         (mbsnwidth): Avoid 'int' overflow.
23723         Reported by Jim Meyering.
23724
23725 2011-03-12  Bruno Haible  <bruno@clisp.org>
23726
23727         futimens, utimensat: Avoid endless recursion on Solaris 10.
23728         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
23729         Solaris.
23730         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
23731         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
23732
23733 2011-03-11  Jim Meyering  <meyering@redhat.com>
23734
23735         maint.mk: relax a regexp to accommodate other formatting styles
23736         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
23737         between "ngettext" and the following "(".
23738
23739 2011-03-11  Pádraig Brady <P@draigBrady.com>
23740
23741         maint.mk: suppress a false positive warning
23742         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
23743         diagnostics are marked with ngettext.
23744
23745 2011-03-10  Eric Blake  <eblake@redhat.com>
23746
23747         wchar: add explicit dependencies, for Tru64
23748         * modules/mbmemcasecoll (Depends-on): Add wchar.
23749         * modules/mbtowc (Depends-on): Likewise.
23750         * modules/vasnprintf (Depends-on): Likewise.
23751         * modules/unistdio/u-printf-args (Depends-on): Likewise.
23752         * modules/wctomb (Depends-on): Likewise.
23753         Reported by Peter O'Gorman.
23754
23755 2011-03-08  Bruno Haible  <bruno@clisp.org>
23756
23757         passfd module, part 1, tweaks.
23758         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
23759         Improve indentation. Improve AC_MSG_CHECKING messages.
23760         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
23761         gl_SOCKET_FAMILIES.
23762
23763 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
23764
23765         passfd module, part 1.
23766         * m4/afunix.m4: New file.
23767         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
23768         sockets.
23769
23770 2011-03-08  Bruno Haible  <bruno@clisp.org>
23771
23772         regex-quote: New API.
23773         * lib/regex-quote.h: Include <stdbool.h>.
23774         (struct regex_quote_spec): New type.
23775         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
23776         New declarations.
23777         (regex_quote_length, regex_quote_copy, regex_quote): Take a
23778         'const struct regex_quote_spec *' argument.
23779         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
23780         (pcre_special): New constant.
23781         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
23782         New functions.
23783         (regex_quote_length, regex_quote_copy, regex_quote): Take a
23784         'const struct regex_quote_spec *' argument.
23785         * modules/regex-quote (Depends-on): Add stdbool.
23786         * tests/test-regex-quote.c (check): Update for new API. Add test for
23787         anchored results.
23788         * NEWS: Mention the API change.
23789         Reported by Reuben Thomas and Eric Blake.
23790
23791 2011-03-06  Bruno Haible  <bruno@clisp.org>
23792
23793         regex-quote: Fix creation of POSIX extended regular expressions.
23794         * lib/regex-quote.c (ere_special): Add grouping and alternation
23795         operators.
23796
23797 2011-03-05  Bruno Haible  <bruno@clisp.org>
23798
23799         doc: Improve doc regarding autopoint vs. gnulib.
23800         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
23801         disable autopoint while running autoreconf.
23802         Suggested by Ralf Wildenhues.
23803
23804 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23805
23806         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
23807         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
23808
23809 2011-03-03  Bruce Korb  <bkorb@gnu.org>
23810
23811         parse-duration: remove xalloc.h dependency
23812         * lib/parse-duration.c (parse_period): handle NULL return from
23813         strdup instead of calling xstrdup().
23814         * modules/parse-duration: remove "xalloc" dependency
23815
23816 2011-03-03  Matthew Booth  <mbooth@redhat.com>
23817
23818         bootstrap: honor m4_base when running aclocal
23819         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
23820
23821 2011-03-02  Jim Meyering  <meyering@redhat.com>
23822
23823         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
23824         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
23825         on request from Matt Booth.
23826
23827 2011-03-01  Eric Blake  <eblake@redhat.com>
23828
23829         test-link: work on Hurd
23830         * tests/test-link.h (test_link): Hurd rejects linking directories
23831         with EISDIR instead of the POSIX-mandated EPERM.
23832
23833 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
23834
23835         stdio: simplify by moving files to printf-posix, sigpipe
23836         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
23837         since this symbol is needed only if printf is replaced.
23838         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
23839         Require gl_ASM_SYMBOL_PREFIX.
23840         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
23841         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
23842         (Depends-on): Add 'raise'.
23843         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
23844         * modules/stdio (Files): Remove lib/stdio-write.c,
23845         m4/asm-underscore.m4.
23846         (Depends-on): Remove 'raise'.
23847
23848         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
23849         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
23850         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
23851         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
23852
23853 2011-02-28  Bruno Haible  <bruno@clisp.org>
23854
23855         localcharset: Assume ANSI C behaviour of free().
23856         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
23857         calling free().
23858         Suggested by Simon Josefsson <simon@josefsson.org>.
23859
23860 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
23861             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
23862             Bruno Haible  <bruno@clisp.org>  (tiny change)
23863
23864         On Cygwin, use /proc file system instead of win32 API.
23865         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
23866         Win32 file names.
23867         (DllMain): Simplify by removing Cygwin specific code.
23868         (find_shared_library_fullname): Use Linux specific implementation also
23869         for Cygwin.
23870         (get_shared_library_fullname): Update accordingly.
23871         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
23872         Win32 file names.
23873         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
23874         Cygwin specific code.
23875
23876 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
23877             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
23878
23879         Fix OpenMP flag detection for various Fortran compilers.
23880         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
23881         OpenMP-conditional compilation construct, to force compile
23882         failure with missing OpenMP flag.
23883         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
23884
23885 2011-02-25  Eric Blake  <eblake@redhat.com>
23886
23887         strstr: expand test coverage
23888         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
23889         compilation.
23890         * tests/test-memmem.c (main): Duplicate tests.
23891         * tests/test-strcasestr.c (main): Likewise.
23892         * tests/test-c-strcasestr.c (main): Likewise.
23893
23894 2011-02-25  Jim Meyering  <meyering@redhat.com>
23895
23896         maint.mk: detect missing-NL-at-EOF, too
23897         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
23898         it also detects when a file lacks a newline at EOF.
23899         (require_exactly_one_NL_at_EOF_): Renamed from
23900         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
23901         since people may well have .x-sc_... file names tied to the
23902         existing name.  Suggested by Eric Blake.
23903
23904 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
23905
23906         dirname: move m4/dos.m4 functionality into lib/dosname.h
23907
23908         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
23909         extracts symbols from it, puts them into config.h; but it's much
23910         easier to use the symbols directly.  filename.h already does this,
23911         but it disagrees with dos.m4 in some respects.  This patch
23912         introduces a different include file dosname.h that packages up
23913         dos.m4, and then later we can work on merging filename.h and
23914         dosname.h.  Applications that need only the easy-to-configure
23915         symbols should consider including dosname.h rather than dirname.h.
23916         * NEWS: Mention incompatible changes.
23917         * m4/dos.m4: Remove.
23918         * lib/dosname.h, modules/dosname: New files.
23919         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
23920         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
23921         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
23922         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
23923         Include dosname.h, not dirname.h.
23924         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
23925         Include dosname.h, for definitions of symbols like ISSLASH
23926         that used to be in config.h.
23927         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
23928         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
23929         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23930         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23931         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
23932         * modules/rmdir (Files): Likewise.
23933         * modules/stat (Files): Likewise.
23934         * modules/unlink (Files): Likewise.
23935         * modules/dirname-lgpl (Depends-on): Add dosname.
23936         * modules/lstat (Depends-on): Likewise.
23937         * modules/openat (Depends-on): Likewise.
23938         * modules/rmdir (Depends-on): Likewise.
23939         * modules/savewd (Depends-on): Likewise.
23940         * modules/stat (Depends-on): Likewise.
23941         * modules/unlink (Depends-on): Likewise.
23942         * modules/openat (Depends-on): Remove dirname-lgpl.
23943         * modules/savewd (Depends-on): Likewise.
23944         * tests/test-dirname.c: Do not use removed symbols like
23945         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
23946         the remaining symbols, e.g., ISSLASH ('\\').
23947
23948 2011-02-25  Eric Blake  <eblake@redhat.com>
23949
23950         strstr: revert patches that introduced bug and pessimization
23951         * lib/str-two-way.h: Add another reference.
23952         (two_way_short_needle, two_way_long_needle): Revert changes from
23953         2011-02-24; they pessimize search speed.
23954         (critical_factorization): Partially revert changes from
23955         2010-06-22; they violate the requirement that the left half of the
23956         needle be smaller than the period of the needle.
23957
23958 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
23959
23960         filenamecat: remove unnecessary dependency on dirname-lgpl
23961         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
23962         is no direct dependency, just an indirect one via filenamecat-lgpl.
23963
23964         remove: remove unnecessary use of m4/dos.m4
23965         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
23966         * modules/remove (FILES): Remove m4/dos.m4.
23967
23968         * lib/openat-proc.c: Don't include dirname.h; not needed.
23969
23970         backupfile: remove unnecessary use of m4/dos.m4
23971         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
23972         of its symbols are used by the backupfile code.  backupfile.c does
23973         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
23974         for the rare case of programs that want all their backup file
23975         names to live within 8+3 limits, and dos.m4 doesn't address that.
23976         * modules/backupfile (Files): Remove m4/dos.m4.
23977
23978 2011-02-24  Jim Meyering  <meyering@redhat.com>
23979
23980         strstr: fix a bug whereby strstr would mistakenly return NULL
23981         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
23982         in period calculation.
23983         (two_way_long_needle): Likewise.
23984         The original problem was reported by Mike Stump in
23985         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
23986         Ralf Wildenhues provided the short needle and haystack.
23987         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
23988         Add a more involved test to trigger the bug in two_way_long_needle.
23989
23990 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
23991
23992         gnulib-tool: remove use of bold display in help screen
23993         * gnulib-tool (func_usage): Do not use bold display anymore in the
23994         help screen.  That was just meant to be a temporary emphasis for a
23995         backward-incompatible change.
23996
23997 2011-02-23  Bruno Haible  <bruno@clisp.org>
23998
23999         Fix misindentation of preprocessor directives.
24000         * lib/argp-namefrob.h: Reindent preprocessor directives.
24001         * lib/getopt_int.h (struct _getopt_data): Likewise.
24002         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
24003         * lib/vasnprintf.c (decode_long_double): Likewise.
24004         * tests/test-argmatch.c: Insert blank lines, for clarity.
24005         * tests/test-exclude.c: Likewise.
24006
24007 2011-02-22  Bruno Haible  <bruno@clisp.org>
24008
24009         ioctl: Fix for MacOS X in 64-bit mode.
24010         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
24011         value.
24012         Suggested by Eric Blake.
24013         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
24014
24015 2011-02-22  Jim Meyering  <meyering@redhat.com>
24016
24017         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
24018         * Makefile (sc_cpp_indent_check): Don't limit the check to files
24019         in lib/.
24020
24021 2011-02-22  Eric Blake  <eblake@redhat.com>
24022
24023         maint: avoid any CDPATH issue
24024         * Makefile (sc_cpp_indent_check): Anchor cd argument.
24025
24026         maint: adjust cpp indentation for my modules, as well
24027         * Makefile (sc_cpp_indent_check): Add my name.
24028         * lib/fbufmode.c: Filter through cppi.
24029         * lib/fpurge.c: Likewise.
24030         * lib/freadable.c: Likewise.
24031         * lib/freading.c: Likewise.
24032         * lib/fwritable.c: Likewise.
24033         * lib/fwriting.c: Likewise.
24034         * lib/sigaction.c: Likewise.
24035
24036 2011-02-22  Jim Meyering  <meyering@redhat.com>
24037
24038         maint: adjust cpp indentation to reflect nesting depth
24039         I.e., in a block of code that begins with an unnested "#if",
24040         put one space between the "#" in column 1 and following token.
24041         For example,
24042         -#include <sys/vfs.h>
24043         +# include <sys/vfs.h>
24044         Do this only in .c files that are part of a module I maintain.
24045         * lib/linkat.c: Filter through cppi.
24046         * lib/nanosleep.c: Likewise.
24047         * lib/openat.c: Likewise.
24048         * lib/openat-die.c: Likewise.
24049         * lib/dup3.c: Likewise.
24050         * lib/fchownat.c: Likewise.
24051         * lib/flock.c: Likewise.
24052         * lib/fsync.c: Likewise.
24053         * lib/fts.c: Likewise.
24054         * lib/getpass.c: Likewise.
24055         * lib/gettimeofday.c: Likewise.
24056         * lib/userspec.c: Likewise.
24057         * Makefile (sc_cpp_indent_check): New rule, to check this.
24058
24059 2011-02-22  Bruno Haible  <bruno@clisp.org>
24060
24061         New module 'wctomb'.
24062         * lib/stdlib.in.h (wctomb): New declaration.
24063         * lib/wctomb.c: New file.
24064         * lib/wctomb-impl.h: New file.
24065         * m4/wctomb.m4: New file.
24066         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
24067         REPLACE_WCTOMB.
24068         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
24069         REPLACE_WCTOMB.
24070         * modules/wctomb: New file.
24071         * tests/test-stdlib-c++.cc: Test signature of wctomb.
24072         * doc/posix-functions/wctomb.texi: Mention the new module.
24073         * modules/wctob (Depends-on): Add wctomb.
24074
24075 2011-02-22  Bruno Haible  <bruno@clisp.org>
24076
24077         New module 'mbtowc'.
24078         * lib/stdlib.in.h (mbtowc): New declaration.
24079         * lib/mbtowc.c: New file.
24080         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
24081         * m4/mbtowc.m4: New file.
24082         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
24083         REPLACE_MBTOWC.
24084         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
24085         REPLACE_MBTOWC.
24086         * modules/mbtowc: New file.
24087         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
24088         * doc/posix-functions/mbtowc.texi: Mention the new module.
24089         * modules/btowc (Depends-on): Add mbtowc.
24090
24091 2011-02-22  Bruno Haible  <bruno@clisp.org>
24092
24093         wcrtomb: Add more tests for native Windows platforms.
24094         * tests/test-wcrtomb-w32-1.sh: New file.
24095         * tests/test-wcrtomb-w32-2.sh: New file.
24096         * tests/test-wcrtomb-w32-3.sh: New file.
24097         * tests/test-wcrtomb-w32-4.sh: New file.
24098         * tests/test-wcrtomb-w32-5.sh: New file.
24099         * tests/test-wcrtomb-w32.c: New file.
24100         * modules/wcrtomb-tests (Files): Add them.
24101         (Makefile.am): Arrange to run these tests.
24102         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
24103         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
24104
24105 2011-02-20  Bruno Haible  <bruno@clisp.org>
24106
24107         wcrtomb: Enhance test.
24108         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
24109
24110 2011-02-20  Bruno Haible  <bruno@clisp.org>
24111
24112         mbrtowc: Tiny optimization.
24113         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
24114
24115 2011-02-20  Jim Meyering  <meyering@redhat.com>
24116
24117         test-exclude.c: remove unmatched #endif
24118         * tests/test-exclude.c: Remove stray #endif, left over from
24119         the change of a week ago.
24120
24121 2011-02-19  Jim Meyering  <meyering@redhat.com>
24122
24123         git-version-gen: skip "-dirty" check when appropriate
24124         * build-aux/git-version-gen: Don't run any git commands when the
24125         version string comes from .tarball-version.  Prior to this, we
24126         would run git update-index --refresh even from a just-unpacked
24127         tarball directory, and that could affect a .git/ directory in a
24128         parent of the build directory.  Reported by Mike Frysinger.
24129
24130 2011-02-19  Bruno Haible  <bruno@clisp.org>
24131
24132         unictype/property-byname: Reduce the size of the 'data' segment.
24133         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
24134
24135 2011-02-19  Bruno Haible  <bruno@clisp.org>
24136
24137         unictype/scripts: Reduce the size of the 'data' segment.
24138         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
24139         '%pic'.
24140         * lib/unictype/scripts_byname.gperf: Regenerated.
24141
24142 2011-02-19  Bruno Haible  <bruno@clisp.org>
24143
24144         stdint: Update documentation.
24145         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
24146
24147 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
24148
24149         stdint: omit redundant check for wchar.h
24150         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
24151         always tests whether wchar.h exists, so remove the now-redundant test.
24152
24153 2011-02-18  Bruno Haible  <bruno@clisp.org>
24154
24155         stdint: Cut dependency to module 'wchar'.
24156         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
24157         include the necessary prerequisites.
24158         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
24159         * modules/stdint (Depends-on): Remove wchar.
24160         (Makefile.am): Substitute HAVE_WCHAR_H.
24161         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
24162
24163 2011-02-18  Eric Blake  <eblake@redhat.com>
24164
24165         longlong: skip, rather than fail, on cross-compilation
24166         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
24167         when cross-compiling; regression from 2011-02-16.
24168
24169 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
24170
24171         * NEWS: Mention 2011-02-08 change to stdlib.
24172
24173 2011-02-17  Bruno Haible  <bruno@clisp.org>
24174
24175         getloadavg: Add comments about platforms.
24176         * m4/getloadavg.m4: Add comment.
24177         * lib/getloadavg.c: Likewise.
24178
24179 2011-02-17  Bruno Haible  <bruno@clisp.org>
24180
24181         getloadavg: Fix link error on Solaris 2.6.
24182         * modules/getloadavg (Link): New section.
24183         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
24184         linking test-getloadavg.
24185         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
24186         getloadavg.
24187
24188 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
24189
24190         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
24191         It was 'int', but this doesn't match the IRIX 6.5 manual.
24192         Suggested by Bruno Haible in
24193         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
24194
24195 2011-02-17  Bruno Haible  <bruno@clisp.org>
24196
24197         havelib: Fix comments.
24198         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
24199         change.
24200
24201 2011-02-17  Bruno Haible  <bruno@clisp.org>
24202
24203         havelib: Update config.rpath.
24204         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
24205
24206 2011-02-17  Bruno Haible  <bruno@clisp.org>
24207
24208         getloadavg test: Add some plausibility checks.
24209         * tests/test-getloadavg.c (check_avg): Print a warning when the value
24210         is improbable.
24211
24212 2011-02-16  Eric Blake  <eblake@redhat.com>
24213
24214         maintainer-makefile: make syntax-check a no-op from tarballs
24215         * top/maint.mk (no-vc-detected): New rule.
24216         (local-checks-available): Use it to avoid hanging if someone tries
24217         'make syntax-check' from a tarball.  Also append to any non-syntax
24218         checks already defined in cfg.mk.
24219
24220 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
24221
24222         longlong: tune, particularly for common case of c99
24223
24224         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
24225         or running anything if c99, or if unsigned long long int does not
24226         work.  In either case, we know the answer without further tests.
24227         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
24228         it at most once, and use its results for both long long int and
24229         unsigned long long int.  This is more likely to be efficient in
24230         the common case where the program wants to check for both long
24231         long int and unsigned long long int.
24232         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
24233         since the answer is already known.
24234
24235 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
24236
24237         getloadavg: set errno
24238         * lib/getloadavg.c: Set errno when returning -1.  If no other
24239         error number looks appropriate, set it to ENOSYS if the getloadavg
24240         looks like it can't possibly ever work, ENOTSUP otherwise.
24241         Suggested by Bruno Haible in
24242         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
24243
24244         getloadavg: trim unused parts and speed up 'configure'
24245         * NEWS: Document this.
24246         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
24247         always compiled if getloadavg is absent.
24248         Move test code to ...
24249         * tests/test-getloadavg.c: New file, containing previous
24250         contents of test from lib/getloadavg.c.  It also contains
24251         suggestions by Bruno Haible in
24252         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
24253         * modules/getloadavg-tests: New file.
24254         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
24255         Do tests in the same order as they're needed for getloadavg.c.
24256         Omit setgid-related tests that generate symbols KMEM_GROUP,
24257         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
24258         Do only the tests that are needed to see whether the system has
24259         getloadavg, moving the other tests into ...
24260         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
24261         NLIST_NAME_UNION; nobody should be using it.  Do not define
24262         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
24263         relevant, as the user of this module shouldn't care how getloadavg
24264         is implemented.
24265
24266         getloadavg: omit unused var
24267         * lib/getloadavg.c (getloadavg): Omit unused local variable.
24268
24269 2011-02-15  Jim Meyering  <meyering@redhat.com>
24270
24271         doc: update users.txt
24272         * users.txt: Update iwhd's URL.
24273
24274 2011-02-13  Bruno Haible  <bruno@clisp.org>
24275
24276         Consistent macro naming for macros that use GCC __attribute__.
24277         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
24278         _ATTRIBUTE_NONNULL_.
24279         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
24280         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
24281         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
24282         ATTRIBUTE_DEPRECATED.
24283         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
24284         ATTRIBUTE_NORETURN.
24285         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24286         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24287         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24288         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24289         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
24290         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
24291         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
24292         ATTRIBUTE_SENTINEL.
24293         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
24294         ATTRIBUTE_RETURN_CHECK.
24295         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
24296         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
24297         ATTRIBUTE_NORETURN.
24298         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
24299         Reported by Paul Eggert.
24300
24301 2011-02-13  Bruno Haible  <bruno@clisp.org>
24302
24303         Don't interfere with a program's definition of __attribute__.
24304         * lib/argp.h (__attribute__): Remove definition.
24305         (_GL_ATTRIBUTE_FORMAT): New macro.
24306         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
24307         * lib/argp-fmtstream.h (__attribute__): Remove definition.
24308         (_GL_ATTRIBUTE_FORMAT): New macro.
24309         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
24310         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
24311         GCC 3 or newer.
24312         * lib/error.h (__attribute__): Remove definition.
24313         (_GL_ATTRIBUTE_FORMAT): New macro.
24314         (error, error_at_line): Use it.
24315         * lib/hash.h (__attribute__): Remove definition.
24316         (ATTRIBUTE_WUR): Update definition. Define always.
24317         * lib/openat.h (__attribute__): Remove definition.
24318         (ATTRIBUTE_NORETURN): Update definition. Define always.
24319         * lib/sigpipe-die.h (__attribute__): Remove definition.
24320         (ATTRIBUTE_NORETURN): Update definition. Define always.
24321         * lib/vasnprintf.h (__attribute__): Remove definition.
24322         (_GL_ATTRIBUTE_FORMAT): New macro.
24323         (asnprintf, vasnprintf): Use it.
24324         * lib/xalloc.h (__attribute__): Remove definition.
24325         (ATTRIBUTE_NORETURN): Update definition. Define always.
24326         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
24327         * lib/xmemdup0.h (__attribute__): Remove definition.
24328         (ATTRIBUTE_NORETURN): Update definition. Define always.
24329         * lib/xprintf.h (__attribute__): Remove definition.
24330         (_GL_ATTRIBUTE_FORMAT): New macro.
24331         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
24332         * lib/xstrtol.h (__attribute__): Remove definition.
24333         (ATTRIBUTE_NORETURN): Update definition. Define always.
24334         * lib/xvasprintf.h (__attribute__): Remove definition.
24335         (_GL_ATTRIBUTE_FORMAT): New macro.
24336         (xasprintf, xvasprintf): Use it.
24337         * tests/test-argmatch.c (__attribute__): Remove definition.
24338         (ATTRIBUTE_NORETURN): Update definition. Define always.
24339         * tests/test-exclude.c (__attribute__): Remove definition.
24340         (ATTRIBUTE_NORETURN): Update definition. Define always.
24341         Reported by Paul Eggert.
24342
24343 2011-02-13  Bruno Haible  <bruno@clisp.org>
24344
24345         mbrtowc: Add more tests for native Windows platforms.
24346         * tests/test-mbrtowc-w32-1.sh: New file.
24347         * tests/test-mbrtowc-w32-2.sh: New file.
24348         * tests/test-mbrtowc-w32-3.sh: New file.
24349         * tests/test-mbrtowc-w32-4.sh: New file.
24350         * tests/test-mbrtowc-w32-5.sh: New file.
24351         * tests/test-mbrtowc-w32.c: New file.
24352         * modules/mbrtowc-tests (Files): Add them.
24353         (Makefile.am): Arrange to run these tests.
24354         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
24355         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
24356
24357 2011-02-13  Bruno Haible  <bruno@clisp.org>
24358
24359         mbrtowc: Work around native Windows bug.
24360         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
24361         guess when no suitable locale for testing was found.
24362         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
24363
24364 2011-02-13  Bruno Haible  <bruno@clisp.org>
24365
24366         mbsinit: Work around mingw bug.
24367         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
24368         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
24369         Windows.
24370         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
24371
24372 2011-02-13  Bruno Haible  <bruno@clisp.org>
24373
24374         mbsinit: Don't crash for a NULL argument.
24375         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
24376         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
24377
24378 2011-02-13  Bruno Haible  <bruno@clisp.org>
24379
24380         Don't interfere with a program's definition of __attribute__.
24381         * lib/stdio.in.h (__attribute__): Remove definition.
24382         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
24383         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
24384         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
24385         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
24386         * lib/string.in.h (__attribute__): Remove definition.
24387         Reported by Paul Eggert.
24388
24389 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
24390
24391         stdlib: don't get in the way of non-GCC __attribute__
24392         See thread starting at
24393         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
24394         Revert previous stdlib change, installing the following instead:
24395         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
24396         to get in the way of a non-GCC compiler that supports __attribute__.
24397         (_GL_ATTRIBUTE_RETURN): New macro.
24398         (_Exit): Use it instead of __attribute__.
24399
24400 2011-02-12  Bruno Haible  <bruno@clisp.org>
24401
24402         quotearg test: Avoid test failure on mingw.
24403         * tests/test-quotearg.sh: Convert the locale identifier from native
24404         Windows syntax to Unix syntax.
24405
24406 2011-02-12  Bruno Haible  <bruno@clisp.org>
24407
24408         setlocale: Prefer gnulib's override over libintl's override.
24409         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
24410         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
24411         GNULIB_defined_setlocale is set.
24412
24413 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
24414
24415         stdlib: support non-GCC __attribute__
24416
24417         Fix a serious and tricky problem encountered when attempting to
24418         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
24419         5.5, but it crashed due to memory corruption on Solaris 10 with
24420         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
24421         bits that are otherwise zero.  This tagging is optional inside
24422         Emacs but is preferred and is used when __attribute__ ((__aligned
24423         (8))) works, as it does with both recent-enough GCC and with Sun C
24424         5.11.  However, Sun C 5.11 is not GCC and does not #define
24425         __GNUC__ and __GNUC_MINOR__.
24426
24427         When I added the getloadavg module to Emacs, it brought in
24428         stdlib.in.h, which contained this fragment:
24429
24430            #ifndef __attribute__
24431            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
24432            #  define __attribute__(Spec)   /* empty */
24433            # endif
24434            #endif
24435
24436         When files that include <stdlib.h> were compiled with Sun C 5.11,
24437         the above code disabled __attribute__ ((__aligned (8))), which
24438         caused variables to not be properly aligned, which eventually led
24439         to the pointer corruption mentioned above.  (This was a bit hard
24440         to diagnose, unfortunately.)
24441
24442         Several "#define __attribute__(X) /* empty */" code snippets need
24443         to be eradicated from Gnulib to work with non-GCC compilers that
24444         support __attribute__.  The Autoconf way to do this is to test for
24445         each kind of attribute that we want support for, and selectively
24446         enable that in source code.
24447
24448         Fix this problem just for stdlib.h, by adding a test for the
24449         __noreturn__ attribute, and change stdlib.in.h to use that test
24450         when needed.  This technique can be easily generalized to the
24451         other *.in.h files and attributes, and a similar technique can be
24452         used for *.h and *.c files.  This patch is enough to solve the
24453         problem for Emacs + getloadavg, and I thought I'd publish it for
24454         feedback before undertaking further, similar fixes in other
24455         modules.
24456
24457         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
24458         because it's not needed for stdlib.h.  It merely substitutes the
24459         value directly into stdlib.h.  We may well need to #define it, or
24460         similar symbols, for other modules, but it's nice to also have an
24461         option to not #define it for applications like Emacs that do not
24462         need it.
24463
24464         * lib/stdlib.in.h (__attribute__): Do not #define.
24465         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
24466         be defined only if the _Exit module is also used.
24467         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
24468         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
24469         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
24470         platforms.
24471         * modules/_Exit (Files): Add m4/attribute.m4.
24472         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
24473         * m4/attribute.m4: New file.
24474
24475 2011-02-12  Bruno Haible  <bruno@clisp.org>
24476
24477         wcsrtombs: Work around bug on native Windows.
24478         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
24479         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
24480         instead of len.
24481         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
24482
24483 2011-02-12  Bruno Haible  <bruno@clisp.org>
24484
24485         mbsrtowcs: Work around bug on native Windows.
24486         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
24487         against mingw bug.
24488         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
24489
24490 2011-02-12  Bruno Haible  <bruno@clisp.org>
24491
24492         Avoid setlocale bugs in tests.
24493         * modules/btowc (Dependencies): Add setlocale.
24494         * modules/c-strcase (Dependencies): Likewise.
24495         * modules/mbmemcasecmp (Dependencies): Likewise.
24496         * modules/mbmemcasecoll (Dependencies): Likewise.
24497         * modules/mbrtowc (Dependencies): Likewise.
24498         * modules/mbscasecmp (Dependencies): Likewise.
24499         * modules/mbscasestr (Dependencies): Likewise.
24500         * modules/mbschr (Dependencies): Likewise.
24501         * modules/mbscspn (Dependencies): Likewise.
24502         * modules/mbsinit (Dependencies): Likewise.
24503         * modules/mbsncasecmp (Dependencies): Likewise.
24504         * modules/mbsnrtowcs (Dependencies): Likewise.
24505         * modules/mbspbrk (Dependencies): Likewise.
24506         * modules/mbspcasecmp (Dependencies): Likewise.
24507         * modules/mbsrchr (Dependencies): Likewise.
24508         * modules/mbsrtowcs (Dependencies): Likewise.
24509         * modules/mbsspn (Dependencies): Likewise.
24510         * modules/mbsstr (Dependencies): Likewise.
24511         * modules/nl_langinfo (Dependencies): Likewise.
24512         * modules/quotearg (Dependencies): Likewise.
24513         * modules/unicase/locale-language (Dependencies): Likewise.
24514         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
24515         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
24516         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
24517         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
24518         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
24519         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
24520         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
24521         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
24522         * modules/vasnprintf-posix (Dependencies): Likewise.
24523         * modules/wcrtomb (Dependencies): Likewise.
24524         * modules/wcsnrtombs (Dependencies): Likewise.
24525         * modules/wcsrtombs (Dependencies): Likewise.
24526
24527 2011-02-12  Bruno Haible  <bruno@clisp.org>
24528
24529         setlocale: Workaround native Windows bug.
24530         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
24531         succeeds but sets LC_CTYPE to "C", report a failure.
24532         * tests/test-setlocale2.sh: New file.
24533         * tests/test-setlocale2.c: New file.
24534         * modules/setlocale-tests (Files): Add the new files.
24535         (Makefile.am): Enable test-setlocale2.sh test.
24536         * doc/posix-functions/setlocale.texi: Mention workaround.
24537
24538 2011-02-11  Bruno Haible  <bruno@clisp.org>
24539
24540         Tests for module 'setlocale'.
24541         * modules/setlocale-tests: New file.
24542         * tests/test-setlocale1.sh: New file.
24543         * tests/test-setlocale1.c: New file.
24544
24545         New module 'setlocale'.
24546         * lib/locale.in.h (setlocale): New declaration.
24547         * lib/setlocale.c: New file, based on
24548         gettext/gettext-runtime/intl/setlocale.c.
24549         * m4/setlocale.m4: New file.
24550         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
24551         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
24552         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
24553         REPLACE_SETLOCALE.
24554         * modules/setlocale: New file.
24555         * tests/test-locale-c++.cc: Test the declaration of setlocale.
24556         * doc/posix-functions/setlocale.texi: Mention the new module.
24557
24558 2011-02-11  Bruno Haible  <bruno@clisp.org>
24559
24560         Prepare for locale dependent tests on mingw.
24561         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
24562         because it has the wrong locale encoding.
24563         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
24564         French_France.1252 instead of "fr".
24565         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
24566         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
24567         because it has the wrong locale encoding.
24568         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
24569         native Windows, try Turkish_Turkey.65001.
24570         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
24571         Chinese_China.54936.
24572
24573         Prepare for locale dependent tests on mingw.
24574         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
24575         differently.
24576         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
24577         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
24578         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
24579         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24580
24581 2011-02-11  Eric Blake  <eblake@redhat.com>
24582
24583         strptime: avoid compiler warnings
24584         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
24585         compiler warnings about dead code.
24586         Reported by Daniel P. Berrange.
24587
24588 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
24589
24590         doc: update users.txt
24591         * users.txt: Add rcs.
24592
24593 2011-02-10  John W. Eaton  <jwe@gnu.org>
24594
24595         doc: update users.txt
24596         * users.txt: Add octave.
24597
24598 2011-02-10  Jim Meyering  <meyering@redhat.com>
24599
24600         doc: update users.txt
24601         * users.txt: Add iwhd.
24602
24603 2011-02-09  Bruno Haible  <bruno@clisp.org>
24604
24605         gnulib-tool: Make copyright notice adjustment more robust.
24606         * gnulib-tool (func_import): In sed_transform_main_lib_file,
24607         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
24608         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
24609         License".
24610         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
24611
24612 2011-02-06  Bruno Haible  <bruno@clisp.org>
24613
24614         New module 'towctrans'.
24615         * modules/towctrans: New file.
24616         * lib/wctype.in.h (towctrans): New declaration.
24617         * lib/towctrans.c: New file.
24618         * lib/towctrans-impl.h: New file.
24619         * m4/towctrans.m4: New file.
24620         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
24621         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
24622         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
24623         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
24624         * doc/posix-functions/towctrans.texi: Mention the new module.
24625
24626 2011-02-06  Bruno Haible  <bruno@clisp.org>
24627
24628         New module 'wctrans'.
24629         * modules/wctrans: New file.
24630         * lib/wctype.in.h (wctrans): New declaration.
24631         * lib/wctrans.c: New file.
24632         * lib/wctrans-impl.h: New file.
24633         * m4/wctrans.m4: New file.
24634         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
24635         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
24636         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
24637         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
24638         * doc/posix-functions/wctrans.texi: Mention the new module.
24639
24640 2011-02-06  Bruno Haible  <bruno@clisp.org>
24641
24642         New module 'iswctype'.
24643         * modules/iswctype: New file.
24644         * lib/wctype.in.h (iswctype): New declaration.
24645         * lib/iswctype.c: New file.
24646         * lib/iswctype-impl.h: New file.
24647         * m4/iswctype.m4: New file.
24648         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
24649         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
24650         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
24651         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
24652         * doc/posix-functions/iswctype.texi: Mention the new module and the
24653         HP-UX 11.00 problem.
24654
24655 2011-02-06  Bruno Haible  <bruno@clisp.org>
24656
24657         New module 'wctype'.
24658         * modules/wctype: Change to represent the wctype() substitute.
24659         * lib/wctype.in.h (wctype): New declaration.
24660         * lib/wctype.c: New file.
24661         * lib/wctype-impl.h: New file.
24662         * m4/wctype.m4: New file.
24663         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
24664         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
24665         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
24666         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
24667         * doc/posix-functions/wctype.texi: Mention the new module and the
24668         HP-UX 11.00 problem.
24669
24670 2011-02-06  Bruno Haible  <bruno@clisp.org>
24671
24672         wctype-h: Ensure wctype_t and wctrans_t are defined.
24673         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
24674         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
24675         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
24676         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
24677         HAVE_WCTRANS_T.
24678         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
24679
24680 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
24681
24682         flock: fix license typo
24683
24684         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
24685         omitted.
24686
24687 2011-02-08  Bruno Haible  <bruno@clisp.org>
24688
24689         Split large sed scripts, for HP-UX sed.
24690         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
24691         to avoid HP-UX limit of 99 commands, in the near future.
24692         * modules/stdlib (Makefile.am): Likewise.
24693         * modules/unistd (Makefile.am): Likewise.
24694         * modules/wchar (Makefile.am): Likewise.
24695         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24696         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
24697         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
24698
24699 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
24700             Bruno Haible  <bruno@clisp.org>
24701
24702         stdlib: improve random_r modularization
24703         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
24704         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
24705         you also need the random_r module to get this material right.
24706         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
24707         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
24708         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
24709
24710 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
24711
24712         stdlib: don't depend on stdint
24713         * lib/stdlib.in.h: Don't include <stdint.h> merely because
24714         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
24715         be independent of whether stdint.h is needed.
24716         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
24717         here, instead of ...
24718         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
24719         struct random_data should be using the random_r module, not just
24720         the stdlib module (which wouldn't make sense: what package needs
24721         just struct random_data without also needing random_r?).
24722         * modules/stdlib (Depends-on): Remove stdint.
24723
24724         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
24725         See the thread rooted at
24726         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
24727         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
24728         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
24729         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
24730         __VMS)); previously it was always included (via fcntl--.h).
24731         (getloadavg): Do not use c_strtod.  Instead, approximate it by
24732         hand; this is good enough for load averages.  Also, do not use
24733         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
24734         flags directly if available and don't bother otherwise.  (Packages
24735         that need the extra reliability should use the modules that define
24736         these flags on older platforms that lack them.)
24737         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
24738         fcntl-safer.
24739
24740 2011-02-08  Jim Meyering  <meyering@redhat.com>
24741
24742         di-set.h, ino-map.h: add multiple-inclusion guard
24743         Technically, the guard is required only for ino-map.h, due to its
24744         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
24745         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
24746         * lib/ino-map.h: Likewise.
24747
24748 2011-02-06  Bruno Haible  <bruno@clisp.org>
24749
24750         iswblank: Ensure declaration on glibc systems.
24751         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
24752         * modules/iswblank (Dependencies): Add 'extensions'.
24753         * doc/posix-functions/iswblank.texi: Document the glibc problem.
24754
24755 2011-02-06  Bruno Haible  <bruno@clisp.org>
24756
24757         New module 'iswblank'.
24758         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
24759         * modules/iswblank: New file.
24760         * modules/wctype-h (Files): Remove lib/iswblank.c.
24761         (Makefile.am): Substitute GNULIB_ISWBLANK.
24762         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
24763         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
24764         (gl_WCTYPE_H_DEFAULTS): New macro.
24765         (gl_WCTYPE_H): Require it. Remove iswblank related code.
24766         * modules/iswblank-tests: New file.
24767         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
24768         * tests/test-wctype-h.c (main): Remove iswblank tests.
24769         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
24770         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
24771         of 'wctype-h'.
24772         * NEWS: Mention the change.
24773         * modules/mbchar (Depends-on): Add iswblank.
24774
24775 2011-02-08  Bruno Haible  <bruno@clisp.org>
24776
24777         di-set tests: Refactor.
24778         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
24779         unnecessary includes.
24780         (ASSERT): Remove macro.
24781         (main): Make C90 compliant by avoiding variable declaration after
24782         statement.
24783         * modules/di-set-tests (Files): Add tests/macros.h.
24784
24785 2011-02-08  Bruno Haible  <bruno@clisp.org>
24786
24787         ino-map tests: Refactor.
24788         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
24789         unnecessary includes.
24790         (ASSERT): Remove macro.
24791         (main): Make C90 compliant by avoiding variable declaration after
24792         statement.
24793         * modules/ino-map-tests (Files): Add tests/macros.h.
24794
24795 2011-02-08  Jim Meyering  <meyering@redhat.com>
24796
24797         di-set: add "const" to a cast
24798         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
24799         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
24800
24801 2011-02-06  Bruno Haible  <bruno@clisp.org>
24802
24803         Rename module 'wctype' to 'wctype-h'.
24804         * modules/wctype-h: Renamed from modules/wctype.
24805         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
24806         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
24807         (Files, Depends-on, Makefile.am): Update.
24808         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
24809         (Files, Makefile.am): Update.
24810         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
24811         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
24812         * doc/posix-headers/wctype.texi: Update.
24813         * doc/posix-functions/iswalnum.texi: Update.
24814         * doc/posix-functions/iswalpha.texi: Update.
24815         * doc/posix-functions/iswblank.texi: Update.
24816         * doc/posix-functions/iswcntrl.texi: Update.
24817         * doc/posix-functions/iswdigit.texi: Update.
24818         * doc/posix-functions/iswgraph.texi: Update.
24819         * doc/posix-functions/iswlower.texi: Update.
24820         * doc/posix-functions/iswprint.texi: Update.
24821         * doc/posix-functions/iswpunct.texi: Update.
24822         * doc/posix-functions/iswspace.texi: Update.
24823         * doc/posix-functions/iswupper.texi: Update.
24824         * doc/posix-functions/iswxdigit.texi: Update.
24825         * doc/posix-functions/towlower.texi: Update.
24826         * doc/posix-functions/towupper.texi: Update.
24827         * NEWS: Mention the change.
24828         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
24829         * modules/mbchar (Dependencies): Likewise.
24830         * modules/mbswidth (Dependencies): Likewise.
24831         * modules/quotearg (Dependencies): Likewise.
24832         * modules/regex (Dependencies): Likewise.
24833         * modules/wcscasecmp (Dependencies): Likewise.
24834         * modules/wcsncasecmp (Dependencies): Likewise.
24835         * modules/wcwidth (Dependencies): Likewise.
24836
24837 2011-02-06  Bruno Haible  <bruno@clisp.org>
24838
24839         New module 'wcswidth'.
24840         * modules/wcswidth: New file.
24841         * lib/wchar.in.h (wcswidth): New declaration.
24842         * lib/wcswidth.c: New file.
24843         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
24844         * m4/wcswidth.m4: New file.
24845         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
24846         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
24847         REPLACE_WCSWIDTH.
24848         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
24849         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
24850         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
24851         * doc/posix-functions/wcswidth.texi: Mention the new module.
24852
24853 2011-02-06  Bruno Haible  <bruno@clisp.org>
24854
24855         New module 'wcstok'.
24856         * modules/wcstok: New file.
24857         * lib/wchar.in.h (wcstok): New declaration.
24858         * lib/wcstok.c: New file.
24859         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
24860         * m4/wcstok.m4: New file.
24861         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
24862         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
24863         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
24864         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
24865         * doc/posix-functions/wcstok.texi: Mention the new module.
24866
24867 2011-02-06  Bruno Haible  <bruno@clisp.org>
24868
24869         New module 'wcsstr'.
24870         * modules/wcsstr: New file.
24871         * lib/wchar.in.h (wcsstr): New declaration.
24872         * lib/wcsstr.c: New file.
24873         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
24874         * m4/wcsstr.m4: New file.
24875         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
24876         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
24877         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
24878         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
24879         * doc/posix-functions/wcsstr.texi: Mention the new module.
24880
24881 2011-02-06  Bruno Haible  <bruno@clisp.org>
24882
24883         New module 'wcspbrk'.
24884         * modules/wcspbrk: New file.
24885         * lib/wchar.in.h (wcspbrk): New declaration.
24886         * lib/wcspbrk.c: New file.
24887         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
24888         * m4/wcspbrk.m4: New file.
24889         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
24890         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
24891         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
24892         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
24893         * doc/posix-functions/wcspbrk.texi: Mention the new module.
24894
24895 2011-02-06  Bruno Haible  <bruno@clisp.org>
24896
24897         New module 'wcsspn'.
24898         * modules/wcsspn: New file.
24899         * lib/wchar.in.h (wcsspn): New declaration.
24900         * lib/wcsspn.c: New file.
24901         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
24902         * m4/wcsspn.m4: New file.
24903         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
24904         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
24905         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
24906         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
24907         * doc/posix-functions/wcsspn.texi: Mention the new module.
24908
24909 2011-02-06  Bruno Haible  <bruno@clisp.org>
24910
24911         New module 'wcscspn'.
24912         * modules/wcscspn: New file.
24913         * lib/wchar.in.h (wcscspn): New declaration.
24914         * lib/wcscspn.c: New file.
24915         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
24916         * m4/wcscspn.m4: New file.
24917         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
24918         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
24919         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
24920         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
24921         * doc/posix-functions/wcscspn.texi: Mention the new module.
24922
24923 2011-02-06  Bruno Haible  <bruno@clisp.org>
24924
24925         New module 'wcsrchr'.
24926         * modules/wcsrchr: New file.
24927         * lib/wchar.in.h (wcsrchr): New declaration.
24928         * lib/wcsrchr.c: New file.
24929         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
24930         * m4/wcsrchr.m4: New file.
24931         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
24932         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
24933         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
24934         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
24935         * doc/posix-functions/wcsrchr.texi: Mention the new module.
24936
24937 2011-02-06  Bruno Haible  <bruno@clisp.org>
24938
24939         New module 'wcschr'.
24940         * modules/wcschr: New file.
24941         * lib/wchar.in.h (wcschr): New declaration.
24942         * lib/wcschr.c: New file.
24943         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
24944         * m4/wcschr.m4: New file.
24945         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
24946         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
24947         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
24948         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
24949         * doc/posix-functions/wcschr.texi: Mention the new module.
24950
24951 2011-02-06  Bruno Haible  <bruno@clisp.org>
24952
24953         New module 'wcsdup'.
24954         * modules/wcsdup: New file.
24955         * lib/wchar.in.h (wcsdup): New declaration.
24956         * lib/wcsdup.c: New file.
24957         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
24958         * m4/wcsdup.m4: New file.
24959         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
24960         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
24961         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
24962         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
24963         * doc/posix-functions/wcsdup.texi: Mention the new module.
24964
24965 2011-02-06  Bruno Haible  <bruno@clisp.org>
24966
24967         New module 'wcsxfrm'.
24968         * modules/wcsxfrm: New file.
24969         * lib/wchar.in.h (wcsxfrm): New declaration.
24970         * lib/wcsxfrm.c: New file.
24971         * lib/wcsxfrm-impl.h: New file.
24972         * m4/wcsxfrm.m4: New file.
24973         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
24974         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
24975         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
24976         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
24977         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
24978
24979 2011-02-06  Bruno Haible  <bruno@clisp.org>
24980
24981         New module 'wcscoll'.
24982         * modules/wcscoll: New file.
24983         * lib/wchar.in.h (wcscoll): New declaration.
24984         * lib/wcscoll.c: New file.
24985         * lib/wcscoll-impl.h: New file.
24986         * m4/wcscoll.m4: New file.
24987         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
24988         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
24989         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
24990         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
24991         * doc/posix-functions/wcscoll.texi: Mention the new module.
24992
24993 2011-02-06  Bruno Haible  <bruno@clisp.org>
24994
24995         New module 'wcsncasecmp'.
24996         * modules/wcsncasecmp: New file.
24997         * lib/wchar.in.h (wcsncasecmp): New declaration.
24998         * lib/wcsncasecmp.c: New file.
24999         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
25000         * m4/wcsncasecmp.m4: New file.
25001         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
25002         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
25003         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
25004         HAVE_WCSNCASECMP.
25005         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
25006         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
25007
25008 2011-02-06  Bruno Haible  <bruno@clisp.org>
25009
25010         New module 'wcscasecmp'.
25011         * modules/wcscasecmp: New file.
25012         * lib/wchar.in.h (wcscasecmp): New declaration.
25013         * lib/wcscasecmp.c: New file.
25014         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
25015         * m4/wcscasecmp.m4: New file.
25016         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
25017         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
25018         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
25019         HAVE_WCSCASECMP.
25020         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
25021         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
25022
25023 2011-02-05  Bruno Haible  <bruno@clisp.org>
25024
25025         New module 'wcsncmp'.
25026         * modules/wcsncmp: New file.
25027         * lib/wchar.in.h (wcsncmp): New declaration.
25028         * lib/wcsncmp.c: New file.
25029         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
25030         * m4/wcsncmp.m4: New file.
25031         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
25032         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
25033         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
25034         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
25035         * doc/posix-functions/wcsncmp.texi: Mention the new module.
25036
25037 2011-02-05  Bruno Haible  <bruno@clisp.org>
25038
25039         New module 'wcscmp'.
25040         * modules/wcscmp: New file.
25041         * lib/wchar.in.h (wcscmp): New declaration.
25042         * lib/wcscmp.c: New file.
25043         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
25044         * m4/wcscmp.m4: New file.
25045         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
25046         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
25047         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
25048         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
25049         * doc/posix-functions/wcscmp.texi: Mention the new module.
25050
25051 2011-02-05  Bruno Haible  <bruno@clisp.org>
25052
25053         New module 'wcsncat'.
25054         * modules/wcsncat: New file.
25055         * lib/wchar.in.h (wcsncat): New declaration.
25056         * lib/wcsncat.c: New file.
25057         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
25058         * m4/wcsncat.m4: New file.
25059         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
25060         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
25061         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
25062         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
25063         * doc/posix-functions/wcsncat.texi: Mention the new module.
25064
25065 2011-02-05  Bruno Haible  <bruno@clisp.org>
25066
25067         New module 'wcscat'.
25068         * modules/wcscat: New file.
25069         * lib/wchar.in.h (wcscat): New declaration.
25070         * lib/wcscat.c: New file.
25071         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
25072         * m4/wcscat.m4: New file.
25073         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
25074         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
25075         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
25076         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
25077         * doc/posix-functions/wcscat.texi: Mention the new module.
25078
25079 2011-02-05  Bruno Haible  <bruno@clisp.org>
25080
25081         New module 'wcpncpy'.
25082         * modules/wcpncpy: New file.
25083         * lib/wchar.in.h (wcpncpy): New declaration.
25084         * lib/wcpncpy.c: New file.
25085         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
25086         * m4/wcpncpy.m4: New file.
25087         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
25088         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
25089         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
25090         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
25091         * doc/posix-functions/wcpncpy.texi: Mention the new module.
25092
25093 2011-02-05  Bruno Haible  <bruno@clisp.org>
25094
25095         New module 'wcsncpy'.
25096         * modules/wcsncpy: New file.
25097         * lib/wchar.in.h (wcsncpy): New declaration.
25098         * lib/wcsncpy.c: New file.
25099         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
25100         * m4/wcsncpy.m4: New file.
25101         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
25102         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
25103         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
25104         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
25105         * doc/posix-functions/wcsncpy.texi: Mention the new module.
25106
25107 2011-02-05  Bruno Haible  <bruno@clisp.org>
25108
25109         New module 'wcpcpy'.
25110         * modules/wcpcpy: New file.
25111         * lib/wchar.in.h (wcpcpy): New declaration.
25112         * lib/wcpcpy.c: New file.
25113         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
25114         * m4/wcpcpy.m4: New file.
25115         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
25116         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
25117         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
25118         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
25119         * doc/posix-functions/wcpcpy.texi: Mention the new module.
25120
25121 2011-02-05  Bruno Haible  <bruno@clisp.org>
25122
25123         New module 'wcscpy'.
25124         * modules/wcscpy: New file.
25125         * lib/wchar.in.h (wcscpy): New declaration.
25126         * lib/wcscpy.c: New file.
25127         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
25128         * m4/wcscpy.m4: New file.
25129         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
25130         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
25131         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
25132         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
25133         * doc/posix-functions/wcscpy.texi: Mention the new module.
25134
25135 2011-02-05  Bruno Haible  <bruno@clisp.org>
25136
25137         New module 'wcsnlen'.
25138         * modules/wcsnlen: New file.
25139         * lib/wchar.in.h (wcsnlen): New declaration.
25140         * lib/wcsnlen.c: New file.
25141         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
25142         * m4/wcsnlen.m4: New file.
25143         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
25144         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
25145         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
25146         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
25147         * doc/posix-functions/wcsnlen.texi: Mention the new module.
25148
25149 2011-02-05  Bruno Haible  <bruno@clisp.org>
25150
25151         New module 'wcslen'.
25152         * modules/wcslen: New file.
25153         * lib/wchar.in.h (wcslen): New declaration.
25154         * lib/wcslen.c: New file.
25155         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
25156         * m4/wcslen.m4: New file.
25157         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
25158         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
25159         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
25160         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
25161         * doc/posix-functions/wcslen.texi: Mention the new module.
25162
25163 2011-02-05  Bruno Haible  <bruno@clisp.org>
25164
25165         New module 'wmemset'.
25166         * modules/wmemset: New file.
25167         * lib/wchar.in.h (wmemset): New declaration.
25168         * lib/wmemset.c: New file.
25169         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
25170         * m4/wmemset.m4: New file.
25171         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
25172         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
25173         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
25174         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
25175         * doc/posix-functions/wmemset.texi: Mention the new module.
25176
25177 2011-02-05  Bruno Haible  <bruno@clisp.org>
25178
25179         New module 'wmemmove'.
25180         * modules/wmemmove: New file.
25181         * lib/wchar.in.h (wmemmove): New declaration.
25182         * lib/wmemmove.c: New file.
25183         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
25184         * m4/wmemmove.m4: New file.
25185         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
25186         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
25187         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
25188         HAVE_WMEMMOVE.
25189         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
25190         * doc/posix-functions/wmemmove.texi: Mention the new module.
25191
25192 2011-02-05  Bruno Haible  <bruno@clisp.org>
25193
25194         New module 'wmemcpy'.
25195         * modules/wmemcpy: New file.
25196         * lib/wchar.in.h (wmemcpy): New declaration.
25197         * lib/wmemcpy.c: New file.
25198         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
25199         * m4/wmemcpy.m4: New file.
25200         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
25201         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
25202         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
25203         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
25204         * doc/posix-functions/wmemcpy.texi: Mention the new module.
25205
25206 2011-02-05  Bruno Haible  <bruno@clisp.org>
25207
25208         New module 'wmemcmp'.
25209         * modules/wmemcmp: New file.
25210         * lib/wchar.in.h (wmemcmp): New declaration.
25211         * lib/wmemcmp.c: New file.
25212         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
25213         * m4/wmemcmp.m4: New file.
25214         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
25215         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
25216         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
25217         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
25218         * doc/posix-functions/wmemcmp.texi: Mention the new module.
25219
25220 2011-02-07  Jim Meyering  <meyering@redhat.com>
25221
25222         di-set, ino-map: new modules, from coreutils
25223         * lib/di-set.c: New file.
25224         * lib/di-set.h: Likewise.
25225         * lib/ino-map.c: Likewise.
25226         * lib/ino-map.h: Likewise.
25227         * modules/di-set: Likewise.
25228         * modules/di-set-tests: Likewise.
25229         * modules/ino-map: Likewise.
25230         * modules/ino-map-tests: Likewise.
25231         * tests/test-di-set.c: Likewise.
25232         * tests/test-ino-map.c: Likewise.
25233
25234 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
25235
25236         getloadavg: merge minor changes from Emacs
25237
25238         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
25239         (getloadavg): Use memset, not bzero.
25240
25241         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
25242         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
25243         clash (bug#86).
25244
25245 2010-11-14  Bruno Haible  <bruno@clisp.org>
25246
25247         Allow multiple gnulib generated replacements to coexist.
25248         * lib/getopt.in.h (struct option): Avoid identical redefinition.
25249         * lib/inttypes.in.h (imaxdiv_t): Likewise.
25250         * lib/langinfo.in.h (nl_item): Likewise.
25251         * lib/math.in.h (_NaN, NAN): Likewise.
25252         * lib/netdb.in.h (struct addrinfo): Likewise.
25253         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
25254         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
25255         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
25256         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
25257         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
25258         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
25259         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
25260         pthread_mutexattr_init, pthread_mutexattr_settype,
25261         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
25262         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
25263         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
25264         pthread_spin_trylock, pthread_spin_unlock): Likewise.
25265         * lib/sched.in.h (struct sched_param): Likewise.
25266         * lib/se-selinux.in.h (security_class_t, security_context_t,
25267         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
25268         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
25269         lsetfilecon, fsetfilecon, security_check_context,
25270         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
25271         Likewise.
25272         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
25273         Likewise.
25274         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
25275         _gl_function_taking_int_returning_void_t, union sigval,
25276         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
25277         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
25278         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
25279         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
25280         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
25281         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
25282         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
25283         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
25284         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
25285         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
25286         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
25287         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
25288         socklen_t, rpl_fd_isset): Likewise.
25289         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
25290         * lib/sys_time.in.h (struct timeval): Likewise.
25291         * lib/sys_times.in.h (struct tms): Likewise.
25292         * lib/sys_utsname.in.h (struct utsname):
25293         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
25294         * lib/unistd.in.h (getpagesize): Likewise.
25295         * lib/wchar.in.h (mbstate_t): Likewise.
25296         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
25297         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
25298         towlower, towupper): Likewise.
25299         Reported by Sam Steingold <sds@gnu.org>.
25300
25301 2011-02-05  Eric Blake  <eblake@redhat.com>
25302
25303         unsetenv: work around Haiku issues
25304         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
25305         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
25306
25307 2010-12-30  Bruce Korb  <bkorb@gnu.org>
25308
25309         libposix: avoid calling error() within libposix
25310         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
25311         is defined.
25312
25313 2011-02-05  Eric Blake  <eblake@redhat.com>
25314
25315         strerror_r-posix: port to cygwin
25316         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
25317         implementation.
25318         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
25319         * tests/test-strerror_r.c (main): Fix test.
25320         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
25321         issue.
25322
25323 2011-02-05  Bruno Haible  <bruno@clisp.org>
25324
25325         New module 'wmemchr'.
25326         * modules/wmemchr: New file.
25327         * lib/wchar.in.h (wmemchr): New declaration.
25328         * lib/wmemchr.c: New file.
25329         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
25330         * m4/wmemchr.m4: New file.
25331         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
25332         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
25333         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
25334         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
25335         * doc/posix-functions/wmemchr.texi: Mention the new module.
25336
25337 2011-02-04  Eric Blake  <eblake@redhat.com>
25338
25339         fdopendir: detect FreeBSD bug
25340         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
25341         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
25342
25343 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
25344
25345         stdbool: do not define HAVE_STDBOOL_H
25346         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
25347         AC_HEADER_STDBOOL.  All uses changed.  Do not define
25348         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
25349         imported from the latest Autoconf git.  It was motivated by Emacs,
25350         which uses gnulib but does not need HAVE_STDBOOL_H.
25351
25352 2011-02-04  Bruno Haible  <bruno@clisp.org>
25353
25354         wcsnrtombs: Prepare for new module wwcsnrtombs.
25355         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
25356         * lib/wcsnrtombs.c: Include it.
25357         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
25358
25359         wcsrtombs: Prepare for new module wwcsrtombs.
25360         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
25361         * lib/wcsrtombs.c: Include it.
25362         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
25363
25364         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
25365         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
25366         * lib/mbsnrtowcs.c: Include it.
25367         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
25368
25369         mbsrtowcs: Prepare for new module mbsrtowwcs.
25370         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
25371         * lib/mbsrtowcs.c: Include it.
25372         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
25373
25374 2011-02-04  Bruno Haible  <bruno@clisp.org>
25375
25376         vasnprintf: Reduce use of malloc for small format strings.
25377         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
25378         (arguments): Add room for the first 7 arguments.
25379         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
25380         (char_directives, u8_directives, u16_directives, u32_directives): Add
25381         room for the first 7 directives.
25382         * lib/printf-parse.c: Include <string.h>.
25383         (PRINTF_PARSE): Change memory handling code so that it uses the first
25384         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
25385         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
25386         Reported by Pádraig Brady <P@draigbrady.com>.
25387
25388 2011-01-31  Eric Blake  <eblake@redhat.com>
25389
25390         dup2: work around Haiku bug
25391         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
25392         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
25393         * doc/posix-functions/dup2.texi (dup2): Document the bug.
25394         * tests/test-dup2.c (main): Enhance test.
25395
25396 2011-01-31  Simon Josefsson  <simon@josefsson.org>
25397
25398         doc: off_t is not available in eglibc 2.11.2 stdio.h.
25399         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
25400         declared by eglibc 2.11.2.
25401         * lib/stdio.in.h: Likewise.
25402
25403 2011-01-31  Eric Blake  <eblake@redhat.com>
25404
25405         ignore-value: add missing test dependency
25406         * tests/test-ignore-value.c: Revert previous change; stdio.h
25407         provides off_t.
25408         * modules/ignore-value-tests (Depends-on): Add missing dependency.
25409
25410 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
25411
25412         mktime: clarify long_int width checking
25413         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
25414         the top level, to make it clearer that the assumption about
25415         long_int width is being checked.  See
25416         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
25417
25418 2011-01-30  Simon Josefsson  <simon@josefsson.org>
25419
25420         ignore-value: Fix self-test.
25421         * tests/test-ignore-value.c: Include sys/types.h for off_t.
25422
25423 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
25424
25425         TYPE_MAXIMUM: avoid theoretically undefined behavior
25426         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
25427         negative number, which the C Standard says has undefined behavior.
25428         In practice this is not a problem, but might as well do it by the book.
25429         Reported by Rich Felker and Eric Blake; see
25430         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
25431         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
25432         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
25433         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25434         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
25435         * m4/stdint.m4 (gl_STDINT_H): Likewise.
25436         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
25437
25438         mktime: #undef mktime before #defining it
25439         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
25440
25441         mktime: systematically normalize tm_isdst comparisons
25442         * lib/mktime.c (isdst_differ): New function.
25443         (__mktime_internal): Use it systematically for all isdst comparisons.
25444         This completes the fix for libc BZ #6723, and removes the need for
25445         normalizing tm_isdst.  See
25446         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
25447         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
25448
25449         mktime: fix some integer overflow issues and sidestep the rest
25450
25451         This was prompted by a bug report by Benjamin Lindner for MinGW
25452         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
25453         His bug is due to signed integer overflow (0 - INT_MIN), and I
25454         I scanned through mktime.c looking for other integer overflow
25455         problems, fixing all the bugs I found.
25456
25457         Although the C Standard says the resulting code is still not safe
25458         in the presence of integer overflow, in practice it should be good
25459         enough for all real-world two's-complement implementations, except
25460         for debugging environments that deliberately trap on integer
25461         overflow (e.g., gcc -ftrapv).
25462
25463         * lib/mktime.c (WRAPV): New macro.
25464         (SHR): Also check that long_int and time_t shift right in the
25465         usual way, before using the fast-but-unportable method.
25466         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
25467         used.  The code already assumed two's complement, so there's
25468         no need to test for alternatives.  All uses removed.
25469         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
25470         the C standard.  Problem reported by Rich Felker in
25471         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
25472         (twos_complement_arithmetic): Also check long_int and time_t.
25473         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
25474         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
25475         (__mktime_internal): Avoid integer overflow with unary subtraction
25476         in two instances where -1 - X is an adequate replacement for -X,
25477         since the calculations are approximate.
25478
25479 2011-01-29  Eric Blake  <eblake@redhat.com>
25480
25481         mktime: avoid infinite loop
25482         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
25483         type; behavior is still undefined but portable to all known targets.
25484         Reported by Rich Felker.
25485
25486 2011-01-29  Simon Josefsson  <simon@josefsson.org>
25487
25488         rename, unlink, same-inode: Relicense.
25489         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
25490         * modules/unlink (License): Likewise.
25491         * modules/same-inode (License): Likewise.
25492
25493 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
25494
25495         mktime: avoid problems on NetBSD 5 / i386
25496         * lib/mktime.c (long_int): New type.  This works around a problem
25497         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
25498         but time_t is 64 bits, and where I expect the existing code is
25499         wrong in some cases.
25500         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
25501         (ydhms_diff): Bring back the compile-time check for wide-enough
25502         year and yday.
25503
25504         mktime: fix misspelling in comment
25505         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
25506         This merges all recent glibc changes of importance.
25507
25508 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25509
25510         move-if-change: cope with concurrent mv of identical file.
25511         * build-aux/move-if-change (CMPPROG): Accept environment
25512         variable as an override for `cmp'.
25513         (usage): Document CMPPROG.
25514         Adjust comparison to drop stdout.  Cope with failure of mv if
25515         the target file exists and is identical to the source, for
25516         parallel builds.
25517         Report from H.J. Lu against binutils in PR binutils/12283.
25518
25519 2011-01-28  Bruce Korb  <bkorb@gnu.org>
25520
25521         * users.txt: Mention sharutils.
25522
25523 2011-01-28  Simon Josefsson  <simon@josefsson.org>
25524
25525         * users.txt: Mention OATH Toolkit.
25526
25527 2011-01-27  Bruno Haible  <bruno@clisp.org>
25528
25529         Prepare for supporting FreeBSD 10.
25530         * build-aux/config.libpath: Remove handling of freebsd1*.
25531
25532 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
25533
25534         Prepare for supporting FreeBSD 10.
25535         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
25536         match FreeBSD 10.0.
25537
25538 2011-01-27  Bruno Haible  <bruno@clisp.org>
25539
25540         vma-iter, get-rusage-as: Add OpenBSD support.
25541         * modules/vma-iter (configure.ac): Test for mquery.
25542         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
25543         * lib/vma-iter.c: Include <sys/mman.h>.
25544         (vma_iterate): Add an implementation based on mquery().
25545         * lib/resource-ext.h (get_rusage_as): Update comments.
25546         * lib/get-rusage-as.c: Likewise.
25547         * lib/get-rusage-data.c: Likewise.
25548
25549 2011-01-26  Karl Berry  <karl@gnu.org>
25550
25551         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
25552         variables to make it easier to override the makeinfo program used.
25553
25554 2011-01-26  Eric Blake  <eblake@redhat.com>
25555
25556         fcntl: work around Haiku F_DUPFD bugs
25557         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
25558         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
25559         cloexec bit on duplication.
25560         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
25561
25562 2011-01-26  Bruno Haible  <bruno@clisp.org>
25563
25564         Enable memory leak tests on AIX.
25565         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
25566         * tests/test-fprintf-posix3.c (main): Likewise.
25567
25568 2011-01-26  Bruno Haible  <bruno@clisp.org>
25569
25570         Tests for module 'get-rusage-data'.
25571         * modules/get-rusage-data-tests: New file.
25572         * tests/test-get-rusage-data.c: New file.
25573
25574         New module 'get-rusage-data'.
25575         * lib/resource-ext.h (get_rusage_data): New declaration.
25576         * lib/get-rusage-data.c: New file.
25577         * modules/get-rusage-data: New file.
25578
25579 2011-01-25  Bruno Haible  <bruno@clisp.org>
25580
25581         get-rusage-as: Allow for easier testing.
25582         * lib/resource-ext.h (get_rusage_as): Add comment.
25583         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
25584         (main): New function for interactive testing.
25585
25586 2011-01-25  Bruno Haible  <bruno@clisp.org>
25587
25588         vma-iter: Treat Haiku like BeOS.
25589         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
25590         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
25591
25592 2011-01-25  Eric Blake  <eblake@redhat.com>
25593
25594         c-stack: fix regression on cygwin when libsigsegv is present
25595         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
25596
25597 2011-01-24  Bruno Haible  <bruno@clisp.org>
25598
25599         vma-iter: Avoid empty intervals.
25600         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
25601         on an empty interval.
25602
25603 2011-01-24  Jim Meyering  <meyering@redhat.com>
25604
25605         u64: remove unnecessary #include
25606         * lib/u64.h: Don't include <stddef.h>.  It was not used.
25607
25608 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
25609
25610         Allow the user to avoid the HAVE_RAW_DECL_* macros.
25611         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
25612
25613 2011-01-23  Bruno Haible  <bruno@clisp.org>
25614
25615         New module 'vma-iter'.
25616         * lib/vma-iter.h: New file.
25617         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
25618         * modules/vma-iter: New file.
25619         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
25620         for get_rusage_as_via_iterator.
25621         (vma_iterate_callback): New function.
25622         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
25623         * modules/get-rusage-as (Depends-on): Add vma-iter.
25624
25625 2011-01-23  Bruno Haible  <bruno@clisp.org>
25626
25627         uninorm: Tweak includes.
25628         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
25629         Reported by Jim Meyering.
25630
25631 2011-01-23  Bruno Haible  <bruno@clisp.org>
25632
25633         get-rusage-as: Improve on NetBSD.
25634         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
25635         /proc, like on FreeBSD.
25636
25637 2011-01-23  Jim Meyering  <meyering@redhat.com>
25638
25639         xreadlink.h: remove unnecessary #include
25640         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
25641
25642         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
25643         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
25644
25645 2011-01-23  Bruno Haible  <bruno@clisp.org>
25646
25647         get-rusage-as: Fix bug.
25648         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
25649         original limit when aborting the first loop.
25650
25651 2011-01-23  Bruno Haible  <bruno@clisp.org>
25652
25653         wctype: Ensure valid C syntax.
25654         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
25655         unconditionally, instead of gl_NEXT_HEADERS conditionally.
25656
25657 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
25658
25659         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
25660         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
25661         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
25662         as they are needed only for configure's test case.
25663         This removes two unnecessary symbols from config.h.
25664
25665         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
25666         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
25667         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
25668         AC_CHECK_HEADERS_ONCE on a header that we also invoke
25669         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
25670         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
25671         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
25672         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
25673         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
25674         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
25675         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
25676         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25677         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25678         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
25679         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
25680         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
25681         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
25682         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
25683
25684 2011-01-21  Eric Blake  <eblake@redhat.com>
25685
25686         maintainer-makefile: work with older git for submodule check
25687         * top/maint.mk (public-submodule-commit): Rewrite to avoid
25688         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
25689         Reported by Matthias Bolte.
25690
25691         bootstrap: minor portability fixes
25692         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
25693         (usage): Omit leading capital and trailing . on help phrases, per
25694         GNU Coding Standards.
25695         (check_versions, top level): Prefix messages with script name.
25696
25697 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
25698
25699         bootstrap: support --no-git option
25700         * build-aux/bootstrap: Add --no-git option, to be used when
25701         --gnulib-srcdir points to the exact desired checkout.
25702
25703 2011-01-21  Eric Blake  <eblake@redhat.com>
25704
25705         strerror_r-posix: work with glibc 2.13
25706         * lib/strerror_r.c (strerror_r): Fix return type.
25707
25708 2011-01-21  Pádraig Brady  <P@draigBrady.com>
25709             Bruno Haible  <bruno@clisp.org>
25710
25711         uN_strstr: New unit tests.
25712         * modules/unistr/u8-strstr-tests: New file.
25713         * modules/unistr/u16-strstr-tests: New file.
25714         * modules/unistr/u32-strstr-tests: New file.
25715         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
25716         * tests/unistr/test-u8-strstr.c: New file.
25717         * tests/unistr/test-u16-strstr.c: New file.
25718         * tests/unistr/test-u32-strstr.c: New file.
25719
25720 2011-01-21  Pádraig Brady  <P@draigBrady.com>
25721             Bruno Haible  <bruno@clisp.org>
25722
25723         Make uN_strstr functions O(n) worst-case.
25724         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
25725         16-bit and 32-bit unit cases, use the unibyte algorithm from
25726         lib/mbsstr.c.
25727         * lib/unistr/u8-strstr.c: Include <string.h>.
25728         (UNIT_IS_UINT8_T): New macro.
25729         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
25730         (U_STRLEN, U_STRNLEN): New macros.
25731         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
25732         (U_STRLEN, U_STRNLEN): New macros.
25733         * modules/unistr/u8-strstr (Depends-on): Add strstr.
25734         (configure.ac): Update required libunistring version.
25735         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
25736         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
25737         malloca.
25738         (configure.ac): Update required libunistring version.
25739         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
25740         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
25741         malloca.
25742         (configure.ac): Update required libunistring version.
25743
25744 2011-01-21  Pádraig Brady  <P@draigBrady.com>
25745             Bruno Haible  <bruno@clisp.org>
25746
25747         Prepare for faster uN_strstr functions.
25748         * lib/str-kmp.h: Support definable UNITs.
25749         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
25750         needle_len argument.
25751         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
25752         * lib/mbscasestr.c (mbscasestr): Likewise.
25753
25754 2011-01-21  Pádraig Brady <P@draigBrady.com>
25755
25756         malloca-tests: make faster by unsetting MALLOC_PERTURB_
25757         * tests/test-malloca.c (main): Unset the environment variable
25758         to greatly speed up the test.
25759         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
25760         * modules/malloca-tests: Depend on unsetenv.
25761
25762 2011-01-21  Pádraig Brady <P@draigBrady.com>
25763
25764         ignore-value: remove stdint dependency
25765         * lib/ignore-value.h: Remove <stdint.h>
25766         * modules/ignore-value: Remove stdint dependency.
25767
25768 2011-01-21  Jim Meyering  <meyering@redhat.com>
25769
25770         maint.mk: adjust variable name to be consistent with other gl_ vars
25771         * top/maint.mk (gl_public_submodule_commit): Rename the variable
25772         to be lower case.
25773
25774 2011-01-20  Jim Meyering  <meyering@redhat.com>
25775
25776         maint.mk: make "check" depend on public-submodule-commit by default
25777         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
25778
25779 2011-01-20  Bruno Haible  <bruno@clisp.org>
25780
25781         mbfile, mbiter: Complete change from 2008-12-21.
25782         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
25783         * m4/mbiter.m4 (gl_MBITER): Likewise.
25784
25785 2011-01-20  Jim Meyering  <meyering@redhat.com>
25786
25787         init.sh: insert space between each function name and "()"
25788         * tests/init.sh: Make it a little easier to see that a function's
25789         name is "warn_", and not "warn" when looking at the first part of
25790         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
25791
25792 2011-01-20  Jim Meyering  <meyering@redhat.com>
25793
25794         mountlist: clean up code formatting
25795         * lib/mountlist.c (read_file_system_list): Split a long line,
25796         correct bracing style, use NULL in place of "(struct statfs *)0",
25797         don't parenthesize return value, add spaces around "=" and after
25798         ";-in-for-stmt".
25799
25800 2011-01-14  Markus Duft <mduft@gentoo.org>
25801
25802         mountlist: add support for Interix
25803         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
25804         Apply statvfs to all entries of /dev/fs.
25805         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
25806         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
25807
25808 2011-01-20  Jim Meyering  <meyering@redhat.com>
25809
25810         maint.mk: improve the public-submodule-commit rule
25811         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
25812         to suppress printing of its commands... unless V=1.
25813         Add git submodule's --quiet option to suppress printing of e.g.,
25814         "Entering gnulib" output.
25815         "cd" into $(srcdir) before running git submodule.
25816
25817 2011-01-20  Bruno Haible  <bruno@clisp.org>
25818
25819         include_next: Fix bug introduced on 2011-01-18.
25820         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
25821         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
25822         ac_cv_header_... variable if the second argument is not 'check'.
25823         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
25824         gl_NEXT_HEADERS_INTERNAL.
25825
25826 2011-01-20  Bruno Haible  <bruno@clisp.org>
25827
25828         Allow the user to avoid the GNULIB_TEST_* macros.
25829         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
25830         Suggested by Paul Eggert.
25831
25832 2011-01-14  Jim Meyering  <meyering@redhat.com>
25833
25834         bootstrap: avoid failure when there is no .gitmodules file
25835         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
25836         has been assigned to, even when its value is the empty string.
25837         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
25838         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
25839         Reported by John W. Eaton <jwe@gnu.org>.
25840
25841 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
25842
25843         assume <ctype.h>, ..., <time.h> exist
25844         For years gnulib has been assuming the existence of the headers
25845         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
25846         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
25847         them, since they don't appear to be needed.
25848         * README (Portability guidelines): Document this.
25849         * lib/flock.c: Assume <fcntl.h> exists.
25850         * lib/regex_internal.h: Assume <locale.h> exists.
25851         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
25852         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
25853         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
25854         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
25855         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
25856         * m4/regex.m4 (gl_REGEX): Likewise.
25857         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
25858         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
25859         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
25860         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
25861         * tests/test-argp.c: Likewise.
25862         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
25863
25864         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
25865         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
25866         AA_APPLE_UNIVERSAL_BUILD.  See
25867         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
25868         * NEWS: Document this.
25869
25870 2011-01-19  Eric Blake  <eblake@redhat.com>
25871
25872         c-stack: assume stack overflow if SA_SIGINFO unsupported
25873         * lib/c-stack.c (SIGACTION_WORKS): Rename...
25874         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
25875         sigaction will work.
25876         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
25877         behavior match Linux.
25878         * tests/test-c-stack.c (main): Prefer NULL for pointers.
25879
25880         stdbool-tests: accommodate Haiku
25881         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
25882
25883         binary-io: fix O_TEXT on Haiku
25884         * modules/binary-io (Depends-on): Add fcntl-h.
25885         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
25886         than blindly undefining O_TEXT.
25887         Reported by Scott McCreary.
25888
25889 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
25890
25891         include_next: do not check for standard headers like stddef.h
25892
25893         I found this problem when modifying Emacs to use gnulib.
25894         I noticed that it added HAVE_STDDEF_H to config.h, even though
25895         gnulib always assumes <stddef.h> exists as per README and this
25896         symbol is unnecessary.
25897         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
25898         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
25899         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
25900         faster for headers like stddef.h that are known to exist.
25901         (gl_CHECK_NEXT_HEADERS): Use it.
25902         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
25903         rather than gl_CHECK_NEXT_HEADERS.
25904         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
25905         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
25906
25907 2011-01-18  Eric Blake  <eblake@redhat.com>
25908
25909         ansi-c++-opt: skip C++ dependency style if C++ is unused
25910         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
25911         tests when we know C++ compilation is not desired.
25912         Reported by Scott McCreary.
25913
25914 2011-01-18  Bruno Haible  <bruno@clisp.org>
25915
25916         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
25917         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
25918         (main): Perform test also when getrlimit and setrlimit don't exist or
25919         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
25920         limiting the address space size using setrlimit, compare the address
25921         space size before and after the the test.
25922         * tests/test-dprintf-posix2.c: Likewise.
25923         * tests/test-fprintf-posix3.sh: Update skip messages.
25924         * tests/test-dprintf-posix2.sh: Likewise.
25925         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
25926         * modules/dprintf-posix-tests (Depends-on): Likewise.
25927         Reported by Bruce Korb <bkorb@gnu.org> and
25928         Gary V. Vaughan <gary@gnu.org>.
25929
25930 2011-01-18  Bruno Haible  <bruno@clisp.org>
25931
25932         get-rusage-as: Improvement for Cygwin.
25933         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
25934         areas that are merely reserved.
25935
25936 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
25937
25938         strftime: remove dependencies on multibyte modules
25939
25940         strftime depended on mbrlen, mbsinit, and wchar, but these modules
25941         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
25942         only if __osf__ is defined, and I suspect OSF doesn't need these
25943         other modules.  If my guess is wrong, we'll need to come up with a
25944         variant of strftime that doesn't need the multibyte modules.
25945
25946         I discovered this problem when attempting modify Emacs to use the
25947         strftime module.  With the previous gnulib, this caused Emacs to
25948         need 31 new files, ranging from lib/config.charset to
25949         m4/wint_t.m4.  This was overkill and I expect would be offputting
25950         to the Emacs maintainers.  After this change, only 6 new files are
25951         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
25952         stdbool.m4, and tm_gmtoff.m4.
25953
25954         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
25955         Suggested by Bruno Haible in
25956         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
25957         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
25958         and do not check for wchar.h.
25959         * modules/strftime (Files): Remove m4/mbstate_t.m4.
25960         (Depends-on): Remove mbrlen, mbsinit, wchar.
25961
25962 2011-01-18  Bruno Haible  <bruno@clisp.org>
25963
25964         Tests for module 'get-rusage-as'.
25965         * modules/get-rusage-as-tests: New file.
25966         * tests/test-get-rusage-as.c: New file.
25967
25968         New module 'get-rusage-as'.
25969         * modules/get-rusage-as: New file.
25970         * lib/resource-ext.h: New file.
25971         * lib/get-rusage-as.c: New file.
25972
25973 2011-01-17  Eric Blake  <eblake@redhat.com>
25974
25975         sigaction: relax license from LGPLv3+ to LGPLv2+
25976         * modules/sigaction (License): Relax to LGPLv2+.
25977
25978 2011-01-14  Bruno Haible  <bruno@clisp.org>
25979
25980         filemode: Make function declarations usable in C++ mode.
25981         * lib/filemode.h: Enclose function declarations in extern "C" block.
25982         Reported by John W. Eaton <jwe@gnu.org>.
25983
25984 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
25985
25986         save-cwd: no longer include "xgetcwd.h"
25987         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
25988         This avoids a compilation failure in projects that use save-cwd
25989         without also using the xgetcwd module.
25990
25991 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
25992
25993         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
25994         This is so that a program like Emacs, which needs only dtoastr,
25995         does not have to bother with distributing and compiling ftoastr
25996         and ldtoastr.
25997         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
25998         * modules/dtoastr, modules/ldtoastr: New files.
25999         * modules/ftoastr: Now works just for 'float'.
26000         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
26001         (Makefile.am): Remove ftoastr.h (not needed and no effect),
26002         dtoastr.c, ldtoastr.c.
26003
26004 2011-01-11  Jim Meyering  <meyering@redhat.com>
26005
26006         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
26007         There is no need to work around the lack of the fchdir function,
26008         since gnulib can now provide a replacement when required.
26009         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
26010         * modules/save-cwd (Depends-on): Add fchdir.
26011
26012 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
26013
26014         openat, save-cwd: avoid xmalloc
26015
26016         This removes a direct (but undocumented) dependency of openat on
26017         xalloc, along with an indirect dependency via save-cwd.  It also
26018         removes a dependency of save-cwd on xgetcwd, and thereby
26019         indirectly on xalloc.  This change causes the openat substitute
26020         to fall back on save_cwd when memory is tight, and for save_cwd to
26021         fail instead of dying when memory is tight, but that's good enough.
26022         Problem and initial idea for fix reported by Bastien Roucaries in
26023         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
26024
26025         * lib/openat-proc.c: Include stdlib.h (for malloc), not
26026         xalloc.h (for xmalloc).
26027         (openat_proc_name): Use malloc, not xmalloc.
26028         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
26029         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
26030
26031         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
26032         This avoids heap allocation for file names whose lengths are in
26033         the range 512..1023, with the upper bound increasing to at most
26034         4031 depending on the platform's PATH_MAX.  (We do not want
26035         pathmax.h here as it might supply a non-constant PATH_MAX.)
26036         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
26037         Perhaps they should be moved to malloca.h?
26038         (OPENAT_BUFFER_SIZE): Use them.
26039
26040 2011-01-10  Bruno Haible  <bruno@clisp.org>
26041
26042         doc: Update users.txt.
26043         * users.txt: Add recutils.
26044
26045 2011-01-09  Karl Berry  <karl@gnu.org>
26046
26047         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
26048
26049         * doc/configmake.texi: New file.
26050         * doc/gnulib.texi: Include it.
26051         * modules/configmake: Move documentation from here.
26052
26053 2011-01-09  Bruno Haible  <bruno@clisp.org>
26054
26055         Update to Unicode 6.0.0.
26056         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
26057         (get_lbp): Update for Unicode 6.0.0.
26058         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
26059         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
26060         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
26061         U+11001, U+11038..U+11046. Remove U+06DE.
26062         (uc_width): Fix bounds of planes.
26063         * tests/uniwidth/test-uc_width2.sh: Same updates as in
26064         lib/uniwidth/width.c.
26065         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
26066         trailing whitespace removed.
26067         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
26068         without comments, but with the original copyright notice.
26069         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
26070         * lib/unicase/ignorable.h: Likewise.
26071         * lib/unicase/tocasefold.h: Likewise.
26072         * lib/unicase/tolower.h: Likewise.
26073         * lib/unicase/totitle.h: Likewise.
26074         * lib/unicase/toupper.h: Likewise.
26075         * lib/unictype/bidi_of.h: Likewise.
26076         * lib/unictype/blocks.h: Likewise.
26077         * lib/unictype/categ_C.h: Likewise.
26078         * lib/unictype/categ_Cn.h: Likewise.
26079         * lib/unictype/categ_L.h: Likewise.
26080         * lib/unictype/categ_Ll.h: Likewise.
26081         * lib/unictype/categ_Lm.h: Likewise.
26082         * lib/unictype/categ_Lo.h: Likewise.
26083         * lib/unictype/categ_Lu.h: Likewise.
26084         * lib/unictype/categ_M.h: Likewise.
26085         * lib/unictype/categ_Mc.h: Likewise.
26086         * lib/unictype/categ_Me.h: Likewise.
26087         * lib/unictype/categ_Mn.h: Likewise.
26088         * lib/unictype/categ_N.h: Likewise.
26089         * lib/unictype/categ_Nd.h: Likewise.
26090         * lib/unictype/categ_No.h: Likewise.
26091         * lib/unictype/categ_P.h: Likewise.
26092         * lib/unictype/categ_Po.h: Likewise.
26093         * lib/unictype/categ_S.h: Likewise.
26094         * lib/unictype/categ_Sc.h: Likewise.
26095         * lib/unictype/categ_Sk.h: Likewise.
26096         * lib/unictype/categ_Sm.h: Likewise.
26097         * lib/unictype/categ_So.h: Likewise.
26098         * lib/unictype/categ_of.h: Likewise.
26099         * lib/unictype/combining.h: Likewise.
26100         * lib/unictype/ctype_alnum.h: Likewise.
26101         * lib/unictype/ctype_alpha.h: Likewise.
26102         * lib/unictype/ctype_graph.h: Likewise.
26103         * lib/unictype/ctype_lower.h: Likewise.
26104         * lib/unictype/ctype_print.h: Likewise.
26105         * lib/unictype/ctype_punct.h: Likewise.
26106         * lib/unictype/ctype_upper.h: Likewise.
26107         * lib/unictype/decdigit.h: Likewise.
26108         * lib/unictype/digit.h: Likewise.
26109         * lib/unictype/numeric.h: Likewise.
26110         * lib/unictype/pr_alphabetic.h: Likewise.
26111         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
26112         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
26113         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
26114         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
26115         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
26116         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
26117         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
26118         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
26119         * lib/unictype/pr_case_ignorable.h: Likewise.
26120         * lib/unictype/pr_cased.h: Likewise.
26121         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
26122         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
26123         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
26124         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
26125         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
26126         * lib/unictype/pr_combining.h: Likewise.
26127         * lib/unictype/pr_composite.h: Likewise.
26128         * lib/unictype/pr_currency_symbol.h: Likewise.
26129         * lib/unictype/pr_decimal_digit.h: Likewise.
26130         * lib/unictype/pr_deprecated.h: Likewise.
26131         * lib/unictype/pr_format_control.h: Likewise.
26132         * lib/unictype/pr_grapheme_base.h: Likewise.
26133         * lib/unictype/pr_grapheme_extend.h: Likewise.
26134         * lib/unictype/pr_grapheme_link.h: Likewise.
26135         * lib/unictype/pr_id_continue.h: Likewise.
26136         * lib/unictype/pr_id_start.h: Likewise.
26137         * lib/unictype/pr_ideographic.h: Likewise.
26138         * lib/unictype/pr_lowercase.h: Likewise.
26139         * lib/unictype/pr_math.h: Likewise.
26140         * lib/unictype/pr_numeric.h: Likewise.
26141         * lib/unictype/pr_other_alphabetic.h: Likewise.
26142         * lib/unictype/pr_other_id_continue.h: Likewise.
26143         * lib/unictype/pr_other_math.h: Likewise.
26144         * lib/unictype/pr_punctuation.h: Likewise.
26145         * lib/unictype/pr_sentence_terminal.h: Likewise.
26146         * lib/unictype/pr_terminal_punctuation.h: Likewise.
26147         * lib/unictype/pr_unassigned_code_value.h: Likewise.
26148         * lib/unictype/pr_unified_ideograph.h: Likewise.
26149         * lib/unictype/pr_uppercase.h: Likewise.
26150         * lib/unictype/pr_xid_continue.h: Likewise.
26151         * lib/unictype/pr_xid_start.h: Likewise.
26152         * lib/unictype/scripts.h: Likewise.
26153         * lib/unictype/scripts_byname.gperf: Likewise.
26154         * lib/unictype/sy_java_ident.h: Likewise.
26155         * lib/unigbrk/gbrkprop.h: Likewise.
26156         * lib/unilbrk/lbrkprop1.h: Likewise.
26157         * lib/unilbrk/lbrkprop2.h: Likewise.
26158         * lib/uninorm/decomposition-table2.h: Likewise.
26159         * lib/uniwbrk/wbrkprop.h: Likewise.
26160         * tests/unicase/test-cased.c: Likewise.
26161         * tests/unicase/test-ignorable.c: Likewise.
26162         * tests/unicase/test-uc_tolower.c: Likewise.
26163         * tests/unicase/test-uc_totitle.c: Likewise.
26164         * tests/unicase/test-uc_toupper.c: Likewise.
26165         * tests/unictype/test-categ_C.c: Likewise.
26166         * tests/unictype/test-categ_Cn.c: Likewise.
26167         * tests/unictype/test-categ_L.c: Likewise.
26168         * tests/unictype/test-categ_Ll.c: Likewise.
26169         * tests/unictype/test-categ_Lm.c: Likewise.
26170         * tests/unictype/test-categ_Lo.c: Likewise.
26171         * tests/unictype/test-categ_Lu.c: Likewise.
26172         * tests/unictype/test-categ_M.c: Likewise.
26173         * tests/unictype/test-categ_Mc.c: Likewise.
26174         * tests/unictype/test-categ_Me.c: Likewise.
26175         * tests/unictype/test-categ_Mn.c: Likewise.
26176         * tests/unictype/test-categ_N.c: Likewise.
26177         * tests/unictype/test-categ_Nd.c: Likewise.
26178         * tests/unictype/test-categ_No.c: Likewise.
26179         * tests/unictype/test-categ_P.c: Likewise.
26180         * tests/unictype/test-categ_Po.c: Likewise.
26181         * tests/unictype/test-categ_S.c: Likewise.
26182         * tests/unictype/test-categ_Sc.c: Likewise.
26183         * tests/unictype/test-categ_Sk.c: Likewise.
26184         * tests/unictype/test-categ_Sm.c: Likewise.
26185         * tests/unictype/test-categ_So.c: Likewise.
26186         * tests/unictype/test-ctype_alnum.c: Likewise.
26187         * tests/unictype/test-ctype_alpha.c: Likewise.
26188         * tests/unictype/test-ctype_graph.c: Likewise.
26189         * tests/unictype/test-ctype_lower.c: Likewise.
26190         * tests/unictype/test-ctype_print.c: Likewise.
26191         * tests/unictype/test-ctype_punct.c: Likewise.
26192         * tests/unictype/test-ctype_upper.c: Likewise.
26193         * tests/unictype/test-decdigit.h: Likewise.
26194         * tests/unictype/test-digit.h: Likewise.
26195         * tests/unictype/test-numeric.h: Likewise.
26196         * tests/unictype/test-pr_alphabetic.c: Likewise.
26197         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
26198         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
26199         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
26200         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
26201         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
26202         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
26203         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
26204         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
26205         * tests/unictype/test-pr_case_ignorable.c: Likewise.
26206         * tests/unictype/test-pr_cased.c: Likewise.
26207         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
26208         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
26209         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
26210         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
26211         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
26212         * tests/unictype/test-pr_combining.c: Likewise.
26213         * tests/unictype/test-pr_composite.c: Likewise.
26214         * tests/unictype/test-pr_currency_symbol.c: Likewise.
26215         * tests/unictype/test-pr_decimal_digit.c: Likewise.
26216         * tests/unictype/test-pr_deprecated.c: Likewise.
26217         * tests/unictype/test-pr_format_control.c: Likewise.
26218         * tests/unictype/test-pr_grapheme_base.c: Likewise.
26219         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
26220         * tests/unictype/test-pr_grapheme_link.c: Likewise.
26221         * tests/unictype/test-pr_id_continue.c: Likewise.
26222         * tests/unictype/test-pr_id_start.c: Likewise.
26223         * tests/unictype/test-pr_ideographic.c: Likewise.
26224         * tests/unictype/test-pr_lowercase.c: Likewise.
26225         * tests/unictype/test-pr_math.c: Likewise.
26226         * tests/unictype/test-pr_numeric.c: Likewise.
26227         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
26228         * tests/unictype/test-pr_other_id_continue.c: Likewise.
26229         * tests/unictype/test-pr_other_math.c: Likewise.
26230         * tests/unictype/test-pr_punctuation.c: Likewise.
26231         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
26232         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
26233         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
26234         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
26235         * tests/unictype/test-pr_uppercase.c: Likewise.
26236         * tests/unictype/test-pr_xid_continue.c: Likewise.
26237         * tests/unictype/test-pr_xid_start.c: Likewise.
26238         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
26239         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
26240         changes.
26241         * lib/unictype/categ_Cc.h: Likewise.
26242         * lib/unictype/categ_Cf.h: Likewise.
26243         * lib/unictype/categ_Co.h: Likewise.
26244         * lib/unictype/categ_Cs.h: Likewise.
26245         * lib/unictype/categ_Lt.h: Likewise.
26246         * lib/unictype/categ_Nl.h: Likewise.
26247         * lib/unictype/categ_Pc.h: Likewise.
26248         * lib/unictype/categ_Pd.h: Likewise.
26249         * lib/unictype/categ_Pe.h: Likewise.
26250         * lib/unictype/categ_Pf.h: Likewise.
26251         * lib/unictype/categ_Pi.h: Likewise.
26252         * lib/unictype/categ_Ps.h: Likewise.
26253         * lib/unictype/categ_Z.h: Likewise.
26254         * lib/unictype/categ_Zl.h: Likewise.
26255         * lib/unictype/categ_Zp.h: Likewise.
26256         * lib/unictype/categ_Zs.h: Likewise.
26257         * lib/unictype/ctype_blank.h: Likewise.
26258         * lib/unictype/ctype_cntrl.h: Likewise.
26259         * lib/unictype/ctype_digit.h: Likewise.
26260         * lib/unictype/ctype_space.h: Likewise.
26261         * lib/unictype/ctype_xdigit.h: Likewise.
26262         * lib/unictype/mirror.h: Likewise.
26263         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
26264         * lib/unictype/pr_bidi_block_separator.h: Likewise.
26265         * lib/unictype/pr_bidi_common_separator.h: Likewise.
26266         * lib/unictype/pr_bidi_control.h: Likewise.
26267         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
26268         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
26269         * lib/unictype/pr_bidi_european_digit.h: Likewise.
26270         * lib/unictype/pr_bidi_pdf.h: Likewise.
26271         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
26272         * lib/unictype/pr_bidi_whitespace.h: Likewise.
26273         * lib/unictype/pr_dash.h: Likewise.
26274         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
26275         * lib/unictype/pr_diacritic.h: Likewise.
26276         * lib/unictype/pr_extender.h: Likewise.
26277         * lib/unictype/pr_hex_digit.h: Likewise.
26278         * lib/unictype/pr_hyphen.h: Likewise.
26279         * lib/unictype/pr_ids_binary_operator.h: Likewise.
26280         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
26281         * lib/unictype/pr_ignorable_control.h: Likewise.
26282         * lib/unictype/pr_iso_control.h: Likewise.
26283         * lib/unictype/pr_join_control.h: Likewise.
26284         * lib/unictype/pr_left_of_pair.h: Likewise.
26285         * lib/unictype/pr_line_separator.h: Likewise.
26286         * lib/unictype/pr_logical_order_exception.h: Likewise.
26287         * lib/unictype/pr_non_break.h: Likewise.
26288         * lib/unictype/pr_not_a_character.h: Likewise.
26289         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
26290         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
26291         * lib/unictype/pr_other_id_start.h: Likewise.
26292         * lib/unictype/pr_other_lowercase.h: Likewise.
26293         * lib/unictype/pr_other_uppercase.h: Likewise.
26294         * lib/unictype/pr_paired_punctuation.h: Likewise.
26295         * lib/unictype/pr_paragraph_separator.h: Likewise.
26296         * lib/unictype/pr_pattern_syntax.h: Likewise.
26297         * lib/unictype/pr_pattern_white_space.h: Likewise.
26298         * lib/unictype/pr_private_use.h: Likewise.
26299         * lib/unictype/pr_quotation_mark.h: Likewise.
26300         * lib/unictype/pr_radical.h: Likewise.
26301         * lib/unictype/pr_soft_dotted.h: Likewise.
26302         * lib/unictype/pr_space.h: Likewise.
26303         * lib/unictype/pr_titlecase.h: Likewise.
26304         * lib/unictype/pr_variation_selector.h: Likewise.
26305         * lib/unictype/pr_white_space.h: Likewise.
26306         * lib/unictype/pr_zero_width.h: Likewise.
26307         * lib/unictype/sy_c_ident.h: Likewise.
26308         * lib/unictype/sy_c_whitespace.h: Likewise.
26309         * lib/unictype/sy_java_whitespace.h: Likewise.
26310         * lib/uninorm/composition-table.gperf: Likewise.
26311         * lib/uninorm/decomposition-table1.h: Likewise.
26312         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
26313         LB8.
26314         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
26315         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
26316         * modules/unictype/*: Bump version number of expected libunistring
26317         version.
26318
26319 2011-01-09  Bruno Haible  <bruno@clisp.org>
26320
26321         Update to Unicode 5.2.0.
26322         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
26323         trailing whitespace removed.
26324
26325 2011-01-09  Bruno Haible  <bruno@clisp.org>
26326
26327         New Unicode character properties, from Unicode 5.2.0.
26328         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
26329         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
26330         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
26331         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
26332         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
26333         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
26334         uc_is_property_cased, uc_is_property_case_ignorable,
26335         uc_is_property_changes_when_lowercased,
26336         uc_is_property_changes_when_uppercased,
26337         uc_is_property_changes_when_titlecased,
26338         uc_is_property_changes_when_casefolded,
26339         uc_is_property_changes_when_casemapped): New declarations.
26340         * lib/unictype/pr_byname.gperf: Add the new properties.
26341         * modules/unictype/property-byname (Depends-on): Depend on the new
26342         properties modules.
26343         * modules/unictype/property-all (Depends-on): Likewise.
26344         * MODULES.html.sh (Unicode string functions): Add
26345         unictype/property-case-ignorable, unictype/property-cased,
26346         unictype/property-changes-when-casefolded,
26347         unictype/property-changes-when-casemapped,
26348         unictype/property-changes-when-lowercased,
26349         unictype/property-changes-when-titlecased,
26350         unictype/property-changes-when-uppercased.
26351
26352         New module 'unictype/property-changes-when-casemapped'.
26353         * modules/unictype/property-changes-when-casemapped: New file.
26354         * lib/unictype/pr_changes_when_casemapped.c: New file.
26355         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
26356         generated by gen-uni-tables.
26357         * modules/unictype/property-changes-when-casemapped-tests: New file.
26358         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
26359         automatically generated by gen-uni-tables.
26360
26361         New module 'unictype/property-changes-when-casefolded'.
26362         * modules/unictype/property-changes-when-casefolded: New file.
26363         * lib/unictype/pr_changes_when_casefolded.c: New file.
26364         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
26365         generated by gen-uni-tables.
26366         * modules/unictype/property-changes-when-casefolded-tests: New file.
26367         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
26368         automatically generated by gen-uni-tables.
26369
26370         New module 'unictype/property-changes-when-titlecased'.
26371         * modules/unictype/property-changes-when-titlecased: New file.
26372         * lib/unictype/pr_changes_when_titlecased.c: New file.
26373         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
26374         generated by gen-uni-tables.
26375         * modules/unictype/property-changes-when-titlecased-tests: New file.
26376         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
26377         automatically generated by gen-uni-tables.
26378
26379         New module 'unictype/property-changes-when-uppercased'.
26380         * modules/unictype/property-changes-when-uppercased: New file.
26381         * lib/unictype/pr_changes_when_uppercased.c: New file.
26382         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
26383         generated by gen-uni-tables.
26384         * modules/unictype/property-changes-when-uppercased-tests: New file.
26385         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
26386         automatically generated by gen-uni-tables.
26387
26388         New module 'unictype/property-changes-when-lowercased'.
26389         * modules/unictype/property-changes-when-lowercased: New file.
26390         * lib/unictype/pr_changes_when_lowercased.c: New file.
26391         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
26392         generated by gen-uni-tables.
26393         * modules/unictype/property-changes-when-lowercased-tests: New file.
26394         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
26395         automatically generated by gen-uni-tables.
26396
26397         New module 'unictype/property-case-ignorable'.
26398         * modules/unictype/property-case-ignorable: New file.
26399         * lib/unictype/pr_case_ignorable.c: New file.
26400         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
26401         by gen-uni-tables.
26402         * modules/unictype/property-case-ignorable-tests: New file.
26403         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
26404         generated by gen-uni-tables.
26405
26406         New module 'unictype/property-cased'.
26407         * modules/unictype/property-cased: New file.
26408         * lib/unictype/pr_cased.c: New file.
26409         * lib/unictype/pr_cased.h: New file, automatically generated by
26410         gen-uni-tables.
26411         * modules/unictype/property-cased-tests: New file.
26412         * tests/unictype/test-pr_cased.c: New file, automatically generated by
26413         gen-uni-tables.
26414
26415 2011-01-09  Bruno Haible  <bruno@clisp.org>
26416
26417         Update to Unicode 5.2.0.
26418         * lib/gen-uni-tables.c (output_predicate, output_category,
26419         output_combclass, output_bidi_category, output_decimal_digit_test,
26420         output_decimal_digit, output_digit_test, output_digit,
26421         output_numeric_test, output_numeric, output_mirror, output_scripts,
26422         output_scripts_byname, output_blocks, output_ident_category): Fix
26423         comment header.
26424         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
26425         get_wbp.
26426         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
26427         items.
26428         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
26429         Changes_When_Lowercased, Changes_When_Uppercased,
26430         Changes_When_Titlecased, Changes_When_Casefolded,
26431         Changes_When_Casemapped.
26432         (is_property_alphabetic, is_property_default_ignorable_code_point):
26433         Update for Unicode 5.2.0.
26434         (is_property_cased, is_property_case_ignorable,
26435         is_property_changes_when_lowercased,
26436         is_property_changes_when_uppercased,
26437         is_property_changes_when_titlecased,
26438         is_property_changes_when_casefolded,
26439         is_property_changes_when_casemapped): New functions.
26440         (output_properties): Output also the properties cased, case_ignorable,
26441         changes_when_lowercased, changes_when_uppercased,
26442         changes_when_titlecased, changes_when_casefolded,
26443         changes_when_casemapped.
26444         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
26445         Unicode TR#11 revision 17 -> 19.
26446         (LBP_CP): New enumeration value.
26447         (LBP_*): Adjust values accordingly.
26448         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
26449         TR#14 revision 22 -> 24.
26450         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
26451         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
26452         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
26453         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
26454         is_WBP_MIDLETTER.
26455         (output_composition_tables): Allow for 24 bits instead of 16 bits in
26456         the code1 and code2 of each composition rule.
26457         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
26458         * lib/unicase/ignorable.h: Likewise.
26459         * lib/unicase/tocasefold.h: Likewise.
26460         * lib/unicase/tolower.h: Likewise.
26461         * lib/unicase/totitle.h: Likewise.
26462         * lib/unicase/toupper.h: Likewise.
26463         * lib/unictype/bidi_of.h: Likewise.
26464         * lib/unictype/blocks.h: Likewise.
26465         * lib/unictype/categ_C.h: Likewise.
26466         * lib/unictype/categ_Cf.h: Likewise.
26467         * lib/unictype/categ_Cn.h: Likewise.
26468         * lib/unictype/categ_L.h: Likewise.
26469         * lib/unictype/categ_Ll.h: Likewise.
26470         * lib/unictype/categ_Lm.h: Likewise.
26471         * lib/unictype/categ_Lo.h: Likewise.
26472         * lib/unictype/categ_Lu.h: Likewise.
26473         * lib/unictype/categ_M.h: Likewise.
26474         * lib/unictype/categ_Mc.h: Likewise.
26475         * lib/unictype/categ_Mn.h: Likewise.
26476         * lib/unictype/categ_N.h: Likewise.
26477         * lib/unictype/categ_Nd.h: Likewise.
26478         * lib/unictype/categ_Nl.h: Likewise.
26479         * lib/unictype/categ_No.h: Likewise.
26480         * lib/unictype/categ_P.h: Likewise.
26481         * lib/unictype/categ_Pd.h: Likewise.
26482         * lib/unictype/categ_Po.h: Likewise.
26483         * lib/unictype/categ_S.h: Likewise.
26484         * lib/unictype/categ_Sc.h: Likewise.
26485         * lib/unictype/categ_So.h: Likewise.
26486         * lib/unictype/categ_of.h: Likewise.
26487         * lib/unictype/combining.h: Likewise.
26488         * lib/unictype/ctype_alnum.h: Likewise.
26489         * lib/unictype/ctype_alpha.h: Likewise.
26490         * lib/unictype/ctype_graph.h: Likewise.
26491         * lib/unictype/ctype_lower.h: Likewise.
26492         * lib/unictype/ctype_print.h: Likewise.
26493         * lib/unictype/ctype_punct.h: Likewise.
26494         * lib/unictype/ctype_upper.h: Likewise.
26495         * lib/unictype/decdigit.h: Likewise.
26496         * lib/unictype/digit.h: Likewise.
26497         * lib/unictype/numeric.h: Likewise.
26498         * lib/unictype/pr_alphabetic.h: Likewise.
26499         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
26500         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
26501         * lib/unictype/pr_bidi_european_digit.h: Likewise.
26502         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
26503         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
26504         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
26505         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
26506         * lib/unictype/pr_combining.h: Likewise.
26507         * lib/unictype/pr_composite.h: Likewise.
26508         * lib/unictype/pr_currency_symbol.h: Likewise.
26509         * lib/unictype/pr_dash.h: Likewise.
26510         * lib/unictype/pr_decimal_digit.h: Likewise.
26511         * lib/unictype/pr_deprecated.h: Likewise.
26512         * lib/unictype/pr_diacritic.h: Likewise.
26513         * lib/unictype/pr_extender.h: Likewise.
26514         * lib/unictype/pr_grapheme_base.h: Likewise.
26515         * lib/unictype/pr_grapheme_extend.h: Likewise.
26516         * lib/unictype/pr_grapheme_link.h: Likewise.
26517         * lib/unictype/pr_id_continue.h: Likewise.
26518         * lib/unictype/pr_id_start.h: Likewise.
26519         * lib/unictype/pr_ideographic.h: Likewise.
26520         * lib/unictype/pr_ignorable_control.h: Likewise.
26521         * lib/unictype/pr_logical_order_exception.h: Likewise.
26522         * lib/unictype/pr_lowercase.h: Likewise.
26523         * lib/unictype/pr_numeric.h: Likewise.
26524         * lib/unictype/pr_other_alphabetic.h: Likewise.
26525         * lib/unictype/pr_punctuation.h: Likewise.
26526         * lib/unictype/pr_sentence_terminal.h: Likewise.
26527         * lib/unictype/pr_terminal_punctuation.h: Likewise.
26528         * lib/unictype/pr_unassigned_code_value.h: Likewise.
26529         * lib/unictype/pr_unified_ideograph.h: Likewise.
26530         * lib/unictype/pr_uppercase.h: Likewise.
26531         * lib/unictype/pr_xid_continue.h: Likewise.
26532         * lib/unictype/pr_xid_start.h: Likewise.
26533         * lib/unictype/pr_zero_width.h: Likewise.
26534         * lib/unictype/scripts.h: Likewise.
26535         * lib/unictype/scripts_byname.gperf: Likewise.
26536         * lib/unictype/sy_java_ident.h: Likewise.
26537         * lib/unigbrk/gbrkprop.h: Likewise.
26538         * lib/unilbrk/lbrkprop1.h: Likewise.
26539         * lib/unilbrk/lbrkprop2.h: Likewise.
26540         * lib/unilbrk/lbrktables.h: Likewise.
26541         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
26542         LBP_CP. Implement rule LB30.
26543         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
26544         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
26545         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
26546         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
26547         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
26548         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
26549         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
26550         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
26551         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
26552         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
26553         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
26554         bits instead of 16 bits in the code1 and code2 of each composition
26555         rule.
26556         (uc_composition): Update for Unicode 5.2.0.
26557         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
26558         * lib/uninorm/decomposition-table2.h: Likewise.
26559         * lib/uniwbrk/wbrkprop.h: Likewise.
26560         * tests/unicase/test-cased.c: Likewise.
26561         * tests/unicase/test-ignorable.c: Likewise.
26562         * tests/unicase/test-uc_tolower.c: Likewise.
26563         * tests/unicase/test-uc_totitle.c: Likewise.
26564         * tests/unicase/test-uc_toupper.c: Likewise.
26565         * tests/unictype/test-categ_C.c: Likewise.
26566         * tests/unictype/test-categ_Cf.c: Likewise.
26567         * tests/unictype/test-categ_Cn.c: Likewise.
26568         * tests/unictype/test-categ_L.c: Likewise.
26569         * tests/unictype/test-categ_Ll.c: Likewise.
26570         * tests/unictype/test-categ_Lm.c: Likewise.
26571         * tests/unictype/test-categ_Lo.c: Likewise.
26572         * tests/unictype/test-categ_Lu.c: Likewise.
26573         * tests/unictype/test-categ_M.c: Likewise.
26574         * tests/unictype/test-categ_Mc.c: Likewise.
26575         * tests/unictype/test-categ_Mn.c: Likewise.
26576         * tests/unictype/test-categ_N.c: Likewise.
26577         * tests/unictype/test-categ_Nd.c: Likewise.
26578         * tests/unictype/test-categ_Nl.c: Likewise.
26579         * tests/unictype/test-categ_No.c: Likewise.
26580         * tests/unictype/test-categ_P.c: Likewise.
26581         * tests/unictype/test-categ_Pd.c: Likewise.
26582         * tests/unictype/test-categ_Po.c: Likewise.
26583         * tests/unictype/test-categ_S.c: Likewise.
26584         * tests/unictype/test-categ_Sc.c: Likewise.
26585         * tests/unictype/test-categ_So.c: Likewise.
26586         * tests/unictype/test-ctype_alnum.c: Likewise.
26587         * tests/unictype/test-ctype_alpha.c: Likewise.
26588         * tests/unictype/test-ctype_graph.c: Likewise.
26589         * tests/unictype/test-ctype_lower.c: Likewise.
26590         * tests/unictype/test-ctype_print.c: Likewise.
26591         * tests/unictype/test-ctype_punct.c: Likewise.
26592         * tests/unictype/test-ctype_upper.c: Likewise.
26593         * tests/unictype/test-decdigit.h: Likewise.
26594         * tests/unictype/test-digit.h: Likewise.
26595         * tests/unictype/test-numeric.h: Likewise.
26596         * tests/unictype/test-pr_alphabetic.c: Likewise.
26597         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
26598         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
26599         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
26600         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
26601         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
26602         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
26603         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
26604         * tests/unictype/test-pr_combining.c: Likewise.
26605         * tests/unictype/test-pr_composite.c: Likewise.
26606         * tests/unictype/test-pr_currency_symbol.c: Likewise.
26607         * tests/unictype/test-pr_dash.c: Likewise.
26608         * tests/unictype/test-pr_decimal_digit.c: Likewise.
26609         * tests/unictype/test-pr_deprecated.c: Likewise.
26610         * tests/unictype/test-pr_diacritic.c: Likewise.
26611         * tests/unictype/test-pr_extender.c: Likewise.
26612         * tests/unictype/test-pr_grapheme_base.c: Likewise.
26613         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
26614         * tests/unictype/test-pr_grapheme_link.c: Likewise.
26615         * tests/unictype/test-pr_id_continue.c: Likewise.
26616         * tests/unictype/test-pr_id_start.c: Likewise.
26617         * tests/unictype/test-pr_ideographic.c: Likewise.
26618         * tests/unictype/test-pr_ignorable_control.c: Likewise.
26619         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
26620         * tests/unictype/test-pr_lowercase.c: Likewise.
26621         * tests/unictype/test-pr_numeric.c: Likewise.
26622         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
26623         * tests/unictype/test-pr_punctuation.c: Likewise.
26624         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
26625         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
26626         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
26627         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
26628         * tests/unictype/test-pr_uppercase.c: Likewise.
26629         * tests/unictype/test-pr_xid_continue.c: Likewise.
26630         * tests/unictype/test-pr_xid_start.c: Likewise.
26631         * tests/unictype/test-pr_zero_width.c: Likewise.
26632         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
26633         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
26634         changed behaviour: line breaking is now disallowed between a letter
26635         or '=' and '('.
26636         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
26637         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
26638         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
26639         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
26640         * tests/uniwidth/test-uc_width2.sh: Same updates as in
26641         lib/uniwidth/width.c.
26642         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
26643         without comments, but with the original copyright notice.
26644         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
26645         changes.
26646         * lib/unictype/categ_Cc.h: Likewise.
26647         * lib/unictype/categ_Co.h: Likewise.
26648         * lib/unictype/categ_Cs.h: Likewise.
26649         * lib/unictype/categ_Lt.h: Likewise.
26650         * lib/unictype/categ_Me.h: Likewise.
26651         * lib/unictype/categ_Pc.h: Likewise.
26652         * lib/unictype/categ_Pe.h: Likewise.
26653         * lib/unictype/categ_Pf.h: Likewise.
26654         * lib/unictype/categ_Pi.h: Likewise.
26655         * lib/unictype/categ_Ps.h: Likewise.
26656         * lib/unictype/categ_Sk.h: Likewise.
26657         * lib/unictype/categ_Sm.h: Likewise.
26658         * lib/unictype/categ_Z.h: Likewise.
26659         * lib/unictype/categ_Zl.h: Likewise.
26660         * lib/unictype/categ_Zp.h: Likewise.
26661         * lib/unictype/categ_Zs.h: Likewise.
26662         * lib/unictype/ctype_blank.h: Likewise.
26663         * lib/unictype/ctype_cntrl.h: Likewise.
26664         * lib/unictype/ctype_digit.h: Likewise.
26665         * lib/unictype/ctype_space.h: Likewise.
26666         * lib/unictype/ctype_xdigit.h: Likewise.
26667         * lib/unictype/mirror.h: Likewise.
26668         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
26669         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
26670         * lib/unictype/pr_bidi_block_separator.h: Likewise.
26671         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
26672         * lib/unictype/pr_bidi_common_separator.h: Likewise.
26673         * lib/unictype/pr_bidi_control.h: Likewise.
26674         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
26675         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
26676         * lib/unictype/pr_bidi_pdf.h: Likewise.
26677         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
26678         * lib/unictype/pr_bidi_whitespace.h: Likewise.
26679         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
26680         * lib/unictype/pr_format_control.h: Likewise.
26681         * lib/unictype/pr_hex_digit.h: Likewise.
26682         * lib/unictype/pr_hyphen.h: Likewise.
26683         * lib/unictype/pr_ids_binary_operator.h: Likewise.
26684         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
26685         * lib/unictype/pr_iso_control.h: Likewise.
26686         * lib/unictype/pr_join_control.h: Likewise.
26687         * lib/unictype/pr_left_of_pair.h: Likewise.
26688         * lib/unictype/pr_line_separator.h: Likewise.
26689         * lib/unictype/pr_math.h: Likewise.
26690         * lib/unictype/pr_non_break.h: Likewise.
26691         * lib/unictype/pr_not_a_character.h: Likewise.
26692         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
26693         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
26694         * lib/unictype/pr_other_id_continue.h: Likewise.
26695         * lib/unictype/pr_other_id_start.h: Likewise.
26696         * lib/unictype/pr_other_lowercase.h: Likewise.
26697         * lib/unictype/pr_other_math.h: Likewise.
26698         * lib/unictype/pr_other_uppercase.h: Likewise.
26699         * lib/unictype/pr_paired_punctuation.h: Likewise.
26700         * lib/unictype/pr_paragraph_separator.h: Likewise.
26701         * lib/unictype/pr_pattern_syntax.h: Likewise.
26702         * lib/unictype/pr_pattern_white_space.h: Likewise.
26703         * lib/unictype/pr_private_use.h: Likewise.
26704         * lib/unictype/pr_quotation_mark.h: Likewise.
26705         * lib/unictype/pr_radical.h: Likewise.
26706         * lib/unictype/pr_soft_dotted.h: Likewise.
26707         * lib/unictype/pr_space.h: Likewise.
26708         * lib/unictype/pr_titlecase.h: Likewise.
26709         * lib/unictype/pr_variation_selector.h: Likewise.
26710         * lib/unictype/pr_white_space.h: Likewise.
26711         * lib/unictype/sy_c_ident.h: Likewise.
26712         * lib/unictype/sy_c_whitespace.h: Likewise.
26713         * lib/unictype/sy_java_whitespace.h: Likewise.
26714         * modules/uni*/*: Bump version number of expected libunistring version.
26715         Reported by Simon Josefsson.
26716
26717 2011-01-09  Karl Heuer  <kwzh@gnu.org>
26718
26719         useless-if-before-free: fix typo in --help and make the internal,
26720         automatic version date update process work once again.
26721         --help output contained a NUL character instead of the
26722         backslash-zero that was intended.  Also, the "must lie within
26723         the first 8 lines" line is on line 9, and hence not getting
26724         automatically updated.
26725         * build-aux/useless-if-before-free: Fix the former by adding a
26726         backslash, and the latter by condensing the three lines of what-it-does
26727         to a single line, leaving one line of slack for the future.
26728
26729 2011-01-09  Bruno Haible  <bruno@clisp.org>
26730
26731         uniwidth/width: Fix width of U+1D173..U+1D17A.
26732         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
26733         symbolic_width, output_width_property_test): New functions.
26734         (main): Invoke output_nonspacing_property, output_width_property_test.
26735         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
26736         U+1D173..U+1D17A.
26737         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
26738         1.
26739         * modules/uniwidth/*: Bump version number of expected libunistring
26740         version.
26741         * modules/unilbrk/*: Likewise.
26742
26743 2011-01-08  Bruno Haible  <bruno@clisp.org>
26744
26745         uninorm tests: Preserve copyright of Unicode data file.
26746         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
26747         Mention modifications.
26748
26749 2011-01-08  Bruno Haible  <bruno@clisp.org>
26750
26751         gen-uni-tables: Prepare for Unicode 5.2.0.
26752         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
26753         (debug_output_lbp, output_lbp): Update.
26754
26755 2011-01-08  Bruno Haible  <bruno@clisp.org>
26756
26757         unilbrk: Clarify gen-uni-tables.c code.
26758         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
26759         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
26760         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
26761
26762 2011-01-07  Bruno Haible  <bruno@clisp.org>
26763
26764         strtod: Restore errno when successfully parsing Infinity or NaN.
26765         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
26766         restore the original errno.
26767
26768 2011-01-07  Bruno Haible  <bruno@clisp.org>
26769
26770         remove test: Avoid failure on HP-UX 11.
26771         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
26772
26773 2011-01-07  Bruno Haible  <bruno@clisp.org>
26774
26775         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
26776         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
26777         error code.
26778
26779 2011-01-07  Pádraig Brady <P@draigBrady.com>
26780
26781         ignore-value: fixup comments, and add Eric Blake
26782         as an author since he rewrote the macros.
26783         * lib/ignore-value.h (ignore_value):  State that
26784         we now support aggregates.  Also specify exactly
26785         when the GCC warn_unused_result feature was added.
26786
26787 2011-01-06  Eric Blake  <eblake@redhat.com>
26788
26789         ignore-value: support aggregate types
26790         * lib/ignore-value.h (ignore_value): Provide separate gcc
26791         definition.
26792         * modules/ignore-value-tests: New test module.
26793         * tests/test-ignore-value.c: New test.
26794
26795         maint.mk: improve sc_prohibit_strcmp regex
26796         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
26797         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
26798         definition of STRNEQ.
26799
26800         signal: work around Haiku issue with SIGBUS
26801         * lib/siglist.h: Add comment.
26802         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
26803         strsignal's favoring of SIGSEGV.
26804         * tests/test-signal.c (main): Avoid test failure.
26805         * doc/posix-headers/signal.texi (signal.h): Document the issue.
26806         Reported by Scott McCreary.
26807
26808         maint.mk: add pre-release check to ensure submodule commits are public
26809         * top/maint.mk (public-submodule-commit): New rule.
26810         (submodule-checks): New variable.
26811         (alpha beta stable): Depend on the variable.
26812
26813 2011-01-05  Pádraig Brady <P@draigBrady.com>
26814         and Jim Meyering  <meyering@redhat.com>
26815
26816         ignore-value: make ignore_value more generic; deprecate ignore_ptr
26817         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
26818         (ATTRIBUTE_DEPRECATED): Define.
26819         (_ignore_case): New function.
26820         (ignore_value): New macro, to replace the old function.
26821         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
26822         * modules/ignore-value (Depends-on): Add stdint.
26823
26824 2011-01-04  Eric Blake  <eblake@redhat.com>
26825
26826         doc: regenerate INSTALL
26827         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
26828         @firstparagraphindent support, now that autoconf dropped it.
26829         (INSTALL_PRELUDE): Reinstate old macro.
26830         * doc/install.texi: Resync from autoconf.
26831         * doc/INSTALL: Reflect recent autoconf update.
26832         * doc/INSTALL.ISO: Likewise.
26833         * doc/INSTALL.UTF-8: Likewise.
26834         Reported by Karl Berry.
26835
26836 2011-01-04  Bruce Korb  <address@hidden>
26837
26838         git-version-gen: avoid a sub-shell
26839         * build-aux/git-version-gen: Redirect stderr in `...` via
26840         "exec 2>...", rather than via an added sub-shell.
26841
26842 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
26843
26844         git-version-gen: use (...) rather than sh -c '...'
26845         * build-aux/git-version-gen: Rather than hard-coding a shell's name
26846         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
26847
26848 2011-01-03  Jim Meyering  <meyering@redhat.com>
26849
26850         git-version-gen: convert leading TABs to spaces
26851         * build-aux/git-version-gen: Expand leading TABs.
26852
26853         git-version-gen: handle failed "git rev-list"
26854         * build-aux/git-version-gen: Rather than leaking a "fatal" error
26855         from git and proceeding as if it had succeeded but printed no SHA1
26856         checksums, suppress the diagnostic and handle the failure.
26857         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
26858
26859         git-version-gen: include command name in one more diagnostic
26860         * build-aux/git-version-gen: When the required .tarball-version file
26861         was missing or unreadable, you might see the diagnostic from "cat",
26862         but no trace of the name of the invoking script.  Now, you still see
26863         the diagnostic from cat, but also get one from "git-version-gen: ".
26864         Inspired by a patch from Bruce Korb.
26865
26866         update-copyright: adjust test to match changed code
26867         * tests/test-update-copyright.sh: Change test's expected output
26868         to match new actual output.
26869
26870 2011-01-02  Bruno Haible  <bruno@clisp.org>
26871
26872         getlogin_r: Avoid test failure on HP-UX 11.
26873         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
26874         ERANGE when the second argument is zero.
26875         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
26876         portability problem.
26877
26878 2011-01-02  Bruce Korb  <bkorb@gnu.org>
26879
26880         * build-aux/update-copyright: doc Simon's changes
26881
26882 2011-01-02  Simon Josefsson  <simon@josefsson.org>
26883
26884         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
26885         environment variable.
26886
26887 2011-01-02  Bruno Haible  <bruno@clisp.org>
26888
26889         unigbrk: Avoid gcc warnings.
26890         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
26891         unused variable.
26892         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
26893         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
26894         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
26895         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
26896         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
26897         Change type of first argument to 'const char *'.
26898         (main): Remove unused variable.
26899         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
26900         type of first argument to 'const char *'.
26901         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
26902         Likewise.
26903         (main): Change type of variable 's'.
26904         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
26905         to 'int'.
26906
26907 2011-01-02  Bruno Haible  <bruno@clisp.org>
26908
26909         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
26910         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
26911         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
26912         bug.
26913         * lib/pwrite.c: Undo 2010-12-31 patch.
26914         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
26915
26916 2011-01-02  Bruno Haible  <bruno@clisp.org>
26917
26918         pread: Fix test whether it works.
26919         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
26920
26921 2011-01-02  Bruno Haible  <bruno@clisp.org>
26922
26923         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
26924         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
26925         ends in "6". Don't require a specific month name. Try also the locale
26926         names found on HP-UX 11 and Solaris 7.
26927
26928 2011-01-02  Bruno Haible  <bruno@clisp.org>
26929
26930         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
26931         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
26932         C linkage.
26933         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
26934
26935 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
26936
26937         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
26938         for consistency, since the "cluster" term is not used elsewhere.
26939         * lib/unigbrk.in.h: Update name.
26940         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
26941         * lib/unigbrk/u16-grapheme-next.c: Update name.
26942         * lib/unigbrk/u16-grapheme-prev.c: Update name.
26943         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
26944         * lib/unigbrk/u32-grapheme-next.c: Update name.
26945         * lib/unigbrk/u32-grapheme-prev.c: Update name.
26946         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
26947         * lib/unigbrk/u8-grapheme-next.c: Update name.
26948         * lib/unigbrk/u8-grapheme-prev.c: Update name.
26949         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
26950         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
26951         Suggested by Bruno Haible.
26952
26953 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
26954
26955         Remove module 'u8-grapheme-len' as too redundant with
26956         'u8-grapheme-next'.
26957         * modules/unigbrk/u8-grapheme-len: Delete file.
26958         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
26959         * lib/unigbrk.in.h: Remove prototype for deleted function.
26960         * lib/unigbrk/u8-grapheme-len.c: Delete file.
26961         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
26962
26963         Remove module 'u16-grapheme-len' as too redundant with
26964         'u16-grapheme-next'.
26965         * modules/unigbrk/u16-grapheme-len: Delete file.
26966         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
26967         * lib/unigbrk.in.h: Remove prototype for deleted function.
26968         * lib/unigbrk/u16-grapheme-len.c: Delete file.
26969         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
26970
26971         Remove module 'u32-grapheme-len' as too redundant with
26972         'u32-grapheme-next'.
26973         * modules/unigbrk/u32-grapheme-len: Delete file.
26974         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
26975         * lib/unigbrk.in.h: Remove prototype for deleted function.
26976         * lib/unigbrk/u32-grapheme-len.c: Delete file.
26977         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
26978
26979         Suggested by Bruno Haible.
26980
26981 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
26982
26983         * unigbrk.in.h: Fix typo: "ben" => "been".
26984         Reported by Bruno Haible.
26985
26986 2011-01-01  Jim Meyering  <meyering@redhat.com>
26987
26988         maint: update almost all copyright ranges to include 2011
26989         Run the new "make update-copyright" rule.
26990
26991 2011-01-01  Jim Meyering  <meyering@redhat.com>
26992
26993         maint: update-copyright: exempt doc/INSTALL*
26994         * Makefile (update-copyright): Also exclude doc/INSTALL*,
26995         since they are generated.  Suggested by Bruno Haible.
26996
26997 2011-01-01  Jim Meyering  <meyering@redhat.com>
26998
26999         maint: refine the update-copyright rule
27000         * Makefile (update-copyright): Also exclude any file that includes
27001         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
27002         code that merely generates the comment.
27003
27004 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
27005
27006         New module 'u8-grapheme-len'.
27007         * modules/unigbrk/u8-grapheme-len: New file.
27008         * modules/unigbrk/u8-grapheme-len-tests: New file.
27009         * lib/unigbrk.in.h: Add prototype for new function.
27010         * lib/unigbrk/u8-grapheme-len.c: New file.
27011         * tests/unigbrk/test-u8-grapheme-len.c: New file.
27012
27013         New module 'u16-grapheme-len'.
27014         * modules/unigbrk/u16-grapheme-len: New file.
27015         * modules/unigbrk/u16-grapheme-len-tests: New file.
27016         * lib/unigbrk.in.h: Add prototype for new function.
27017         * lib/unigbrk/u16-grapheme-len.c: New file.
27018         * tests/unigbrk/test-u16-grapheme-len.c: New file.
27019
27020         New module 'u32-grapheme-len'.
27021         * modules/unigbrk/u32-grapheme-len: New file.
27022         * modules/unigbrk/u32-grapheme-len-tests: New file.
27023         * lib/unigbrk.in.h: Add prototype for new function.
27024         * lib/unigbrk/u32-grapheme-len.c: New file.
27025         * tests/unigbrk/test-u32-grapheme-len.c: New file.
27026
27027         New module 'u8-grapheme-next'.
27028         * modules/unigbrk/u8-grapheme-next: New file.
27029         * modules/unigbrk/u8-grapheme-next-tests: New file.
27030         * lib/unigbrk.in.h: Add prototype for new function.
27031         * lib/unigbrk/u8-grapheme-next.c: New file.
27032         * tests/unigbrk/test-u8-grapheme-next.c: New file.
27033
27034         New module 'u16-grapheme-next'.
27035         * modules/unigbrk/u16-grapheme-next: New file.
27036         * modules/unigbrk/u16-grapheme-next-tests: New file.
27037         * lib/unigbrk.in.h: Add prototype for new function.
27038         * lib/unigbrk/u16-grapheme-next.c: New file.
27039         * tests/unigbrk/test-u16-grapheme-next.c: New file.
27040
27041         New module 'u32-grapheme-next'.
27042         * modules/unigbrk/u32-grapheme-next: New file.
27043         * modules/unigbrk/u32-grapheme-next-tests: New file.
27044         * lib/unigbrk.in.h: Add prototype for new function.
27045         * lib/unigbrk/u32-grapheme-next.c: New file.
27046         * tests/unigbrk/test-u32-grapheme-next.c: New file.
27047
27048         New module 'u8-grapheme-prev'.
27049         * modules/unigbrk/u8-grapheme-prev: New file.
27050         * modules/unigbrk/u8-grapheme-prev-tests: New file.
27051         * lib/unigbrk.in.h: Add prototype for new function.
27052         * lib/unigbrk/u8-grapheme-prev.c: New file.
27053         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
27054
27055         New module 'u16-grapheme-prev'.
27056         * modules/unigbrk/u16-grapheme-prev: New file.
27057         * modules/unigbrk/u16-grapheme-prev-tests: New file.
27058         * lib/unigbrk.in.h: Add prototype for new function.
27059         * lib/unigbrk/u16-grapheme-prev.c: New file.
27060         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
27061
27062         New module 'u32-grapheme-prev'.
27063         * modules/unigbrk/u32-grapheme-prev: New file.
27064         * modules/unigbrk/u32-grapheme-prev-tests: New file.
27065         * lib/unigbrk.in.h: Add prototype for new function.
27066         * lib/unigbrk/u32-grapheme-prev.c: New file.
27067         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
27068
27069         New module 'u8-grapheme-breaks'.
27070         * modules/unigbrk/u8-grapheme-breaks: New file.
27071         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
27072         * lib/unigbrk.in.h: Add prototype for new function.
27073         * lib/unigbrk/u8-grapheme-breaks.c: New file.
27074         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
27075
27076         New module 'u16-grapheme-breaks'.
27077         * modules/unigbrk/u16-grapheme-breaks: New file.
27078         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
27079         * lib/unigbrk.in.h: Add prototype for new function.
27080         * lib/unigbrk/u16-grapheme-breaks.c: New file.
27081         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
27082
27083         New module 'u32-grapheme-breaks'.
27084         * modules/unigbrk/u32-grapheme-breaks: New file.
27085         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
27086         * lib/unigbrk.in.h: Add prototype for new function.
27087         * lib/unigbrk/u32-grapheme-breaks.c: New file.
27088         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
27089
27090         New module 'ulc-grapheme-breaks'.
27091         * modules/unigbrk/ulc-grapheme-breaks: New file.
27092         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
27093         * m4/locale-ar.m4: New file.
27094         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
27095         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
27096         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
27097
27098 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
27099
27100         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
27101         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
27102         modified how this file was generated before I initially submitted
27103         the module, but failed to regenerate it.  This meant that several
27104         of the level2 entries were wrong.
27105         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
27106         Remove the division-by-2 that is folded into the table now that
27107         gbrkprop.h has been regenerated properly.  Now -1 entries are
27108         handled correctly.
27109
27110         New module 'unigbrk/uc-gbrk-prop-tests'.
27111         * modules/unigbrk/uc-gbrk-prop-tests: New file.
27112         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
27113         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
27114         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
27115
27116 2011-01-01  Bruno Haible  <bruno@clisp.org>
27117
27118         Avoid use of hexadecimal escapes.
27119         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
27120         instead of hexadecimal escapes.
27121
27122 2011-01-01  Jim Meyering  <meyering@redhat.com>
27123
27124         maint: new rule to update copyright year ranges
27125         * Makefile (update-copyright): New rule.
27126
27127         maint: indent with TABs in Makefile
27128         * Makefile: Expand leading sequences of spaces to TABs
27129
27130         version-etc: update the copyright year it reports
27131         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
27132
27133 2010-12-31  Bruno Haible  <bruno@clisp.org>
27134
27135         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
27136         * lib/isfinite.c (zerof, zerod, zerol): New variables.
27137         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
27138         zero.
27139
27140 2010-12-31  Bruno Haible  <bruno@clisp.org>
27141
27142         pwrite: Work around HP-UX 11.11 bug.
27143         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
27144         works and set REPLACE_PWRITE if not.
27145         * lib/pwrite.c (pwrite): Add an implementation that uses the system
27146         function.
27147         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
27148
27149 2010-12-31  Bruno Haible  <bruno@clisp.org>
27150
27151         pread: Work around HP-UX 11 bugs.
27152         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
27153         and set REPLACE_PREAD if not.
27154         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
27155
27156 2010-12-31  Eric Blake  <eblake@redhat.com>
27157
27158         nl_langinfo: fix YESEXPR on Irix 6.5
27159         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
27160         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
27161         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
27162         it.
27163
27164 2010-12-31  Bruno Haible  <bruno@clisp.org>
27165
27166         iconv: Document HP-UX 11 bug.
27167         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
27168
27169 2010-12-31  Bruno Haible  <bruno@clisp.org>
27170
27171         ldexpl: Fix link error on HP-UX 11.
27172         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
27173         LDEXPL_LIBM, using $ISNANL_LIBM.
27174
27175 2010-12-31  Eric Blake  <eblake@redhat.com>
27176
27177         ftello: avoid compilation failure with SunStudio c89
27178         * lib/ftello.c (ftello): Use lseek, not llseek.
27179
27180         tests: avoid failing coreutils tests on cygwin
27181         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
27182         (create_exe_shims_): Return 0 when skipping.
27183
27184 2010-12-31  Bruno Haible  <bruno@clisp.org>
27185
27186         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
27187         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
27188
27189 2010-12-31  Bruno Haible  <bruno@clisp.org>
27190
27191         waitpid: Fix link error in C++ mode.
27192         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
27193
27194 2010-12-31  Bruno Haible  <bruno@clisp.org>
27195
27196         isnan: Use GCC built-ins when possible.
27197         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
27198         __builtin_isnan.
27199         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
27200         (isnan): Define using GCC built-ins for GCC >= 4.0.
27201
27202 2010-12-31  Bruno Haible  <bruno@clisp.org>
27203
27204         isnand: Fix mistake.
27205         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
27206         __builtin_isnand.
27207
27208 2010-12-31  Bruno Haible  <bruno@clisp.org>
27209
27210         open: Avoid C++ error on HP-UX 11.
27211         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
27212
27213 2010-12-31  Bruno Haible  <bruno@clisp.org>
27214
27215         time_r: Add missing declarations on HP-UX 11.
27216         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
27217         instead of HAVE_LOCALTIME_R.
27218         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
27219         HAVE_LOCALTIME_R always.
27220         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
27221         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
27222         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
27223         HAVE_LOCALTIME_R.
27224         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
27225         * doc/posix-functions/localtime_r.texi: Likewise.
27226
27227 2010-12-29  Eric Blake  <eblake@redhat.com>
27228
27229         mountlist: tweak previous commit
27230         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
27231         Reported by Paul Eggert.
27232
27233         mountlist: fix local drive detection on cygwin
27234         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
27235         that works for cygwin.
27236
27237 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
27238
27239         ftoastr, snprintf: ftoastr + snprintf module
27240         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
27241         since the snprintf module now should be good enough here.
27242         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
27243         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
27244         and gl_MODULE_INDICATOR([snprintf]), but the former enables
27245         GNULIB_SNPRINTF only for the test directory, and the latter
27246         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
27247         seems to suffice by itself.
27248
27249 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
27250
27251         alloca: one step towards thread-safety
27252         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
27253         need for a static variable.  All callers changed.  This does not
27254         make the alloca replacement thread-safe, but it's one step.
27255
27256         tests: minor indenting change
27257         * tests/init.sh: Sync from coreutils housekeeping patch
27258         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
27259         to keep lines within 80 columns.
27260
27261 2010-12-28  Jim Meyering  <meyering@redhat.com>
27262
27263         regex: don't infloop on persistent failing calloc
27264         * lib/regexec.c (build_trtable): Return failure indication upon
27265         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
27266         In glibc, this was fixed for version 2.13:
27267         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
27268
27269 2010-12-28  Bruno Haible  <bruno@clisp.org>
27270             Paul Eggert <eggert@cs.ucla.edu>
27271
27272         linkat: Make implementation robust against system behaviour variations.
27273         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
27274         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
27275         way, and to -2 if it needs a generic runtime test.
27276         * lib/linkat.c (solaris_optimized_link_immediate,
27277         solaris_optimized_link_follow): New functions.
27278         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
27279         (check_same_link): Use it.
27280
27281 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
27282
27283         New module 'unigbrk/base'.
27284         * modules/unigbrk/base: New file.
27285         * lib/unigbrk.in.h: New file.
27286
27287         New module 'unigbrk/uc-gbrk-prop'.
27288         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
27289         * modules/unigbrk/uc-gbrk-prop: New file.
27290         * lib/unigbrk/gbrkprop.h: New file.
27291         * lib/unigbrk/uc-gbrk-prop.c: New file.
27292
27293         New module 'unigbrk/uc-is-grapheme-break'.
27294         * modules/unigbrk/uc-is-grapheme-break: New file.
27295         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
27296         * lib/unigbrk/uc-is-grapheme-break.c: New file.
27297         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
27298         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
27299         * tests/unigbrk/GraphemeBreakTest.txt: New file.
27300
27301         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
27302
27303 2010-12-27  Bruno Haible  <bruno@clisp.org>
27304
27305         linkat test: Avoid failure on Solaris 11 2010-11.
27306         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
27307
27308 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
27309
27310         utimens: work around glibc rounding bug on more platforms
27311         * lib/utimens.c (fdutimens): Work around rounding bug even if
27312         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
27313         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
27314
27315 2010-12-27  Bruno Haible  <bruno@clisp.org>
27316
27317         select tests: Improve comments.
27318         * tests/test-select.c (do_select): Add comments.
27319
27320 2010-12-27  Bruno Haible  <bruno@clisp.org>
27321
27322         select tests: Safer way of handling timeout.
27323         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
27324         at every invocation.
27325
27326 2010-12-27  Bruno Haible  <bruno@clisp.org>
27327
27328         select tests: Use 'bool' where appropriate.
27329         * tests/test-select.c (connect_to_socket): Change argument type to
27330         'bool'.
27331
27332 2010-12-27  Bruno Haible  <bruno@clisp.org>
27333
27334         select tests: Use existing modules.
27335         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
27336         (configure.ac): Don't test for unistd.h.
27337         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
27338         declared in <unistd.h>.
27339
27340 2010-12-27  Bruno Haible  <bruno@clisp.org>
27341
27342         mbrtowc: Work around a Solaris 7 bug.
27343         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
27344         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
27345         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
27346         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
27347         MBRTOWC_NULL_ARG1_BUG.
27348         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
27349         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
27350         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
27351         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
27352
27353 2010-12-27  Jim Meyering  <meyering@redhat.com>
27354
27355         read-file.c: tweak syntax
27356         * lib/read-file.c (fread_file): Remove space after "*" in function
27357         definitions.
27358
27359 2010-12-27  Bruno Haible  <bruno@clisp.org>
27360
27361         times test: Avoid gcc warnings on OSF/1.
27362         * tests/test-times.c (main): Cast printf arguments from clock_t to
27363         'long int'.
27364
27365 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
27366
27367         utimens: work around glibc rounding bug on older Linux kernels
27368         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
27369         on Linux with a glibc whose utimes might not work, then work
27370         around a longstanding glibc bug involving rounding rather than
27371         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
27372         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
27373
27374 2010-12-26  Bruno Haible  <bruno@clisp.org>
27375
27376         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
27377         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
27378         _GL_CXXALIAS_SYS.
27379         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27380
27381 2010-12-26  Bruno Haible  <bruno@clisp.org>
27382
27383         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
27384         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
27385         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
27386         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
27387         looking for the declaration.
27388         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
27389         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
27390         problem.
27391         * doc/posix-functions/inet_pton.texi: Likewise.
27392
27393 2010-12-26  Bruno Haible  <bruno@clisp.org>
27394
27395         arpa_inet: Use the common idioms with C++ support.
27396         * lib/arpa_inet.in.h: Include c++defs.h.
27397         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
27398         support.
27399         * modules/arpa_inet (Depends-on): Add c++defs.
27400         (Makefile.am): Substitute the contents of c++defs.h.
27401         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
27402         * modules/arpa_inet-c++-tests: New file.
27403         * tests/test-arpa_inet-c++.cc: New file.
27404
27405 2010-12-25  Bruno Haible  <bruno@clisp.org>
27406
27407         Fix more C++ link errors on Solaris 8.
27408         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
27409         $(LIB_EACCESS).
27410         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
27411         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
27412         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
27413         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
27414         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
27415
27416 2010-12-25  Bruno Haible  <bruno@clisp.org>
27417
27418         printf-posix: Fix link error when a non-GCC compiler is used.
27419         * lib/stdio.in.h (printf): When not using GCC, override printf
27420         correctly.
27421         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27422
27423 2010-12-25  Bruno Haible  <bruno@clisp.org>
27424
27425         strerror_r-posix: Update doc.
27426         * doc/posix-functions/strerror_r.texi: Update doc about the return
27427         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
27428
27429 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
27430
27431         utimens: simplify the logic of the previous change
27432         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
27433         This should not affect whether the test succeeds or fails.
27434
27435         utimens: configure better on hosts with NFS clock skew
27436         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
27437         uses the clock of the local host.  It might use the clock of the
27438         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
27439         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
27440
27441 2010-12-25  Bruno Haible  <bruno@clisp.org>
27442
27443         ptsname test: Avoid failure on Solaris.
27444         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
27445         open a pseudo-terminal; don't use BSD-style ptys.
27446         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
27447
27448 2010-12-25  Bruno Haible  <bruno@clisp.org>
27449
27450         ptsname: Avoid ERANGE failure on some systems.
27451         * lib/ptsname.c (buffer): Increase size.
27452
27453 2010-12-25  Bruno Haible  <bruno@clisp.org>
27454
27455         rename, renameat: Avoid test failures at NFS mounted locations.
27456         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
27457         so that subsequent mkdir calls succeed.
27458
27459 2010-12-25  Bruno Haible  <bruno@clisp.org>
27460
27461         iswblank: Fix C++ link error on Solaris 8.
27462         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
27463         _GL_FUNCDECL_SYS.
27464
27465 2010-12-25  Bruno Haible  <bruno@clisp.org>
27466
27467         unistd: Fix C++ link error on Solaris 8.
27468         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
27469
27470 2010-12-25  Bruno Haible  <bruno@clisp.org>
27471
27472         readlink doc: Mention an old glibc bug.
27473         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
27474
27475 2010-12-25  Bruno Haible  <bruno@clisp.org>
27476
27477         fcntl-h: Fix for use of C++ on glibc systems.
27478         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
27479         also on glibc systems in C++ mode.
27480         Reported by Gary V. Vaughan <gary@gnu.org>.
27481
27482 2010-12-25  Bruno Haible  <bruno@clisp.org>
27483
27484         roundl-ieee: Make it work on OSF/1 5.1 with cc.
27485         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
27486
27487 2010-12-25  Bruno Haible  <bruno@clisp.org>
27488
27489         truncl-ieee: Make it work on OSF/1 5.1 with cc.
27490         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
27491         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
27492         test whether truncl works according to ISO C 99 with IEC 60559.
27493         * m4/truncl-ieee.m4: New file.
27494         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
27495         m4/signbit.m4.
27496         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
27497
27498 2010-12-25  Bruno Haible  <bruno@clisp.org>
27499
27500         ceill-ieee: Make it work on OSF/1 5.1 with cc.
27501         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
27502         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
27503         test whether ceill works according to ISO C 99 with IEC 60559.
27504         * m4/ceill-ieee.m4: New file.
27505         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
27506         m4/signbit.m4.
27507         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
27508
27509 2010-12-25  Bruno Haible  <bruno@clisp.org>
27510
27511         Ensure all prerequisites of <wchar.h> are included.
27512         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
27513         before <wchar.h>.
27514         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
27515         gl_MBRLEN_NUL_RETVAL): Likewise.
27516         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
27517         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
27518         AC_FUNC_MBRTOWC): Likewise.
27519         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
27520         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
27521         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
27522         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
27523         Likewise.
27524         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
27525         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
27526         (gl_WCHAR_H): Improve comments.
27527         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
27528
27529 2010-12-25  Bruno Haible  <bruno@clisp.org>
27530
27531         strtok_r: Fix C syntax error in autoconf macro.
27532         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
27533         characters in test program.
27534
27535 2010-12-24  Bruno Haible  <bruno@clisp.org>
27536
27537         ceil, trunc, round: Fix gcc warnings.
27538         * lib/ceil.c (MIN): Undefine before redefining.
27539         * lib/trunc.c (MIN): Likewise.
27540         * lib/round.c (MIN): Likewise.
27541         Include <math.h> first.
27542
27543 2010-12-24  Bruno Haible  <bruno@clisp.org>
27544
27545         select tests: Avoid failures on OSF/1 5.1.
27546         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
27547         failure of closing the last socket; it may fail with ECONNRESET.
27548
27549 2010-12-24  Eric Blake  <eblake@redhat.com>
27550
27551         stdint: avoid HP-UX 10.20 preprocessor bug
27552         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
27553         than #if.
27554         * tests/test-floor2.c (main): Likewise.
27555         Reported by Peter O'Gorman.
27556
27557         pipe: make obsoletion transition easier
27558         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
27559         * modules/pipe (Files): Include revived file.
27560         (Include): Drop reference, to mirror getdate's behavior.
27561
27562 2010-12-24  Bruno Haible  <bruno@clisp.org>
27563
27564         sys_socket: Hide mismatch of declarations on NonStop Kernel.
27565         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
27566         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
27567         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27568
27569 2010-12-24  Bruno Haible  <bruno@clisp.org>
27570
27571         gethostname: Ensure declaration on NonStop Kernel.
27572         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
27573         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27574
27575 2010-12-24  Bruno Haible  <bruno@clisp.org>
27576
27577         sys_select: Ensure all necessary types on NonStop Kernel.
27578         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
27579         include <sys/time.h>.
27580         * doc/posix-headers/sys_select.texi: Mention that it's missing on
27581         NonStop Kernel.
27582         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27583
27584 2010-12-24  Bruno Haible  <bruno@clisp.org>
27585
27586         sys_select: Remove unneeded include.
27587         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
27588         have <sys/select.h>.
27589
27590 2010-12-24  Bruno Haible  <bruno@clisp.org>
27591
27592         gethostname: Provide a fallback for HOST_NAME_MAX.
27593         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
27594         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
27595         instead.
27596         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27597
27598 2010-12-24  Bruno Haible  <bruno@clisp.org>
27599
27600         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
27601         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
27602         (SA_RESTART): Likewise.
27603         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27604
27605 2010-12-24  Bruno Haible  <bruno@clisp.org>
27606
27607         signal: Define NSIG.
27608         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
27609         * tests/test-signal.c (nsig): New variable.
27610         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27611
27612 2010-12-24  Bruno Haible  <bruno@clisp.org>
27613
27614         rename, renameat: Avoid test failures on OSF/1 5.1.
27615         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
27616         alternative error codes.
27617         * tests/test-renameat.c (main): Likewise.
27618
27619 2010-12-24  Bruno Haible  <bruno@clisp.org>
27620
27621         *printf: Detect large precisions bug on Solaris 10/SPARC.
27622         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
27623         by Paul Eggert.
27624         * tests/test-snprintf-posix.h (test_function): Add this test code here
27625         too.
27626         * tests/test-sprintf-posix.h (test_function): Likewise.
27627         * tests/test-vasnprintf-posix.c (test_function): Likewise.
27628         * tests/test-vasprintf-posix.c (test_function): Likewise.
27629         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
27630         around by gnulib.
27631         * doc/posix-functions/printf.texi: Likewise.
27632         * doc/posix-functions/snprintf.texi: Likewise.
27633         * doc/posix-functions/sprintf.texi: Likewise.
27634         * doc/posix-functions/vfprintf.texi: Likewise.
27635         * doc/posix-functions/vprintf.texi: Likewise.
27636         * doc/posix-functions/vsnprintf.texi: Likewise.
27637         * doc/posix-functions/vsprintf.texi: Likewise.
27638         * doc/posix-functions/dprintf.texi: Undo last commit.
27639         * doc/posix-functions/vdprintf.texi: Likewise.
27640
27641 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
27642
27643         tests: port test-fdutimensat.c to Solaris 8
27644         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
27645         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
27646         On Solaris 8, it fails with errno == ENOSYS, because there is no
27647         futimens (so it can't use the fd), and there is no lutimens (so it
27648         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
27649
27650         vsnprintf: make more consistent with snprintf; doc fixes
27651
27652         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
27653         the byte count return problem was promoted from the snprintf-posix
27654         to the snprintf module.
27655         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
27656         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
27657         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
27658         * tests/test-snprintf.c (main): Check the byte count returned.
27659         * tests/test-vsnprintf.c (main): Likewise.
27660
27661 2010-12-23  Eric Blake  <eblake@redhat.com>
27662
27663         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
27664         * modules/sigpipe (License): Relax license.
27665
27666 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
27667
27668         doc: document Solaris printf bug with large float precisions
27669         * doc/posix-functions/dprintf.texi (dprintf):
27670         * doc/posix-functions/fprintf.texi (fprintf):
27671         * doc/posix-functions/printf.texi (printf):
27672         * doc/posix-functions/snprintf.texi (snprintf):
27673         * doc/posix-functions/sprintf.texi (sprintf):
27674         * doc/posix-functions/vdprintf.texi (vdprintf):
27675         * doc/posix-functions/vfprintf.texi (vfprintf):
27676         * doc/posix-functions/vprintf.texi (vprintf):
27677         * doc/posix-functions/vsnprintf.texi (vsnprintf):
27678         * doc/posix-functions/vsprintf.texi (vsprintf):
27679         Mention that these functions mishandle large floating point
27680         precisions on Solaris 10.  The same bug is also present in Solaris
27681         8, and I assume earlier.  This causes "cd gnulib-tests; make
27682         check" to fail on Solaris 8 (and I assume, later) when building
27683         the latest coreutils, in test-vasprintf-posix's call to
27684         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
27685         the wide flavors (e.g., wprintf) so this patch just updates the
27686         documentation for the narrow ones.
27687
27688         test-posixtm.c: add two tests
27689         * tests/test-posixtm.c: Add two tests, to highlight the
27690         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
27691         around this bug; this is merely to document it.
27692
27693 2010-12-22  Bruno Haible  <bruno@clisp.org>
27694
27695         getlogin_r: Work around portability problem on OSF/1.
27696         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
27697         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
27698         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
27699         test for a truncated result.
27700         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
27701         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
27702         * modules/getlogin_r (Depends-on): Add memchr.
27703         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
27704
27705 2010-12-22  Bruno Haible  <bruno@clisp.org>
27706
27707         ptsname: Avoid test failure on OSF/1 5.1.
27708         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
27709         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
27710         (same_slave): New function.
27711         (main): Use it to compare ptsname's result with the expected file name.
27712
27713 2010-12-22  Bruno Haible  <bruno@clisp.org>
27714
27715         Port extended stdio modules to HP NonStop Kernel.
27716         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
27717         macros.
27718         * lib/fbufmode.c: Update comments.
27719         * lib/fflush.c: Likewise.
27720         * lib/fpurge.c: Likewise.
27721         * lib/freadable.c: Likewise.
27722         * lib/freadahead.c: Likewise.
27723         * lib/freading.c: Likewise.
27724         * lib/freadptr.c: Likewise.
27725         * lib/freadseek.c: Likewise.
27726         * lib/fseeko.c: Likewise.
27727         * lib/fseterr.c: Likewise.
27728         * lib/fwritable.c: Likewise.
27729         * lib/fwriting.c: Likewise.
27730         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27731
27732 2010-12-22  Bruno Haible  <bruno@clisp.org>
27733
27734         ttyname_r: Work around bug on OSF/1 5.1.
27735         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
27736         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
27737         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
27738         present.
27739         * lib/ttyname_r.c (ttyname_r): Update comments.
27740
27741 2010-12-22  Bruno Haible  <bruno@clisp.org>
27742
27743         round: Implement result sign according to IEEE 754.
27744         * lib/round.c (MIN, MINUS_ZERO): New macros.
27745         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
27746         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
27747         * tests/test-round-ieee.c (main): Likewise.
27748         * tests/test-roundl-ieee.c (main): Likewise.
27749
27750         trunc: Implement result sign according to IEEE 754.
27751         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
27752         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
27753         * tests/test-trunc2.c: Include minus-zero.h.
27754         (MINUS_ZERO): New macro.
27755         (trunc_reference): Keep in sync with lib/trunc.c.
27756         * tests/test-truncf2.c: Include minus-zero.h.
27757         (MINUS_ZERO): New macro.
27758         (truncf_reference): Keep in sync with lib/trunc.c.
27759         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
27760         * tests/test-trunc-ieee.c (main): Likewise.
27761         * tests/test-truncl-ieee.c (main): Likewise.
27762
27763         ceil: Implement result sign according to IEEE 754.
27764         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
27765         (FUNC): Return -0.0 for -1 < x < 0.
27766         * tests/test-ceil2.c: Include minus-zero.h.
27767         (MINUS_ZERO): New macro.
27768         (ceil_reference): Keep in sync with lib/ceil.c.
27769         * tests/test-ceilf2.c: Include minus-zero.h.
27770         (MINUS_ZERO): New macro.
27771         (ceilf_reference): Keep in sync with lib/ceil.c.
27772         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
27773         * tests/test-ceil-ieee.c (main): Likewise.
27774         * tests/test-ceill-ieee.c (main): Likewise.
27775
27776         floor: Implement result sign according to IEEE 754.
27777         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
27778         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
27779         * tests/test-floorf2.c (floorf_reference): Likewise.
27780         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
27781         * tests/test-floor-ieee.c (main): Likewise.
27782         * tests/test-floorl-ieee.c (main): Likewise.
27783
27784 2010-12-22  Bruno Haible  <bruno@clisp.org>
27785
27786         getaddrinfo: Update doc.
27787         * doc/posix-functions/gai_strerror.texi: Return type is also different
27788         on AIX and HP-UX.
27789
27790 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
27791
27792         getaddrinfo, inet_ntop: Update doc for Solaris.
27793         * doc/posix-functions/gai_strerror.texi: Return type is also an
27794         issue on Solaris 9 and earlier.
27795         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
27796         on Solaris 10 and earlier.
27797
27798 2010-12-21  Bruno Haible  <bruno@clisp.org>
27799
27800         New module 'roundl-ieee'.
27801         * modules/roundl-ieee: New file.
27802         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
27803         test whether roundl works according to ISO C 99 with IEC 60559.
27804         * m4/roundl-ieee.m4: New file.
27805         * modules/roundl-ieee-tests: New file.
27806         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
27807         * tests/test-roundl.c (main): Remove signbit tests.
27808         * modules/roundl-tests (Depends-on): Remove signbit.
27809         * doc/posix-functions/roundl.texi: Mention the new module.
27810
27811 2010-12-21  Bruno Haible  <bruno@clisp.org>
27812
27813         New module 'truncl-ieee'.
27814         * modules/truncl-ieee: New file.
27815         * modules/truncl-ieee-tests: New file.
27816         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
27817         * tests/test-truncl.c (main): Remove signbit tests.
27818         * modules/truncl-tests (Depends-on): Remove signbit.
27819         * doc/posix-functions/truncl.texi: Mention the new module.
27820
27821 2010-12-21  Bruno Haible  <bruno@clisp.org>
27822
27823         New module 'ceill-ieee'.
27824         * modules/ceill-ieee: New file.
27825         * modules/ceill-ieee-tests: New file.
27826         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
27827         * tests/test-ceill.c (main): Remove signbit tests.
27828         * modules/ceill-tests (Depends-on): Remove signbit.
27829         * doc/posix-functions/ceill.texi: Mention the new module.
27830
27831 2010-12-21  Bruno Haible  <bruno@clisp.org>
27832
27833         New module 'floorl-ieee'.
27834         * modules/floorl-ieee: New file.
27835         * modules/floorl-ieee-tests: New file.
27836         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
27837         * tests/test-floorl.c (main): Remove signbit tests.
27838         * modules/floorl-tests (Depends-on): Remove signbit.
27839         * doc/posix-functions/floorl.texi: Mention the new module.
27840
27841 2010-12-21  Bruno Haible  <bruno@clisp.org>
27842
27843         New module 'round-ieee'.
27844         * modules/round-ieee: New file.
27845         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
27846         whether round works according to ISO C 99 with IEC 60559.
27847         * m4/round-ieee.m4: New file.
27848         * modules/round-ieee-tests: New file.
27849         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
27850         * tests/test-round1.c (main): Remove signbit tests.
27851         * modules/round-tests (Depends-on): Remove 'signbit'.
27852         * doc/posix-functions/round.texi: Mention the new module.
27853
27854 2010-12-21  Bruno Haible  <bruno@clisp.org>
27855
27856         New module 'trunc-ieee'.
27857         * modules/trunc-ieee: New file.
27858         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
27859         whether trunc works according to ISO C 99 with IEC 60559.
27860         * m4/trunc-ieee.m4: New file.
27861         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
27862         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
27863         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
27864         * modules/trunc-ieee-tests: New file.
27865         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
27866         * tests/test-trunc1.c (main): Remove signbit tests.
27867         * modules/trunc-tests (Depends-on): Remove 'signbit'.
27868         * doc/posix-functions/trunc.texi: Mention the new module.
27869
27870 2010-12-21  Bruno Haible  <bruno@clisp.org>
27871
27872         New module 'ceil-ieee'.
27873         * modules/ceil-ieee: New file.
27874         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
27875         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
27876         ISO C 99 with IEC 60559.
27877         * m4/ceil-ieee.m4: New file.
27878         * modules/ceil (Files): Add lib/ceil.c.
27879         (Depends-on): Add 'float'.
27880         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
27881         * lib/math.in.h (ceil): New declaration.
27882         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
27883         REPLACE_CEIL.
27884         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
27885         * modules/ceil-ieee-tests: New file.
27886         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
27887         * tests/test-math-c++.cc: Check the signature of 'ceil'.
27888         * doc/posix-functions/ceil.texi: Mention the new module.
27889
27890 2010-12-21  Bruno Haible  <bruno@clisp.org>
27891
27892         New module 'floor-ieee'.
27893         * modules/floor-ieee: New file.
27894         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
27895         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
27896         ISO C 99 with IEC 60559.
27897         * m4/floor-ieee.m4: New file.
27898         * modules/floor (Files): Add lib/floor.c.
27899         (Depends-on): Add 'float'.
27900         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
27901         * lib/math.in.h (floor): New declaration.
27902         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
27903         REPLACE_FLOOR.
27904         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
27905         * modules/floor-ieee-tests: New file.
27906         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
27907         * tests/test-math-c++.cc: Check the signature of 'floor'.
27908         * doc/posix-functions/floor.texi: Mention the new module.
27909
27910 2010-12-21  Bruno Haible  <bruno@clisp.org>
27911
27912         New module 'roundf-ieee'.
27913         * modules/roundf-ieee: New file.
27914         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
27915         test whether roundf works according to ISO C 99 with IEC 60559.
27916         * m4/roundf-ieee.m4: New file.
27917         * modules/roundf-ieee-tests: New file.
27918         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
27919         * tests/test-roundf1.c (main): Remove signbit tests.
27920         * modules/roundf-tests (Depends-on): Remove 'signbit'.
27921         * doc/posix-functions/roundf.texi: Mention the new module.
27922
27923 2010-12-21  Bruno Haible  <bruno@clisp.org>
27924
27925         New module 'truncf-ieee'.
27926         * modules/truncf-ieee: New file.
27927         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
27928         test whether truncf works according to ISO C 99 with IEC 60559.
27929         * m4/truncf-ieee.m4: New file.
27930         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
27931         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
27932         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
27933         * modules/truncf-ieee-tests: New file.
27934         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
27935         * tests/test-truncf1.c (main): Remove signbit tests.
27936         * modules/truncf-tests (Depends-on): Remove 'signbit'.
27937         * doc/posix-functions/truncf.texi: Mention the new module.
27938
27939 2010-12-21  Bruno Haible  <bruno@clisp.org>
27940
27941         New module 'ceilf-ieee'.
27942         * modules/ceilf-ieee: New file.
27943         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
27944         test whether ceilf works according to ISO C 99 with IEC 60559.
27945         * m4/ceilf-ieee.m4: New file.
27946         * modules/ceilf-ieee-tests: New file.
27947         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
27948         * tests/test-ceilf1.c (main): Remove signbit tests.
27949         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
27950         * doc/posix-functions/ceilf.texi: Mention the new module.
27951
27952 2010-12-21  Bruno Haible  <bruno@clisp.org>
27953
27954         New module 'floorf-ieee'.
27955         * modules/floorf-ieee: New file.
27956         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
27957         test whether floorf works according to ISO C 99 with IEC 60559.
27958         * m4/floorf-ieee.m4: New file.
27959         * modules/floorf-ieee-tests: New file.
27960         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
27961         * tests/test-floorf1.c (main): Remove signbit tests.
27962         * modules/floorf-tests (Depends-on): Remove 'signbit'.
27963         * doc/posix-functions/floorf.texi: Mention the new module.
27964
27965 2010-12-21  Bruno Haible  <bruno@clisp.org>
27966
27967         Support for minus zero in autoconf macros.
27968         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
27969         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
27970         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
27971         * tests/minus-zero.h: Update comments.
27972
27973 2010-12-21  Bruno Haible  <bruno@clisp.org>
27974
27975         Tests for module 'ceil'.
27976         * modules/ceil-tests: New file.
27977         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
27978         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
27979
27980 2010-12-21  Bruno Haible  <bruno@clisp.org>
27981
27982         Tests for module 'floor'.
27983         * modules/floor-tests: New file.
27984         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
27985         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
27986
27987 2010-12-21  Bruno Haible  <bruno@clisp.org>
27988
27989         math: Fix indentation.
27990         * lib/math.in.h (floorf): Fix indentation.
27991
27992 2010-12-21  Bruno Haible  <bruno@clisp.org>
27993
27994         Fix cross-compilation guesses on Solaris.
27995         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
27996         not match "solaris2.10".
27997         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
27998         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
27999         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
28000
28001 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
28002
28003         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
28004         This fixes a problem observed with the latest coreutils snapshot
28005         that caused a test to fail on Solaris 8.  src/csplit.c's call
28006         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
28007         earlier, instead of returning the number of bytes that would have
28008         been generated; this causes csplit to incorrectly report memory
28009         exhaustion.
28010         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
28011         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
28012         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
28013         comments to match.
28014         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
28015         Fix typo in matching older versions of Solaris: "solaris2.10"
28016         is matched by the shell pattern "solaris2.[0-9]*".  This matters
28017         only for guessing while cross-compiling.
28018         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
28019
28020 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
28021
28022         ftoastr: fix comment again
28023         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
28024         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
28025         Also, simplify example a bit by using flags = 0.
28026
28027 2010-12-20  Bruno Haible  <bruno@clisp.org>
28028
28029         round*, trunc*: Update documentation regarding glibc.
28030         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
28031         * doc/posix-functions/round.texi: Likewise.
28032         * doc/posix-functions/roundl.texi: Likewise.
28033         * doc/posix-functions/truncf.texi: Likewise.
28034         * doc/posix-functions/trunc.texi: Likewise.
28035         * doc/posix-functions/truncl.texi: Likewise.
28036
28037 2010-12-20  Bruno Haible  <bruno@clisp.org>
28038
28039         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
28040         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
28041         * doc/posix-functions/round.texi: Likewise.
28042         * doc/posix-functions/roundl.texi: Likewise.
28043
28044 2010-12-20  Bruno Haible  <bruno@clisp.org>
28045
28046         ttyname_r: Add missing declaration on HP-UX 11.
28047         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
28048         HAVE_TTYNAME_R.
28049         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
28050         declared. Set HAVE_TTYNAME_R always.
28051         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28052         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
28053         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
28054         HAVE_TTYNAME_R.
28055         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
28056
28057 2010-12-20  Bruno Haible  <bruno@clisp.org>
28058
28059         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
28060         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
28061         * doc/posix-functions/getlogin_r.texi: Likewise.
28062         * tests/test-getlogin.c: Include <errno.h>.
28063         (main): Avoid test failure on HP-UX 11.11.
28064         * tests/test-getlogin_r.c (main): Likewise.
28065
28066 2010-12-20  Bruno Haible  <bruno@clisp.org>
28067
28068         getlogin_r: Add missing declaration on HP-UX 11.
28069         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
28070         declared also when it exists as a function.
28071         * doc/posix-functions/getlogin_r.texi: Document this workaround.
28072
28073 2010-12-20  Bruno Haible  <bruno@clisp.org>
28074
28075         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
28076         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
28077         through wcrtomb.
28078
28079 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
28080
28081         ftoastr: fix comment
28082         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
28083         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
28084
28085 2010-12-19  Bruno Haible  <bruno@clisp.org>
28086
28087         isnan: Ensure it is a macro.
28088         * lib/math.in.h (isnan): Define as a macro if not already a macro.
28089         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
28090         Solaris.
28091
28092 2010-12-19  Bruno Haible  <bruno@clisp.org>
28093
28094         ldexpl test: Fix link error on OSF/1 5.1.
28095         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
28096
28097 2010-12-19  Bruno Haible  <bruno@clisp.org>
28098
28099         wctype: Make it work in C++ mode on OSF/1 5.1.
28100         * lib/wctype.in.h (iswblank): Declare but not define here.
28101         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
28102         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
28103         * modules/wctype (Files): Add lib/iswblank.c.
28104
28105 2010-12-19  Bruno Haible  <bruno@clisp.org>
28106
28107         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
28108         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
28109         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
28110
28111 2010-12-19  Bruno Haible  <bruno@clisp.org>
28112
28113         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
28114         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
28115         _POSIX_PII_SOCKET.
28116         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
28117         * doc/posix-functions/recvfrom.texi: Likewise.
28118         * doc/posix-functions/send.texi: Likewise.
28119         * doc/posix-functions/sendto.texi: Likewise.
28120
28121 2010-12-19  Bruno Haible  <bruno@clisp.org>
28122
28123         tcgetsid: Add missing declaration on OSF/1 5.1.
28124         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
28125         HAVE_TCGETSID.
28126         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
28127         Don't set HAVE_TCGETSID.
28128         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
28129         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
28130         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
28131         HAVE_TCGETSID.
28132         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
28133
28134 2010-12-19  Bruno Haible  <bruno@clisp.org>
28135
28136         stdio: Fix problem with popen() declaration on OSF/1 5.1.
28137         * lib/stdio.in.h: During the include_next statement, let recursive
28138         includes of this file include only the system header file.
28139
28140 2010-12-19  Bruno Haible  <bruno@clisp.org>
28141
28142         iconv_open: Fix regression from 2010-12-04.
28143         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
28144         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
28145
28146 2010-12-19  Bruno Haible  <bruno@clisp.org>
28147
28148         stdbool test: Avoid a gcc warning.
28149         * tests/test-stdbool.c (main): Fail if e1 is false.
28150         Reported by Jim Meyering.
28151
28152 2010-12-19  Jim Meyering  <meyering@redhat.com>
28153
28154         setenv: restore to working order
28155         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
28156         mistakenly removed.
28157         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
28158         HAVE_SETENV.
28159         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
28160         HAVE_SETENV.
28161
28162 2010-12-19  Bruno Haible  <bruno@clisp.org>
28163
28164         Document some different function declarations on OSF/1 5.1.
28165         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
28166         * doc/posix-functions/inet_ntop.texi: Likewise.
28167         * doc/posix-functions/gethostname.texi: Likewise.
28168         * lib/unistd.in.h (gethostname): Update comment.
28169
28170 2010-12-19  Bruno Haible  <bruno@clisp.org>
28171
28172         doc: Mention vasprintf-posix module.
28173         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
28174         the 'vasprintf-posix' module.
28175         * doc/glibc-functions/vasprintf.texi: Likewise.
28176
28177 2010-12-19  Bruno Haible  <bruno@clisp.org>
28178
28179         unsetenv: Add missing declaration on OSF/1 5.1.
28180         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
28181         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
28182         Don't set HAVE_UNSETENV. In the test program, set _BSD.
28183         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
28184         not HAVE_UNSETENV.
28185         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
28186         HAVE_UNSETENV.
28187         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
28188
28189 2010-12-19  Bruno Haible  <bruno@clisp.org>
28190
28191         setenv: Add missing declaration on OSF/1 5.1.
28192         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
28193         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
28194         declared. Don't set HAVE_SETENV.
28195         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
28196         not HAVE_SETENV.
28197         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
28198         HAVE_SETENV.
28199         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
28200
28201 2010-12-19  Bruno Haible  <bruno@clisp.org>
28202
28203         nl_langinfo tests: Avoid gcc warning.
28204         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
28205
28206 2010-12-19  Bruno Haible  <bruno@clisp.org>
28207
28208         mknod: Avoid error in C++ mode on OSF/1 with GCC.
28209         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
28210         _GL_CXXALIAS_SYS.
28211
28212 2010-12-19  Bruno Haible  <bruno@clisp.org>
28213
28214         stdbool: Relax test.
28215         * tests/test-stdbool.c (e): Don't require that casts from a variable's
28216         address to 'bool' work in static initializer, for compilers other than
28217         GCC.
28218
28219 2010-12-19  Bruno Haible  <bruno@clisp.org>
28220
28221         ftello: Add missing declaration on OSF/1 5.1.
28222         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
28223         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
28224         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
28225         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
28226         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
28227
28228 2010-12-19  Bruno Haible  <bruno@clisp.org>
28229
28230         fseeko: Add missing declaration on OSF/1 5.1.
28231         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
28232         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
28233         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
28234         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
28235         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
28236
28237 2010-12-19  Bruno Haible  <bruno@clisp.org>
28238
28239         fchdir: Add missing declaration on OSF/1 5.1.
28240         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
28241         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
28242         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
28243         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
28244         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
28245
28246 2010-12-19  Bruno Haible  <bruno@clisp.org>
28247
28248         relocatable-prog-wrapper: Separate from relocatable-prog.
28249         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
28250         uninstall-relocwrapper rule here.
28251         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
28252         Reported by Ian Beckwith <ianb@erislabs.net>.
28253
28254 2010-12-19  Bruno Haible  <bruno@clisp.org>
28255
28256         unistr/u8-mbsnlen: Add missing dependency.
28257         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
28258         Reported by Ian Beckwith <ianb@erislabs.net>.
28259
28260 2010-12-19  Bruno Haible  <bruno@clisp.org>
28261
28262         iconv: Make it possible again to use this module without 'iconv-h'.
28263         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
28264         if it is not defined.
28265         Reported by Ian Beckwith <ianb@erislabs.net>.
28266
28267 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28268
28269         acl: port to Solaris 8 when copying from tmpfs to ufs
28270         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
28271         error number.  Problem observed on Solaris 8 with latest
28272         coreutils, with "mv A B", where A is on a tmpfs file system and B
28273         is on a ufs file system.  This caused coreutils' mv/part-symlink
28274         test to fail.
28275
28276         tests: set fail=0 at start
28277         * tests/init.sh (setup_): Move fail=0 initialization here ...
28278         (mktempd_): ... from here, so that tests can rely on fail being
28279         set to 0 initially.  This fixes a problem in coreutils; see:
28280         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
28281
28282 2010-12-18  Bruno Haible  <bruno@clisp.org>
28283
28284         memmem-simple: Stylistic changes.
28285         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
28286         Fix preprocessor directive indentation.
28287
28288 2010-12-15  Pádraig Brady <P@draigBrady.com>
28289
28290         memmem, memmem-simple: reorganize and expand empty needle check
28291         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
28292         functional checks to memmem-simple so that one has a fully functional
28293         memmem by using just this module.
28294         Restrict the performance only check to the memmem module.
28295         Also expand the empty needle check to ensure the correct
28296         pointer is returned, not just a non NULL pointer.
28297         * doc/glibc-functions/memmem.texi: Rearrange the portability
28298         documentation to correlate with the rearranged checks.
28299         Clarify exactly how the memmem and memmem-simple modules
28300         relate to each other.
28301
28302 2010-12-15  Pádraig Brady <P@draigBrady.com>
28303             Bruno Haible  <bruno@clisp.org>
28304
28305         Improve cross-compilation guesses for uClibc.
28306         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
28307         that uClibc does not have the glibc bug.
28308         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
28309         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
28310
28311 2010-12-14  Eric Blake  <eblake@redhat.com>
28312
28313         configmake: provide fallbacks for oldest supported autotools
28314         * m4/configmake.m4: New file.
28315         * modules/configmake (Files): Ship it.
28316         (configure.ac): Use it to guarantee fallbacks.
28317
28318 2010-12-13  Pádraig Brady <P@draigBrady.com>
28319
28320         read-file: Improve handling of large files
28321         * lib/read-file.c (fread_file): Minimize realloc()s
28322         for regular files, and better manage sizes around SIZE_MAX.
28323
28324 2010-12-13  Eric Blake  <eblake@redhat.com>
28325
28326         cloexec, fcntl: relax license
28327         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
28328         consent from all contributors.
28329         * modules/fcntl (License): Likewise.
28330
28331 2010-12-10  Bruno Haible  <bruno@clisp.org>
28332
28333         Tests for module 'pipe-posix'.
28334         * modules/pipe-posix-tests: New file.
28335         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
28336
28337 2010-12-10  Bruno Haible  <bruno@clisp.org>
28338
28339         pipe-posix: Make it work in C++ mode.
28340         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
28341         (pipe): Use common idiom, not a macro definition.
28342         * lib/pipe.c: New file.
28343         * m4/pipe.m4: New file.
28344         * modules/pipe-posix (Description): Enhance.
28345         (Files): Add lib/pipe.c, m4/pipe.m4.
28346         (configure.ac): Invoke gl_FUNC_PIPE.
28347         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
28348         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
28349         * tests/test-unistd-c++.cc: Check the signature of pipe.
28350
28351 2010-12-10  Bruno Haible  <bruno@clisp.org>
28352
28353         Rename module 'pipe' to 'spawn-pipe'.
28354         * modules/spawn-pipe: New file, renamed from modules/pipe.
28355         (Files, configure.ac, Makefile.am): Update.
28356         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
28357         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
28358         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
28359         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
28360         "spawn-pipe.h" instead of "pipe.h".
28361         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
28362         to gl_SPAWN_PIPE.
28363         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
28364         (Files, Makefile.am): Update.
28365         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
28366         Update.
28367         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
28368         Include "spawn-pipe.h" instead of "pipe.h".
28369         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
28370         * lib/javacomp.c: Likewise.
28371         * lib/javaversion.c: Likewise.
28372         * lib/pipe-filter-gi.c: Likewise.
28373         * lib/pipe-filter-ii.c: Likewise.
28374         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
28375         * modules/javacomp (Depends-on): Likewise.
28376         * modules/javaversion (Depends-on): Likewise.
28377         * modules/pipe-filter-gi (Depends-on): Likewise.
28378         * modules/pipe-filter-ii (Depends-on): Likewise.
28379         * MODULES.html.sh (Executing programs): Update.
28380         * NEWS: Mention the change.
28381
28382 2010-12-10  Eric Blake  <eblake@redhat.com>
28383
28384         pipe-posix: new module
28385         * modules/pipe-posix: New file.
28386         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
28387         (gl_UNISTD_H): Check for declaration.
28388         * modules/unistd (Makefile.am): Substitute it.
28389         * lib/unistd.in.h (pipe): Provide it for mingw.
28390         * doc/posix-functions/pipe.texi (pipe): Update documentation.
28391         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
28392
28393 2010-12-07  Bruno Haible  <bruno@clisp.org>
28394
28395         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
28396         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
28397         u8_strcmp_gnu.
28398         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
28399
28400 2010-12-06  Bruno Haible  <bruno@clisp.org>
28401
28402         Update internal documentation.
28403         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
28404
28405 2010-12-04  Bruno Haible  <bruno@clisp.org>
28406
28407         Put more information about failed tests into the test return codes.
28408         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
28409         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
28410         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
28411         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
28412         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
28413         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28414         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28415         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
28416         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
28417         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28418         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
28419         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
28420         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
28421         * m4/stdint.m4 (gl_STDINT_H): Likewise.
28422         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
28423         returns a bit mask.
28424         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
28425         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
28426         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
28427         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
28428         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
28429         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
28430         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
28431         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
28432         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
28433         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
28434         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
28435         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
28436         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
28437         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
28438         * m4/link.m4 (gl_FUNC_LINK): Likewise.
28439         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
28440         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
28441         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
28442         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
28443         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
28444         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
28445         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
28446         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
28447         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
28448         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
28449         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
28450         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
28451         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
28452         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
28453         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
28454         gl_PRINTF_PRECISION): Likewise.
28455         * m4/regex.m4 (gl_REGEX): Likewise.
28456         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
28457         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
28458         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
28459         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
28460         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
28461         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28462         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
28463         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
28464         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
28465         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
28466         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
28467         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
28468         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
28469         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
28470         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
28471         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28472         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
28473         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
28474         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
28475         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
28476         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
28477         enumerated value.
28478         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
28479
28480 2010-12-04  Bruno Haible  <bruno@clisp.org>
28481
28482         Update for Solaris 11 2010-11.
28483         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
28484         Express, released in November 2010.
28485
28486 2010-12-04  Bruno Haible  <bruno@clisp.org>
28487
28488         nproc: Relax license.
28489         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
28490         and Paul Eggert.
28491         Requested by Ludovic Courtès <ludo@gnu.org>.
28492
28493 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
28494
28495         utimecmp: fine-grained src to nearby coarse-grained dest
28496
28497         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
28498         and the source is on a file system with higher-resolution time
28499         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
28500         not work, and the time stamps are close together, the algorithm to
28501         determine the exact resolution from the read-back mtime was buggy:
28502         it had a "!=" where it should have had an "==".  This bug has been
28503         in the code ever since it was introduced to gnulib.
28504         Problem reported by Dan Jacobson in
28505         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
28506
28507 2010-11-30  Bruno Haible  <bruno@clisp.org>
28508
28509         strerror_r-posix: Fix autoconf test.
28510         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
28511
28512 2010-11-28  Bruno Haible  <bruno@clisp.org>
28513             Paul Eggert  <eggert@cs.ucla.edu>
28514
28515         Tests for module 'getdomainname'.
28516         * modules/getdomainname-tests: New file.
28517         * tests/test-getdomainname.c: New file, based on
28518         tests/test-gethostname.c.
28519
28520 2010-11-28  Bruno Haible  <bruno@clisp.org>
28521             Paul Eggert  <eggert@cs.ucla.edu>
28522
28523         getdomainname: Use the system function when possible.
28524         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
28525         (getdomainname): Replace if needed. Provide the declaration if it is
28526         missing. Don't use _GL_CXXALIAS_SYS_CAST.
28527         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
28528         (getdomainname): When the system has getdomainname, call the system
28529         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
28530         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
28531         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
28532         found in libnsl. Look for the declaration also in <netdb.h>. Replace
28533         the function if its second argument is of type 'int' or if it is found
28534         in libnsl.
28535         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
28536         <sys/systeminfo.h> and sysinfo().
28537         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
28538         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28539         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
28540         HAVE_GETDOMAINNAME.
28541         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
28542         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
28543         * doc/glibc-functions/getdomainname.texi: Document the problems with
28544         the getdomainname declaration.
28545
28546 2010-11-28  Bruno Haible  <bruno@clisp.org>
28547
28548         sys_socket: Ensure ss_family field on AIX.
28549         * lib/sys_socket.in.h (ss_family): New macro definition.
28550         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
28551         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
28552         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
28553         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
28554         * modules/sys_socket (Makefile.am): Substitute
28555         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
28556         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
28557
28558 2010-11-27  Bruno Haible  <bruno@clisp.org>
28559
28560         readline: Improve configure output.
28561         * m4/readline.m4 (gl_FUNC_READLINE): Make the
28562         "checking for readline..." result understandable.
28563
28564 2010-11-27  Bruno Haible  <bruno@clisp.org>
28565
28566         *printf-posix: Detect a bug on Solaris 10/x86.
28567         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
28568         for floating-point output.
28569         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
28570         directive.
28571         * tests/test-snprintf-posix.h (test_function): Likewise.
28572         * tests/test-sprintf-posix.h (test_function): Likewise.
28573         * tests/test-vasprintf-posix.c (test_function): Likewise.
28574         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
28575         * doc/posix-functions/printf.texi: Likewise.
28576         * doc/posix-functions/snprintf.texi: Likewise.
28577         * doc/posix-functions/sprintf.texi: Likewise.
28578         * doc/posix-functions/vfprintf.texi: Likewise.
28579         * doc/posix-functions/vprintf.texi: Likewise.
28580         * doc/posix-functions/vsnprintf.texi: Likewise.
28581         * doc/posix-functions/vsprintf.texi: Likewise.
28582         * doc/glibc-functions/obstack_printf.texi: Likewise.
28583         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
28584
28585 2010-11-27  Bruno Haible  <bruno@clisp.org>
28586
28587         Fix link error when module libunistring-optional is in use.
28588         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
28589         * modules/striconveha-tests (Makefile.am): Likewise.
28590
28591 2010-11-27  Bruno Haible  <bruno@clisp.org>
28592
28593         regex: Mention link dependencies.
28594         * modules/regex (Link): New section.
28595         * modules/rpmatch (Link): Likewise.
28596         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
28597
28598 2010-11-27  Bruno Haible  <bruno@clisp.org>
28599
28600         ftoastr: Fix compilation error on Solaris.
28601         * lib/ftoastr.c: Include <config.h>.
28602
28603 2010-11-27  Bruno Haible  <bruno@clisp.org>
28604
28605         getloadavg: Update documentation.
28606         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
28607
28608 2010-11-27  Bruno Haible  <bruno@clisp.org>
28609
28610         sys_socket: Fix test whether the functions are declared.
28611         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
28612         not <sys/select.h>.
28613
28614 2010-11-27  Bruno Haible  <bruno@clisp.org>
28615
28616         getpass: Make sure to get system declaration on some platforms.
28617         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
28618         gl_USE_SYSTEM_EXTENSIONS.
28619         * modules/getpass (Depends-on): Add extensions.
28620
28621 2010-11-26  Bruno Haible  <bruno@clisp.org>
28622
28623         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
28624         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
28625         'iconv' module is present.
28626         (ICONV_CONST): New macro.
28627         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
28628         ICONV_CONST.
28629         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
28630         set ICONV_CONST.
28631         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
28632         here.
28633         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
28634         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
28635         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
28636         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
28637         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
28638         present.
28639
28640 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
28641
28642         ftoastr: comment fix
28643         * lib/ftoastr.c: "little" -> "little or no" in comment
28644
28645 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
28646
28647         stdint: port to GCC 4.3 + OSX + Octave
28648         On this platform, stdint.h is buggy and defines int64_t to long
28649         long int.  The replacement defined it to long int, causing
28650         problems with C++ style name mangling.  Instead, trust the system
28651         definition if INT64_MAX is defined, and likewise for the unsigned
28652         variant.   Problem reported by Jarno Rajahalme in
28653         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
28654         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
28655         and don't mess with int64_t and INT64_MAX in this case.
28656         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
28657
28658 2010-11-24  Bruno Haible  <bruno@clisp.org>
28659
28660         doc: Corrections regarding MacOS X 10.4 and 10.5.
28661         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
28662         MacOS X.
28663         Reported by Simon Josefsson.
28664
28665 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
28666
28667         Uninstall ".bin" files installed by relocwrapper.
28668         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
28669         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
28670         unless it is already there.
28671
28672 2010-11-21  Bruno Haible  <bruno@clisp.org>
28673
28674         Update for NetBSD 5.0.
28675         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
28676         NetBSD; the test fails on NetBSD 5.0.
28677         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
28678         about NetBSD.
28679
28680 2010-11-21  Bruno Haible  <bruno@clisp.org>
28681
28682         Update for HP-UX 11.23 and HP-UX 11.31.
28683         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
28684         HP-UX.
28685
28686 2010-11-21  Bruno Haible  <bruno@clisp.org>
28687
28688         Update for MacOS X 10.5.
28689         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
28690         MacOS X; the test fails on MacOS X 10.5.8.
28691         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
28692         about MacOS X.
28693
28694 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
28695
28696         bootstrap: add bootstrap_sync option.
28697         See discussion at
28698         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
28699         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
28700         * build-aux/bootstrap: Accept --bootstrap-sync to update
28701         bootstrap if it is not identical to the local gnulib's
28702         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
28703         enable this by default.  Accept --no-bootstrap-sync to disable
28704         it.
28705
28706 2010-11-20  Bruno Haible  <bruno@clisp.org>
28707
28708         Ensure that <features.h> is included before __GLIBC__ is tested.
28709         * lib/printf-parse.h: Include <features.h>.
28710         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
28711         Reported by Mike Frysinger <vapier@gentoo.org>.
28712
28713         Ensure that <features.h> is included before __GLIBC__ is tested.
28714         * lib/wchar.in.h: Include <features.h>.
28715         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
28716         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
28717         Reported by Mike Frysinger <vapier@gentoo.org>.
28718
28719         Ensure that <features.h> is included before __GLIBC__ is tested.
28720         * lib/arpa_inet.in.h: Include <features.h>.
28721         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
28722         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
28723         Reported by Mike Frysinger <vapier@gentoo.org>.
28724
28725         Ensure that <features.h> is included before __GLIBC__ is tested.
28726         * build-aux/link-warning.h: Include <features.h>.
28727         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
28728         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
28729         Reported by Mike Frysinger <vapier@gentoo.org>.
28730
28731         Ensure that <features.h> is included before __GLIBC__ is tested.
28732         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
28733         Reported by Mike Frysinger <vapier@gentoo.org>.
28734
28735 2010-11-20  Bruno Haible  <bruno@clisp.org>
28736
28737         memmem: Fix autoconf test.
28738         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
28739
28740 2010-11-20  Bruno Haible  <bruno@clisp.org>
28741
28742         Port to uClibc.
28743         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
28744         * lib/fcntl.in.h: Likewise.
28745         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
28746         * lib/mbrtowc.c (mbrtowc): Likewise.
28747         * lib/relocatable.c (find_shared_library_fullname): Likewise.
28748         * lib/strerror_r.c: Likewise.
28749         * lib/unistr/u8-strnlen.c: Likewise.
28750         * lib/vasnprintf.c (decimal_point_char): Likewise.
28751         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
28752         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
28753         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
28754         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
28755         * tests/test-sigaction.c (handler, main): Likewise.
28756         * lib/freading.h: Treat uClibc like a non-glibc platform.
28757         * lib/freading.c: Likewise.
28758         * lib/gettext.h: Likewise.
28759         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
28760         Likewise.
28761         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
28762         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
28763         * lib/propername.c (proper_name_utf8): Likewise.
28764         * lib/spawn.in.h: Likewise.
28765         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
28766         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
28767         mem_cd_iconveh_internal): Likewise.
28768         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
28769         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
28770         strstr, strcasestr): Likewise.
28771         * lib/unicodeio.c (unicode_to_mb): Likewise.
28772         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
28773         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
28774         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
28775         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
28776         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
28777         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
28778         * lib/unistr/u8-stpncpy.c: Likewise.
28779         * lib/vasnprintf.c (VASNPRINTF): Likewise.
28780         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
28781         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28782         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28783         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
28784         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
28785         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
28786         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
28787         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
28788         Likewise.
28789         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
28790         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
28791         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
28792         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28793         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
28794         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28795         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
28796         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
28797         * tests/test-getopt.h (OPTIND_MIN): Likewise.
28798         * tests/test-striconveha.c (main): Likewise.
28799         * tests/test-vasnprintf-posix.c (test_function): Likewise.
28800         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
28801         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
28802         * doc/posix-functions/getline.texi: Likewise.
28803         Reported by Mike Frysinger <vapier@gentoo.org>.
28804
28805 2010-11-20  Bruno Haible  <bruno@clisp.org>
28806
28807         nproc: Fix condition.
28808         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
28809         HAVE_PTHREAD_AFFINITY_NP.
28810
28811 2010-11-20  Bruno Haible  <bruno@clisp.org>
28812
28813         Fix a comment.
28814         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
28815
28816 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
28817
28818         ftoastr: don't assume snprintf
28819         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
28820         Implement a subset of snprintf here, by using sprintf safely.
28821         * modules/ftoastr (Depends-on): Remove snprintf.
28822
28823 2010-11-19  Jim Meyering  <meyering@redhat.com>
28824
28825         test-rename.h: fix compilation failure
28826         * tests/test-rename.h (test_rename): Add omitted "}".
28827
28828 2010-11-17  Jim Meyering  <meyering@redhat.com>
28829
28830         maint.mk: add a URL discussing the no-@acronym policy
28831         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
28832
28833 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
28834
28835         ftoastr: depend on snprintf, improve comments
28836         * lib/ftoastr.c: Also mention Loitsch's draft.
28837         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
28838         needed in the current implementation, but it might simplify
28839         speeding up the code later.
28840         * modules/ftoastr: Depend on snprintf; this improves portability.
28841         Suggested by Bruno Haible in the same email.
28842
28843         ftoastr: port to hosts lacking strtof and strtold
28844         Problem reported by Bruno Haible in
28845         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
28846         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
28847         environment and strtold (and presumably strtof) are not available.
28848         * modules/ftoastr (Files): Add m4/c-strtod.m4.
28849         (configure.ac): Require gl_C99_STRTOLD.
28850
28851 2010-11-18  Bruno Haible  <bruno@clisp.org>
28852
28853         c-strtold: Avoid link error on AIX 7.
28854         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
28855         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
28856         (gl_C_STRTOLD): Test whether strtold_l exists.
28857         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28858
28859 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
28860
28861         intprops: new macro INT_BITS_STRLEN_BOUND
28862         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
28863         ftoastr.h.  This exposes an internal of intprops.h that was formerly
28864         not exposed.  Also, it uses a slightly tighter bound than before;
28865         though this makes no practical difference, we might as well be as
28866         tight as we easily can.
28867
28868         ftoastr: new module, for lossless conversion of floats to short strings
28869         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
28870         * modules/ftoastr: New files.
28871
28872 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
28873
28874         bootstrap: port to Solaris sed
28875         * build-aux/bootstrap (get_version): Port to Solaris sed.
28876         See Ralf Wildenhues's note in
28877         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
28878
28879 2010-11-14  Jim Meyering  <meyering@redhat.com>
28880
28881         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
28882         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
28883         and move definition closer to sole use.
28884
28885 2010-11-13  Jim Meyering  <meyering@redhat.com>
28886
28887         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
28888         Now we require at least autoconf-2.59, which means the work-around
28889         is no longer needed.
28890         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
28891         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
28892         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
28893         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
28894         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
28895
28896 2010-11-13  Bruno Haible  <bruno@clisp.org>
28897
28898         rename, renameat: Avoid test failures at NFS mounted locations.
28899         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
28900         functions.
28901         (test_rename): Use assert_nonexistent.
28902         * tests/test-rename.c: Include <dirent.h>.
28903         * tests/test-renameat.c: Likewise.
28904         Reported by Gary V. Vaughan <gary@gnu.org>.
28905
28906         rename, renameat: Document Linux bug with NFS
28907         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
28908         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
28909         * doc/posix-functions/renameat.texi: Likewise.
28910         Suggested by Eric Blake.
28911
28912 2010-11-13  Bruno Haible  <bruno@clisp.org>
28913
28914         rename test: Add comments.
28915         * tests/test-rename.h (test_rename): Add structure and comments.
28916
28917 2010-11-13  Eric Blake  <eblake@redhat.com>
28918
28919         maintainer-makefile: cover a few more files
28920         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
28921         scripts generated within C files, for libvirt.
28922
28923 2010-11-13  Bruno Haible  <bruno@clisp.org>
28924
28925         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
28926         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
28927         character, return the number of bytes that belong together, not always
28928         1.
28929         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
28930         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
28931         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
28932         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
28933         number of bytes of an invalid character.
28934         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
28935         (main): Invoke it.
28936         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
28937         results.
28938         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
28939         malformed byte sequences.
28940         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
28941         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
28942         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
28943         Reported by Ben Pfaff and Paolo Bonzini.
28944
28945 2010-11-13  Bruno Haible  <bruno@clisp.org>
28946
28947         openat: Work around glibc bug with fchownat() and empty file names.
28948         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
28949         (gl_FUNC_FCHOWNAT): Invoke it.
28950         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
28951         * doc/posix-functions/fchownat.texi: Document the glibc bug.
28952         Reported by Gary V. Vaughan <gary@gnu.org>.
28953
28954 2010-11-13  Bruno Haible  <bruno@clisp.org>
28955
28956         openat: Ensure autoconf macro ordering.
28957         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
28958         gl_USE_SYSTEM_EXTENSIONS.
28959         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
28960
28961 2010-11-13  Bruno Haible  <bruno@clisp.org>
28962
28963         Update comments.
28964         * lib/unistr/u8-check.c: Update file name in comments.
28965         * lib/unistr/u8-mblen.c: Likewise.
28966         * lib/unistr/u8-prev.c: Likewise.
28967         * lib/unistr/u8-strmblen.c: Likewise.
28968         * lib/unistr/u8-strmbtouc.c: Likewise.
28969
28970 2010-11-13  Jim Meyering  <meyering@redhat.com>
28971
28972         tests: avoid test failure on Solaris 10 due to lack of PATH export
28973         * tests/test-update-copyright.sh: Don't forget to export PATH.
28974
28975         init.sh: ensure that IFS is defined, just in case...
28976         * tests/init.sh (setup_): Ensure that IFS is defined,
28977         so that saving and restoring it works as expected.  This
28978         appears to be useful at least for an old version of dash
28979         from a long time ago (RH 6).  See here for details:
28980         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
28981
28982         maint.mk: tighten "test a == b" check
28983         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
28984         test to files that contain something like #!/bin/sh.
28985         Without this, coreutils would get two false positives in
28986         the comments of C source files.
28987
28988 2010-11-12  Eric Blake  <eblake@redhat.com>
28989
28990         bootstrap: fix typo in previous attempt
28991         * build-aux/bootstrap (buildreq): Correct the grouping.
28992         Reported by Paul Eggert.
28993
28994         maintainer-makefile: prohibit test x == x
28995         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
28996         Based on a report by Matthias Bolte.
28997
28998         bootstrap: allow FreeBSD gzip
28999         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
29000         which has no '.' and goes to stderr.
29001         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
29002         Reported by Matthias Bolte.
29003
29004         maintainer-makefile: check for i18n setup
29005         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
29006         will likely work.
29007
29008 2010-11-12  Bruno Haible  <bruno@clisp.org>
29009
29010         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
29011         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
29012         * lib/nanosleep.c (nanosleep): Likewise.
29013
29014 2010-11-11  Bruno Haible  <bruno@clisp.org>
29015
29016         fcntl-h: Fix for use of C++ on glibc systems.
29017         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
29018         also on glibc systems in C++ mode.
29019         Reported by Gary V. Vaughan <gary@gnu.org>.
29020
29021 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
29022
29023         mknod: avoid false failure with dash
29024         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
29025
29026 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
29027
29028         unlink: Fix "is it should" typo in diagnostic.
29029         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
29030         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
29031
29032 2010-11-11  Bruno Haible  <bruno@clisp.org>
29033
29034         Tests for module 'strerror_r-posix'.
29035         * modules/strerror_r-posix-tests: New file.
29036         * tests/test-strerror_r.c: New file.
29037         * tests/test-string-c++.cc: Check the signature of strerror_r.
29038
29039         New module 'strerror_r-posix'.
29040         * lib/string.in.h (strerror_r): New declaration.
29041         * lib/strerror_r.c: New file.
29042         * m4/strerror_r.m4: New file.
29043         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
29044         of strerror_r.
29045         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
29046         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
29047         * modules/strerror_r-posix: New file.
29048         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
29049         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
29050         * doc/posix-functions/strerror_r.texi: Mention the new module and the
29051         portability problems.
29052
29053 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
29054
29055         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
29056         line is also considered for output. Quoted function name in shell
29057         command, so temporary files for functions like MyClass::operator()
29058         are removed correctly without errors.
29059
29060 2010-11-09  Bruno Haible  <bruno@clisp.org>
29061
29062         * doc/posix-functions/strerror.texi: List more failing platforms.
29063
29064         * doc/posix-functions/strerror.texi: Add a comment.
29065
29066 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
29067
29068         fdopendir: fix bug on MacOS X when low on file descriptors
29069
29070         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
29071         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
29072         All callers changed.
29073         (fdopendir): Invoke save_cwd at the top level, not after using
29074         multiple dup() calls to use up file descriptors.  Then retry
29075         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
29076         less than the maximum number of open file descriptors, because
29077         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
29078         on Mac OS X 10.6.4 for tar 1.24
29079         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
29080         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
29081         and for tar 1.25
29082         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
29083
29084 2010-11-07  Bruno Haible  <bruno@clisp.org>
29085
29086         vasnprintf: Support I flag on glibc systems.
29087         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
29088         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
29089         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
29090         snprintf function.
29091         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
29092         glibc systems.
29093         * tests/test-vasnprintf-posix3.c: New file.
29094         * modules/vasnprintf-posix-tests (Files): Add it.
29095         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
29096
29097 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
29098
29099         [html] Fix copy/paste bug: Use unique name for compiler warnings.
29100         * MODULES.html.sh: For compiler warnings, use name
29101         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
29102
29103 2010-11-05  Eric Blake  <eblake@redhat.com>
29104
29105         ceil, floor: avoid spurious failure with icc
29106         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
29107         [denormals-as-zero] when optimizing without -mieee-fp option.
29108         * tests/test-floorf2.c (floorf_reference): Likewise.
29109         * tests/test-ceilf1.c (dummy): New function.
29110         (main): Use it to outsmart icc's optimization.
29111         * tests/test-floorf1.c (dummy, main): Likewise.
29112
29113         tests: require working signbit
29114         * modules/ceilf-tests (Depends-on): Add signbit.
29115         * modules/ceill-tests (Depends-on): Likewise.
29116         * modules/floorf-tests (Depends-on): Likewise.
29117         * modules/floorl-tests (Depends-on): Likewise.
29118         * modules/round-tests (Depends-on): Likewise.
29119         * modules/roundf-tests (Depends-on): Likewise.
29120         * modules/roundl-tests (Depends-on): Likewise.
29121         * modules/trunc-tests (Depends-on): Likewise.
29122         * modules/truncf-tests (Depends-on): Likewise.
29123         * modules/truncl-tests (Depends-on): Likewise.
29124
29125         strtod: work around icc bug
29126         * lib/strtod.c (minus_zero): Define to working value.
29127         (strtod): Use it to avoid icc bug.
29128
29129         copysign: enhance tests
29130         * modules/copysign-tests (Files): Add minus-zero.h.
29131         * tests/test-copysign.c (main): Also test zeros.
29132
29133 2010-11-04  Eric Blake  <eblake@redhat.com>
29134
29135         ceil, floor, round, trunc: enhance tests of -0
29136         * tests/test-ceilf1.c (main): Ensure correct sign of result.
29137         * tests/test-ceill.c (main): Likewise.
29138         * tests/test-floorf1.c (main): Likewise.
29139         * tests/test-floorl.c (main): Likewise.
29140         * tests/test-round1.c (main): Likewise.
29141         * tests/test-roundf1.c (main): Likewise.
29142         * tests/test-roundl.c (main): Likewise.
29143         * tests/test-trunc1.c (main): Likewise.
29144         * tests/test-truncf1.c (main): Likewise.
29145         * tests/test-truncl.c (main): Likewise.
29146
29147 2010-11-04  Eric Blake  <eblake@redhat.com>
29148
29149         frexp, tests: work around ICC bug with -zero
29150         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
29151         works with more compilers.
29152         * tests/minus-zero.h: New file.
29153         * modules/ceilf-tests (Files): Include it.
29154         * modules/ceill-tests (Files): Likewise.
29155         * modules/floorf-tests (Files): Likewise.
29156         * modules/floorl-tests (Files): Likewise.
29157         * modules/frexp-nolibm-tests (Files): Likewise.
29158         * modules/frexp-tests (Files): Likewise.
29159         * modules/frexpl-nolibm-tests (Files): Likewise.
29160         * modules/frexpl-tests (Files): Likewise.
29161         * modules/isnan-tests (Files): Likewise.
29162         * modules/isnand-nolibm-tests (Files): Likewise.
29163         * modules/isnand-tests (Files): Likewise.
29164         * modules/isnanf-nolibm-tests (Files): Likewise.
29165         * modules/isnanf-tests (Files): Likewise.
29166         * modules/isnanl-nolibm-tests (Files): Likewise.
29167         * modules/isnanl-tests (Files): Likewise.
29168         * modules/round-tests (Files): Likewise.
29169         * modules/roundf-tests (Files): Likewise.
29170         * modules/roundl-tests (Files): Likewise.
29171         * modules/ldexpl-tests (Files): Likewise.
29172         * modules/signbit-tests (Files): Likewise.
29173         * modules/snprintf-posix-tests (Files): Likewise.
29174         * modules/sprintf-posix-tests (Files): Likewise.
29175         * modules/strtod-tests (Files): Likewise.
29176         * modules/trunc-tests (Files): Likewise.
29177         * modules/truncf-tests (Files): Likewise.
29178         * modules/truncl-tests (Files): Likewise.
29179         * modules/vsnprintf-posix-tests (Files): Likewise.
29180         * modules/vsprintf-posix-tests (Files): Likewise.
29181         * modules/vasnprintf-posix-tests (Files): Likewise.
29182         * modules/vasprintf-posix-tests (Files): Likewise.
29183         * tests/test-ceilf1.c (main): Use it.
29184         * tests/test-ceill.c (main): Likewise.
29185         * tests/test-floorf1.c (main): Likewise.
29186         * tests/test-floorl.c (main): Likewise.
29187         * tests/test-frexp.c (main): Likewise.
29188         * tests/test-frexpl.c (main): Likewise.
29189         * tests/test-isnan.c (main): Likewise.
29190         * tests/test-isnand.h (main): Likewise.
29191         * tests/test-isnanf.h (main): Likewise.
29192         * tests/test-isnanl.h (main): Likewise.
29193         * tests/test-ldexpl.c (main): Likewise.
29194         * tests/test-round.c (main): Likewise.
29195         * tests/test-roundf.c (main): Likewise.
29196         * tests/test-roundl.c (main): Likewise.
29197         * tests/test-signbit.c (test_signbitf, test_signbitd)
29198         (test_signbitl): Likewise.
29199         * tests/test-snprintf-posix.h (test_function): Likewise.
29200         * tests/test-sprintf-posix.h (test_function): Likewise.
29201         * tests/test-strtod.c (main): Likewise.
29202         * tests/test-trunc1.c (main): Likewise.
29203         * tests/test-truncf1.c (main): Likewise.
29204         * tests/test-truncl.c (main): Likewise.
29205
29206         isnanl: work around icc bug
29207         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
29208
29209 2010-11-03  Eric Blake  <eblake@redhat.com>
29210
29211         tests: fix compiler warnings
29212         * tests/test-getopt.h (test_getopt): Fix condition.
29213         * tests/test-getopt_long.h (test_getopt_long): Likewise.
29214         * tests/test-pipe2.c (main): Likewise.
29215         * tests/test-quotearg-simple.c (main): Avoid icc warning.
29216
29217         utimens: fix broken m4 test
29218         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
29219
29220 2010-10-28  Bruno Haible  <bruno@clisp.org>
29221
29222         posix_spawn*, getdtablesize: Relax license.
29223         * modules/posix_spawn (License): Change to LGPLv2+.
29224         * modules/posix_spawnp (License): Likewise.
29225         * modules/posix_spawn-internal (License): Likewise.
29226         * modules/posix_spawnattr_init (License): Likewise.
29227         * modules/posix_spawnattr_getflags (License): Likewise.
29228         * modules/posix_spawnattr_setflags (License): Likewise.
29229         * modules/posix_spawnattr_getpgroup (License): Likewise.
29230         * modules/posix_spawnattr_setpgroup (License): Likewise.
29231         * modules/posix_spawnattr_getschedparam (License): Likewise.
29232         * modules/posix_spawnattr_setschedparam (License): Likewise.
29233         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
29234         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
29235         * modules/posix_spawnattr_getsigdefault (License): Likewise.
29236         * modules/posix_spawnattr_setsigdefault (License): Likewise.
29237         * modules/posix_spawnattr_getsigmask (License): Likewise.
29238         * modules/posix_spawnattr_setsigmask (License): Likewise.
29239         * modules/posix_spawnattr_destroy (License): Likewise.
29240         * modules/posix_spawn_file_actions_init (License): Likewise.
29241         * modules/posix_spawn_file_actions_addclose (License): Likewise.
29242         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
29243         * modules/posix_spawn_file_actions_addopen (License): Likewise.
29244         * modules/posix_spawn_file_actions_destroy (License): Likewise.
29245         * modules/getdtablesize (License): Likewise.
29246         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
29247
29248 2010-10-26  Bruno Haible  <bruno@clisp.org>
29249
29250         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
29251         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
29252         Cygwin and mingw.
29253         Suggested by Eric Blake.
29254
29255 2010-10-26  Bruno Haible  <bruno@clisp.org>
29256
29257         stdio: Work around compilation error due to renameat() on Solaris 10.
29258         * lib/stdio.in.h: Include <unistd.h> on Solaris.
29259         * lib/renameat.c: Don't include <unistd.h> here.
29260         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
29261         Reported by Paul Eggert and Eric Blake.
29262
29263 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
29264
29265         renameat: port to Solaris 10, which declares renameat in unistd.h
29266
29267         * lib/renameat.c: Include unistd.h before stdio.h, because
29268         Solaris 10 declares renameat in unistd.h.  Problem encountered
29269         when building GNU tar 1.24 on Solaris 10.
29270
29271 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
29272
29273         fdopendir: fix C89 compilation
29274         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
29275         compilers.
29276
29277 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
29278
29279         inttostr: simplify by removing unnecessary redundancy
29280         * lib/anytostr.c: Don't include verify.h.
29281         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
29282         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
29283         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
29284         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
29285         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
29286         Likewise.
29287         * modules/inttostr (Depends-on): Remove 'verify'.
29288
29289 2010-10-23  Bruno Haible  <bruno@clisp.org>
29290
29291         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
29292         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
29293         Reported by Eric Blake.
29294
29295 2010-10-23  Bruno Haible  <bruno@clisp.org>
29296
29297         Tests: Fix LOCALE_JA on MirBSD 10.
29298         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
29299         to an UTF-8 locale.
29300         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
29301         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
29302         Reported by Eric Blake.
29303
29304 2010-10-21  Bruno Haible  <bruno@clisp.org>
29305
29306         nl_langinfo test: Avoid test failure on NetBSD 5.
29307         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
29308         Reported by Eric Blake.
29309
29310 2010-10-21  Eric Blake  <eblake@redhat.com>
29311
29312         c-stack: work around libsigsegv 2.8 bug
29313         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
29314         overflow on at least PowerPC64.
29315
29316 2010-10-17  Bruno Haible  <bruno@clisp.org>
29317
29318         userspec: Drop redundant file.
29319         * modules/userspec (Files): Remove lib/inttostr.h.
29320
29321 2010-10-17  Bruno Haible  <bruno@clisp.org>
29322
29323         nl_langinfo tests: Silence some warnings.
29324         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
29325         Reported by Jim Meyering.
29326
29327 2010-10-17  Bruno Haible  <bruno@clisp.org>
29328
29329         Make use of GCC's attribute __alloc_size__.
29330         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
29331         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
29332         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
29333         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
29334         __alloc_size__.
29335         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
29336         Suggested by Jim Meyering.
29337
29338 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
29339
29340         bootstrap: anchor .gitignore entries.
29341         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
29342         with...
29343         (insert_vc_ignore): ... this new function, which prepends `/' to
29344         all .gitignore entries before passing them to
29345         insert_sorted_if_absent.
29346
29347 2010-10-16  Bruno Haible  <bruno@clisp.org>
29348
29349         nextafter: Fix configure check.
29350         * modules/nextafter (configure.ac): Correct expected prototype.
29351
29352 2010-10-16  Bruno Haible  <bruno@clisp.org>
29353
29354         termios: Update documentation.
29355         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
29356
29357 2010-10-16  Bruno Haible  <bruno@clisp.org>
29358
29359         tests: Make them compile with TinyCC.
29360         * tests/test-strstr.c (main): Remove parentheses around array
29361         initializer.
29362
29363 2010-10-15  Eric Blake  <eblake@redhat.com>
29364
29365         ignore-value: make header idempotent
29366         * lib/ignore-value.h: Add double-inclusion guards.
29367         Reported by Stefan Berger.
29368
29369 2010-10-15  Jim Meyering  <meyering@redhat.com>
29370
29371         GNUmakefile: handle "stable" target, not "major"
29372         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
29373         lists in maint.mk and announce-gen.  Without this, "make stable"
29374         would fail to ensure that $(VERSION) is up to date.
29375
29376 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
29377
29378         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
29379         & co.
29380
29381 2010-10-14  Bruno Haible  <bruno@clisp.org>
29382
29383         vasnprintf: Don't set errno to 0.
29384         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
29385         block that sets it to 0.
29386         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
29387
29388 2010-10-14  Bruno Haible  <bruno@clisp.org>
29389
29390         socketlib: Fix.
29391         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
29392         gl_PREREQ_SYS_H_WINSOCK2.
29393         Reported by Ian Beckwith <ianb@erislabs.net>.
29394
29395 2010-10-13  Jim Meyering  <meyering@redhat.com>
29396
29397         test-select-stdin.c: avoid warn_unused_result warnings
29398         * tests/test-select-stdin.c: Include "macros.h".
29399         ASSERT that read and fflush succeed.
29400
29401 2010-10-13  Jim Meyering  <meyering@redhat.com>
29402
29403         git-version-gen: do require git-VC'd files in cwd
29404         * build-aux/git-version-gen: Reject a git version string
29405         if there are no commits associated with the current directory.
29406         This avoids an unlikely false-positive (unrelated dir whose parent
29407         repository also contains a tag matching v*), as pointed out
29408         by Giuseppe Scrivano in
29409         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
29410
29411 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
29412
29413         argv-iter: omit nonconforming declaration
29414         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
29415         enum arg_iter_err declaration, which doesn't conform to C99.
29416         Solaris 10 cc warns about this.
29417
29418 2010-10-13  Eric Blake  <eblake@redhat.com>
29419
29420         termios: fix compilation on mingw
29421         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
29422         (gl_TERMIOS_H): Adjust it on mingw.
29423         * modules/termios (Makefile.am): Substitute new key.
29424         * lib/termios.in.h (includes): Make include_next conditional.
29425         * doc/posix-headers/termios.texi (termios.h): Update
29426         documentation.
29427         Reported by Daniel P. Berrange.
29428
29429 2010-10-13  Jim Meyering  <meyering@redhat.com>
29430
29431         git-version-gen: don't require that .git/ be in the current dir
29432         * build-aux/git-version-gen: Adjust this script so that it works
29433         when run from any working directory beneath the top-level .git/-
29434         containing directory.  Inspired by a patch from Giuseppe Scrivano,
29435         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
29436
29437         test-select: avoid warn_unused_result warnings
29438         * tests/test-select.c: Include "macros.h".
29439         ASSERT that each call to read, write, and pipe succeeds.
29440         While not technically required, also check each "close".
29441         * modules/select-tests (Files): Add tests/macros.h.
29442
29443         test-symlinkat: remove declaration of unused local
29444         * tests/test-symlinkat.c (main): Remove unused local, "buf".
29445
29446         test-inttostr: avoid shadowing warnings
29447         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
29448         and use malloc rather than the stack for the same reason as
29449         mentioned in the comment justifying the other allocation.
29450
29451 2010-10-11  Bruno Haible  <bruno@clisp.org>
29452
29453         stdlib: Allow multiple gnulib generated replacements to coexist.
29454         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
29455         Reported by Sam Steingold <sds@gnu.org>.
29456
29457 2010-10-11  Jim Meyering  <meyering@redhat.com>
29458
29459         fix a documentation typo
29460         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
29461
29462 2010-10-11  Eric Blake  <eblake@redhat.com>
29463
29464         futimens: work around Solaris 11 bug
29465         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
29466         * tests/test-futimens.h (test_futimens): Enhance, rather than
29467         weaken test.
29468         * doc/posix-functions/futimens.texi (futimens): Document the bug.
29469
29470 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
29471
29472         Indentation.
29473         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
29474         higher-level operators more to the left.
29475
29476 2010-10-11  Jim Meyering  <meyering@redhat.com>
29477
29478         test-futimens: avoid unwarranted test failure on Solaris 5.11
29479         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
29480         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
29481         because it tries to dereference the NULL name argument.
29482
29483 2010-10-11  Bruno Haible  <bruno@clisp.org>
29484
29485         Indentation.
29486         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
29487         indentation.
29488
29489 2010-10-11  Jim Meyering  <meyering@redhat.com>
29490
29491         spawn.in.h: make indentation consistent with parentheses
29492         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
29493         Make indentation consistent with parentheses.
29494
29495 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
29496
29497         Fix mismatched parens in previous commit
29498         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
29499         parens.
29500
29501 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
29502
29503         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
29504
29505         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
29506         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
29507         * lib/malloca.c: Include "verify.h".
29508         (verify1): Remove, replacing with a verify call.
29509         * lib/relocwrapper.c (verify1): Likewise.
29510         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
29511         Likewise.
29512         * modules/malloca (Depends-on): Add 'verify'.
29513         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
29514         * modules/vasnprintf (Depends-on): Add 'verify'.
29515         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
29516         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29517         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29518         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29519         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29520         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29521         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29522
29523         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
29524
29525         Formerly the style was sometimes 2*X - 1, because the C standard
29526         was wrongly thought to disallow ?: in integral constant expressions.
29527         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
29528         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
29529         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
29530         * lib/stdint.in.h (_verify_intmax_size): Likewise.
29531         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
29532         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
29533         verify that time_t cannot be floating.
29534
29535 2010-10-08  Eric Blake  <eblake@redhat.com>
29536
29537         time: enforce recent POSIX ruling that time_t is integral
29538         * lib/time.in.h (__time_t_must_be_integral): Detect any
29539         problematic systems, allowing the rest of gnulib to assume POSIX.
29540
29541 2010-10-08  Jim Meyering  <meyering@redhat.com>
29542
29543         fdopendir: fix a bug on systems lacking openat and /proc support
29544         OpenBSD 4.7 is one such system.  The most noticeable effect was
29545         failure of any application making nontrivial use of fts: rm, du,
29546         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
29547           ./rm: traversal failed: `a': Bad file descriptor
29548         Debugging that, you see that even though FD 6 was closed just
29549         prior to the opendir call in fd_clone_opendir, its resulting
29550         dir->dd_fd was 8, rather than the expected value of 6:
29551
29552         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
29553         93                close (fd);
29554         (gdb) n
29555         94                dir = fd_clone_opendir (dupfd);
29556         (gdb) n
29557         95                saved_errno = errno;
29558         (gdb) p dir->dd_fd
29559         $11 = 8
29560
29561         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
29562         The problem is that on OpenBSD, fd_clone_opendir has to resort
29563         to using the old-style save/restore CWD mechanism, due to its
29564         lack of openat/proc support, and *that* would steal the FD (6)
29565         that opendir was supposed to use.
29566
29567         The fix is to squirrel away the desired FD so that save_cwd uses a
29568         different one, and then free the dest FD right before calling opendir.
29569         That guarantees opendir will use the required file descriptor.
29570
29571         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
29572
29573 2010-10-08  Bruno Haible  <bruno@clisp.org>
29574
29575         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
29576         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
29577
29578 2010-10-08  Bruno Haible  <bruno@clisp.org>
29579
29580         nanosleep: Make replacement POSIX compliant.
29581         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
29582         is out of range.
29583         Reported by Jim Meyering.
29584
29585 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
29586
29587         bootstrap: add hook for altering gnulib.mk, for Bison
29588         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
29589         the Bison bootstrapping process can rewrite file names and variables
29590         in this file before later parts of 'bootstrap' use the file.
29591         Bison wants to include lib/gnulib.mk from the top-level makefile,
29592         so it needs the file names in this file to be relative to the top
29593         level, not relative to lib; plus it needs variable names to be
29594         rewritten.
29595         (slurp): Use the new function.
29596
29597         bootstrap: reformat for readability
29598         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
29599
29600 2010-10-08  Eric Blake  <eblake@redhat.com>
29601
29602         docs: update cygwin progress
29603         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
29604         1.7.7.
29605         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
29606         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
29607         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
29608         * doc/posix-functions/carg.texi (carg): Likewise.
29609         * doc/posix-functions/cargf.texi (cargf): Likewise.
29610         * doc/posix-functions/casin.texi (casin): Likewise.
29611         * doc/posix-functions/casinf.texi (casinf): Likewise.
29612         * doc/posix-functions/casinh.texi (casinh): Likewise.
29613         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
29614         * doc/posix-functions/catan.texi (catan): Likewise.
29615         * doc/posix-functions/catanf.texi (catanf): Likewise.
29616         * doc/posix-functions/catanh.texi (catanh): Likewise.
29617         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
29618         * doc/posix-functions/ccos.texi (ccos): Likewise.
29619         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
29620         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
29621         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
29622         * doc/posix-functions/cexp.texi (cexp): Likewise.
29623         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
29624         * doc/posix-functions/cimag.texi (cimag): Likewise.
29625         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
29626         * doc/posix-functions/clog.texi (clog): Likewise.
29627         * doc/posix-functions/clogf.texi (clogf): Likewise.
29628         * doc/posix-functions/conj.texi (conj): Likewise.
29629         * doc/posix-functions/conjf.texi (conjf): Likewise.
29630         * doc/posix-functions/cpow.texi (cpow): Likewise.
29631         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
29632         * doc/posix-functions/cproj.texi (cproj): Likewise.
29633         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
29634         * doc/posix-functions/creal.texi (creal): Likewise.
29635         * doc/posix-functions/crealf.texi (crealf): Likewise.
29636         * doc/posix-functions/csin.texi (csin): Likewise.
29637         * doc/posix-functions/csinf.texi (csinf): Likewise.
29638         * doc/posix-functions/csinh.texi (csinh): Likewise.
29639         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
29640         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
29641         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
29642         * doc/posix-functions/ctan.texi (ctan): Likewise.
29643         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
29644         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
29645         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
29646         * doc/posix-headers/complex.texi (complex.h): Likewise.
29647
29648 2010-10-07  Jim Meyering  <meyering@redhat.com>
29649
29650         parse-datetime: avoid compilation failure on OpenBSD 4.7
29651         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
29652         This works around a compilation failure on OpenBSD 4.7:
29653         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
29654
29655 2010-10-07  Eric Blake  <eblake@redhat.com>
29656
29657         docs: update cygwin progress
29658         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
29659         1.7.6.
29660         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
29661         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
29662         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
29663         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
29664         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
29665         Likewise.
29666         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
29667         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
29668         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
29669         Likewise.
29670         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
29671         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
29672         Likewise.
29673         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
29674         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
29675         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
29676         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
29677         Likewise.
29678         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
29679         Likewise.
29680         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
29681
29682         docs: update parse-datetime history
29683         * doc/parse-datetime.texi (Authors of parse_datetime): Better
29684         documentation of this function's history and alternatives.
29685
29686         cygwin: use more robust version check
29687         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
29688         exclude an eventual cygwin 1.9.1.
29689         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
29690         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
29691         (gl_FUNC_STRCASESTR): Likewise.
29692         Reported by Bruno Haible.
29693
29694 2010-10-06  Bruno Haible  <bruno@clisp.org>
29695
29696         string, sys_select: Avoid #including large headers unless necessary.
29697         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
29698         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
29699         OSF/1, BeOS, Haiku.
29700         Reported by Jim Meyering.
29701
29702 2010-10-05  Eric Blake  <eblake@redhat.com>
29703
29704         memmem, strstr, strcasestr: fix bug with long periodic needle
29705         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
29706         periodic needle having false positive.
29707         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
29708         and cygwin 1.7.7.
29709         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
29710         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
29711         (gl_FUNC_STRCASESTR): Likewise.
29712         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
29713         * tests/test-memmem.c (main): Expose the bug.
29714         * tests/test-strcasestr.c (main): Likewise.
29715         * tests/test-strstr.c (main): Likewise.
29716         * tests/test-c-strcasestr.c (main): Likewise.
29717         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
29718         * doc/posix-functions/strstr.texi (strstr): Likewise.
29719         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
29720         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
29721
29722 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
29723
29724         parse-datetime: do some more renaming
29725         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
29726         parse_datetime, not get_date.  Mention the renaming.
29727         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
29728         in comments.
29729         * m4/bison.m4: Likewise.
29730
29731 2010-10-05  Eric Blake  <eblake@redhat.com>
29732
29733         parse-datetime: better name than get_date
29734         * NEWS: Reword the deprecation notice.
29735         * modules/get_date: Rename to modules/parse-datetime.
29736         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
29737         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
29738         * lib/get_date.y: Rename to lib/parse-datetime.y.
29739         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
29740         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
29741         * doc/getdate.texi: Provide fallback wrapper.
29742         * lib/getdate.h: Move guts, and wrap...
29743         * lib/parse-datetime.h: ...new file.
29744         * lib/parse-datetime.y (get_date): Rename...
29745         (parse_datetime): ...to this.
29746         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
29747         (gl_PARSE_DATETIME): ...to this.
29748         * doc/posix-functions/getdate.texi (get_date): Provide fallback
29749         documentation.
29750         * modules/getdate (Files): Provide fallback docs and header.
29751         (Notice, Depends-on): Update references.
29752         * tests/test-parse-datetime.c: Likewise.
29753         * DEPENDENCIES: Likewise.
29754         * MODULES.html.sh (Date and time <time.h>): Likewise.
29755         * doc/parse-datetime.texi (Date input formats)
29756         (Authors of parse_datetime): Likewise.
29757         * modules/parse-datetime (Files, configure.ac, Makefile.am)
29758         (Include): Likewise.
29759         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
29760         * gnulib-tool: Likewise.
29761         * m4/bison.m4 (gl_BISON): Likewise.
29762         Suggested by Bruno Haible.
29763
29764 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
29765
29766         more ports to Solaris tr, which needs [] around ranges
29767         * gnulib-tool: Solaris tr needs [] around ranges.
29768         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
29769         * tests/test-pipe-filter-gi1.c (main): Likewise.
29770         * tests/test-pipe-filter-ii1.c (main): Likewise.
29771
29772 2010-10-05  Eric Blake  <eblake@redhat.com>
29773
29774         bootstrap: fix Solaris regression
29775         * build-aux/bootstrap (check_versions): Solaris tr still needs []
29776         around ranges.
29777         Reported by Pádraig Brady.
29778
29779         bootstrap: work with pkg-config
29780         * build-aux/bootstrap (check_versions): Also transliterate - in
29781         prerequisite name.
29782         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
29783         prerequisites that were already found, to avoid confusion.
29784         Reported by Justin Clift.
29785
29786         faccessat: remove unused wrappers
29787         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
29788         presence of these wrappers dragged in -lgen on Solaris.
29789         Reported by Clemens Brogi; fix suggested by Paul Eggert.
29790
29791 2010-10-05  Jim Meyering  <meyering@redhat.com>
29792
29793         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
29794         * Makefile (sc_pragma_columns): New syntax-check rule.
29795
29796 2010-10-04  Bruno Haible  <bruno@clisp.org>
29797
29798         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
29799         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
29800         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
29801         Reported by Bruce Korb and Eric Blake.
29802
29803 2010-10-04  Bruno Haible  <bruno@clisp.org>
29804
29805         threadlib: Make option --with-libpth-prefix work.
29806         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
29807         use $LIBPTH, not just -lpth.
29808
29809 2010-10-04  Bruno Haible  <bruno@clisp.org>
29810
29811         Avoid line length limitation from HP NonStop system header files.
29812         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
29813         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
29814         * lib/ctype.in.h: Likewise.
29815         * lib/dirent.in.h: Likewise.
29816         * lib/errno.in.h: Likewise.
29817         * lib/fcntl.in.h: Likewise.
29818         * lib/float.in.h: Likewise.
29819         * lib/getopt.in.h: Likewise.
29820         * lib/iconv.in.h: Likewise.
29821         * lib/inttypes.in.h: Likewise.
29822         * lib/langinfo.in.h: Likewise.
29823         * lib/locale.in.h: Likewise.
29824         * lib/math.in.h: Likewise.
29825         * lib/netdb.in.h: Likewise.
29826         * lib/netinet_in.in.h: Likewise.
29827         * lib/poll.in.h: Likewise.
29828         * lib/pthread.in.h: Likewise.
29829         * lib/pty.in.h: Likewise.
29830         * lib/sched.in.h: Likewise.
29831         * lib/se-selinux.in.h: Likewise.
29832         * lib/search.in.h: Likewise.
29833         * lib/signal.in.h: Likewise.
29834         * lib/spawn.in.h: Likewise.
29835         * lib/stdarg.in.h: Likewise.
29836         * lib/stddef.in.h: Likewise.
29837         * lib/stdint.in.h: Likewise.
29838         * lib/stdio.in.h: Likewise.
29839         * lib/stdlib.in.h: Likewise.
29840         * lib/string.in.h: Likewise.
29841         * lib/strings.in.h: Likewise.
29842         * lib/sys_file.in.h: Likewise.
29843         * lib/sys_ioctl.in.h: Likewise.
29844         * lib/sys_select.in.h: Likewise.
29845         * lib/sys_socket.in.h: Likewise.
29846         * lib/sys_stat.in.h: Likewise.
29847         * lib/sys_time.in.h: Likewise.
29848         * lib/sys_times.in.h: Likewise.
29849         * lib/sys_utsname.in.h: Likewise.
29850         * lib/sys_wait.in.h: Likewise.
29851         * lib/sysexits.in.h: Likewise.
29852         * lib/termios.in.h: Likewise.
29853         * lib/time.in.h: Likewise.
29854         * lib/unistd.in.h: Likewise.
29855         * lib/wchar.in.h: Likewise.
29856         * lib/wctype.in.h: Likewise.
29857         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
29858         * modules/ctype (Makefile.am): Likewise.
29859         * modules/dirent (Makefile.am): Likewise.
29860         * modules/errno (Makefile.am): Likewise.
29861         * modules/fcntl-h (Makefile.am): Likewise.
29862         * modules/float (Makefile.am): Likewise.
29863         * modules/getopt-posix (Makefile.am): Likewise.
29864         * modules/iconv-h (Makefile.am): Likewise.
29865         * modules/inttypes (Makefile.am): Likewise.
29866         * modules/langinfo (Makefile.am): Likewise.
29867         * modules/locale (Makefile.am): Likewise.
29868         * modules/math (Makefile.am): Likewise.
29869         * modules/netdb (Makefile.am): Likewise.
29870         * modules/netinet_in (Makefile.am): Likewise.
29871         * modules/poll-h (Makefile.am): Likewise.
29872         * modules/pthread (Makefile.am): Likewise.
29873         * modules/pty (Makefile.am): Likewise.
29874         * modules/sched (Makefile.am): Likewise.
29875         * modules/search (Makefile.am): Likewise.
29876         * modules/selinux-h (Makefile.am): Likewise.
29877         * modules/signal (Makefile.am): Likewise.
29878         * modules/spawn (Makefile.am): Likewise.
29879         * modules/stdarg (Makefile.am): Likewise.
29880         * modules/stddef (Makefile.am): Likewise.
29881         * modules/stdint (Makefile.am): Likewise.
29882         * modules/stdio (Makefile.am): Likewise.
29883         * modules/stdlib (Makefile.am): Likewise.
29884         * modules/string (Makefile.am): Likewise.
29885         * modules/strings (Makefile.am): Likewise.
29886         * modules/sys_file (Makefile.am): Likewise.
29887         * modules/sys_ioctl (Makefile.am): Likewise.
29888         * modules/sys_select (Makefile.am): Likewise.
29889         * modules/sys_socket (Makefile.am): Likewise.
29890         * modules/sys_stat (Makefile.am): Likewise.
29891         * modules/sys_time (Makefile.am): Likewise.
29892         * modules/sys_times (Makefile.am): Likewise.
29893         * modules/sys_utsname (Makefile.am): Likewise.
29894         * modules/sys_wait (Makefile.am): Likewise.
29895         * modules/sysexits (Makefile.am): Likewise.
29896         * modules/termios (Makefile.am): Likewise.
29897         * modules/time (Makefile.am): Likewise.
29898         * modules/unistd (Makefile.am): Likewise.
29899         * modules/wchar (Makefile.am): Likewise.
29900         * modules/wctype (Makefile.am): Likewise.
29901
29902 2010-10-04  Bruno Haible  <bruno@clisp.org>
29903
29904         read-file tests: Avoid a test failure on NonStop Kernel.
29905         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
29906         a regular file.
29907         Reported by Joachim Schmitz <schmitz@hp.com>.
29908
29909 2010-10-03  Bruno Haible  <bruno@clisp.org>
29910
29911         gnulib-tool: Fixes for --create-testdir with --libtool.
29912         * gnulib-tool (func_get_automake_snippet): Don't augment
29913         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
29914         an executable.
29915         (func_create_testdir): Handle module 'alloca' like func_import.
29916         Reported by Bruce Korb <bruce.korb@gmail.com>.
29917
29918 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
29919
29920         Avoid some lines longer than 80 characters.
29921         * lib/stdint.in.h: Break long comment lines.
29922         * lib/math.in.h: Likewise.
29923         (_GL_NUM_UINT_WORDS): New macro, for readability.
29924         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
29925         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
29926         * lib/stdlib.in.h: Likewise.
29927         * lib/spawn.in.h: Likewise.
29928         * lib/sys_socket.in.h: Update an URL.
29929         * lib/sys_stat.in.h: Break long line.
29930
29931 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
29932
29933         Improve pmccabe2html.
29934         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
29935         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
29936         when the sources change. Remove the line in the HTML about "Used
29937         ranges" (which implied that there might be other unused ranges),
29938         rename "Resume" to "Summary" (easier to understand for more users).
29939         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
29940         styles, and some unnecessary blank lines.
29941
29942 2010-10-03  Bruno Haible  <bruno@clisp.org>
29943             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
29944
29945         acl: Add support for ACLs on NonStop Kernel.
29946         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
29947         Check whether the function aclsort() exists.
29948         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
29949         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
29950         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
29951         (acl_nontrivial [HAVE_ACLSORT]: New function.
29952         (file_has_acl): Implement for NonStop Kernel.
29953         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
29954         (qset_acl): Implement for NonStop Kernel.
29955         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
29956         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
29957         (main): Implement for NonStop Kernel.
29958         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
29959         Kernel. Handle this flavor.
29960         * tests/test-set-mode-acl.sh: Likewise.
29961         * tests/test-copy-acl.sh: Likewise.
29962         * tests/test-copy-file.sh: Likewise.
29963
29964 2010-10-03  Bruno Haible  <bruno@clisp.org>
29965
29966         Info about ACLs on NonStop Kernel.
29967         * doc/acl-resources.txt: Add info about NonStop Kernel.
29968         References by Joachim Schmitz <schmitz@hp.com>.
29969
29970 2010-10-02  Bruno Haible  <bruno@clisp.org>
29971
29972         Define missing EDQUOT on NonStop Kernel.
29973         * lib/errno.in.h (EDQUOT): Assign a value if missing.
29974         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
29975         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
29976         missing.
29977         * doc/posix-headers/errno.texi: Mention the NSK bug.
29978         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
29979         Reported by Joachim Schmitz <schmitz@hp.com>.
29980
29981 2010-10-02  Bruno Haible  <bruno@clisp.org>
29982
29983         Update doc for POSIX:2008.
29984         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
29985         Update URL of POSIX specification.
29986
29987 2010-10-02  Bruno Haible  <bruno@clisp.org>
29988
29989         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
29990         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
29991         from gnulib, not from Automake.
29992
29993 2010-10-02  Bruno Haible  <bruno@clisp.org>
29994
29995         New module 'system-posix'.
29996         * modules/system-posix: New file.
29997         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
29998         module is present.
29999         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30000         GNULIB_SYSTEM_POSIX.
30001         * modules/stdlib (Depends-on): Remove sys_wait.
30002         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
30003         * doc/posix-functions/system.texi: Mention the new module.
30004         * doc/posix-headers/stdlib.texi: Likewise.
30005         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
30006         define test_sys_wait_macros to a no-op.
30007         Reported by Sam Steingold <sds@gnu.org>.
30008
30009 2010-09-30  Bruno Haible  <bruno@clisp.org>
30010
30011         More renaming from 'getdate' to 'get_date'.
30012         * doc/get_date.texi: Renamed from doc/getdate.texi.
30013         * modules/get_date (Files): Update.
30014         * MODULES.html.sh (Date and time <time.h>): Update.
30015         * DEPENDENCIES: Update.
30016         * gnulib-tool: Update comment.
30017         * m4/bison.m4 (gl_BISON): Likewise.
30018         * m4/get_date.m4 (gl_GET_DATE): Likewise.
30019
30020 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
30021
30022         bootstrap: support ACLOCAL_FLAGS during aclocal
30023         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
30024         can add additional -I dir for third-party .m4 files.
30025
30026 2010-09-30  Eric Blake  <eblake@redhat.com>
30027
30028         bootstrap: use glibtoolize on MacOS
30029         * build-aux/bootstrap (check_versions): Convert libtool into
30030         libtoolize.
30031         (tool search): Move libtool check earlier, and look for
30032         glibtoolize for MacOS.
30033         (gnulib_tool_options): Auto-add --libtool when appropriate.
30034         Reported by Justin Clift.
30035
30036         poll: fix typo that broke test on MacOS
30037         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
30038         Reported by Justin Clift.
30039
30040         getdate: rename to get_date
30041         Note: getdate.h is not renamed, to minimize client impact.
30042         * modules/getdate: Mark obsolete.  Move old contents...
30043         * modules/get_date: ...to new module name.
30044         * modules/getdate-tests: Move...
30045         * modules/get_date-tests: ...here.
30046         * m4/getdate.m4: Move...
30047         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
30048         * lib/getdate.y: Move...
30049         * lib/get_date.y: ...here.
30050         * tests/test-getdate.c: Move...
30051         * tests/test-get_date.c: ...here.
30052         * doc/posix-functions/getdate.texi (getdate): Update name.
30053         * NEWS: Mention the change.
30054
30055 2010-09-29  Bruno Haible  <bruno@clisp.org>
30056
30057         Separate the module 'waitpid' from the module 'sys_wait'.
30058         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
30059         present.
30060         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
30061         gl_MODULE_INDICATOR_FOR_TESTS.
30062         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
30063         * modules/sys_wait (Depends-on): Remove waitpid.
30064         (Makefile.am): Substitute GNULIB_WAITPID.
30065         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
30066         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
30067         signature only if the 'waitpid' module is present.
30068         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
30069         * NEWS: Mention the change.
30070         * modules/grantpt (Depends-on): Add waitpid.
30071         * modules/wait-process (Depends-on): Likewise.
30072
30073 2010-09-29  Bruno Haible  <bruno@clisp.org>
30074
30075         More tests for module 'sys_wait'.
30076         * modules/sys_wait-c++-tests: New file.
30077         * tests/test-sys_wait-c++.cc: New file.
30078         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
30079         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
30080
30081 2010-09-29  Bruno Haible  <bruno@clisp.org>
30082
30083         New module 'waitpid'.
30084         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
30085         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
30086         Don't include <process.h>.
30087         (waitpid): Declare only, using modern idiom.
30088         * m4/waitpid.m4: New file.
30089         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
30090         * modules/waitpid: New file.
30091         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
30092         (Makefile.am): Update.
30093         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
30094
30095 2010-09-28  Bruno Haible  <bruno@clisp.org>
30096
30097         poll: Assume ANSI C.
30098         * lib/poll.c (poll): Use an ANSI C declaration.
30099
30100 2010-09-28  Bruno Haible  <bruno@clisp.org>
30101
30102         poll-h: Create poll.h on all platforms.
30103         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
30104         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
30105         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
30106         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
30107         (gl_REPLACE_POLL_H): Don't set POLL_H.
30108         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
30109         * modules/poll-h (Depends-on): Add include_next.
30110         (Makefile.am): Create poll.h unconditionally. Substitute also
30111         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
30112
30113 2010-09-28  Bruno Haible  <bruno@clisp.org>
30114
30115         Tests for module 'poll-h'.
30116         * modules/poll-h-c++-tests: New file.
30117         * tests/test-poll-h-c++.cc: New file.
30118
30119         Tests for module 'poll-h'.
30120         * modules/poll-h-tests: New file.
30121         * tests/test-poll-h.c: New file.
30122
30123 2010-09-28  Bruno Haible  <bruno@clisp.org>
30124
30125         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
30126         * modules/poll-h (Depends-on): Add 'extensions'.
30127
30128 2010-09-28  Bruno Haible  <bruno@clisp.org>
30129
30130         New module 'poll-h'.
30131         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
30132         (poll): Use modern idiom.
30133         * modules/poll-h: New file.
30134         * modules/poll (Files): Remove lib/poll.in.h.
30135         (Depends-on): Add poll-h.
30136         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
30137         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
30138         * m4/poll_h.m4: New file.
30139         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
30140         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
30141         and invoke gl_REPLACE_POLL_H.
30142         * lib/poll.c: Use common idiom.
30143         * tests/test-poll.c: Likewise.
30144         * doc/posix-headers/poll.texi: Mention the poll-h module.
30145         Suggested by Eric Blake.
30146
30147 2010-09-26  Bruno Haible  <bruno@clisp.org>
30148
30149         sys_wait: Implement WSTOPSIG.
30150         * lib/sys_wait.in.h (WSTOPSIG): New macro.
30151         Reported by Simon Josefsson.
30152
30153 2010-09-26  Simon Josefsson  <simon@josefsson.org>
30154
30155         stdlib, sys_wait: Avoid compilation error on mingw.
30156         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
30157
30158 2010-09-26  Bruno Haible  <bruno@clisp.org>
30159
30160         stdlib tests: Avoid code duplication.
30161         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
30162         * modules/sys_wait-tests (Files): Likewise.
30163         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
30164         * tests/test-stdlib.c: Include test-sys_wait.h.
30165         (main): Invoke test_sys_wait_macros.
30166         * tests/test-sys_wait.c: Include test-sys_wait.h.
30167         (main): Invoke test_sys_wait_macros.
30168
30169 2010-09-25  Simon Josefsson  <simon@josefsson.org>
30170
30171         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
30172         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
30173         sure Windows sockets are working before calling getaddrinfo.
30174         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
30175         * doc/gnulib.texi (Windows sockets): Fix typo.
30176
30177 2010-09-25  Bruno Haible  <bruno@clisp.org>
30178
30179         Tests for module 'regex-quote'.
30180         * modules/regex-quote-tests: New file.
30181         * tests/test-regex-quote.c: New file.
30182
30183         New module 'regex-quote'.
30184         * lib/regex-quote.h: New file.
30185         * lib/regex-quote.c: New file.
30186         * modules/regex-quote: New file.
30187         Suggested by Reuben Thomas <rrt@sc3d.org>.
30188
30189 2010-09-24  Bruno Haible  <bruno@clisp.org>
30190
30191         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
30192         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
30193
30194 2010-09-23  Bruno Haible  <bruno@clisp.org>
30195
30196         setenv: Relax license.
30197         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
30198         Blake.
30199         Requested by Eric Blake.
30200
30201 2010-09-22  Bruno Haible  <bruno@clisp.org>
30202
30203         termios: Relax license.
30204         * modules/termios (License): Change to LGPLv2+.
30205         Requested by Eric Blake.
30206
30207 2010-09-22  Bruno Haible  <bruno@clisp.org>
30208
30209         threadlib: Allow the package to change the default to 'no'.
30210         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
30211         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
30212         Reported by Paul Eggert.
30213
30214 2010-09-22  Pádraig Brady  <P@draigbrady.com>
30215             Bruno Haible  <bruno@clisp.org>
30216
30217         Fix endless loop in mbmemcasecoll.
30218         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
30219         byte.
30220         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
30221
30222 2010-09-22  Bruno Haible  <bruno@clisp.org>
30223
30224         Tests for module 'memcoll'.
30225         * modules/memcoll-tests: New file.
30226         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
30227
30228         memcoll, xmemcoll: Clarify size vs. length.
30229         * modules/memcoll.c (memcoll0): Clarify specification.
30230         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
30231         passed to collate_error.
30232
30233 2010-09-22  Bruno Haible  <bruno@clisp.org>
30234
30235         Tests for module 'memcasecmp'.
30236         * modules/memcasecmp-tests: New file.
30237         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
30238
30239 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
30240
30241         * lib/pthread.in.h: Add split double-inclusion guard, and include
30242         system <pthread.h> if there is one.  Use @@-style as in other
30243         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
30244         pthread.h doesn't.
30245         (pthread_mutexattr_destroy, pthread_mutexattr_init):
30246         (pthread_mutexattr_settype, pthread_mutex_trylock):
30247         New static inline functions, if there's no system <pthread.h>.
30248         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
30249         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
30250         Approximate with mutexes if the system lacks spinlocks, as in
30251         MacOS.
30252         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
30253         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
30254         @@-style.  Check for spinlocks separately.
30255         (gl_PTHREAD_DEFAULTS): New macro.
30256         * modules/pthread: Redo to use a more typical style for in.h files.
30257
30258 2010-09-21  Eric Blake  <eblake@redhat.com>
30259
30260         net_if: enhance tests
30261         * tests/test-net_if.c (main): Move signature checks earlier.
30262         Print failures to stderr.
30263         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
30264         Document the bug that we do not yet fix.
30265
30266 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
30267
30268         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
30269         about gnulib, not GSS.
30270
30271 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
30272
30273         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
30274         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
30275         for Emacs.
30276         * build-aux/pmccabe2html: Make Makefile.am example code more
30277         cut-and-paste friendly.
30278
30279 2010-09-21  Simon Josefsson  <simon@josefsson.org>
30280
30281         * tests/test-net_if.c: New file.
30282         * modules/net_if-tests: New file.
30283
30284 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
30285
30286         pthread: add pthread_spin_destroy
30287         * lib/pthread.in.h (pthread_spin_destroy): New function.
30288
30289 2010-09-19  Bruno Haible  <bruno@clisp.org>
30290
30291         gnulib-tool: Fix --help output.
30292         * gnulib-tool (func_usage): Fix help message.
30293         Reported by Reuben Thomas <rrt@sc3d.org>.
30294
30295 2010-09-18  Jim Meyering  <meyering@redhat.com>
30296
30297         maint.mk: avoid unexpanded \n in two diagnostics
30298         * top/maint.mk (sc_prohibit_always_true_header_tests):
30299         Don't use a literal \n in a halt=... assignment.  It would not be
30300         expanded, and the two \n bytes would appear in the diagnostic output
30301         rather than the desired newline.  Use halt=$$(printf ... instead.
30302         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
30303
30304 2010-09-18  Bruno Haible  <bruno@clisp.org>
30305
30306         netinet_in: Doc tweak.
30307         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
30308         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30309
30310 2010-09-18  Jim Meyering  <meyering@redhat.com>
30311
30312         init.sh: correct an outdated comment
30313         * tests/init.sh (create_exe_shims_):  s/function/alias/
30314
30315         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
30316         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
30317         a file named "*.exe" is removed between the glob expansion and the
30318         processing of that oddly named file.
30319
30320 2010-09-17  Eric Blake  <eblake@redhat.com>
30321
30322         mirbsd: add some more support
30323         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
30324         in BSD family.
30325         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
30326         devices as OpenBSD.
30327         * m4/host-os.m4 (mirbsd): Add MirBSD.
30328
30329         tests: fix unportable assumption on sys/wait.h
30330         * tests/test-sys_wait.c (main): Relax test.
30331         * tests/test-stdlib.c (main): Likewise.
30332
30333         init.sh: accommodate directory with no .exes
30334         * tests/init.sh: Accomodate directory containing only scripts.
30335
30336         tests: avoid compiler warning
30337         * tests/test-stdlib.c (main): Use the variable.
30338
30339         fdutimens, fdutimensat: update signature, again
30340         * lib/utimens.h (gl_futimens): Delete, and move signature...
30341         (fdutimens): ...here.
30342         (fdutimensat): Rearrange signature.
30343         (lutimensat): Rename variable for clarity.
30344         * lib/fdutimensat.c (fdutimensat): Update signature.
30345         * lib/utimens.c (fdutimens): Likewise.
30346         (gl_futimens): Delete.
30347         (utimens, lutimens): Update callers.
30348         * lib/futimens.c (futimens): Likewise.
30349         * tests/test-fdutimensat.c: Likewise.
30350         * tests/test-utimens.c: Likewise.
30351         * tests/test-futimens.h: Update comment.
30352         * NEWS: Mention this.
30353         Suggested by Paul Eggert.
30354
30355 2010-09-17  Bruno Haible  <bruno@clisp.org>
30356
30357         Take over the maintenance of some older macros from Autoconf.
30358         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
30359         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
30360         GNU Autoconf.
30361         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
30362         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
30363
30364 2010-09-17  Eric Blake  <eblake@redhat.com>
30365
30366         fdutimensat: drop atflag validation
30367         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
30368         with valid fd, to close a race scenario where futimens is
30369         unsupported and FILE was replaced by a symlink.
30370         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
30371         accordingly.
30372         Suggested by Paul Eggert.
30373
30374 2010-09-16  Bruno Haible  <bruno@clisp.org>
30375
30376         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
30377         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
30378
30379 2010-09-16  Bruno Haible  <bruno@clisp.org>
30380
30381         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
30382         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
30383         login_tty exists.
30384         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30385
30386 2010-09-16  Bruno Haible  <bruno@clisp.org>
30387
30388         login_tty: Make the replacement code work on BSD systems.
30389         * lib/login_tty.c: Include <sys/ioctl.h>.
30390         (login_tty): Use ioctl TIOCSCTTY when available.
30391         * modules/login_tty (Depends-on): Add sys_ioctl.
30392         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30393
30394 2010-09-16  Bruno Haible  <bruno@clisp.org>
30395
30396         login_tty: Stricter unit test.
30397         * modules/login_tty-tests (Depends-on): Add tcgetsid.
30398         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
30399         and tcgetsid() after login_tty.
30400         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30401
30402 2010-09-16  Bruno Haible  <bruno@clisp.org>
30403
30404         New module 'tcgetsid'.
30405         * lib/tcgetsid.c: New file.
30406         * m4/tcgetsid.m4: New file.
30407         * modules/tcgetsid: New file.
30408         * modules/termios (Depends-on): Add c++defs, warn-on-use.
30409         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
30410         GNULIB_TCGETSID, HAVE_TCGETSID.
30411         * lib/termios.in.h: Include <sys/types.h>.
30412         (tcgetsid): New declaration.
30413         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
30414         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
30415         * doc/posix-functions/tcgetsid.texi: Mention the new module.
30416         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
30417
30418 2010-09-16  Bruno Haible  <bruno@clisp.org>
30419
30420         Tests for module 'termios'.
30421         * modules/termios-c++-tests: New file.
30422         * modules/termios-tests: New file.
30423         * tests/test-termios-c++.cc: New file.
30424         * tests/test-termios.c: New file.
30425
30426         New module 'termios'.
30427         * modules/termios: New file.
30428         * lib/termios.in.h: New file.
30429         * m4/termios_h.m4: New file.
30430         * doc/posix-headers/termios.texi: Mention the new module.
30431
30432 2010-09-16  Eric Blake  <eblake@redhat.com>
30433
30434         fdutimensat: add an atflag parameter
30435         * lib/fdutimensat.c (fdutimensat): Add new parameter.
30436         * lib/utimens.h (fdutimensat): Update prototype.
30437         * tests/test-fdutimensat.c: Adjust test to match.
30438         * NEWS: Document the change.
30439         Suggested by Paul Eggert.
30440
30441 2010-09-16  Bruno Haible  <bruno@clisp.org>
30442
30443         Fix typos in comments.
30444         * lib/striconveh.h: Fix typo in comment.
30445         * lib/login_tty.c (login_tty): Likewise.
30446
30447 2010-09-15  Bruno Haible  <bruno@clisp.org>
30448
30449         stdlib: clarify MirBSD WEXITSTATUS bug
30450         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
30451         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
30452
30453 2010-09-15  Eric Blake  <eblake@redhat.com>
30454
30455         stdlib: work around MirBSD WEXITSTATUS bug
30456         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
30457         * modules/stdlib (Depends-on): Add sys_wait.
30458         * tests/test-sys_wait.c (main): Enhance test.
30459         * tests/test-stdlib.c (main): Likewise.
30460         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
30461
30462         docs: mention MacOS issue with WEXITSTATUS(constant)
30463         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
30464         issue.
30465         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
30466
30467         strnlen: add tests
30468         * modules/strnlen-tests: New file.
30469         * tests/test-strnlen.c: Likewise.
30470
30471 2010-09-14  Bruno Haible  <bruno@clisp.org>
30472
30473         unistr/base: Avoid link errors when module 'libunistring' is also used.
30474         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
30475         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
30476         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
30477         Declare also when HAVE_LIBUNISTRING is set.
30478         Reported by Pádraig Brady <P@draigbrady.com>.
30479
30480 2010-09-14  Eric Blake  <eblake@redhat.com>
30481
30482         test-rawmemchr: make more robust
30483         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
30484         (Depends-on, configure.ac): Add needed prerequisites to use it.
30485         * modules/memchr-tests (Files, Depends-on, configure.ac):
30486         Likewise, to avoid implicit reliance on memchr module prereqs.
30487         * tests/test-memchr.c (main): Ensure proper masking.
30488         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
30489         reads.
30490
30491         memchr: detect glibc Alpha bug
30492         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
30493         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
30494         Alpha.
30495         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
30496         * tests/test-memchr.c (main): Enhance test.
30497         Reported by Nelson H. F. Beebe.
30498
30499 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
30500
30501         fts, getcwd, glob: audit for dirfd returning -1
30502         * lib/fts.c (opendir): Remove #define; no longer used.
30503         (opendirat): New arg PDIR_FD.  All callers changed.
30504         (fts_build, _opendir2): Use new opendirat to avoid the need for
30505         dirfd, or for checking whether dirfd returns a negative value.
30506         Don't use opendir; always use openat followed by fdopendir.
30507         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
30508         it.
30509         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
30510         returns -1 here.
30511         * modules/fts (Depends-on): Remove dirfd.
30512         * modules/getcwd (Depends-on): Likewise.
30513
30514 2010-09-13  Eric Blake  <eblake@redhat.com>
30515
30516         float: fix broken MirBSD header
30517         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
30518         * doc/posix-headers/float.texi (float.h): Document it.
30519
30520 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
30521
30522         fts: use O_NOFOLLOW to avoid race condition when opening a directory
30523         * lib/fts.c (opendirat): New arg extra_flags.
30524         (__opendir2): Use it to avoid following symlinks when opening
30525         a directory, if symlinks are not supposed to be followed.  See
30526         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
30527
30528         fdopendir: preserve argument fd before returning
30529         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
30530         (fdopendir_with_dup, fd_clone_opendir): New static functions.
30531         (fdopendir): Use them, arranging for FD to be open to the same
30532         directory that it was when it started.  (It might be temporarily
30533         closed while fdopendir is running, so this not thread- or
30534         signal-safe.)  Be careful to do the right thing even when file
30535         descriptors are scarce and dup fails with errno == EMFILE.  See
30536         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
30537
30538 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
30539
30540         regex: Pass the system regex if its only problem is 32-bit regoff_t.
30541         * NEWS: Document change.
30542         * m4/regex.m4: Disable test for regoff_t size.
30543
30544 2010-09-13  Jim Meyering  <meyering@redhat.com>
30545
30546         fts: don't operate on an invalid file descriptor after failed dup
30547         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
30548         negative file descriptor.
30549
30550 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
30551
30552         savedir: add streamsavedir, deprecate fdsavedir
30553         * NEWS: Mention deprecation of fdsavedir.
30554         * lib/savedir.c (streamsavedir): New extern function, whose name
30555         ends in "savedir" to be consistent with the others.  This differs
30556         from savedirstream in that it doesn't close its argument.  The
30557         next version of GNU tar will use this instead of fdsavedir, to
30558         avoid some race conditions and conserve file descriptors.
30559         (savedirstream): Reimplement as a wrapper around streamsavedir.
30560         (fdsavedir): Add a comment deprecating this function.  As far as
30561         I know, only GNU tar used it, and GNU tar doesn't need it any more.
30562         * lib/savedir.h (streamsavedir): New decl.
30563         (fdsavedir): Add a comment deprecating this.
30564
30565 2010-09-10  Bruno Haible  <bruno@clisp.org>
30566
30567         langinfo: Fix last commit.
30568         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
30569         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
30570         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30571
30572 2010-09-10  Bruno Haible  <bruno@clisp.org>
30573
30574         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
30575         * lib/progreloc.c (O_EXEC): Define fallback.
30576
30577 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
30578
30579         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
30580         * NEWS: Document recent changes to fcntl-h.
30581         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
30582         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
30583         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
30584         Similarly for O_SEARCH; this last was already true, but not documented.
30585         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
30586         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
30587         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
30588         Likewise.
30589         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
30590         is zero, not whether it is defined.
30591         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
30592         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
30593         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
30594
30595 2010-09-10  Bruno Haible  <bruno@clisp.org>
30596
30597         langinfo, nl_langinfo: Fix for IRIX 5.3.
30598         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
30599         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
30600         HAVE_LANGINFO_YESEXPR.
30601         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
30602         HAVE_LANGINFO_YESEXPR.
30603         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
30604         HAVE_LANGINFO_T_FMT_AMPM is 0.
30605         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
30606         HAVE_LANGINFO_YESEXPR is 0.
30607         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
30608         NOEXPR.
30609         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
30610         * doc/posix-functions/nl_langinfo.texi: Likewise.
30611         Reported by Eric Blake.
30612
30613 2010-09-10  Bruno Haible  <bruno@clisp.org>
30614
30615         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
30616         * doc/glibc-functions/login_tty.texi: Mention the include file problem
30617         on FreeBSD 8.0 and OpenBSD 4.6.
30618         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
30619         * m4/pty_h.m4 (gl_PTY_H): Likewise.
30620         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
30621         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
30622         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
30623         ac_includes_default.
30624         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30625
30626 2010-09-09  Eric Blake  <eblake@redhat.com>
30627
30628         strsignal: work around NetBSD bug
30629         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
30630         * lib/string.in.h (includes): Likewise.
30631         * doc/posix-functions/strsignal.texi (strsignal): Document the
30632         bug.
30633         Reported by Nelson H. F. Beebe.
30634
30635         gnulib-tool: work with NetBSD /bin/sh
30636         * gnulib-tool (func_cache_var, func_cache_lookup_module)
30637         (func_get_description, func_get_comment, func_get_status)
30638         (func_get_notice, func_get_applicability, func_get_filelist)
30639         (func_get_dependencies, func_get_autoconf_early_snippet)
30640         (func_get_autoconf_snippet, func_get_automake_snippet)
30641         (func_get_include_directive, func_get_link_directive)
30642         (func_get_license, func_get_maintainer, func_import): Avoid
30643         shell syntax errors from parsing syntax extensions.
30644
30645 2010-09-09  Bruno Haible  <bruno@clisp.org>
30646
30647         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
30648         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
30649         a reliable way to determine whether the 'alias' command works.
30650
30651 2010-09-08  Jim Meyering  <meyering@redhat.com>
30652
30653         init.sh: penalize a set-x-impaired shell; don't disqualify it
30654         * tests/init.sh: Too many shells corrupt application stderr when
30655         you set -x, so we can't afford to disqualify them, since at least
30656         on Irix-6.5, that would disqualify all bourne shells.
30657         Instead, use a two-pass approach.
30658         On the first pass, try to find a shell that meets the stricter
30659         condition that set -x does not corrupt stderr.
30660         If no shell meets the stricter condition, retest each candidate
30661         shell, but without that extra condition.  Finally, when
30662         VERBOSE=yes is requested and set -x might cause trouble, simply
30663         issue a warning and refrain from enabling debug output.
30664
30665 2010-09-08  Eric Blake  <eblake@redhat.com>
30666
30667         unsetenv: fix OpenBSD bug
30668         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
30669         * doc/posix-functions/unsetenv.texi (unsetenv): Update
30670         documentation.
30671         Reported by Jim Meyering.
30672
30673         strtod: work around IRIX 6.5 bug
30674         * lib/strtod.c (strtod): Reparse number on shorter string if
30675         exponent parse was invalid.
30676         * tests/test-strtod.c (main): Add check for "0x1p 2".
30677         Reported by Tom G. Christensen.
30678
30679         getopt: optimize previous patch
30680         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
30681         empty variable.  Speed up awk script.
30682         Reported by Paolo Bonzini.
30683
30684 2010-09-08  Jim Meyering  <meyering@redhat.com>
30685
30686         test.sh: disqualify shells for which set -x corrupts stderr
30687         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
30688         and OpenBSD 4.7.  They make it so with "set -x", environment settings
30689         appear in stderr output.  For example, this command:
30690             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
30691         prints "P=1" on those two systems:
30692
30693 2010-09-08  Bruno Haible  <bruno@clisp.org>
30694
30695         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
30696         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
30697         commands, because some shells ignore redirections when there is an
30698         error in the command lookup.
30699         Reported by Eric Blake.
30700
30701 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
30702
30703         * lib/regex.h: Fix a mention of `regex_compile' (should be
30704         `re_compile_pattern').
30705         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
30706         (re_set_registers): Correct name of parameter in comment.
30707
30708         * doc/regex.texi: Add documentation for missing syntax flags.
30709         Remove commented-out documentation of defunct syntax option
30710         RE_NO_EMPTY_ALTS.
30711         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
30712         Add documentation of re_set_registers.
30713         Document trick to re-use a pattern buffer by setting fastmap manually.
30714         Update documentation of struct re_pattern_buffer per public members.
30715         Uncomment documentation of equivalence class operators and
30716         collating symbol operators, since they are now implemented,
30717         Explain leftmost-longest matching in relation to alternatives.
30718         Tidy documentation of substring matching.
30719         Remove POSIX documentation, which is done better in
30720         glibc, and refer the reader there. Keep BSD API documentation, as
30721         that is not readily available elsewhere.
30722
30723 2010-09-07  Eric Blake  <eblake@redhat.com>
30724
30725         getopt: handle POSIXLY_CORRECT set but not exported
30726         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
30727         export state of POSIXLY_CORRECT, due to bash set -o posix.
30728         Reported by Dustin J. Mitchell.
30729
30730 2010-09-05  Bruno Haible  <bruno@clisp.org>
30731
30732         gnulib-tool: Highlight the changed options.
30733         * gnulib-tool (func_usage): Display the --import, --add-import,
30734         --remove-import explanations in bold font.
30735
30736 2010-09-06  Karl Berry  <karl@gnu.org>
30737
30738         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
30739
30740 2010-09-05  Bruno Haible  <bruno@clisp.org>
30741
30742         uniwidth/width: Update comment.
30743         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
30744         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
30745
30746 2010-09-05  Bruno Haible  <bruno@clisp.org>
30747
30748         isinf, isnan: Relax license.
30749         * modules/isinf (License): Change from GPL to LGPL, with consent from
30750         Ben Pfaff.
30751         * modules/isnan (License): Likewise.
30752         Requested by Ludovic Courtès.
30753
30754 2010-09-04  Bruno Haible  <bruno@clisp.org>
30755
30756         gnulib-tool: Help migration from --import to --add-import or --update.
30757         * gnulib-tool: Emit a verbose error message when --import is used
30758         without any module name.
30759
30760 2010-09-04  Bruno Haible  <bruno@clisp.org>
30761
30762         Update doc about gnulib-tool.
30763         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
30764         'gnulib-tool --update' in more detail.
30765         Reported by Eric Blake.
30766
30767 2010-09-04  Bruno Haible  <bruno@clisp.org>
30768
30769         gnulib-tool: Change --import. New options --add/remove-import.
30770         * gnulib-tool: New options --add-import, --remove-import.
30771         (func_usage): Document them.
30772         (have_associative): Define always.
30773         (func_import): In import mode, don't merge the specified settings with
30774         the cached settings. Implement remove-import mode.
30775         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
30776         Explain when to use them versus --import.
30777         (Simple update): Use --add-import instead of --import.
30778         * NEWS: Mention the change.
30779
30780 2010-09-04  Bruno Haible  <bruno@clisp.org>
30781
30782         * doc/gnulib-tool.texi (Initial import): Update paragraph about
30783         separate gnulib.mk.
30784
30785 2010-09-04  Bruno Haible  <bruno@clisp.org>
30786
30787         gnulib-tool: Don't talk about CVS any more.
30788         * gnulib-tool (func_usage, func_import): Write "version control"
30789         instead of CVS.
30790
30791 2010-09-04  Jim Meyering  <meyering@redhat.com>
30792
30793         maint.mk: avoid obscure sc_copyright_check failure in coreutils
30794         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
30795         false positives (whose names may be ill-chosen) when searching
30796         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
30797         would cause a false-positive.
30798
30799         avoid coreutils "make distcheck" failure
30800         Coreutils tests with an absolute build directory name that contains
30801         a space.  Not quoting this directory name caused a failure.
30802         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
30803         * tests/test-vc-list-files-cvs.sh: Likewise.
30804
30805 2010-09-04  Bruno Haible  <bruno@clisp.org>
30806
30807         gnulib-tool: Avoid error when run in a package without Makefile.am.
30808         * gnulib-tool: When collecting the m4dirs in a package that does not
30809         have a Makefile.am, eliminate those directories that contain no
30810         gnulib-cache.m4. Fix expression that counts these directories.
30811
30812 2010-09-04  Bruno Haible  <bruno@clisp.org>
30813
30814         update-copyright test: Improve output when perl is missing or too old.
30815         * tests/test-update-copyright.sh: Move test of Perl version down after
30816         the test whether Perl exists. Provide an explanation relating Perl's
30817         error message to Automake's SKIP: message.
30818
30819 2010-09-04  Bruno Haible  <bruno@clisp.org>
30820
30821         Don't augment PATH in TESTS_ENVIRONMENT.
30822         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
30823         set abs_aux_dir instead of augmenting PATH.
30824         * modules/vc-list-files-tests (Makefile.am): Likewise.
30825         * tests/test-update-copyright.sh: Augment PATH here.
30826         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
30827         path_prepend_.
30828         * tests/test-vc-list-files-git.sh: Likewise.
30829
30830 2010-09-04  Jim Meyering  <meyering@redhat.com>
30831
30832         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
30833         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
30834
30835 2010-09-04  Bruno Haible  <bruno@clisp.org>
30836
30837         strdup: Fix compilation error in C++ mode.
30838         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
30839         the macro.
30840
30841 2010-09-04  Bruno Haible  <bruno@clisp.org>
30842
30843         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
30844         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
30845         macro into a function.
30846         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30847
30848 2010-09-04  Bruno Haible  <bruno@clisp.org>
30849
30850         Set PATH_SEPARATOR the same way autoconf does.
30851         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
30852         the value of PATH_SEPARATOR the same way autoconf-generated configure
30853         scripts do.
30854         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
30855         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
30856
30857 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
30858
30859         Set PATH_SEPARATOR the same way autoconf does.
30860         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
30861         the same way autoconf-generated configure scripts do.
30862         * posix-modules: Likewise.
30863
30864 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
30865
30866         hash: fix safe_hasher const typo
30867         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
30868         const; otherwise, there is a type error later.
30869
30870 2010-09-02  Jim Meyering  <meyering@redhat.com>
30871
30872         test-update-copyright.sh: require perl 5.8.0
30873         * tests/test-update-copyright.sh: Require 5.8.0,
30874         which Tom G. Christensen has confirmed is adequate,
30875         while 5.6.1 is not.
30876
30877 2010-09-02  Eric Blake  <eblake@redhat.com>
30878
30879         tests: init.sh improvements for re-exec'ing with zsh
30880         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
30881         -vx through shell re-exec.
30882         Reported by Tom G. Christensen.
30883
30884         wctype: fix typo in previous commit
30885         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
30886         Reported by Ludovic Courtès.
30887
30888 2010-09-02  Jim Meyering  <meyering@redhat.com>
30889
30890         test-update-copyright.sh: skip test if Perl is too old
30891         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
30892         Reported by Tom G. Christensen.
30893
30894 2010-09-02  Bruno Haible  <bruno@clisp.org>
30895
30896         wctype: Avoid compilation error on IRIX 6.5.30.
30897         * lib/wctype.in.h (iswblank): Declare with a replacement if
30898         REPLACE_ISWBLANK is set.
30899         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
30900         declared. Set REPLACE_ISWBLANK.
30901         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
30902         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
30903         * doc/posix-headers/wctype.texi: Likewise.
30904         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30905
30906 2010-09-01  Bruno Haible  <bruno@clisp.org>
30907
30908         New module 'socketlib'.
30909         * modules/socketlib: New file.
30910         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
30911         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
30912         * modules/sockets (Depends-on): Add socketlib.
30913         Suggested by Sam Steingold <sds@gnu.org>.
30914
30915 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
30916
30917         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
30918
30919         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
30920         when one needs search access to a directory but not read access.
30921         On systems where it is available, it works in some cases where
30922         O_RDONLY does not, namely on directories that are searchable but
30923         not readable, and which need only to be searchable.  If O_SEARCH
30924         is not available, fall back to the traditional method of using
30925         O_RDONLY.
30926
30927         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
30928         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
30929         when opening a directory that needs only to be searchable.
30930         * lib/chdir-safer.c (chdir_no_follow): Likewise.
30931         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
30932         * lib/openat-proc.c (openat_proc_name): Likewise.
30933         * lib/openat.c (openat_needs_fchdir): Likewise.
30934         * lib/save-cwd.c (save_cwd): Likewise.
30935         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
30936
30937 2010-08-28  Bruno Haible  <bruno@clisp.org>
30938
30939         New module 'host-cpu-c-abi'.
30940         * modules/host-cpu-c-abi: New file.
30941         * m4/host-cpu-c-abi.m4: New file, based on part of
30942         clisp/src/m4/general.m4.
30943         Requested by Sam Steingold <sds@gnu.org>.
30944
30945 2010-08-31  Eric Blake  <eblake@redhat.com>
30946         and Jim Meyering  <meyering@redhat.com>
30947
30948         hash: factor, and guard against misbehaving hasher function
30949         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
30950         of table->hasher's return value.  Also protect against a hash value
30951         so large that adding it to table->bucket results in a NULL pointer.
30952         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
30953         Use it in place of open-coded check-and-abort.
30954
30955 2010-08-30  Bruno Haible  <bruno@clisp.org>
30956
30957         hash: silence spurious clang warning
30958         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
30959         Reported by Eric Blake.
30960
30961 2010-08-30  Eric Blake  <eblake@redhat.com>
30962
30963         strstr, memmem, strcasestr: avoid leaked shell message
30964         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
30965         FreeBSD.
30966         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30967         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30968
30969         tests: silence clang warning
30970         * tests/test-malloca.c (do_allocation): Avoid dead store.
30971
30972 2010-08-29  Bruno Haible  <bruno@clisp.org>
30973
30974         gettext: Fix recent mistake.
30975         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
30976
30977 2010-08-29  Bruno Haible  <bruno@clisp.org>
30978
30979         selinux-h: Offer a --without-selinux option.
30980         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
30981         --without-selinux was specified, skip all tests and define
30982         HAVE_SELINUX_SELINUX_H to 0.
30983         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
30984         set LIB_SELINUX to empty.
30985         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
30986         gl_LIBSELINUX. If --without-selinux was specified, replace
30987         selinux/context.h.
30988         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
30989
30990 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30991             Bruno Haible  <bruno@clisp.org>
30992
30993         Make the module 'realloc-gnu' work again on AIX and OSF/1.
30994         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
30995         of HAVE_REALLOC.
30996         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
30997         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
30998         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
30999         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
31000
31001 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31002             Bruno Haible  <bruno@clisp.org>
31003
31004         Make the module 'calloc-gnu' work again on AIX and OSF/1.
31005         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
31006         HAVE_CALLOC.
31007         * lib/xmalloc.c: Update accordingly.
31008         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
31009         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
31010         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
31011
31012 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31013             Bruno Haible  <bruno@clisp.org>
31014
31015         Make the module 'malloc-gnu' work again on AIX and OSF/1.
31016         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
31017         HAVE_MALLOC.
31018         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
31019         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
31020         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
31021
31022 2010-08-29  Bruno Haible  <bruno@clisp.org>
31023
31024         Update modules list.
31025         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
31026         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
31027         (String handling <string.h>): Add astrxfrm.
31028         (File system functions): Add readlinkat.
31029
31030 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31031
31032         Tests for module 'realloc-gnu'.
31033         * modules/realloc-gnu-tests: New file.
31034         * tests/test-realloc-gnu.c: New file.
31035
31036         Tests for module 'calloc-gnu'.
31037         * modules/calloc-gnu-tests: New file.
31038         * tests/test-calloc-gnu.c: New file.
31039
31040         Tests for module 'malloc-gnu'.
31041         * modules/malloc-gnu-tests: New file.
31042         * tests/test-malloc-gnu.c: New file.
31043
31044 2010-08-28  Bruno Haible  <bruno@clisp.org>
31045
31046         Rename module 'realloc' -> 'realloc-gnu'.
31047         * modules/realloc-gnu: New file, copied from modules/realloc.
31048         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
31049         obsolete.
31050         * modules/mgetgroups (Depends-on): Update.
31051         * doc/posix-functions/realloc.texi: Update.
31052         * NEWS: Mention the change.
31053
31054         Rename module 'calloc' -> 'calloc-gnu'.
31055         * modules/calloc-gnu: New file, copied from modules/calloc.
31056         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
31057         obsolete.
31058         * doc/posix-functions/calloc.texi: Update.
31059         * NEWS: Mention the change.
31060
31061         Rename module 'malloc' -> 'malloc-gnu'.
31062         * modules/malloc-gnu: New file, copied from modules/malloc.
31063         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
31064         obsolete.
31065         * modules/argp (Depends-on): Update.
31066         * modules/regex (Depends-on): Update.
31067         * doc/posix-functions/malloc.texi: Update.
31068         * NEWS: Mention the change.
31069
31070 2010-08-28  Eric Blake  <eblake@redhat.com>
31071
31072         pread, pwrite: add missing dependency
31073         * modules/pread (Depends-on): Add extensions.
31074         * modules/pwrite (Depends-on): Likewise.
31075
31076 2010-08-28  Bruno Haible  <bruno@clisp.org>
31077
31078         unistr/u*-strchr: Fix tests dependencies.
31079         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
31080         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
31081         Reported by Ian Beckwith <ianb@erislabs.net>.
31082
31083 2010-08-28  Bruno Haible  <bruno@clisp.org>
31084
31085         read-file: Don't occupy too much unused memory.
31086         * lib/read-file.c (fread_file): Shrink the buffer at the end.
31087
31088 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
31089             Eric Blake  <eblake@redhat.com>
31090             Bruno Haible  <bruno@clisp.org>
31091
31092         read-file: Avoid memory reallocations with regular files.
31093         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
31094         (fread_file): With regular files, use the remaining length as the
31095         initial buffer size.  Check against overflow.
31096         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
31097         sys_stat.
31098
31099 2010-08-28  Bruno Haible  <bruno@clisp.org>
31100
31101         ftello: Relax license.
31102         * modules/ftello (License): Relax to LGPLv2+.
31103         Reported by Eric Blake.
31104
31105 2010-08-28  Bruno Haible  <bruno@clisp.org>
31106
31107         Avoid relocwrapper link errors due to gnulib replacement functions.
31108         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
31109         function.
31110         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31111
31112 2010-08-28  Bruno Haible  <bruno@clisp.org>
31113
31114         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
31115         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
31116         defined.
31117         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
31118         Suggested by Eric Blake.
31119
31120 2010-08-28  Bruno Haible  <bruno@clisp.org>
31121
31122         sys_socket, netdb: Ensure socklen_t gets defined.
31123         * modules/sys_socket (Depends-on): Add socklen.
31124         * modules/netdb (Depends-on): Likewise.
31125         * modules/getaddrinfo (Depends-on): Remove socklen.
31126         * modules/getsockopt (Depends-on): Likewise.
31127         * modules/setsockopt (Depends-on): Likewise.
31128         * tests/test-sys_socket.c: Check that socklen_t is defined.
31129         * tests/test-netdb.c: Likewise.
31130         * m4/socklen.m4: Update comments.
31131         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31132
31133 2010-08-27  Eric Blake  <eblake@redhat.com>
31134
31135         login_tty: add missing dependency
31136         * modules/login_tty (Depends-on): Add pty.
31137
31138 2010-08-26  Eric Blake  <eblake@redhat.com>
31139
31140         lib-symbol-versions: fix m4 quoting
31141         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
31142         format for AC_LINK_IFELSE.
31143
31144         glob: fix compile test
31145         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
31146
31147         btowc: fix missing file
31148         * modules/btowc (Files): Also ship locale-fr.m4.
31149
31150         lseek: fix link test
31151         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
31152         AC_LINK_IFELSE.
31153
31154         include_next: silence autoconf 2.68 warning
31155         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
31156         AC_COMPILE_IFELSE as special.
31157         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
31158         autoconf < 2.68.
31159
31160         acl: fix compilation test
31161         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
31162         AC_COMPILE_IFELSE.
31163
31164 2010-08-26  Bruno Haible  <bruno@clisp.org>
31165
31166         Modernize AC_TRY_RUN invocations.
31167         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
31168         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
31169         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
31170         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
31171         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
31172         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
31173         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
31174         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
31175         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
31176         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
31177         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
31178         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
31179         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
31180         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
31181         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
31182         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
31183         gl_MBRLEN_NUL_RETVAL): Likewise.
31184         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
31185         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
31186         Likewise.
31187         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
31188         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
31189         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
31190         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
31191         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
31192         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
31193         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
31194         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
31195         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
31196         Likewise.
31197         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
31198         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
31199         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
31200         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
31201         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31202         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
31203         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
31204         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
31205         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
31206         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
31207
31208 2010-08-26  Bruno Haible  <bruno@clisp.org>
31209
31210         Modernize AC_TRY_LINK invocations.
31211         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
31212         AC_TRY_LINK.
31213         * m4/argp.m4 (gl_ARGP): Likewise.
31214         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
31215         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
31216         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
31217         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
31218         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
31219         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
31220         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
31221         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
31222         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
31223         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
31224         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
31225         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
31226         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
31227         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
31228         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
31229         * m4/hostent.m4 (gl_HOSTENT): Likewise.
31230         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
31231         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
31232         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
31233         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
31234         Likewise.
31235         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
31236         Likewise.
31237         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
31238         Likewise.
31239         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
31240         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
31241         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
31242         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
31243         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
31244         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
31245         * m4/servent.m4 (gl_SERVENT): Likewise.
31246         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
31247         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
31248         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
31249         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
31250         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
31251         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
31252         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
31253         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31254         * modules/tsearch-tests (configure.ac): Likewise.
31255
31256 2010-08-26  Bruno Haible  <bruno@clisp.org>
31257
31258         Modernize AC_TRY_COMPILE invocations.
31259         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
31260         AC_TRY_COMPILE.
31261         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
31262         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
31263         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
31264         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
31265         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
31266         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
31267         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
31268         * m4/lock.m4 (gl_LOCK): Likewise.
31269         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
31270         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
31271         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
31272         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
31273         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
31274         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
31275         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
31276         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
31277         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
31278         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
31279         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
31280         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
31281         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
31282         extraneous semicolon.
31283
31284 2010-08-26  Jim Meyering  <meyering@redhat.com>
31285
31286         stat-time: relax license LGPL
31287         * modules/stat-time (License): Change from GPL to LGPL,
31288         with consent from all contributors, for use in libguile.
31289         Requested by Ludovic Courtès.
31290
31291 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
31292
31293         poll: return immediately on POLLHUP.
31294         * lib/poll.c (poll): Always set timeout before wait_timeout is
31295         computed.
31296
31297 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31298
31299         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
31300         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
31301         rmdir ("dir/.//"), unlinkat.
31302
31303 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
31304
31305         stdbool: avoid spurious failure with modern xlc
31306         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
31307
31308 2010-08-24  Bruno Haible  <bruno@clisp.org>
31309
31310         getloadavg: simplify code
31311         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
31312         gl_have_func. Update comments.
31313
31314 2010-08-24  Eric Blake  <eblake@redhat.com>
31315
31316         getloadavg: don't define SVR4 on cygwin
31317         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
31318         only define SVR4 when -lkvm is required.
31319         Reported by Yaakov Selkowitz.
31320
31321 2010-08-24  Bruno Haible  <bruno@clisp.org>
31322
31323         priv-set: fix comment
31324         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
31325
31326 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
31327
31328         priv-set: fix comments
31329         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
31330         to match code, as suggested by David Bartley in:
31331         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
31332
31333 2010-08-23  Eric Blake  <eblake@redhat.com>
31334
31335         stdbool: avoid rejecting clang
31336         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
31337         * tests/test-stdbool.c: Enable more tests if using the system
31338         <stdbool.h> instead of the gnulib replacement.
31339         (main): Move xlc bug test to a runtime test for all compilers.
31340         Reported by Anders Kaseorg.
31341
31342         argz: fix shell quoting issue
31343         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
31344         Reported by Charles Wilson.
31345
31346 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
31347             Erik Faye-Lund <kusmabite@gmail.com>
31348
31349         poll, select: handle ERROR_BROKEN_PIPE.
31350         * lib/poll.c (win32_compute_revents): Return POLLHUP when
31351         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
31352         * lib/select.c (win32_compute_revents): Do not mark a pipe
31353         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
31354
31355 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
31356
31357         fts: allow compilation with C++
31358         * lib/fts_.h: Specify extern "C" linkage with C++.
31359
31360 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31361
31362         Fix gnulib-tool sed script de-commentation for AIX sed.
31363         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
31364         sed.
31365
31366 2010-08-17  Eric Blake  <eblake@redhat.com>
31367
31368         test-stddef: test for (some) offsetof bugs
31369         * tests/test-stddef.c: Enhance test to ensure correct type of
31370         offsetof.
31371         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
31372         that we are not fixing at this time.
31373
31374 2010-08-15  Bruno Haible  <bruno@clisp.org>
31375
31376         stpncpy: Allow stpncpy to be defined as a macro.
31377         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
31378         if it's already correctly declared.
31379         * lib/string.in.h (stpncpy): Undefine before redefining.
31380         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
31381
31382 2010-08-14  Bruno Haible  <bruno@clisp.org>
31383
31384         Rename module 'memxfrm' to 'amemxfrm'.
31385         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
31386         (amemxfrm): Renamed from memxfrm.
31387         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
31388         (amemxfrm): Renamed from memxfrm.
31389         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
31390         * NEWS: Mention the change.
31391         * MODULES.html.sh (String handling <string.h>): Update.
31392         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
31393         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
31394         * lib/unicase/u16-casexfrm.c: Likewise.
31395         * lib/unicase/u32-casexfrm.c: Likewise.
31396         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
31397         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
31398         * lib/uninorm/u16-normxfrm.c: Likewise.
31399         * lib/uninorm/u32-normxfrm.c: Likewise.
31400         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
31401         memxfrm.
31402         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
31403         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
31404         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
31405         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
31406         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
31407         Suggested by Paul Eggert.
31408
31409 2010-08-14  Bruno Haible  <bruno@clisp.org>
31410
31411         Tests for module 'astrxfrm'.
31412         * modules/astrxfrm-tests: New file.
31413         * tests/test-astrxfrm.c: New file.
31414
31415         New module 'astrxfrm'.
31416         * lib/astrxfrm.h: New file.
31417         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
31418         * modules/astrxfrm: New file.
31419
31420 2010-08-14  Reuben Thomas <rrt@sc3d.org>
31421
31422         regex: Tweak doc.
31423         * doc/regex.texi (Overview): Don't mention regex.c.
31424         (GNU Regular Expression Compiling): Likewise.
31425         (Match-end-of-line Operator): Mention 'not_eol'.
31426
31427 2010-08-14  Brian Gough  <bjg@gnu.org>
31428             Bruno Haible  <bruno@clisp.org>
31429
31430         git-merge-changelog: add doc relating to use with bzr and hg.
31431         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
31432
31433 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
31434
31435         pthread: fix pthread.h creation for srcdir != builddir
31436         * modules/pthread (Makefile.am): Fix the rule to work also in a
31437         non-srcdir build.
31438
31439 2010-08-13  Karl Berry  <karl@gnu.org>
31440
31441         * doc/regex.texi (Predefined Syntaxes): @smallexample.
31442         * doc/posix-*/*: force line break before @url of POSIX
31443         specifications.
31444         Suggested by Werner Lemberg.
31445
31446 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
31447
31448         strtod: fix const diagnostic
31449         * lib/strtod.c (strtod): Don't assign const char * to char *,
31450         as this elicits a warning from GCC when warnings are enabled.
31451
31452 2010-08-10  Pádraig Brady <P@draigbrady.com>
31453         and Eric Blake  <eblake@redhat.com>
31454
31455         copy-acl: ignore ENOTSUP on HP-UX
31456         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
31457         so that it is available for HP-UX.
31458         * lib/copy-acl.c (qcopy_acl): Use it.
31459         Reported by Patrick M. Callahan.
31460
31461 2010-08-10  Eric Blake  <eblake@redhat.com>
31462
31463         open, chown: relax license
31464         * modules/open (License): Change to LGPLv2+, with consent by all
31465         authors, for use in augeas.
31466         * modules/chown (License): Likewise.
31467         * modules/lchown (Likewise): Likewise.
31468         Requested by Adam Stokes.
31469
31470 2010-08-09  Karl Berry  <karl@gnu.org>
31471
31472         * build-aux/ar-lib: new file, import from Automake.
31473         * config/srclist.txt: autocheck for updates.
31474
31475 2010-08-09  Eric Blake  <eblake@redhat.com>
31476
31477         readlinkat: adjust client modules
31478         * modules/areadlinkat (Depends-on): Use readlinkat, not
31479         symlinkat.
31480         * modules/areadlinkat-with-size (Depends-on): Likewise.
31481
31482         mknod: be more vocal about danger of running tests as root
31483         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
31484         root, since that is just asking for problems.
31485         Suggested by Bruno Haible, based on a report by Rainer Tammer.
31486
31487         readlinkat: split into its own module
31488         * modules/symlinkat: Split readlinkat...
31489         * modules/readlinkat: ...into separate module.
31490         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
31491         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
31492         * lib/symlinkat.c (readlinkat): Move...
31493         * lib/readlinkat.c: ...into new file.
31494         * modules/symlinkat-tests: Split readlinkat test...
31495         * modules/readlinkat-tests: ...into separate module.
31496         * tests/test-symlinkat.c: Split...
31497         * tests/test-readlinkat.c: ...into new file.
31498         * NEWS: Document the split.
31499         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31500         * lib/unistd.in.h (readlinkat): Likewise.
31501         Suggested by Bruno Haible.
31502
31503 2010-08-08  Bruno Haible  <bruno@clisp.org>
31504
31505         memxfrm: Speed up.
31506         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
31507         that usually only one call to strxfrm is necessary for each string
31508         part.
31509         Reported by Paul Eggert <eggert@cs.ucla.edu>.
31510
31511 2010-08-07  Karl Berry  <karl@gnu.org>
31512
31513         * doc/posix-headers/limits.texi,
31514         * doc/posix-functions/malloc.texi,
31515         * doc/posix-functions/strsignal.texi: missing @item.
31516         * doc/ld-version-script.texi: spurious leading i.
31517         * doc/regex.texi (Interval Operators): no commas inside @var.
31518
31519 2010-08-01  Bruno Haible  <bruno@clisp.org>
31520
31521         Integrate the regex documentation.
31522         * doc/gnulib.texi: Define 'cn' index.
31523         (Regular expressions): New a chapter that includes regex.texi and
31524         regexprops-generic.texi.
31525         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
31526         syntax.
31527
31528         Whitespace cleanup.
31529         * doc/regex.texi: Remove trailing spaces.
31530
31531         Add regex documentation.
31532         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
31533         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
31534         Written by Kathy A. Hargreaves and Karl Berry.
31535
31536 2010-08-01  Bruno Haible  <bruno@clisp.org>
31537
31538         link: Update documentation.
31539         * doc/posix-functions/link.texi: Update regarding Solaris.
31540
31541 2010-07-31  Bruno Haible  <bruno@clisp.org>
31542
31543         Update modules list.
31544         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
31545         (String handling <string.h>): Add memcmp2, memxfrm.
31546         (Container data structures): Add xlist, xsublist, xoset.
31547         (Core language properties): Add alignof, unused-parameter.
31548         (Process control, Numeric conversion functions <stdlib.h>): Renamed
31549         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
31550         (Unibyte characters <ctype.h>): New section.
31551         (String handling <string.h>): New section.
31552         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
31553         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
31554         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
31555         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
31556         tan, tanh, tanl, y0, y1, yn.
31557         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
31558         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
31559         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
31560         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
31561         unlockpt, vdprintf, vdprintf-posix.
31562         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
31563         (File system functions): Add concat-filename, sys_file, sys_ioctl,
31564         xconcat-filename.
31565         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
31566         getdtablesize, pipe2, pipe2-safer.
31567         (Security): New section.
31568         (Networking functions): Add accept4.
31569         (Signal handling): Add sigpipe.
31570         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
31571         mbmemcasecoll.
31572         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
31573         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
31574         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
31575         pipe-filter-ii.
31576         (Misc): Add argp-version-etc, login_tty, parse-duration.
31577
31578 2010-07-31  Bruno Haible  <bruno@clisp.org>
31579
31580         Improve doc in MODULES.html.
31581         * modules/linkat (Description): Add the word "function".
31582         * modules/mkfifo (Description): Likewise.
31583         * modules/mknod (Description): Likewise.
31584         * modules/remove (Description): Likewise.
31585         * modules/renameat (Description): Likewise.
31586         * modules/stat (Description): Likewise.
31587         * modules/symlink (Description): Likewise.
31588         * modules/unlink (Description): Likewise.
31589
31590 2010-07-31  Bruno Haible  <bruno@clisp.org>
31591
31592         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
31593         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
31594         option --enable/disable-c++ instead of --enable/disable-cxx.
31595         * NEWS: Mention the change.
31596
31597 2010-07-31  Bruno Haible  <bruno@clisp.org>
31598
31599         readlink, areadlink: Relax test a bit.
31600         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
31601         alternative to ENOTDIR.
31602         * tests/test-areadlink.h (test_areadlink): Likewise.
31603         Reported by Rainer Tammer.
31604
31605 2010-07-31  Bruno Haible  <bruno@clisp.org>
31606
31607         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
31608         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
31609         character, perform the search using U_STRCHR.
31610         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
31611         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
31612         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
31613         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
31614         Suggested by Paolo Bonzini.
31615
31616 2010-07-31  Bruno Haible  <bruno@clisp.org>
31617
31618         unistr/u*-strstr: Fix dependencies.
31619         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
31620         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
31621         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
31622
31623 2010-07-31  Bruno Haible  <bruno@clisp.org>
31624
31625         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
31626         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
31627         the beginning of the loop.
31628         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
31629         cases in 'switch' statement.
31630
31631         unistr/u8-strchr: Fix several bugs.
31632         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
31633         the string. When not found, return NULL, not a pointer near the end.
31634
31635         More tests for unistr/u8-strchr.
31636         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
31637         that the function does not read past the first occurrence of the byte
31638         being searched.
31639         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
31640         * tests/unistr/test-u16-strchr.c (main): New function.
31641         * tests/unistr/test-u32-strchr.c (main): New function.
31642
31643 2010-07-31  Bruno Haible  <bruno@clisp.org>
31644
31645         posix-modules: Ignore backup files of documentation files.
31646         * posix-modules: grep only through files named *.texi.
31647
31648 2010-07-31  Bruno Haible  <bruno@clisp.org>
31649
31650         symlinkat: Fix documentation.
31651         * doc/posix-functions/readlinkat.texi: Fix module name.
31652
31653 2010-07-31  Bruno Haible  <bruno@clisp.org>
31654
31655         fchownat: Replace also when chown has the trailing slash bug.
31656         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
31657         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
31658         introduced on 2010-04-10.
31659         Reported by Rainer Tammer.
31660
31661 2010-07-31  Bruno Haible  <bruno@clisp.org>
31662
31663         linkat: Work around AIX 7.1 bug.
31664         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
31665         whether linkat handles trailing slash correctly. If not, replace linkat
31666         and define LINKAT_TRAILING_SLASH_BUG.
31667         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
31668         check whether (fd1,file1) points to a directory if file1 or file2 ends
31669         in a slash. Code taken from lib/link.c.
31670         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
31671         Reported by Rainer Tammer.
31672
31673 2010-07-31  Bruno Haible  <bruno@clisp.org>
31674
31675         Correctly determine whether pow is available in libc on AIX 7 with xlc.
31676         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
31677         This disables an xlc optimization that was causing wrong test results.
31678         Reported by Rainer Tammer.
31679
31680 2010-07-31  Bruno Haible  <bruno@clisp.org>
31681
31682         iconv: Work around AIX 6.1..7.1 bug.
31683         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
31684         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
31685         cross-compiling, guess no on all versions of AIX.
31686         Reported by Rainer Tammer.
31687
31688 2010-07-31  Bruno Haible  <bruno@clisp.org>
31689
31690         readlink: Relax test a bit.
31691         * tests/test-readlink.h (test_readlink): Allow different errno value
31692         when readlink is called with a file name that ends in / and refers to
31693         a file.
31694         Suggested by Eric Blake.
31695         Reported by Rainer Tammer.
31696
31697 2010-07-31  Bruno Haible  <bruno@clisp.org>
31698
31699         copysign: Does not require -lm on glibc systems.
31700         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
31701         gl_COMMON_DOUBLE_MATHFUNC.
31702         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
31703
31704 2010-07-31  Bruno Haible  <bruno@clisp.org>
31705
31706         duplocale: Work around AIX 7.1 bug.
31707         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
31708         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
31709         * lib/duplocale.c (rpl_duplocale): Update comment.
31710         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
31711         Reported by Rainer Tammer.
31712
31713 2010-07-30  Bruno Haible  <bruno@clisp.org>
31714
31715         dirfd: Avoid link error on AIX 7.1.
31716         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
31717         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
31718         exist, set REPLACE_DIRFD.
31719         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
31720         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
31721         * doc/posix-functions/dirfd.texi: Update.
31722         Reported by Rainer Tammer.
31723
31724 2010-07-30  Eric Blake  <eblake@redhat.com>
31725
31726         strtod: next round of AIX fixes
31727         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
31728         exponent.
31729         * tests/test-strtod.c (main): Enhance tests.
31730         * doc/posix-functions/strtod.texi (strtod): Document next bug.
31731         Reported by Rainer Tammer.
31732
31733         futimens: fix configure check
31734         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
31735         Reported by Bruno Haible.
31736
31737 2010-07-30  Bruno Haible  <bruno@clisp.org>
31738
31739         getline: Update regarding AIX.
31740         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
31741         Reported by Rainer Tammer.
31742
31743 2010-07-30  Bruno Haible  <bruno@clisp.org>
31744
31745         wcwidth: Drop replacement on AIX 7.
31746         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
31747         AIX 7.
31748         Reported by Rainer Tammer.
31749
31750 2010-07-30  Bruno Haible  <bruno@clisp.org>
31751
31752         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
31753         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
31754         a 'char *'.
31755         Reported by Rainer Tammer.
31756
31757 2010-07-30  Bruno Haible  <bruno@clisp.org>
31758
31759         unlink: Update regarding AIX.
31760         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
31761         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
31762         Reported by Rainer Tammer.
31763
31764 2010-07-30  Bruno Haible  <bruno@clisp.org>
31765
31766         symlink: Update regarding AIX.
31767         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
31768         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
31769         Reported by Rainer Tammer.
31770
31771 2010-07-30  Bruno Haible  <bruno@clisp.org>
31772
31773         strndup: Update regarding AIX.
31774         * m4/strndup.m4 (gl_FUNC_STRNDUP): 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         stat: Update regarding AIX.
31781         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
31782         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
31783         Reported by Rainer Tammer.
31784
31785 2010-07-30  Bruno Haible  <bruno@clisp.org>
31786
31787         truncl: Fix autoconf test.
31788         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
31789         whether truncl works.
31790         Reported by Rainer Tammer.
31791
31792 2010-07-30  Bruno Haible  <bruno@clisp.org>
31793
31794         round: Update regarding AIX.
31795         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
31796         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
31797         Reported by Rainer Tammer.
31798
31799 2010-07-30  Bruno Haible  <bruno@clisp.org>
31800
31801         rename: Update regarding AIX.
31802         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
31803         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
31804         Reported by Rainer Tammer.
31805
31806 2010-07-30  Bruno Haible  <bruno@clisp.org>
31807
31808         printf.m4: Update regarding AIX.
31809         * m4/printf.m4: Update comments regarding AIX.
31810         Reported by Rainer Tammer.
31811
31812 2010-07-30  Bruno Haible  <bruno@clisp.org>
31813
31814         iconv: Update regarding AIX.
31815         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
31816         AIX 7.
31817         Reported by Rainer Tammer.
31818
31819 2010-07-30  Bruno Haible  <bruno@clisp.org>
31820
31821         getopt: Update regarding AIX.
31822         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
31823         no on AIX.
31824         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
31825         Reported by Rainer Tammer.
31826
31827 2010-07-30  Bruno Haible  <bruno@clisp.org>
31828
31829         ldexpl; Update regarding AIX.
31830         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
31831         on AIX 7.
31832         Reported by Rainer Tammer.
31833
31834 2010-07-30  Bruno Haible  <bruno@clisp.org>
31835
31836         frexpl: Update regarding AIX.
31837         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
31838         on AIX 7.
31839         Reported by Rainer Tammer.
31840
31841 2010-07-30  Bruno Haible  <bruno@clisp.org>
31842
31843         open, fopen: Update regarding AIX.
31844         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
31845         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
31846         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
31847         * doc/posix-functions/fopen.texi: Likewise.
31848         Reported by Rainer Tammer.
31849
31850 2010-07-30  Bruno Haible  <bruno@clisp.org>
31851
31852         chown: Update doc regarding AIX.
31853         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
31854         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
31855         Reported by Rainer Tammer.
31856
31857 2010-07-30  Eric Blake  <eblake@redhat.com>
31858
31859         strtod: fix bug in replacement function on AIX
31860         * lib/strtod.c (strtod): Special case broken "0x" parse in
31861         underlying strtod.
31862         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
31863         * doc/posix-functions/strtod.texi (strtod): Likewise.
31864         Reported by Rainer Tammer.
31865
31866 2010-07-30  Bruno Haible  <bruno@clisp.org>
31867
31868         mbrlen: Fix cross-compilation guess for AIX.
31869         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
31870         guess. Leftover from 2008-12-22.
31871
31872 2010-07-30  Bruno Haible  <bruno@clisp.org>
31873
31874         mbrtowc: Fix cross-compilation guess for AIX.
31875         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
31876         guess. Leftover from 2008-12-21.
31877
31878 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
31879
31880         init.sh: work around trap limitation of some shells
31881         * tests/init.sh (setup_): Move exit trap outside of shell function.
31882
31883 2010-07-29  Eric Blake  <eblake@redhat.com>
31884
31885         strtod: aid debugging
31886         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
31887         understanding why strtod is rejected.
31888
31889 2010-07-28  Bruno Haible  <bruno@clisp.org>
31890
31891         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
31892         * lib/unistr/u8-chr.c: Include <string.h>.
31893         * tests/unistr/test-u8-chr.c: Likewise.
31894         * tests/unistr/test-u16-chr.c: Likewise.
31895         * tests/unistr/test-u32-chr.c: Likewise.
31896         * tests/unistr/test-u8-strchr.c: Likewise.
31897         * tests/unistr/test-u16-strchr.c: Likewise.
31898         * tests/unistr/test-u32-strchr.c: Likewise.
31899         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
31900         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
31901         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
31902         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
31903
31904 2010-07-28  Bruno Haible  <bruno@clisp.org>
31905
31906         Use spaces for indentation, not tabs.
31907         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
31908
31909 2010-07-27  Bruno Haible  <bruno@clisp.org>
31910
31911         mbspcasecmp: Fix function specification.
31912         * lib/string.in.h (mbspcasecmp): Fix specification comment.
31913         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
31914         Reported by Eric Blake <eblake@redhat.com>.
31915
31916 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
31917
31918         timespec: use cast and not conditional, as truncation isn't possible
31919         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
31920         instead of a conditional.  Comment about the situation in more detail.
31921         This undoes most of the 2009-10-29 patch.
31922
31923 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
31924
31925         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
31926         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
31927         * lib/unistr/u8-strchr.c: Likewise.
31928         * modules/unistr/u8-chr: Depend on memchr.
31929
31930         unistr/u*-strchr: add tests
31931         * modules/unistr/u8-strchr-tests: New file.
31932         * modules/unistr/u16-strchr-tests: New file.
31933         * modules/unistr/u32-strchr-tests: New file.
31934         * tests/unistr/test-strchr.h: New file.
31935         * tests/unistr/test-u8-strchr.c: New file.
31936         * tests/unistr/test-u16-strchr.c: New file.
31937         * tests/unistr/test-u32-strchr.c: New file.
31938
31939         unistr/u*-chr: test multibyte sequences more
31940         * tests/unistr/test-chr.h: Do complete testing of the characters in the
31941         test vector.
31942         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
31943         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
31944         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
31945
31946         unistr/u*-chr: test multibyte sequences
31947         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
31948
31949         unistr/u*-chr: prepare for multibyte tests
31950         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
31951         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
31952         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
31953         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
31954         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
31955         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
31956
31957 2010-07-18  Bruno Haible  <bruno@clisp.org>
31958
31959         unistr/u8-strchr: Optimize non-ASCII argument case.
31960         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
31961         because the first byte often matches anyway.
31962         Reported by Pádraig Brady <P@draigbrady.com>.
31963
31964 2010-07-15  Karl Berry  <karl@gnu.org>
31965
31966         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
31967
31968 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
31969
31970         getcwd: on Solaris, work better if ancestors are inaccessible
31971         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
31972         buffer and size, try again with a large buffer.  This works better
31973         on Solaris, since its getcwd succeeds even if the path to the root
31974         is inaccessible, and this is helpful in common cases such as .zfs
31975         hidden directories.  Problem reported by J Chapman Flack in
31976         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
31977         Use system getcwd if it's declared, not merely if it's partly
31978         working; use the partly-working test only to avoid needless effort
31979         if the system getcwd fails.
31980         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
31981         comment that was already obsolete and is now even more obsolete.
31982         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
31983         now might call strdup.
31984
31985 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
31986
31987         pthread: Add enough so that coreutils/src/sort.c compiles.
31988         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
31989         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
31990         gnulib. Include <sched.h> and <time.h>, as per POSIX.
31991         Include <sys/types.h>, in case it defines pthread_t.
31992         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
31993         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
31994         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
31995         (pthread_rwlockattr_t, pthread_spinlock_t):
31996         New typedefs, if HAVE_PTHREAD_T is not defined.
31997         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
31998         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
31999         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
32000         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
32001         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
32002         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
32003         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
32004         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
32005         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
32006         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
32007         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
32008         New macros.
32009         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
32010         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
32011         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
32012         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
32013         (pthread_spin_unlock): New dummy functions.
32014         (pthread_create): Return EAGAIN; don't set errno.
32015         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
32016         require AC_C_INLINE.
32017         * modules/pthread (Depends-on): Add sched, time.
32018         (pthread.h): Use AM_V_GEN.
32019
32020 2010-07-13  Bruno Haible  <bruno@clisp.org>
32021
32022         striconveh: Don't malloc memory if the result buffer is sufficient.
32023         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
32024         buffer if its size is sufficient.
32025         Reported by Ludovic Courtès <ludo@gnu.org>.
32026
32027 2010-07-13  Bruno Haible  <bruno@clisp.org>
32028
32029         strtod: Add safety check.
32030         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
32031
32032 2010-07-12  Bruno Haible  <bruno@clisp.org>
32033
32034         Unify tests that set gl_cv_func_ldexpl_no_libm.
32035         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
32036         gl_FUNC_LDEXPL.
32037         (gl_FUNC_LDEXPL): Invoke it.
32038         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
32039
32040 2010-07-12  Bruno Haible  <bruno@clisp.org>
32041
32042         Unify tests that set gl_cv_func_ldexp_no_libm.
32043         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
32044         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
32045         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
32046         (configure.ac): Simply invoke gl_FUNC_LDEXP.
32047         * modules/strtod (Files): Add m4/ldexp.m4.
32048
32049 2010-07-12  Bruno Haible  <bruno@clisp.org>
32050
32051         Unify tests that set gl_cv_func_frexpl_no_libm.
32052         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
32053         gl_FUNC_FREXPL_NO_LIBM.
32054         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
32055         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
32056
32057 2010-07-12  Bruno Haible  <bruno@clisp.org>
32058
32059         Unify tests that set gl_cv_func_frexp_no_libm.
32060         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
32061         gl_FUNC_FREXP_NO_LIBM.
32062         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
32063         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
32064
32065 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
32066
32067         memcoll: clarify sizes versus lengths, document better, and tweak perf
32068         * lib/memcoll.c (strcoll_loop, memcoll0):
32069         Improve quality of descriptive comments.  Name variables
32070         consistently as to whether they are lengths (which do not include
32071         terminating null) versus sizes (which do).
32072         * lib/xmemcoll.c (xmemcoll0): Likewise.
32073         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
32074         returned when s1size == 0; this is easier to compile and saves
32075         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
32076
32077 2010-07-12  Bruno Haible  <bruno@clisp.org>
32078
32079         Tests for module '_Exit'.
32080         * modules/_Exit-tests: New file.
32081         * tests/test-_Exit.sh: New file.
32082         * tests/test-_Exit.c: New file.
32083
32084         New module '_Exit'.
32085         * lib/stdlib.in.h (__attribute__): New macro.
32086         (_Exit): New declaration.
32087         * lib/_Exit.c: New file.
32088         * m4/_Exit.m4: New file.
32089         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
32090         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
32091         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
32092         * modules/_Exit: New file.
32093         * tests/test-stdlib-c++.cc (_Exit): Check signature.
32094         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
32095
32096 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
32097
32098         strtod: make it more-accurate typically, and don't require libm
32099         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
32100         Include limits.h.  Don't include string.h.
32101         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
32102         (locale_isspace): New function, so that no casts are needed to
32103         check whether *s is a space.
32104         (ldexp): Provide an unused dummy if not available.
32105         (scale_radix_exp, parse_number, underlying_strtod): New functions.
32106         (strtod): Use them.  This implementation prefers to use the
32107         underlying strtod if available, falling back on our own code
32108         only to fix known bugs.  This is more likely to produce an
32109         accurate result.  Also, it avoids the use of libm functions.
32110         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
32111         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
32112         was absent, but it caused a test failure with coreutils.
32113         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
32114         with libm.
32115         * modules/strtod (Makefile.am, Link): libm is no longer needed.
32116         * modules/strtod-tests (Makefile.am): Likewise.
32117
32118 2010-07-11  Pádraig Brady  <P@draigBrady.com>
32119             Bruno Haible  <bruno@clisp.org>
32120
32121         unistr/u8-strchr: Optimize ASCII argument case.
32122         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
32123
32124 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
32125
32126         (x)memcoll: minor tweaks
32127         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
32128         is after the type that it qualifies.
32129         (memcoll0): Likewise.
32130         * lib/memcoll.h (memcoll0): Likewise.
32131         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
32132         * lib/xmemcoll.h (xmemcoll0): Likewise.
32133         * lib/memcoll.c (memcoll0): Correct the comment.  This function
32134         differs from memcoll in that the NUL byte is part of the argument.
32135         Omit the abort-checks, as performance is a real issue here.  Plus,
32136         the checks were wrong anyway (an off-by-one error).  Omit local
32137         variable 'diff', as it's a bit clearer that way.
32138         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
32139         no longer needed.
32140
32141 2010-07-08  Chen Guo <chenguo4@yahoo.com>
32142
32143         (x)memcoll: speedup when input is known to be NUL delimited
32144         * lib/memcoll.c: Include stdlib.
32145         (memcoll0): New function.
32146         (strcoll_loop): New function, refactored for use in both memcoll
32147         and memcoll0.
32148         * lib/memcoll.h (memcoll0): Add prototype.
32149         * lib/xmemcoll.c (xmemcoll0): New function.
32150         (collate_error): New function, refactored for use in both xmemcoll
32151         and xmemcoll0.
32152         * lib/xmemcoll.h (xmemcoll0): Add prototype.
32153         * m4/memcoll.m4: add inline invocation.
32154
32155 2010-07-06  Pádraig Brady  <P@draigBrady.com>
32156
32157         * build-aux/bootstrap: Remove any local translations
32158         from the translation project synchronization directory,
32159         so that local only translations are not distributed.
32160
32161 2010-07-04  Bruno Haible  <bruno@clisp.org>
32162
32163         fsusage: Clarify which code applies to which platforms.
32164         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
32165         platform.
32166         * lib/fsusage.c (get_fs_usage): Likewise.
32167
32168 2010-07-04  Bruno Haible  <bruno@clisp.org>
32169
32170         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
32171         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
32172         Reported by Martin Lambers <marlam@marlam.de>.
32173
32174 2010-07-04  Jim Meyering  <meyering@redhat.com>
32175
32176         hash: once again explicitly disallow insertion of NULL
32177         * lib/hash.c (hash_insert0): Reinstate just-removed test:
32178         inserting a NULL pointer cannot work with these functions.
32179         Add a comment with details.
32180         This reverts part of the 2010-07-01 commit, 5bef1a35
32181         "hash: extend module to deal with non-pointer keys".
32182
32183 2010-07-01  Bruno Haible  <bruno@clisp.org>
32184
32185         stdbool: Update doc.
32186         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
32187         Info from Christian Weisgerber <naddy@mips.inka.de>.
32188
32189 2010-07-01  Jim Meyering  <meyering@redhat.com>
32190
32191         hash: extend module to deal with non-pointer keys
32192         * lib/hash.c (hash_insert0): New interface, much like hash_insert
32193         but that allows insertion of non-pointer entries.
32194         Do not disallow an ENTRY value of NULL.
32195         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
32196         * lib/hash.h (hash_insert0): Declare.
32197
32198 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
32199
32200         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
32201         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
32202         not present (i.e. with autoconf 2.59 and when using gettextize, not
32203         gnulib), require AC_GNU_SOURCE instead.
32204
32205 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
32206
32207         idpriv-drop: Fix tests.
32208         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
32209         not to the test-idpriv-droptemp program.
32210
32211 2010-06-29  Bruno Haible  <bruno@clisp.org>
32212
32213         string: Fix syntax error with g++ 2.96.
32214         * lib/string.in.h (__pure__): Remove definition.
32215         (_GL_ATTRIBUTE_PURE): New macro.
32216         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
32217         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
32218         Reported by Christian Weisgerber <naddy@mips.inka.de>.
32219
32220 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
32221
32222         unitypes: Fix bug introduced on 2010-05-18.
32223         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
32224
32225 2010-06-22  Eric Blake  <eblake@redhat.com>
32226
32227         memmem: slight optimization
32228         * lib/str-two-way.h (critical_factorization): Update comments.
32229         Reduce work during factorization phase.
32230         Reported by Carlos Bueno <carlos@bueno.org>.
32231
32232 2010-06-21  Bruno Haible  <bruno@clisp.org>
32233
32234         Fix HAVE_CALLOC_POSIX misnomer.
32235         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
32236         !HAVE_CALLOC_POSIX.
32237         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
32238         HAVE_CALLOC_POSIX.
32239         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
32240         instead of HAVE_CALLOC_POSIX.
32241         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
32242         HAVE_CALLOC_POSIX.
32243
32244         Use modern idiom for calloc() replacement.
32245         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
32246         AC_FUNC_CALLOC.
32247         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
32248         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
32249         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
32250         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
32251         (gl_REPLACE_CALLOC): New macro.
32252
32253 2010-06-21  Bruno Haible  <bruno@clisp.org>
32254
32255         Fix HAVE_REALLOC_POSIX misnomer.
32256         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
32257         !HAVE_REALLOC_POSIX.
32258         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
32259         HAVE_REALLOC_POSIX.
32260         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
32261         instead of HAVE_REALLOC_POSIX.
32262         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
32263         HAVE_REALLOC_POSIX.
32264
32265         Use modern idiom for realloc() replacement.
32266         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
32267         AC_FUNC_REALLOC.
32268         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
32269         Autoconf's AC_FUNC_REALLOC.
32270         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
32271         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
32272         (gl_REPLACE_REALLOC): New macro.
32273         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
32274
32275 2010-06-21  Bruno Haible  <bruno@clisp.org>
32276
32277         Fix HAVE_MALLOC_POSIX misnomer.
32278         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
32279         !HAVE_MALLOC_POSIX.
32280         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
32281         HAVE_MALLOC_POSIX.
32282         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
32283         instead of HAVE_MALLOC_POSIX.
32284         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
32285         HAVE_MALLOC_POSIX.
32286
32287         Use modern idiom for malloc() replacement.
32288         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
32289         AC_FUNC_MALLOC.
32290         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
32291         Autoconf's AC_FUNC_MALLOC.
32292         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
32293         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
32294         (gl_REPLACE_MALLOC): New macro.
32295         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
32296
32297 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
32298
32299         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
32300         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
32301         This macro takes 3 arguments, not 4.
32302
32303 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
32304
32305         ipv6: fix detection under mingw
32306         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
32307         in6_addr.
32308
32309 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
32310
32311         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
32312         that strtod() works when cross-compiling to a glibc version known
32313         to work.
32314
32315 2010-06-15  Bruno Haible  <bruno@clisp.org>
32316
32317         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
32318
32319 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
32320
32321         select: Correct timeout.
32322         * lib/select.c (rpl_select): Compute wait_timeout correctly.
32323
32324 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
32325
32326         git-version-gen: init shell var to avoid env var influence
32327         * build-aux/git-version-gen (v): Init shell var to empty.
32328
32329 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
32330
32331         priv-set: Don't assume that priv.h exists merely because getppriv does.
32332         See Jan Andersen's bug report about AIX 5L in
32333         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
32334         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
32335         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
32336         * lib/priv-set.h: Likewise.
32337         * tests/test-priv-set.c: Likewise.
32338
32339 2010-06-13  Bruno Haible  <bruno@clisp.org>
32340
32341         relocatable: Make it easier to test whether to install wrappers.
32342         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
32343         RELOCATABLE_VIA_WRAPPER.
32344
32345 2010-06-13  Bruno Haible  <bruno@clisp.org>
32346
32347         gnulib-tool: Display specified modules and dependencies differently.
32348         * gnulib-tool (func_show_module_list): New function.
32349         (func_import, func_create_testdir): Invoke it.
32350         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
32351
32352 2010-06-13  Bruno Haible  <bruno@clisp.org>
32353
32354         gnulib-tool: Align code of func_import and func_create_testdir.
32355         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
32356         specified_modules.
32357
32358 2010-06-12  Jim Meyering  <meyering@redhat.com>
32359
32360         test-inttostr: avoid spurious failure on Solaris 9
32361         * tests/test-inttostr.c (main): Skip the test when snprintf fails
32362         to accept "%ju".  Reported by Bruno Haible.
32363
32364 2010-06-11  Jim Meyering  <meyering@redhat.com>
32365
32366         test-sys_socket: mark variables as used more readably
32367         * tests/test-sys_socket.c (main): Mark otherwise unused variables
32368         as "used" explicitly via (void) statement casts.  This is more
32369         readable than using them in an artificial return expression.
32370         Suggestion from Bruno Haible.
32371
32372 2010-06-11  Bruno Haible  <bruno@clisp.org>
32373
32374         Avoid some more warnings from "gcc -Wwrite-strings".
32375         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
32376         to 'const char *'.
32377         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
32378         * tests/test-c-strcasestr.c (main): Likewise.
32379         * tests/test-mbscasestr1.c (main): Likewise.
32380         * tests/test-mbscasestr2.c (main): Likewise.
32381         * tests/test-memmem.c (main): Likewise.
32382         * tests/test-strstr.c (main): Likewise.
32383         * tests/test-strcasestr.c (main): Likewise.
32384
32385 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32386
32387         init.sh: change framework_failure_ to fail with status 99, not 1
32388         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
32389         automake's parallel-tests rule that this is an unexpected failure,
32390         even if the test is listed in XFAIL_TESTS.
32391
32392 2010-06-11  Jim Meyering  <meyering@redhat.com>
32393
32394         test-inttostr: avoid warnings about 4-6KB literal strings
32395         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
32396         Include "macros.h", for its definition of ASSERT.
32397         (CK): s/assert/ASSERT/
32398         * modules/inttostr-tests (Files): Add macros.h.
32399
32400         init.sh: don't use $ME_ or skip_ before they are defined
32401         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
32402         their first uses.  Also hoist their companions: warn_, fail_,
32403         framework_failure_, $stderr_fileno.  Prompted by a patch from
32404         Stefano Lattarini.
32405
32406         test-sys_socket: avoid set-but-not-used warnings from gcc
32407         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
32408         avoid warning about set-but-not-used variables.
32409
32410         test-xvasprintf: avoid 'const' discard warnings
32411         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
32412         "const" when assigning from literal strings.
32413         (test_xasprintf): Add "void" in function argument list to placate
32414         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
32415
32416         tests: avoid compilation warnings in argmatch and exclude tests...
32417         in packages that define ARGMATCH_DIE_DECL, like coreutils.
32418         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
32419         Since it always exits, declare with the "noreturn" attribute.
32420         * tests/test-argmatch.c: Likewise.
32421
32422         tests: avoid 'const' discard warnings in mbsstr tests
32423         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
32424         * tests/test-mbsstr2.c (main): Likewise.
32425
32426         test-verify: avoid warning from gcc's -Wmissing-declarations
32427         * tests/test-verify.c (function): Declare to be static.
32428
32429         test-inttostr.c: include <string.h> for use of strcmp
32430         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
32431
32432         test-linkat: avoid failed assertion on "other" architectures
32433         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
32434         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
32435         sparc: https://bugs.launchpad.net/bugs/591968
32436
32437 2010-06-11  Jim Meyering  <meyering@redhat.com>
32438
32439         printf.m4: avoid autoconf's "Expanded Before Required" warning
32440         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
32441         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
32442         autoconf warning.
32443
32444 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
32445
32446         Replacement header templates are now named with ".in", not "_".
32447         * doc/gnulib-intro.texi: Correct.
32448
32449 2010-06-10  Jim Meyering  <meyering@redhat.com>
32450
32451         inttostr-tests: depend on snprintf, not snprintf-posix
32452         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
32453         snprintf-posix, to avoid this aclocal failure:
32454           missing file gnulib-tests/vasnprintf.c
32455           configure.ac:45: error: expected source file, required through \
32456           AC_LIBSOURCES, not found
32457
32458 2010-06-10  Jim Meyering  <meyering@redhat.com>
32459
32460         inttostr: add a new function, inttostr, and tests
32461         The namesake function was not available.  The existence of the
32462         template file, inttostr.c makes its addition nontrivial.
32463         * lib/anytostr.c: Rename from inttostr.c.
32464         (anytostr): Rename from inttostr.
32465         * lib/inttostr.c: New file.
32466         * modules/inttostr (Files): Add anytostr.c.
32467         (Makefile.am): Set lib_SOURCES instead of ...
32468         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
32469         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
32470         * lib/offtostr.c: Likewise.
32471         * lib/uinttostr.c: Likewise.
32472         * lib/umaxtostr.c: Likewise.
32473         * modules/inttostr-tests: New file.
32474         * tests/test-inttostr.c: New file.  Test these functions.
32475
32476 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
32477             Bruno Haible  <bruno@clisp.org>
32478
32479         Add "Extending Gnulib" chapter to manual.
32480         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
32481         chapter.
32482         (Extending Gnulib): New chapter.
32483         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
32484         chapter.
32485
32486 2010-06-09  Bruno Haible  <bruno@clisp.org>
32487
32488         Avoid relocwrapper link errors due to gnulib replacement functions.
32489         * lib/areadlink.c: Use the system's malloc, realloc functions.
32490         (areadlink): Set errno to ENOMEM explicitly.
32491         * modules/areadlink (Depends-on): Remove malloc-posix.
32492         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32493
32494 2010-06-09  Bruno Haible  <bruno@clisp.org>
32495
32496         Avoid relocwrapper link errors due to gnulib replacement functions.
32497         * lib/canonicalize-lgpl.c: Use the system's malloc function.
32498         * lib/malloca.c: Likewise.
32499         * lib/relocatable.c: Likewise.
32500         * lib/progreloc.c: Use the system's malloc, sprintf functions.
32501         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
32502         * lib/setenv.c: Use the system's malloc, realloc functions.
32503         * lib/strerror.c: Use the system's sprintf function.
32504         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32505
32506 2010-06-04  Bruno Haible  <bruno@clisp.org>
32507
32508         Prefer documented low-level autoconf macro names.
32509         * m4/lib-link.m4: Use m4_translit instead of translit.
32510         * m4/environ.m4: Likewise.
32511         * m4/mathfunc.m4: Likewise.
32512         * m4/onceonly.m4: Likewise.
32513         * m4/stdint.m4: Likewise.
32514         Suggested by Eric Blake.
32515
32516 2010-06-04  Martin Lambers  <marlam@marlam.de>
32517             Bruno Haible  <bruno@clisp.org>
32518
32519         havelib: Allow library names with '+' characters.
32520         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
32521         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
32522
32523 2010-06-09  Bruno Haible  <bruno@clisp.org>
32524
32525         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
32526         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
32527         realloc failed.
32528
32529 2010-06-08  Peter Simons  <simons@cryp.to>
32530
32531         maint.mk: make the news-check rule more configurable
32532         * top/maint.mk (news-check-lines-spec): New variable.
32533         (news-check): Use "sed -n 1,10p" in place of "head".
32534
32535 2010-06-07  Jim Meyering  <meyering@redhat.com>
32536
32537         do-release-commit-and-tag: fix typo in --help
32538         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
32539
32540         regex: avoid new dead-code warning with gcc-4.6.0
32541         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
32542         if-block containing a while-loop.  It's been unused for at least
32543         5 years.
32544
32545 2010-06-05  Bruno Haible  <bruno@clisp.org>
32546
32547         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
32548         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
32549
32550 2010-06-04  Bruno Haible  <bruno@clisp.org>
32551
32552         Update to GNU gettext 0.18.1.
32553         * modules/gettext (configure.ac): Require gettext infrastructure from
32554         version 0.18.1.
32555
32556 2010-06-03  Bruno Haible  <bruno@clisp.org>
32557
32558         Don't use AC_LIBOBJ with file names in subdirectories.
32559         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
32560         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
32561         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
32562         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
32563         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
32564         gl_LIBUNISTRING_LIBSOURCE.
32565         (Makefile.am): Augment lib_SOURCES here, conditionally.
32566         * NEWS: Drop requirement for Automake option 'subdir-objects'.
32567
32568 2010-06-03  Bruno Haible  <bruno@clisp.org>
32569
32570         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
32571         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
32572         expansion does not end with a newline.
32573         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
32574         unnecessary newline.
32575
32576 2010-06-03  Bruno Haible  <bruno@clisp.org>
32577
32578         Reduce dependencies.
32579         * tests/test-quotearg.h: New file, extracted from
32580         tests/test-quotearg.c.
32581         * tests/test-quotearg-simple.c: New file, extracted from
32582         tests/test-quotearg.c.
32583         * tests/test-quotearg.c: Don't include <ctype.h>.
32584         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
32585         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
32586         use_quote_double_quotes, use_quotearg_colon): Moved to
32587         tests/test-quotearg.h.
32588         (results_g, flag_results, custom_quotes, custom_results): Moved
32589         to tests/test-quotearg-simple.c.
32590         (main): Moved the part that does not depend on gettext to
32591         tests/test-quotearg-simple.c. Return 77 if the test cannot be
32592         performed.
32593         * modules/quotearg-simple: New file.
32594         * modules/quotearg-simple-tests: New file.
32595         * modules/quotearg (Depends-on): Add quotearg-simple.
32596         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
32597         (Files): Add tests/test-quotearg.h.
32598         Reported by Paolo Bonzini.
32599
32600 2010-06-03  Bruno Haible  <bruno@clisp.org>
32601
32602         Reduce dependencies.
32603         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
32604
32605 2010-06-03  Bruno Haible  <bruno@clisp.org>
32606
32607         time: Undefine more broken macros.
32608         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
32609         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
32610         Reported by Eric Blake.
32611
32612 2010-06-03  Bruno Haible  <bruno@clisp.org>
32613
32614         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
32615         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
32616         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
32617         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
32618         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
32619         Reported by Ludovic Courtès <ludo@gnu.org>.
32620
32621 2010-06-02  Eric Blake  <eblake@redhat.com>
32622
32623         time: work with mingw + pthreads-win32 library
32624         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
32625         if timespec is defined only in pthread.h.
32626         * modules/time (Makefile.am): Substitute it.
32627         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
32628         <pthread.h>, when needed.
32629         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
32630         from the library.
32631
32632 2010-05-31  Bruno Haible  <bruno@clisp.org>
32633
32634         Avoid expanding two macros in the wrong order.
32635         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
32636         gl_LIBUNISTRING if it is defined.
32637         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
32638         autoconf >= 2.64.
32639         Reported by Ludovic Courtès <ludo@gnu.org>.
32640
32641 2010-05-27  Jim Meyering  <meyering@redhat.com>
32642
32643         maint.mk: also prohibit "#undef" of always-defined symbols
32644         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
32645         Allow more than one space before the symbol name.
32646         (sc_prohibit_always-defined_macros): Use grep's -E, now that
32647         the regexp uses alternation.
32648
32649 2010-05-26  Eric Blake  <eblake@redhat.com>
32650
32651         maint.mk: avoid echo -e
32652         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
32653         Convert all uses of echo -* to printf.
32654         Reported by Matthias Bolte.
32655
32656 2010-05-25  Bruno Haible  <bruno@clisp.org>
32657
32658         Update to GNU gettext 0.18, part 2.
32659         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
32660         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
32661
32662 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32663
32664         Add missing include in test-pwrite.c.
32665         * tests/test-pwrite.c: Include string.h, for strcmp.
32666
32667 2010-05-24  Bruno Haible  <bruno@clisp.org>
32668
32669         * NEWS: Mention requirement for Automake option 'subdir-objects'.
32670
32671 2010-05-24  Bruno Haible  <bruno@clisp.org>
32672
32673         Don't use conversion with transliteration in u{8,16,32}_strcoll.
32674         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
32675         iconveh_error argument.
32676         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
32677         U_STRCONV_TO_LOCALE.
32678         * lib/unistr/u16-strcoll.c: Likewise.
32679         * lib/unistr/u32-strcoll.c: Likewise.
32680         * modules/unistr/u8-strcoll (Depends-on): Add
32681         uniconv/u8-strconv-to-enc, localcharset. Remove
32682         uniconv/u8-strconv-to-locale.
32683         (configure.ac): Bump version number.
32684         * modules/unistr/u16-strcoll (Depends-on): Add
32685         uniconv/u16-strconv-to-enc, localcharset. Remove
32686         uniconv/u16-strconv-to-locale.
32687         (configure.ac): Bump version number.
32688         * modules/unistr/u32-strcoll (Depends-on): Add
32689         uniconv/u32-strconv-to-enc, localcharset. Remove
32690         uniconv/u32-strconv-to-locale.
32691         (configure.ac): Bump version number.
32692
32693 2010-05-24  Bruno Haible  <bruno@clisp.org>
32694
32695         Avoid a test failure on NetBSD 5.0.
32696         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
32697         an iconv() bug.
32698
32699 2010-05-24  Bruno Haible  <bruno@clisp.org>
32700
32701         Adjust #include directive style.
32702         * modules/regex (Includes): Recommend to write <regex.h>.
32703
32704 2010-05-24  Bruno Haible  <bruno@clisp.org>
32705
32706         regex: Don't require alloca.
32707         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
32708         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
32709         only inside if (0).
32710
32711 2010-05-23  Jim Meyering  <meyering@redhat.com>
32712
32713         test-renameat.c: include <sys/stat.h>
32714         * tests/test-renameat.c: Include <sys/stat.h>; required for
32715         definition of S_IS* macros.
32716
32717 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
32718
32719         Update maintainer documentation for 'relocatable-prog' module.
32720         * doc/relocatable-maint.texi: Update.
32721         Comments by Bruno Haible.
32722
32723 2010-05-23  Bruno Haible  <bruno@clisp.org>
32724
32725         git-merge-changelog: Enable --split-merged-entry by default.
32726         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
32727         (usage): Don't mention this option any more.
32728         Reported by Ralf Wildenhues.
32729
32730 2010-05-23  Jim Meyering  <meyering@redhat.com>
32731
32732         test-pwrite: do not leave behind a test file named "out"
32733         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
32734         The trivial-looking use of init.sh is really necessary.
32735         It ensures that the temporary file, "out", is created in
32736         a temporary directory, and removed upon termination.
32737         * tests/test-pwrite.sh: Re-add file.
32738         * modules/pwrite-tests: Reference it.
32739
32740 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32741
32742         Fix output redirection buglet in init.sh.
32743         * tests/init.sh: Fix redirection of stderr.
32744
32745 2010-05-20  Simon Josefsson  <simon@josefsson.org>
32746
32747         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
32748
32749 2010-05-17  Simon Josefsson  <simon@josefsson.org>
32750
32751         * modules/valgrind-tests: New file.
32752         * m4/valgrind-tests.m4: New file.
32753         * doc/valgrind-tests.texi: New file.
32754         * doc/gnulib.texi (Running self-tests under valgrind): New
32755         section.
32756
32757 2010-05-19  Bruno Haible  <bruno@clisp.org>
32758
32759         Clean up dead code in recent commit.
32760         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
32761         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
32762         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
32763         Suggested by Paolo Bonzini.
32764
32765 2010-05-19  Bruno Haible  <bruno@clisp.org>
32766
32767         Avoid valgrind error reports from libunistring.
32768         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
32769         * modules/libunistring (Files): Add it.
32770         * modules/libunistring-optional (Files): Likewise.
32771
32772 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
32773             Bruno Haible  <bruno@clisp.org>
32774
32775         New module 'libunistring-optional'.
32776         * modules/libunistring-optional: New file.
32777         * m4/libunistring-base.m4: New file.
32778         * m4/libunistring-optional.m4: New file.
32779         * lib/unicase.in.h: Renamed from lib/unicase.h.
32780         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
32781         * lib/unictype.in.h: Renamed from lib/unictype.h.
32782         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
32783         * lib/uniname.in.h: Renamed from lib/uniname.h.
32784         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
32785         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
32786         * lib/unistr.in.h: Renamed from lib/unistr.h.
32787         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
32788         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
32789         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
32790         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
32791         gl_LIBUNISTRING. If the library was found, determine the installed
32792         version and set LIBUNISTRING_VERSION.
32793         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
32794         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
32795         handle a configuration option --with-included-libunistring.
32796         * modules/libunistring (Files): Add m4/absolute-header.m4.
32797         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
32798         Add m4/libunistring-base.m4.
32799         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32800         (Makefile.am): Build unicase.h from unicase.in.h.
32801         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
32802         Add m4/libunistring-base.m4.
32803         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32804         (Makefile.am): Build uniconv.h from uniconv.in.h.
32805         * modules/unictype/base (Files): Use unictype.in.h instead of
32806         unictype.h. Add m4/libunistring-base.m4.
32807         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32808         (Makefile.am): Build unictype.h from unictype.in.h.
32809         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
32810         Add m4/libunistring-base.m4.
32811         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32812         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
32813         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
32814         Add m4/libunistring-base.m4.
32815         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32816         (Makefile.am): Build uniname.h from uniname.in.h.
32817         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
32818         Add m4/libunistring-base.m4.
32819         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32820         (Makefile.am): Build uninorm.h from uninorm.in.h.
32821         * modules/unistdio/base (Files): Use unistdio.in.h instead of
32822         unistdio.h. Add m4/libunistring-base.m4.
32823         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32824         (Makefile.am): Build unistdio.h from unistdio.in.h.
32825         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
32826         Add m4/libunistring-base.m4.
32827         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32828         (Makefile.am): Build unistr.h from unistr.in.h.
32829         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
32830         Add m4/libunistring-base.m4.
32831         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32832         (Makefile.am): Build unitypes.h from unitypes.in.h.
32833         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
32834         Add m4/libunistring-base.m4.
32835         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32836         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
32837         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
32838         uniwidth.h. Add m4/libunistring-base.m4.
32839         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32840         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
32841         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
32842         instead of augmenting lib_SOURCES.
32843         * modules/unicase/empty-suffix-context: Likewise.
32844         * modules/unicase/locale-language: Likewise.
32845         * modules/unicase/tolower: Likewise.
32846         * modules/unicase/totitle: Likewise.
32847         * modules/unicase/toupper: Likewise.
32848         * modules/unicase/u8-casecmp: Likewise.
32849         * modules/unicase/u8-casecoll: Likewise.
32850         * modules/unicase/u8-casefold: Likewise.
32851         * modules/unicase/u8-casexfrm: Likewise.
32852         * modules/unicase/u8-ct-casefold: Likewise.
32853         * modules/unicase/u8-ct-tolower: Likewise.
32854         * modules/unicase/u8-ct-totitle: Likewise.
32855         * modules/unicase/u8-ct-toupper: Likewise.
32856         * modules/unicase/u8-is-cased: Likewise.
32857         * modules/unicase/u8-is-casefolded: Likewise.
32858         * modules/unicase/u8-is-lowercase: Likewise.
32859         * modules/unicase/u8-is-titlecase: Likewise.
32860         * modules/unicase/u8-is-uppercase: Likewise.
32861         * modules/unicase/u8-prefix-context: Likewise.
32862         * modules/unicase/u8-suffix-context: Likewise.
32863         * modules/unicase/u8-tolower: Likewise.
32864         * modules/unicase/u8-totitle: Likewise.
32865         * modules/unicase/u8-toupper: Likewise.
32866         * modules/unicase/u16-casecmp: Likewise.
32867         * modules/unicase/u16-casecoll: Likewise.
32868         * modules/unicase/u16-casefold: Likewise.
32869         * modules/unicase/u16-casexfrm: Likewise.
32870         * modules/unicase/u16-ct-casefold: Likewise.
32871         * modules/unicase/u16-ct-tolower: Likewise.
32872         * modules/unicase/u16-ct-totitle: Likewise.
32873         * modules/unicase/u16-ct-toupper: Likewise.
32874         * modules/unicase/u16-is-cased: Likewise.
32875         * modules/unicase/u16-is-casefolded: Likewise.
32876         * modules/unicase/u16-is-lowercase: Likewise.
32877         * modules/unicase/u16-is-titlecase: Likewise.
32878         * modules/unicase/u16-is-uppercase: Likewise.
32879         * modules/unicase/u16-prefix-context: Likewise.
32880         * modules/unicase/u16-suffix-context: Likewise.
32881         * modules/unicase/u16-tolower: Likewise.
32882         * modules/unicase/u16-totitle: Likewise.
32883         * modules/unicase/u16-toupper: Likewise.
32884         * modules/unicase/u32-casecmp: Likewise.
32885         * modules/unicase/u32-casecoll: Likewise.
32886         * modules/unicase/u32-casefold: Likewise.
32887         * modules/unicase/u32-casexfrm: Likewise.
32888         * modules/unicase/u32-ct-casefold: Likewise.
32889         * modules/unicase/u32-ct-tolower: Likewise.
32890         * modules/unicase/u32-ct-totitle: Likewise.
32891         * modules/unicase/u32-ct-toupper: Likewise.
32892         * modules/unicase/u32-is-cased: Likewise.
32893         * modules/unicase/u32-is-casefolded: Likewise.
32894         * modules/unicase/u32-is-lowercase: Likewise.
32895         * modules/unicase/u32-is-titlecase: Likewise.
32896         * modules/unicase/u32-is-uppercase: Likewise.
32897         * modules/unicase/u32-prefix-context: Likewise.
32898         * modules/unicase/u32-suffix-context: Likewise.
32899         * modules/unicase/u32-tolower: Likewise.
32900         * modules/unicase/u32-totitle: Likewise.
32901         * modules/unicase/u32-toupper: Likewise.
32902         * modules/unicase/ulc-casecmp: Likewise.
32903         * modules/unicase/ulc-casecoll: Likewise.
32904         * modules/unicase/ulc-casexfrm: Likewise.
32905         * modules/uniconv/u8-conv-from-enc: Likewise.
32906         * modules/uniconv/u8-conv-to-enc: Likewise.
32907         * modules/uniconv/u8-strconv-from-enc: Likewise.
32908         * modules/uniconv/u8-strconv-from-locale: Likewise.
32909         * modules/uniconv/u8-strconv-to-enc: Likewise.
32910         * modules/uniconv/u8-strconv-to-locale: Likewise.
32911         * modules/uniconv/u16-conv-from-enc: Likewise.
32912         * modules/uniconv/u16-conv-to-enc: Likewise.
32913         * modules/uniconv/u16-strconv-from-enc: Likewise.
32914         * modules/uniconv/u16-strconv-from-locale: Likewise.
32915         * modules/uniconv/u16-strconv-to-enc: Likewise.
32916         * modules/uniconv/u16-strconv-to-locale: Likewise.
32917         * modules/uniconv/u32-conv-from-enc: Likewise.
32918         * modules/uniconv/u32-conv-to-enc: Likewise.
32919         * modules/uniconv/u32-strconv-from-enc: Likewise.
32920         * modules/uniconv/u32-strconv-from-locale: Likewise.
32921         * modules/uniconv/u32-strconv-to-enc: Likewise.
32922         * modules/uniconv/u32-strconv-to-locale: Likewise.
32923         * modules/unictype/bidicategory-byname: Likewise.
32924         * modules/unictype/bidicategory-name: Likewise.
32925         * modules/unictype/bidicategory-of: Likewise.
32926         * modules/unictype/bidicategory-test: Likewise.
32927         * modules/unictype/block-list: Likewise.
32928         * modules/unictype/block-test: Likewise.
32929         * modules/unictype/category-C: Likewise.
32930         * modules/unictype/category-Cc: Likewise.
32931         * modules/unictype/category-Cf: Likewise.
32932         * modules/unictype/category-Cn: Likewise.
32933         * modules/unictype/category-Co: Likewise.
32934         * modules/unictype/category-Cs: Likewise.
32935         * modules/unictype/category-L: Likewise.
32936         * modules/unictype/category-Ll: Likewise.
32937         * modules/unictype/category-Lm: Likewise.
32938         * modules/unictype/category-Lo: Likewise.
32939         * modules/unictype/category-Lt: Likewise.
32940         * modules/unictype/category-Lu: Likewise.
32941         * modules/unictype/category-M: Likewise.
32942         * modules/unictype/category-Mc: Likewise.
32943         * modules/unictype/category-Me: Likewise.
32944         * modules/unictype/category-Mn: Likewise.
32945         * modules/unictype/category-N: Likewise.
32946         * modules/unictype/category-Nd: Likewise.
32947         * modules/unictype/category-Nl: Likewise.
32948         * modules/unictype/category-No: Likewise.
32949         * modules/unictype/category-P: Likewise.
32950         * modules/unictype/category-Pc: Likewise.
32951         * modules/unictype/category-Pd: Likewise.
32952         * modules/unictype/category-Pe: Likewise.
32953         * modules/unictype/category-Pf: Likewise.
32954         * modules/unictype/category-Pi: Likewise.
32955         * modules/unictype/category-Po: Likewise.
32956         * modules/unictype/category-Ps: Likewise.
32957         * modules/unictype/category-S: Likewise.
32958         * modules/unictype/category-Sc: Likewise.
32959         * modules/unictype/category-Sk: Likewise.
32960         * modules/unictype/category-Sm: Likewise.
32961         * modules/unictype/category-So: Likewise.
32962         * modules/unictype/category-Z: Likewise.
32963         * modules/unictype/category-Zl: Likewise.
32964         * modules/unictype/category-Zp: Likewise.
32965         * modules/unictype/category-Zs: Likewise.
32966         * modules/unictype/category-and: Likewise.
32967         * modules/unictype/category-and-not: Likewise.
32968         * modules/unictype/category-byname: Likewise.
32969         * modules/unictype/category-name: Likewise.
32970         * modules/unictype/category-none: Likewise.
32971         * modules/unictype/category-of: Likewise.
32972         * modules/unictype/category-or: Likewise.
32973         * modules/unictype/category-test: Likewise.
32974         * modules/unictype/combining-class: Likewise.
32975         * modules/unictype/ctype-alnum: Likewise.
32976         * modules/unictype/ctype-alpha: Likewise.
32977         * modules/unictype/ctype-blank: Likewise.
32978         * modules/unictype/ctype-cntrl: Likewise.
32979         * modules/unictype/ctype-digit: Likewise.
32980         * modules/unictype/ctype-graph: Likewise.
32981         * modules/unictype/ctype-lower: Likewise.
32982         * modules/unictype/ctype-print: Likewise.
32983         * modules/unictype/ctype-punct: Likewise.
32984         * modules/unictype/ctype-space: Likewise.
32985         * modules/unictype/ctype-upper: Likewise.
32986         * modules/unictype/ctype-xdigit: Likewise.
32987         * modules/unictype/decimal-digit: Likewise.
32988         * modules/unictype/digit: Likewise.
32989         * modules/unictype/mirror: Likewise.
32990         * modules/unictype/numeric: Likewise.
32991         * modules/unictype/property-alphabetic: Likewise.
32992         * modules/unictype/property-ascii-hex-digit: Likewise.
32993         * modules/unictype/property-bidi-arabic-digit: Likewise.
32994         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
32995         * modules/unictype/property-bidi-block-separator: Likewise.
32996         * modules/unictype/property-bidi-boundary-neutral: Likewise.
32997         * modules/unictype/property-bidi-common-separator: Likewise.
32998         * modules/unictype/property-bidi-control: Likewise.
32999         * modules/unictype/property-bidi-embedding-or-override: Likewise.
33000         * modules/unictype/property-bidi-eur-num-separator: Likewise.
33001         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
33002         * modules/unictype/property-bidi-european-digit: Likewise.
33003         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
33004         * modules/unictype/property-bidi-left-to-right: Likewise.
33005         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
33006         * modules/unictype/property-bidi-other-neutral: Likewise.
33007         * modules/unictype/property-bidi-pdf: Likewise.
33008         * modules/unictype/property-bidi-segment-separator: Likewise.
33009         * modules/unictype/property-bidi-whitespace: Likewise.
33010         * modules/unictype/property-byname: Likewise.
33011         * modules/unictype/property-combining: Likewise.
33012         * modules/unictype/property-composite: Likewise.
33013         * modules/unictype/property-currency-symbol: Likewise.
33014         * modules/unictype/property-dash: Likewise.
33015         * modules/unictype/property-decimal-digit: Likewise.
33016         * modules/unictype/property-default-ignorable-code-point: Likewise.
33017         * modules/unictype/property-deprecated: Likewise.
33018         * modules/unictype/property-diacritic: Likewise.
33019         * modules/unictype/property-extender: Likewise.
33020         * modules/unictype/property-format-control: Likewise.
33021         * modules/unictype/property-grapheme-base: Likewise.
33022         * modules/unictype/property-grapheme-extend: Likewise.
33023         * modules/unictype/property-grapheme-link: Likewise.
33024         * modules/unictype/property-hex-digit: Likewise.
33025         * modules/unictype/property-hyphen: Likewise.
33026         * modules/unictype/property-id-continue: Likewise.
33027         * modules/unictype/property-id-start: Likewise.
33028         * modules/unictype/property-ideographic: Likewise.
33029         * modules/unictype/property-ids-binary-operator: Likewise.
33030         * modules/unictype/property-ids-trinary-operator: Likewise.
33031         * modules/unictype/property-ignorable-control: Likewise.
33032         * modules/unictype/property-iso-control: Likewise.
33033         * modules/unictype/property-join-control: Likewise.
33034         * modules/unictype/property-left-of-pair: Likewise.
33035         * modules/unictype/property-line-separator: Likewise.
33036         * modules/unictype/property-logical-order-exception: Likewise.
33037         * modules/unictype/property-lowercase: Likewise.
33038         * modules/unictype/property-math: Likewise.
33039         * modules/unictype/property-non-break: Likewise.
33040         * modules/unictype/property-not-a-character: Likewise.
33041         * modules/unictype/property-numeric: Likewise.
33042         * modules/unictype/property-other-alphabetic: Likewise.
33043         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
33044         * modules/unictype/property-other-grapheme-extend: Likewise.
33045         * modules/unictype/property-other-id-continue: Likewise.
33046         * modules/unictype/property-other-id-start: Likewise.
33047         * modules/unictype/property-other-lowercase: Likewise.
33048         * modules/unictype/property-other-math: Likewise.
33049         * modules/unictype/property-other-uppercase: Likewise.
33050         * modules/unictype/property-paired-punctuation: Likewise.
33051         * modules/unictype/property-paragraph-separator: Likewise.
33052         * modules/unictype/property-pattern-syntax: Likewise.
33053         * modules/unictype/property-pattern-white-space: Likewise.
33054         * modules/unictype/property-private-use: Likewise.
33055         * modules/unictype/property-punctuation: Likewise.
33056         * modules/unictype/property-quotation-mark: Likewise.
33057         * modules/unictype/property-radical: Likewise.
33058         * modules/unictype/property-sentence-terminal: Likewise.
33059         * modules/unictype/property-soft-dotted: Likewise.
33060         * modules/unictype/property-space: Likewise.
33061         * modules/unictype/property-terminal-punctuation: Likewise.
33062         * modules/unictype/property-test: Likewise.
33063         * modules/unictype/property-titlecase: Likewise.
33064         * modules/unictype/property-unassigned-code-value: Likewise.
33065         * modules/unictype/property-unified-ideograph: Likewise.
33066         * modules/unictype/property-uppercase: Likewise.
33067         * modules/unictype/property-variation-selector: Likewise.
33068         * modules/unictype/property-white-space: Likewise.
33069         * modules/unictype/property-xid-continue: Likewise.
33070         * modules/unictype/property-xid-start: Likewise.
33071         * modules/unictype/property-zero-width: Likewise.
33072         * modules/unictype/scripts: Likewise.
33073         * modules/unictype/syntax-c-ident: Likewise.
33074         * modules/unictype/syntax-c-whitespace: Likewise.
33075         * modules/unictype/syntax-java-ident: Likewise.
33076         * modules/unictype/syntax-java-whitespace: Likewise.
33077         * modules/unilbrk/u8-possible-linebreaks: Likewise.
33078         * modules/unilbrk/u8-width-linebreaks: Likewise.
33079         * modules/unilbrk/u16-possible-linebreaks: Likewise.
33080         * modules/unilbrk/u16-width-linebreaks: Likewise.
33081         * modules/unilbrk/u32-possible-linebreaks: Likewise.
33082         * modules/unilbrk/u32-width-linebreaks: Likewise.
33083         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
33084         * modules/unilbrk/ulc-width-linebreaks: Likewise.
33085         * modules/uniname/uniname: Likewise.
33086         * modules/uninorm/canonical-decomposition: Likewise.
33087         * modules/uninorm/composition: Likewise.
33088         * modules/uninorm/decomposing-form: Likewise.
33089         * modules/uninorm/decomposition: Likewise.
33090         * modules/uninorm/filter: Likewise.
33091         * modules/uninorm/nfc: Likewise.
33092         * modules/uninorm/nfd: Likewise.
33093         * modules/uninorm/nfkc: Likewise.
33094         * modules/uninorm/nfkd: Likewise.
33095         * modules/uninorm/u8-normalize: Likewise.
33096         * modules/uninorm/u8-normcmp: Likewise.
33097         * modules/uninorm/u8-normcoll: Likewise.
33098         * modules/uninorm/u8-normxfrm: Likewise.
33099         * modules/uninorm/u16-normalize: Likewise.
33100         * modules/uninorm/u16-normcmp: Likewise.
33101         * modules/uninorm/u16-normcoll: Likewise.
33102         * modules/uninorm/u16-normxfrm: Likewise.
33103         * modules/uninorm/u32-normalize: Likewise.
33104         * modules/uninorm/u32-normcmp: Likewise.
33105         * modules/uninorm/u32-normcoll: Likewise.
33106         * modules/uninorm/u32-normxfrm: Likewise.
33107         * modules/unistdio/u8-asnprintf: Likewise.
33108         * modules/unistdio/u8-asprintf: Likewise.
33109         * modules/unistdio/u8-snprintf: Likewise.
33110         * modules/unistdio/u8-sprintf: Likewise.
33111         * modules/unistdio/u8-u8-asnprintf: Likewise.
33112         * modules/unistdio/u8-u8-asprintf: Likewise.
33113         * modules/unistdio/u8-u8-snprintf: Likewise.
33114         * modules/unistdio/u8-u8-sprintf: Likewise.
33115         * modules/unistdio/u8-u8-vasnprintf: Likewise.
33116         * modules/unistdio/u8-u8-vasprintf: Likewise.
33117         * modules/unistdio/u8-u8-vsnprintf: Likewise.
33118         * modules/unistdio/u8-u8-vsprintf: Likewise.
33119         * modules/unistdio/u8-vasnprintf: Likewise.
33120         * modules/unistdio/u8-vasprintf: Likewise.
33121         * modules/unistdio/u8-vsnprintf: Likewise.
33122         * modules/unistdio/u8-vsprintf: Likewise.
33123         * modules/unistdio/u16-asnprintf: Likewise.
33124         * modules/unistdio/u16-asprintf: Likewise.
33125         * modules/unistdio/u16-snprintf: Likewise.
33126         * modules/unistdio/u16-sprintf: Likewise.
33127         * modules/unistdio/u16-u16-asnprintf: Likewise.
33128         * modules/unistdio/u16-u16-asprintf: Likewise.
33129         * modules/unistdio/u16-u16-snprintf: Likewise.
33130         * modules/unistdio/u16-u16-sprintf: Likewise.
33131         * modules/unistdio/u16-u16-vasnprintf: Likewise.
33132         * modules/unistdio/u16-u16-vasprintf: Likewise.
33133         * modules/unistdio/u16-u16-vsnprintf: Likewise.
33134         * modules/unistdio/u16-u16-vsprintf: Likewise.
33135         * modules/unistdio/u16-vasnprintf: Likewise.
33136         * modules/unistdio/u16-vasprintf: Likewise.
33137         * modules/unistdio/u16-vsnprintf: Likewise.
33138         * modules/unistdio/u16-vsprintf: Likewise.
33139         * modules/unistdio/u32-asnprintf: Likewise.
33140         * modules/unistdio/u32-asprintf: Likewise.
33141         * modules/unistdio/u32-snprintf: Likewise.
33142         * modules/unistdio/u32-sprintf: Likewise.
33143         * modules/unistdio/u32-u32-asnprintf: Likewise.
33144         * modules/unistdio/u32-u32-asprintf: Likewise.
33145         * modules/unistdio/u32-u32-snprintf: Likewise.
33146         * modules/unistdio/u32-u32-sprintf: Likewise.
33147         * modules/unistdio/u32-u32-vasnprintf: Likewise.
33148         * modules/unistdio/u32-u32-vasprintf: Likewise.
33149         * modules/unistdio/u32-u32-vsnprintf: Likewise.
33150         * modules/unistdio/u32-u32-vsprintf: Likewise.
33151         * modules/unistdio/u32-vasnprintf: Likewise.
33152         * modules/unistdio/u32-vasprintf: Likewise.
33153         * modules/unistdio/u32-vsnprintf: Likewise.
33154         * modules/unistdio/u32-vsprintf: Likewise.
33155         * modules/unistdio/ulc-asnprintf: Likewise.
33156         * modules/unistdio/ulc-asprintf: Likewise.
33157         * modules/unistdio/ulc-fprintf: Likewise.
33158         * modules/unistdio/ulc-snprintf: Likewise.
33159         * modules/unistdio/ulc-sprintf: Likewise.
33160         * modules/unistdio/ulc-vasnprintf: Likewise.
33161         * modules/unistdio/ulc-vasprintf: Likewise.
33162         * modules/unistdio/ulc-vfprintf: Likewise.
33163         * modules/unistdio/ulc-vsnprintf: Likewise.
33164         * modules/unistdio/ulc-vsprintf: Likewise.
33165         * modules/unistr/u8-check: Likewise.
33166         * modules/unistr/u8-chr: Likewise.
33167         * modules/unistr/u8-cmp: Likewise.
33168         * modules/unistr/u8-cmp2: Likewise.
33169         * modules/unistr/u8-cpy: Likewise.
33170         * modules/unistr/u8-cpy-alloc: Likewise.
33171         * modules/unistr/u8-endswith: Likewise.
33172         * modules/unistr/u8-mblen: Likewise.
33173         * modules/unistr/u8-mbsnlen: Likewise.
33174         * modules/unistr/u8-mbtouc: Likewise.
33175         * modules/unistr/u8-mbtouc-unsafe: Likewise.
33176         * modules/unistr/u8-mbtoucr: Likewise.
33177         * modules/unistr/u8-move: Likewise.
33178         * modules/unistr/u8-next: Likewise.
33179         * modules/unistr/u8-prev: Likewise.
33180         * modules/unistr/u8-set: Likewise.
33181         * modules/unistr/u8-startswith: Likewise.
33182         * modules/unistr/u8-stpcpy: Likewise.
33183         * modules/unistr/u8-stpncpy: Likewise.
33184         * modules/unistr/u8-strcat: Likewise.
33185         * modules/unistr/u8-strchr: Likewise.
33186         * modules/unistr/u8-strcmp: Likewise.
33187         * modules/unistr/u8-strcoll: Likewise.
33188         * modules/unistr/u8-strcpy: Likewise.
33189         * modules/unistr/u8-strcspn: Likewise.
33190         * modules/unistr/u8-strdup: Likewise.
33191         * modules/unistr/u8-strlen: Likewise.
33192         * modules/unistr/u8-strmblen: Likewise.
33193         * modules/unistr/u8-strmbtouc: Likewise.
33194         * modules/unistr/u8-strncat: Likewise.
33195         * modules/unistr/u8-strncmp: Likewise.
33196         * modules/unistr/u8-strncpy: Likewise.
33197         * modules/unistr/u8-strnlen: Likewise.
33198         * modules/unistr/u8-strpbrk: Likewise.
33199         * modules/unistr/u8-strrchr: Likewise.
33200         * modules/unistr/u8-strspn: Likewise.
33201         * modules/unistr/u8-strstr: Likewise.
33202         * modules/unistr/u8-strtok: Likewise.
33203         * modules/unistr/u8-to-u16: Likewise.
33204         * modules/unistr/u8-to-u32: Likewise.
33205         * modules/unistr/u8-uctomb: Likewise.
33206         * modules/unistr/u16-check: Likewise.
33207         * modules/unistr/u16-chr: Likewise.
33208         * modules/unistr/u16-cmp: Likewise.
33209         * modules/unistr/u16-cmp2: Likewise.
33210         * modules/unistr/u16-cpy: Likewise.
33211         * modules/unistr/u16-cpy-alloc: Likewise.
33212         * modules/unistr/u16-endswith: Likewise.
33213         * modules/unistr/u16-mblen: Likewise.
33214         * modules/unistr/u16-mbsnlen: Likewise.
33215         * modules/unistr/u16-mbtouc: Likewise.
33216         * modules/unistr/u16-mbtouc-unsafe: Likewise.
33217         * modules/unistr/u16-mbtoucr: Likewise.
33218         * modules/unistr/u16-move: Likewise.
33219         * modules/unistr/u16-next: Likewise.
33220         * modules/unistr/u16-prev: Likewise.
33221         * modules/unistr/u16-set: Likewise.
33222         * modules/unistr/u16-startswith: Likewise.
33223         * modules/unistr/u16-stpcpy: Likewise.
33224         * modules/unistr/u16-stpncpy: Likewise.
33225         * modules/unistr/u16-strcat: Likewise.
33226         * modules/unistr/u16-strchr: Likewise.
33227         * modules/unistr/u16-strcmp: Likewise.
33228         * modules/unistr/u16-strcoll: Likewise.
33229         * modules/unistr/u16-strcpy: Likewise.
33230         * modules/unistr/u16-strcspn: Likewise.
33231         * modules/unistr/u16-strdup: Likewise.
33232         * modules/unistr/u16-strlen: Likewise.
33233         * modules/unistr/u16-strmblen: Likewise.
33234         * modules/unistr/u16-strmbtouc: Likewise.
33235         * modules/unistr/u16-strncat: Likewise.
33236         * modules/unistr/u16-strncmp: Likewise.
33237         * modules/unistr/u16-strncpy: Likewise.
33238         * modules/unistr/u16-strnlen: Likewise.
33239         * modules/unistr/u16-strpbrk: Likewise.
33240         * modules/unistr/u16-strrchr: Likewise.
33241         * modules/unistr/u16-strspn: Likewise.
33242         * modules/unistr/u16-strstr: Likewise.
33243         * modules/unistr/u16-strtok: Likewise.
33244         * modules/unistr/u16-to-u32: Likewise.
33245         * modules/unistr/u16-to-u8: Likewise.
33246         * modules/unistr/u16-uctomb: Likewise.
33247         * modules/unistr/u32-check: Likewise.
33248         * modules/unistr/u32-chr: Likewise.
33249         * modules/unistr/u32-cmp: Likewise.
33250         * modules/unistr/u32-cmp2: Likewise.
33251         * modules/unistr/u32-cpy: Likewise.
33252         * modules/unistr/u32-cpy-alloc: Likewise.
33253         * modules/unistr/u32-endswith: Likewise.
33254         * modules/unistr/u32-mblen: Likewise.
33255         * modules/unistr/u32-mbsnlen: Likewise.
33256         * modules/unistr/u32-mbtouc: Likewise.
33257         * modules/unistr/u32-mbtouc-unsafe: Likewise.
33258         * modules/unistr/u32-mbtoucr: Likewise.
33259         * modules/unistr/u32-move: Likewise.
33260         * modules/unistr/u32-next: Likewise.
33261         * modules/unistr/u32-prev: Likewise.
33262         * modules/unistr/u32-set: Likewise.
33263         * modules/unistr/u32-startswith: Likewise.
33264         * modules/unistr/u32-stpcpy: Likewise.
33265         * modules/unistr/u32-stpncpy: Likewise.
33266         * modules/unistr/u32-strcat: Likewise.
33267         * modules/unistr/u32-strchr: Likewise.
33268         * modules/unistr/u32-strcmp: Likewise.
33269         * modules/unistr/u32-strcoll: Likewise.
33270         * modules/unistr/u32-strcpy: Likewise.
33271         * modules/unistr/u32-strcspn: Likewise.
33272         * modules/unistr/u32-strdup: Likewise.
33273         * modules/unistr/u32-strlen: Likewise.
33274         * modules/unistr/u32-strmblen: Likewise.
33275         * modules/unistr/u32-strmbtouc: Likewise.
33276         * modules/unistr/u32-strncat: Likewise.
33277         * modules/unistr/u32-strncmp: Likewise.
33278         * modules/unistr/u32-strncpy: Likewise.
33279         * modules/unistr/u32-strnlen: Likewise.
33280         * modules/unistr/u32-strpbrk: Likewise.
33281         * modules/unistr/u32-strrchr: Likewise.
33282         * modules/unistr/u32-strspn: Likewise.
33283         * modules/unistr/u32-strstr: Likewise.
33284         * modules/unistr/u32-strtok: Likewise.
33285         * modules/unistr/u32-to-u16: Likewise.
33286         * modules/unistr/u32-to-u8: Likewise.
33287         * modules/unistr/u32-uctomb: Likewise.
33288         * modules/uniwbrk/u8-wordbreaks: Likewise.
33289         * modules/uniwbrk/u16-wordbreaks: Likewise.
33290         * modules/uniwbrk/u32-wordbreaks: Likewise.
33291         * modules/uniwbrk/ulc-wordbreaks: Likewise.
33292         * modules/uniwbrk/wordbreak-property: Likewise.
33293         * modules/uniwidth/u8-strwidth: Likewise.
33294         * modules/uniwidth/u8-width: Likewise.
33295         * modules/uniwidth/u16-strwidth: Likewise.
33296         * modules/uniwidth/u16-width: Likewise.
33297         * modules/uniwidth/u32-strwidth: Likewise.
33298         * modules/uniwidth/u32-width: Likewise.
33299         * modules/uniwidth/width: Likewise.
33300         * modules/unicase/cased-tests (Makefile.am): Link all test programs
33301         with $(LIBUNISTRING).
33302         * modules/unicase/ignorable-tests: Likewise.
33303         * modules/unicase/locale-language-tests: Likewise.
33304         * modules/unicase/tolower-tests: Likewise.
33305         * modules/unicase/totitle-tests: Likewise.
33306         * modules/unicase/toupper-tests: Likewise.
33307         * modules/unicase/u8-casecmp-tests: Likewise.
33308         * modules/unicase/u8-casecoll-tests: Likewise.
33309         * modules/unicase/u8-casefold-tests: Likewise.
33310         * modules/unicase/u8-is-cased-tests: Likewise.
33311         * modules/unicase/u8-is-casefolded-tests: Likewise.
33312         * modules/unicase/u8-is-lowercase-tests: Likewise.
33313         * modules/unicase/u8-is-titlecase-tests: Likewise.
33314         * modules/unicase/u8-is-uppercase-tests: Likewise.
33315         * modules/unicase/u8-tolower-tests: Likewise.
33316         * modules/unicase/u8-totitle-tests: Likewise.
33317         * modules/unicase/u8-toupper-tests: Likewise.
33318         * modules/unicase/u16-casecmp-tests: Likewise.
33319         * modules/unicase/u16-casecoll-tests: Likewise.
33320         * modules/unicase/u16-casefold-tests: Likewise.
33321         * modules/unicase/u16-is-cased-tests: Likewise.
33322         * modules/unicase/u16-is-casefolded-tests: Likewise.
33323         * modules/unicase/u16-is-lowercase-tests: Likewise.
33324         * modules/unicase/u16-is-titlecase-tests: Likewise.
33325         * modules/unicase/u16-is-uppercase-tests: Likewise.
33326         * modules/unicase/u16-tolower-tests: Likewise.
33327         * modules/unicase/u16-totitle-tests: Likewise.
33328         * modules/unicase/u16-toupper-tests: Likewise.
33329         * modules/unicase/u32-casecmp-tests: Likewise.
33330         * modules/unicase/u32-casecoll-tests: Likewise.
33331         * modules/unicase/u32-casefold-tests: Likewise.
33332         * modules/unicase/u32-is-cased-tests: Likewise.
33333         * modules/unicase/u32-is-casefolded-tests: Likewise.
33334         * modules/unicase/u32-is-lowercase-tests: Likewise.
33335         * modules/unicase/u32-is-titlecase-tests: Likewise.
33336         * modules/unicase/u32-is-uppercase-tests: Likewise.
33337         * modules/unicase/u32-tolower-tests: Likewise.
33338         * modules/unicase/u32-totitle-tests: Likewise.
33339         * modules/unicase/u32-toupper-tests: Likewise.
33340         * modules/unicase/ulc-casecmp-tests: Likewise.
33341         * modules/unicase/ulc-casecoll-tests: Likewise.
33342         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
33343         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
33344         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
33345         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
33346         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
33347         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
33348         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
33349         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
33350         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
33351         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
33352         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
33353         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
33354         * modules/unictype/bidicategory-byname-tests: Likewise.
33355         * modules/unictype/bidicategory-name-tests: Likewise.
33356         * modules/unictype/bidicategory-of-tests: Likewise.
33357         * modules/unictype/bidicategory-test-tests: Likewise.
33358         * modules/unictype/block-list-tests: Likewise.
33359         * modules/unictype/block-of-tests: Likewise.
33360         * modules/unictype/block-test-tests: Likewise.
33361         * modules/unictype/category-C-tests: Likewise.
33362         * modules/unictype/category-Cc-tests: Likewise.
33363         * modules/unictype/category-Cf-tests: Likewise.
33364         * modules/unictype/category-Cn-tests: Likewise.
33365         * modules/unictype/category-Co-tests: Likewise.
33366         * modules/unictype/category-Cs-tests: Likewise.
33367         * modules/unictype/category-L-tests: Likewise.
33368         * modules/unictype/category-Ll-tests: Likewise.
33369         * modules/unictype/category-Lm-tests: Likewise.
33370         * modules/unictype/category-Lo-tests: Likewise.
33371         * modules/unictype/category-Lt-tests: Likewise.
33372         * modules/unictype/category-Lu-tests: Likewise.
33373         * modules/unictype/category-M-tests: Likewise.
33374         * modules/unictype/category-Mc-tests: Likewise.
33375         * modules/unictype/category-Me-tests: Likewise.
33376         * modules/unictype/category-Mn-tests: Likewise.
33377         * modules/unictype/category-N-tests: Likewise.
33378         * modules/unictype/category-Nd-tests: Likewise.
33379         * modules/unictype/category-Nl-tests: Likewise.
33380         * modules/unictype/category-No-tests: Likewise.
33381         * modules/unictype/category-P-tests: Likewise.
33382         * modules/unictype/category-Pc-tests: Likewise.
33383         * modules/unictype/category-Pd-tests: Likewise.
33384         * modules/unictype/category-Pe-tests: Likewise.
33385         * modules/unictype/category-Pf-tests: Likewise.
33386         * modules/unictype/category-Pi-tests: Likewise.
33387         * modules/unictype/category-Po-tests: Likewise.
33388         * modules/unictype/category-Ps-tests: Likewise.
33389         * modules/unictype/category-S-tests: Likewise.
33390         * modules/unictype/category-Sc-tests: Likewise.
33391         * modules/unictype/category-Sk-tests: Likewise.
33392         * modules/unictype/category-Sm-tests: Likewise.
33393         * modules/unictype/category-So-tests: Likewise.
33394         * modules/unictype/category-Z-tests: Likewise.
33395         * modules/unictype/category-Zl-tests: Likewise.
33396         * modules/unictype/category-Zp-tests: Likewise.
33397         * modules/unictype/category-Zs-tests: Likewise.
33398         * modules/unictype/category-and-not-tests: Likewise.
33399         * modules/unictype/category-and-tests: Likewise.
33400         * modules/unictype/category-byname-tests: Likewise.
33401         * modules/unictype/category-name-tests: Likewise.
33402         * modules/unictype/category-none-tests: Likewise.
33403         * modules/unictype/category-of-tests: Likewise.
33404         * modules/unictype/category-or-tests: Likewise.
33405         * modules/unictype/category-test-withtable-tests: Likewise.
33406         * modules/unictype/combining-class-tests: Likewise.
33407         * modules/unictype/ctype-alnum-tests: Likewise.
33408         * modules/unictype/ctype-alpha-tests: Likewise.
33409         * modules/unictype/ctype-blank-tests: Likewise.
33410         * modules/unictype/ctype-cntrl-tests: Likewise.
33411         * modules/unictype/ctype-digit-tests: Likewise.
33412         * modules/unictype/ctype-graph-tests: Likewise.
33413         * modules/unictype/ctype-lower-tests: Likewise.
33414         * modules/unictype/ctype-print-tests: Likewise.
33415         * modules/unictype/ctype-punct-tests: Likewise.
33416         * modules/unictype/ctype-space-tests: Likewise.
33417         * modules/unictype/ctype-upper-tests: Likewise.
33418         * modules/unictype/ctype-xdigit-tests: Likewise.
33419         * modules/unictype/decimal-digit-tests: Likewise.
33420         * modules/unictype/digit-tests: Likewise.
33421         * modules/unictype/mirror-tests: Likewise.
33422         * modules/unictype/numeric-tests: Likewise.
33423         * modules/unictype/property-alphabetic-tests: Likewise.
33424         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
33425         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
33426         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
33427         * modules/unictype/property-bidi-block-separator-tests: Likewise.
33428         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
33429         * modules/unictype/property-bidi-common-separator-tests: Likewise.
33430         * modules/unictype/property-bidi-control-tests: Likewise.
33431         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
33432         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
33433         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
33434         * modules/unictype/property-bidi-european-digit-tests: Likewise.
33435         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
33436         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
33437         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
33438         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
33439         * modules/unictype/property-bidi-pdf-tests: Likewise.
33440         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
33441         * modules/unictype/property-bidi-whitespace-tests: Likewise.
33442         * modules/unictype/property-byname-tests: Likewise.
33443         * modules/unictype/property-combining-tests: Likewise.
33444         * modules/unictype/property-composite-tests: Likewise.
33445         * modules/unictype/property-currency-symbol-tests: Likewise.
33446         * modules/unictype/property-dash-tests: Likewise.
33447         * modules/unictype/property-decimal-digit-tests: Likewise.
33448         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
33449         * modules/unictype/property-deprecated-tests: Likewise.
33450         * modules/unictype/property-diacritic-tests: Likewise.
33451         * modules/unictype/property-extender-tests: Likewise.
33452         * modules/unictype/property-format-control-tests: Likewise.
33453         * modules/unictype/property-grapheme-base-tests: Likewise.
33454         * modules/unictype/property-grapheme-extend-tests: Likewise.
33455         * modules/unictype/property-grapheme-link-tests: Likewise.
33456         * modules/unictype/property-hex-digit-tests: Likewise.
33457         * modules/unictype/property-hyphen-tests: Likewise.
33458         * modules/unictype/property-id-continue-tests: Likewise.
33459         * modules/unictype/property-id-start-tests: Likewise.
33460         * modules/unictype/property-ideographic-tests: Likewise.
33461         * modules/unictype/property-ids-binary-operator-tests: Likewise.
33462         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
33463         * modules/unictype/property-ignorable-control-tests: Likewise.
33464         * modules/unictype/property-iso-control-tests: Likewise.
33465         * modules/unictype/property-join-control-tests: Likewise.
33466         * modules/unictype/property-left-of-pair-tests: Likewise.
33467         * modules/unictype/property-line-separator-tests: Likewise.
33468         * modules/unictype/property-logical-order-exception-tests: Likewise.
33469         * modules/unictype/property-lowercase-tests: Likewise.
33470         * modules/unictype/property-math-tests: Likewise.
33471         * modules/unictype/property-non-break-tests: Likewise.
33472         * modules/unictype/property-not-a-character-tests: Likewise.
33473         * modules/unictype/property-numeric-tests: Likewise.
33474         * modules/unictype/property-other-alphabetic-tests: Likewise.
33475         * modules/unictype/property-other-default-ignorable-code-point-tests:
33476         Likewise.
33477         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
33478         * modules/unictype/property-other-id-continue-tests: Likewise.
33479         * modules/unictype/property-other-id-start-tests: Likewise.
33480         * modules/unictype/property-other-lowercase-tests: Likewise.
33481         * modules/unictype/property-other-math-tests: Likewise.
33482         * modules/unictype/property-other-uppercase-tests: Likewise.
33483         * modules/unictype/property-paired-punctuation-tests: Likewise.
33484         * modules/unictype/property-paragraph-separator-tests: Likewise.
33485         * modules/unictype/property-pattern-syntax-tests: Likewise.
33486         * modules/unictype/property-pattern-white-space-tests: Likewise.
33487         * modules/unictype/property-private-use-tests: Likewise.
33488         * modules/unictype/property-punctuation-tests: Likewise.
33489         * modules/unictype/property-quotation-mark-tests: Likewise.
33490         * modules/unictype/property-radical-tests: Likewise.
33491         * modules/unictype/property-sentence-terminal-tests: Likewise.
33492         * modules/unictype/property-soft-dotted-tests: Likewise.
33493         * modules/unictype/property-space-tests: Likewise.
33494         * modules/unictype/property-terminal-punctuation-tests: Likewise.
33495         * modules/unictype/property-test-tests: Likewise.
33496         * modules/unictype/property-titlecase-tests: Likewise.
33497         * modules/unictype/property-unassigned-code-value-tests: Likewise.
33498         * modules/unictype/property-unified-ideograph-tests: Likewise.
33499         * modules/unictype/property-uppercase-tests: Likewise.
33500         * modules/unictype/property-variation-selector-tests: Likewise.
33501         * modules/unictype/property-white-space-tests: Likewise.
33502         * modules/unictype/property-xid-continue-tests: Likewise.
33503         * modules/unictype/property-xid-start-tests: Likewise.
33504         * modules/unictype/property-zero-width-tests: Likewise.
33505         * modules/unictype/scripts-tests: Likewise.
33506         * modules/unictype/syntax-c-ident-tests: Likewise.
33507         * modules/unictype/syntax-c-whitespace-tests: Likewise.
33508         * modules/unictype/syntax-java-ident-tests: Likewise.
33509         * modules/unictype/syntax-java-whitespace-tests: Likewise.
33510         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
33511         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
33512         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
33513         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
33514         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
33515         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
33516         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
33517         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
33518         * modules/uniname/uniname-tests: Likewise.
33519         * modules/uninorm/canonical-decomposition-tests: Likewise.
33520         * modules/uninorm/compat-decomposition-tests: Likewise.
33521         * modules/uninorm/composition-tests: Likewise.
33522         * modules/uninorm/decomposing-form-tests: Likewise.
33523         * modules/uninorm/decomposition-tests: Likewise.
33524         * modules/uninorm/filter-tests: Likewise.
33525         * modules/uninorm/nfc-tests: Likewise.
33526         * modules/uninorm/nfd-tests: Likewise.
33527         * modules/uninorm/nfkc-tests: Likewise.
33528         * modules/uninorm/nfkd-tests: Likewise.
33529         * modules/uninorm/u8-normcmp-tests: Likewise.
33530         * modules/uninorm/u8-normcoll-tests: Likewise.
33531         * modules/uninorm/u16-normcmp-tests: Likewise.
33532         * modules/uninorm/u16-normcoll-tests: Likewise.
33533         * modules/uninorm/u32-normcmp-tests: Likewise.
33534         * modules/uninorm/u32-normcoll-tests: Likewise.
33535         * modules/unistdio/u8-asnprintf-tests: Likewise.
33536         * modules/unistdio/u8-vasnprintf-tests: Likewise.
33537         * modules/unistdio/u8-vasprintf-tests: Likewise.
33538         * modules/unistdio/u8-vsnprintf-tests: Likewise.
33539         * modules/unistdio/u8-vsprintf-tests: Likewise.
33540         * modules/unistdio/u16-asnprintf-tests: Likewise.
33541         * modules/unistdio/u16-vasnprintf-tests: Likewise.
33542         * modules/unistdio/u16-vasprintf-tests: Likewise.
33543         * modules/unistdio/u16-vsnprintf-tests: Likewise.
33544         * modules/unistdio/u16-vsprintf-tests: Likewise.
33545         * modules/unistdio/u32-asnprintf-tests: Likewise.
33546         * modules/unistdio/u32-vasnprintf-tests: Likewise.
33547         * modules/unistdio/u32-vasprintf-tests: Likewise.
33548         * modules/unistdio/u32-vsnprintf-tests: Likewise.
33549         * modules/unistdio/u32-vsprintf-tests: Likewise.
33550         * modules/unistdio/ulc-asnprintf-tests: Likewise.
33551         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
33552         * modules/unistdio/ulc-vasprintf-tests: Likewise.
33553         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
33554         * modules/unistdio/ulc-vsprintf-tests: Likewise.
33555         * modules/unistr/u8-check-tests: Likewise.
33556         * modules/unistr/u8-chr-tests: Likewise.
33557         * modules/unistr/u8-cmp-tests: Likewise.
33558         * modules/unistr/u8-cmp2-tests: Likewise.
33559         * modules/unistr/u8-cpy-alloc-tests: Likewise.
33560         * modules/unistr/u8-cpy-tests: Likewise.
33561         * modules/unistr/u8-mblen-tests: Likewise.
33562         * modules/unistr/u8-mbsnlen-tests: Likewise.
33563         * modules/unistr/u8-mbtouc-tests: Likewise.
33564         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
33565         * modules/unistr/u8-mbtoucr-tests: Likewise.
33566         * modules/unistr/u8-move-tests: Likewise.
33567         * modules/unistr/u8-next-tests: Likewise.
33568         * modules/unistr/u8-prev-tests: Likewise.
33569         * modules/unistr/u8-set-tests: Likewise.
33570         * modules/unistr/u8-stpcpy-tests: Likewise.
33571         * modules/unistr/u8-stpncpy-tests: Likewise.
33572         * modules/unistr/u8-strcat-tests: Likewise.
33573         * modules/unistr/u8-strcmp-tests: Likewise.
33574         * modules/unistr/u8-strcoll-tests: Likewise.
33575         * modules/unistr/u8-strcpy-tests: Likewise.
33576         * modules/unistr/u8-strdup-tests: Likewise.
33577         * modules/unistr/u8-strlen-tests: Likewise.
33578         * modules/unistr/u8-strmblen-tests: Likewise.
33579         * modules/unistr/u8-strmbtouc-tests: Likewise.
33580         * modules/unistr/u8-strncat-tests: Likewise.
33581         * modules/unistr/u8-strncmp-tests: Likewise.
33582         * modules/unistr/u8-strncpy-tests: Likewise.
33583         * modules/unistr/u8-strnlen-tests: Likewise.
33584         * modules/unistr/u8-to-u16-tests: Likewise.
33585         * modules/unistr/u8-to-u32-tests: Likewise.
33586         * modules/unistr/u8-uctomb-tests: Likewise.
33587         * modules/unistr/u16-check-tests: Likewise.
33588         * modules/unistr/u16-chr-tests: Likewise.
33589         * modules/unistr/u16-cmp-tests: Likewise.
33590         * modules/unistr/u16-cmp2-tests: Likewise.
33591         * modules/unistr/u16-cpy-alloc-tests: Likewise.
33592         * modules/unistr/u16-cpy-tests: Likewise.
33593         * modules/unistr/u16-mblen-tests: Likewise.
33594         * modules/unistr/u16-mbsnlen-tests: Likewise.
33595         * modules/unistr/u16-mbtouc-tests: Likewise.
33596         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
33597         * modules/unistr/u16-mbtoucr-tests: Likewise.
33598         * modules/unistr/u16-move-tests: Likewise.
33599         * modules/unistr/u16-next-tests: Likewise.
33600         * modules/unistr/u16-prev-tests: Likewise.
33601         * modules/unistr/u16-set-tests: Likewise.
33602         * modules/unistr/u16-stpcpy-tests: Likewise.
33603         * modules/unistr/u16-stpncpy-tests: Likewise.
33604         * modules/unistr/u16-strcat-tests: Likewise.
33605         * modules/unistr/u16-strcmp-tests: Likewise.
33606         * modules/unistr/u16-strcoll-tests: Likewise.
33607         * modules/unistr/u16-strcpy-tests: Likewise.
33608         * modules/unistr/u16-strdup-tests: Likewise.
33609         * modules/unistr/u16-strlen-tests: Likewise.
33610         * modules/unistr/u16-strmblen-tests: Likewise.
33611         * modules/unistr/u16-strmbtouc-tests: Likewise.
33612         * modules/unistr/u16-strncat-tests: Likewise.
33613         * modules/unistr/u16-strncmp-tests: Likewise.
33614         * modules/unistr/u16-strncpy-tests: Likewise.
33615         * modules/unistr/u16-strnlen-tests: Likewise.
33616         * modules/unistr/u16-to-u32-tests: Likewise.
33617         * modules/unistr/u16-to-u8-tests: Likewise.
33618         * modules/unistr/u16-uctomb-tests: Likewise.
33619         * modules/unistr/u32-check-tests: Likewise.
33620         * modules/unistr/u32-chr-tests: Likewise.
33621         * modules/unistr/u32-cmp-tests: Likewise.
33622         * modules/unistr/u32-cmp2-tests: Likewise.
33623         * modules/unistr/u32-cpy-alloc-tests: Likewise.
33624         * modules/unistr/u32-cpy-tests: Likewise.
33625         * modules/unistr/u32-mblen-tests: Likewise.
33626         * modules/unistr/u32-mbsnlen-tests: Likewise.
33627         * modules/unistr/u32-mbtouc-tests: Likewise.
33628         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
33629         * modules/unistr/u32-mbtoucr-tests: Likewise.
33630         * modules/unistr/u32-move-tests: Likewise.
33631         * modules/unistr/u32-next-tests: Likewise.
33632         * modules/unistr/u32-prev-tests: Likewise.
33633         * modules/unistr/u32-set-tests: Likewise.
33634         * modules/unistr/u32-stpcpy-tests: Likewise.
33635         * modules/unistr/u32-stpncpy-tests: Likewise.
33636         * modules/unistr/u32-strcat-tests: Likewise.
33637         * modules/unistr/u32-strcmp-tests: Likewise.
33638         * modules/unistr/u32-strcoll-tests: Likewise.
33639         * modules/unistr/u32-strcpy-tests: Likewise.
33640         * modules/unistr/u32-strdup-tests: Likewise.
33641         * modules/unistr/u32-strlen-tests: Likewise.
33642         * modules/unistr/u32-strmblen-tests: Likewise.
33643         * modules/unistr/u32-strmbtouc-tests: Likewise.
33644         * modules/unistr/u32-strncat-tests: Likewise.
33645         * modules/unistr/u32-strncmp-tests: Likewise.
33646         * modules/unistr/u32-strncpy-tests: Likewise.
33647         * modules/unistr/u32-strnlen-tests: Likewise.
33648         * modules/unistr/u32-to-u16-tests: Likewise.
33649         * modules/unistr/u32-to-u8-tests: Likewise.
33650         * modules/unistr/u32-uctomb-tests: Likewise.
33651         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
33652         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
33653         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
33654         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
33655         * modules/uniwidth/u8-strwidth-tests: Likewise.
33656         * modules/uniwidth/u8-width-tests: Likewise.
33657         * modules/uniwidth/u16-strwidth-tests: Likewise.
33658         * modules/uniwidth/u16-width-tests: Likewise.
33659         * modules/uniwidth/u32-strwidth-tests: Likewise.
33660         * modules/uniwidth/u32-width-tests: Likewise.
33661         * modules/uniwidth/width-tests: Likewise.
33662
33663 2010-05-18  Richard Jones  <rjones@redhat.com>
33664
33665         doc: users.txt: list hivex
33666         * users.txt: Add hivex.
33667
33668 2010-05-18  Richard Jones  <rjones@redhat.com>
33669
33670         doc: users.txt: list febootstrap
33671         * users.txt: Add febootstrap.
33672
33673 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
33674
33675         bootstrap: fix an error when gnulib is not used as a git submodule
33676         * build-aux/bootstrap (gnulib_path): If its length is zero then
33677         assign "gnulib" to it.
33678         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
33679
33680 2010-05-16  Bruno Haible  <bruno@clisp.org>
33681
33682         Avoid autoconf warnings about AM_ICONV.
33683         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
33684         2.64.
33685
33686 2010-05-16  Bruno Haible  <bruno@clisp.org>
33687
33688         absolute-header: Make the macro usable in more situations.
33689         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
33690         from gl_ABSOLUTE_HEADER.
33691         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
33692
33693 2010-05-16  James Youngman  <jay@gnu.org>
33694
33695         doc: update users.txt
33696         * users.txt: Add CSSC.
33697
33698 2010-05-16  Jim Meyering  <meyering@redhat.com>
33699
33700         init.sh: fix an error in the previous change; add more comments
33701         * tests/init.sh: Compare exit code in loop against 9, not 2.
33702         Patch by Bruno Haible.
33703         Make the two tests more similar by adding an empty "then" clause.
33704         Add comments.
33705
33706         init.sh: avoid unnecessary shell re-exec
33707         * tests/init.sh: Improve the re-exec-required check to first test the
33708         current shell.  If it passes the test, do not search for a shell that
33709         does pass, and do not re-exec.  This test is particularly contorted to
33710         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
33711         of $(...) evokes a syntax error and causes immediate shell exit with
33712         status 2.  Bruno Haible reported that the re-exec made it impossible
33713         to single-step through any init.sh-using script.
33714
33715 2010-05-16  Bruno Haible  <bruno@clisp.org>
33716
33717         Fix collision between gnulib's and libintl's printf replacements.
33718         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
33719         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
33720         (printf): When using GNU C, map the __printf__ function to rpl_printf
33721         via __asm__. When not using GNU C, define rpl_printf instead of
33722         __printf__.
33723         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
33724         commit.
33725         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
33726         commit.
33727         * m4/asm-underscore.m4: New file.
33728         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
33729         * modules/stdio (Files): Add m4/asm-underscore.m4.
33730         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
33731         Reported by Ben Pfaff.
33732
33733 2010-05-16  Bruno Haible  <bruno@clisp.org>
33734
33735         verify: Avoid skipping the test on openSUSE 11.0.
33736         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
33737
33738 2010-05-13  Bruno Haible  <bruno@clisp.org>
33739
33740         Avoid useless warnings from G++.
33741         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
33742         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
33743         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33744
33745 2010-05-11  Jim Meyering  <meyering@redhat.com>
33746
33747         maint.mk: tweak preceding change
33748         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
33749         regexps tighter by anchoring at EOL, and make the new group "shy"
33750         for slightly decreased overhead.
33751
33752 2010-05-11  Eric Blake  <eblake@redhat.com>
33753
33754         maint.mk: gnulib doesn't guarantee NSIG
33755         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
33756
33757 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
33758
33759         test-pwrite.c: Remove unused variable declaration.
33760         * tests/test-pwrite.c (main): Remove read_buf declaration.
33761
33762         Remove useless test-pwrite.sh file.
33763         * tests/test-pwrite.sh: Delete file.
33764         * modules/pwrite-tests: Remove references.
33765         Reported by Bruno Haible.
33766
33767 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
33768
33769         init.sh: fix a typo
33770         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
33771
33772 2010-05-10  Jim Meyering  <meyering@redhat.com>
33773
33774         maint.mk: avoid using a temporary file in the always-defined-macros check
33775         * top/maint.mk (.re-defmac): Remove rule.
33776         (gl_trap_): Remove definition.
33777         (sc_prohibit_always-defined_macros): Rewrite not to create and
33778         depend on a temporary file.  Instead, depend on GNU grep's ability
33779         to read a list of regular expressions from stdin when given "-f -".
33780
33781 2010-05-09  Bruno Haible  <bruno@clisp.org>
33782
33783         Update to GNU gettext 0.18, part 1.
33784         * m4/gettext.m4: Update to GNU gettext 0.18.
33785         * m4/intl.m4: Likewise.
33786         * m4/po.m4: Likewise.
33787         * modules/gettext (Files): Add m4/fcntl-o.m4.
33788         (configure.ac): Require gettext infrastructure from version 0.18.
33789
33790 2010-05-09  Jim Meyering  <meyering@redhat.com>
33791
33792         init.sh: enable MALLOC_PERTURB_
33793         * tests/init.sh: Enable glibc's malloc-perturbing option.
33794
33795         maint.mk: improve sc_cross_check_PATH_usage_in_tests
33796         With my recent change in init.sh from the two-line form:
33797             -#   : ${srcdir=.}
33798             -#   . "$srcdir/init.sh"; path_prepend_ .
33799             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
33800         I noticed that using the one-line form would cause this test
33801         to fail with a false-positive, or to stop working altogether,
33802         depending on whether help-version changed or all the tests did.
33803         * top/maint.mk (_hv_regex): Remove this definition.
33804         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
33805         (_hv_regex_strong): Use a stronger regex to check for conformance.
33806         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
33807         Give a separate diagnostic for lack of conforming use.
33808
33809         maint.mk: prohibit definition of symbols defined by gnulib
33810         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
33811         definition of symbols defined by gnulib.
33812
33813 2010-05-09  Bruno Haible  <bruno@clisp.org>
33814
33815         acl: Avoid test failure on Cygwin-hosted mingw.
33816         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
33817
33818 2010-05-09  Bruno Haible  <bruno@clisp.org>
33819
33820         error: Use system's fcntl function.
33821         * lib/error.c (fcntl): Undefine.
33822
33823 2010-05-09  Jim Meyering  <meyering@redhat.com>
33824
33825         verify: adjust formatting to be more consistent
33826         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
33827         argument-list '('s, and after one comma.
33828
33829 2010-05-09  Bruno Haible  <bruno@clisp.org>
33830
33831         error: More reliable output on mingw.
33832         * lib/error.c: Include <windows.h>.
33833         (is_open): New function.
33834         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
33835         defined.
33836
33837 2010-05-09  Bruno Haible  <bruno@clisp.org>
33838
33839         vasnprintf: Fix syntax errors in libintl build on mingw.
33840         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
33841         pad_ourselves and prec_ourselves after use.
33842
33843 2010-05-08  Bruno Haible  <bruno@clisp.org>
33844
33845         * lib/config.charset: Update comments for Cygwin 1.7.
33846         * lib/localcharset.c: Likewise.
33847
33848 2010-05-07  Jim Meyering  <meyering@redhat.com>
33849
33850         init.sh: improve comments
33851         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
33852         . "${srcdir=.}/init.sh"; path_prepend_ .
33853         Add a note about path_prepend_ and the alternative of using
33854         TESTS_ENVIRONMENT.
33855
33856 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
33857
33858         exclude: Unescape hashed patterns in wildcard mode.
33859         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
33860         to the hash list.
33861         * tests/test-exclude8.sh: New test case.
33862         * modules/exclude-tests: Add new test.
33863
33864 2010-05-05  Eric Blake  <eblake@redhat.com>
33865
33866         verify: automate tests
33867         * modules/verify-tests: New module.
33868         * tests/test-verify.sh: New file.
33869         * tests/test-verify.c: Guard each negative test with a unique id.
33870         Also avoid warning about unused left hand of comma expressions.
33871
33872 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
33873
33874         Further improvements to verify.h, suggested by Eric Blake.
33875         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
33876         the GL_* versions, to avoid collision with OpenGL.
33877         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
33878         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
33879         than testing merely whether it's defined.
33880
33881         Modify verify.h to pacify gcc -Wredundant_decls.
33882         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
33883         These use the prefix "GL_" since they're likely to be useful elsewhere.
33884         We may need to break them out into a different .h file.
33885         (__COUNTER__): Define to 0 if the compiler doesn't support it.
33886         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
33887         of verify_function__.
33888
33889 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
33890
33891         Tests for module pwrite.
33892         * modules/pwrite-tests: New file.
33893         * tests/test-pwrite.sh: New file.
33894         * tests/test-pwrite.c: New file.
33895
33896         New module pwrite.
33897         * lib/unistd.in.h (pwrite): New declaration.
33898         * lib/pwrite.c: New file, from glibc with modifications.
33899         * m4/pwrite.m4: New file.
33900         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
33901         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
33902         REPLACE_PWRITE.
33903         * modules/pwrite: New file.
33904         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
33905         REPLACE_PWRITE.
33906         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
33907         * doc/posix-functions/pwrite.texi: Mention the new module.
33908
33909 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
33910
33911         pread: Update documentation.
33912         * doc/posix-functions/pread.texi: Mention the 'pread' module.
33913
33914 2010-05-04  Eric Blake  <eblake@redhat.com>
33915
33916         docs: update cygwin progress
33917         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
33918         this bug.
33919         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
33920         Added in cygwin 1.7.2.
33921         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
33922         Likewise.
33923         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
33924         Likewise.
33925         * doc/glibc-functions/dup3.texi (dup3): Likewise.
33926         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
33927         * doc/glibc-functions/accept4.texi (accept4): Likewise.
33928         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
33929         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
33930         Mention nproc module.
33931         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
33932         bug in cygwin 1.7.5 addition.
33933         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
33934         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
33935         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
33936         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
33937         1.7.5.
33938         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
33939         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
33940         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
33941         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
33942         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
33943         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
33944         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
33945         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
33946         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
33947         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
33948         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
33949         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
33950         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
33951         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
33952         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
33953         Likewise.
33954         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
33955         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
33956         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
33957         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
33958         Likewise.
33959         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
33960         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
33961         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
33962         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
33963         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
33964         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
33965         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
33966         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
33967         Likewise.
33968         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
33969         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
33970         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
33971         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
33972         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
33973         Likewise.
33974         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
33975         Likewise.
33976         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
33977         Likewise.
33978         * doc/glibc-functions/xdrrec_endofrecord.texi
33979         (xdrrec_endofrecord): Likewise.
33980         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
33981         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
33982         Likewise.
33983         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
33984         Likewise.
33985
33986 2010-05-04  Jim Meyering  <meyering@redhat.com>
33987
33988         gendocs.sh: make its "-s FILE" option more useful
33989         * build-aux/gendocs.sh: When honoring the -s FILE option, update
33990         $PACKAGE to reflect the probably-different basename of "FILE".
33991
33992 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
33993
33994         bootstrap: don't ignore download_po_files failure
33995         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
33996         failure.
33997
33998 2010-05-03  Jim Meyering  <meyering@redhat.com>
33999
34000         maint.mk: allow to pass options to gendocs.sh
34001         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
34002         (gendocs_options_): New overridable variable.
34003
34004         gnu-web-doc-update: don't ignore configure or build failure
34005         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
34006
34007         announce-gen: backslash-escape '@'s in --help output
34008         * build-aux/announce-gen: Fix syntax errors.
34009
34010         maint.mk, announce-gen: allow project-specific announcement mail headers
34011         * top/maint.mk (translation_project_): Define default.
34012         (announcement_Cc_, announcement_mail_headers_): Likewise.
34013         (announcement): Invoke announce-gen with new --mail-headers option.
34014         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
34015
34016         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
34017         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
34018         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
34019         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
34020         line in the "err2" output file when running "make check" in verbose
34021         mode (i.e., with set -x enabled).
34022
34023 2010-05-03  Bruno Haible  <bruno@clisp.org>
34024
34025         wctob: Fix for weird platforms.
34026         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
34027         argument value.
34028
34029 2010-05-03  Jim Meyering  <meyering@redhat.com>
34030
34031         maint.mk: prohibit unwarranted use of <strings.h>
34032         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
34033         strings.h in a file that does not also use strcasecmp, strncasecmp,
34034         ffs or ffsll.
34035
34036         maint.mk: remove obsolete comments
34037         * top/maint.mk: Remove stale, commented-out rules.
34038
34039 2010-05-02  Bruno Haible  <bruno@clisp.org>
34040
34041         wcwidth: Declare also when it's aliased.
34042         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
34043         macro.
34044
34045 2010-05-02  Bruno Haible  <bruno@clisp.org>
34046
34047         Fix regression from 2010-04-25.
34048         * gnulib-tool (func_modules_transitive_closure): Check the status of
34049         all modules, not only of the tests that are of the form foo-tests where
34050         foo is a module.
34051
34052 2010-05-02  Bruno Haible  <bruno@clisp.org>
34053
34054         wctob: Work around nasty Cygwin 1.7.2 bug.
34055         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
34056         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
34057
34058 2010-05-01  Bruno Haible  <bruno@clisp.org>
34059
34060         fpurge: Sharper test.
34061         * tests/test-fpurge.c (main): Add one more ftell check.
34062         * modules/fpurge-tests (Depends-on): Add ftell.
34063         Suggested by Eric Blake.
34064
34065 2010-05-01  Bruno Haible  <bruno@clisp.org>
34066
34067         ftello: Another test.
34068         * tests/test-ftello3.c: New file.
34069         * modules/ftello-tests (Files): Add it.
34070         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
34071         MOSTLYCLEANFILES.
34072
34073         ftell: Another test.
34074         * tests/test-ftell3.c: New file.
34075         * modules/ftell-tests (Files): Add it.
34076         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
34077         MOSTLYCLEANFILES.
34078
34079 2010-05-01  Bruno Haible  <bruno@clisp.org>
34080
34081         ftell, ftello: Work around Solaris bug.
34082         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
34083         * lib/ftello.c: Include stdio-impl.h.
34084         (ftello): On Solaris, when _IOWRT is set, compute the result without
34085         looking at _IOREAD.
34086         * modules/ftello (Files): Add lib/stdio-impl.h.
34087         * doc/posix-functions/ftell.texi: Mention Solaris bug.
34088         * doc/posix-functions/ftello.texi: Likewise.
34089         Reported by Eric Blake.
34090
34091 2010-05-01  Bruno Haible  <bruno@clisp.org>
34092
34093         freading: Adapt to special meaning of _IOREAD flag on Solaris.
34094         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
34095         the _IOWRT flag is also set.
34096
34097 2010-05-01  Bruno Haible  <bruno@clisp.org>
34098
34099         Fix doc about a HP-UX stdio bug.
34100         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
34101         * doc/posix-functions/ftello.texi: Likewise.
34102
34103 2010-05-01  Bruno Haible  <bruno@clisp.org>
34104
34105         lseek test: Fix failure on Solaris.
34106         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
34107         output.
34108
34109 2010-04-30  Jim Meyering  <meyering@redhat.com>
34110
34111         bootstrap: don't ignore failure to generate po*/Makevars
34112         * build-aux/bootstrap (with_gettext): Don't ignore failure
34113         to create po/Makevars or runtime-po/Makevars.
34114
34115 2010-04-29  Eric Blake  <eblake@redhat.com>
34116
34117         headers: relax license to LGPLv2+
34118         * modules/fcntl-h (License): Relax license.
34119         * modules/getopt-posix (License): Likewise.
34120         * modules/locale (License): Likewise.
34121         * modules/math (License): Likewise.
34122         * modules/pty (License): Likewise.
34123         * modules/sched (License): Likewise.
34124         * modules/search (License): Likewise.
34125         * modules/spawn (License): Likewise.
34126         * modules/stdarg (License): Likewise.
34127         * modules/sysexits (License): Likewise.
34128
34129 2010-04-29  Jim Meyering  <meyering@redhat.com>
34130
34131         inttypes: relax license to LGPLv2+
34132         * modules/inttypes (License): Relax license.
34133
34134 2010-04-29  Simon Josefsson  <simon@josefsson.org>
34135
34136         * top/maint.mk (indent): Run twice to produce idempotent results.
34137
34138 2010-04-28  Bruno Haible  <bruno@clisp.org>
34139
34140         getdate: Generate getdate.c in the source directory.
34141         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
34142         MOSTLYCLEANFILES.
34143         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
34144
34145 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
34146
34147         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
34148         is not declared as a const *; avoid warnings in that case.
34149
34150 2010-04-28  Eric Blake  <eblake@redhat.com>
34151
34152         canonicalize-lgpl: avoid compiler warning
34153         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
34154         declaration' / 'extraneous semicolon' warning with some compilers.
34155         Reported by Andreas Gruenbacher.
34156
34157 2010-04-28  Jim Meyering  <meyering@redhat.com>
34158
34159         init.sh: ensure a more reliable exit status when exiting via trap
34160         * tests/init.sh (setup_): Don't rely on $? in signal handler.
34161         Inspired by patches from Dmitry V. Levin.
34162         Also trap on signal 3 (SIGQUIT).
34163
34164 2010-04-27  Bruno Haible  <bruno@clisp.org>
34165
34166         Update doc about utimes().
34167         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
34168         'utimens' module.
34169         Reported by Andreas Gruenbacher <agruen@suse.de>.
34170
34171 2010-04-27  Eric Blake  <eblake@redhat.com>
34172
34173         full-read, full-write: relax license
34174         * modules/full-read (License): Drop to LGPLv2+.
34175         * modules/full-write (License): Likewise.
34176         * modules/safe-read (License): Likewise.
34177         * modules/safe-write (License): Likewise.
34178
34179         pthread: mention library for linking
34180         * modules/pthread (Link): Mention $(LIB_PTHREAD).
34181
34182 2010-04-27  Jim Meyering  <meyering@redhat.com>
34183
34184         maint.mk: fix a bug introduced in last change
34185         * top/maint.mk (gl_assured_headers_): Now that all names are on
34186         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
34187         is not anchored to end of word, it should be adequate.
34188
34189         maint.mk: avoid side-effect in latest syntax-check
34190         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
34191         to run commands via $(shell...), and hence to incur cost only when
34192         the new rule is actually run.
34193
34194         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
34195         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
34196         and use that to create a regexp used to detect all #if HAVE_..._H uses.
34197         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
34198         (gl_assured_headers_, az_, AZ_): Define.
34199         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
34200
34201 2010-04-26  Jim Meyering  <jim@meyering.net>
34202             Bruno Haible  <bruno@clisp.org>
34203
34204         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
34205         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
34206         Prompted by an exchange with Gilles Espinasse.
34207
34208 2010-04-26  Jim Meyering  <meyering@redhat.com>
34209
34210         git-version-gen: aesthetic tweak
34211         * build-aux/git-version-gen: Use "$nl" rather than a literal,
34212         so that the command remains on a single line.
34213
34214 2010-04-26  Eric Blake  <eblake@redhat.com>
34215
34216         git-version-gen: allow use on EBCDIC hosts
34217         * build-aux/git-version-gen (dirty): Use literal rather than tying
34218         ourselves to ascii.
34219         Reported by Steve Goetze.
34220
34221 2010-04-25  Bruno Haible  <bruno@clisp.org>
34222
34223         netdb: Add support for GNULIB_POSIXCHECK.
34224         * lib/netdb.in.h: Include warn-on-use.h.
34225         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
34226         functions are used when GNULIB_POSIXCHECK is defined and the
34227         getaddrinfo module is not in use.
34228         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
34229         freeaddrinfo, gai_strerror, getnameinfo are declared.
34230         * modules/netdb (Depends-on): Add warn-on-use.
34231         (Makefile.am): Include warn-on-use.h in netdb.h.
34232
34233 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
34234
34235         build: avoid "make check" failure without .git/ directory
34236         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
34237         there is no .git/ directory.
34238
34239 2010-04-25  Bruno Haible  <bruno@clisp.org>
34240
34241         ptsname: Fix misuse of ttyname_r.
34242         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
34243         of errno.
34244
34245 2010-04-25  Bruno Haible  <bruno@clisp.org>
34246
34247         ttyname_r: Make it work on Solaris 10.
34248         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
34249         if the system function has the POSIX declaration. Test whether the
34250         function fails if the buffer is less than 128 bytes large.
34251         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
34252         system's ttyname_r function. Provide a reasonably large buffer.
34253         * modules/ttyname_r (Depends-on): Add extensions.
34254         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
34255
34256 2010-04-25  Bruno Haible  <bruno@clisp.org>
34257
34258         Use the 'extensions' module for some more functions on Solaris.
34259         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
34260         module.
34261         * doc/posix-functions/ctime_r.texi: Likewise.
34262         * doc/posix-functions/getgrgid_r.texi: Likewise.
34263         * doc/posix-functions/getgrnam_r.texi: Likewise.
34264         * doc/posix-functions/getpwnam_r.texi: Likewise.
34265         * doc/posix-functions/getpwuid_r.texi: Likewise.
34266         * doc/posix-functions/readdir_r.texi: Likewise.
34267         * doc/posix-functions/sigwait.texi: Likewise.
34268         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
34269         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
34270
34271 2010-04-25  Bruno Haible  <bruno@clisp.org>
34272
34273         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
34274         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
34275         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
34276         * lib/ttyname_r.c: Include <limits.h>.
34277         (ttyname_r): Define using the system's ttyname_r function, if it exists
34278         and not on Solaris.
34279         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
34280         set.
34281         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
34282         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
34283         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
34284         Reported by Simon Josefsson.
34285
34286 2010-04-25  Bruno Haible  <bruno@clisp.org>
34287
34288         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
34289         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
34290         * doc/posix-functions/ctime_r.texi: Likewise.
34291         * doc/posix-functions/getgrgid_r.texi: Likewise.
34292         * doc/posix-functions/getgrnam_r.texi: Likewise.
34293         * doc/posix-functions/getlogin_r.texi: Likewise.
34294         * doc/posix-functions/getpwnam_r.texi: Likewise.
34295         * doc/posix-functions/getpwuid_r.texi: Likewise.
34296         * doc/posix-functions/readdir_r.texi: Likewise.
34297         * doc/posix-functions/sigwait.texi: Likewise.
34298         * doc/posix-functions/ttyname_r.texi: Likewise.
34299         Reported by Simon Josefsson.
34300
34301 2010-04-25  Bruno Haible  <bruno@clisp.org>
34302
34303         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
34304         * gnulib-tool (func_usage): Document that --with-*-tests options apply
34305         also to --create-testdir.
34306         (func_acceptable): Don't consider the status of *-tests modules here.
34307         (func_modules_transitive_closure): Consider it here, before including a
34308         test module.
34309         (func_import, func_create_testdir): Set inc_all_direct_tests,
34310         inc_all_indirect_tests.
34311         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
34312         --create-testdir and --create-megatestdir.
34313
34314 2010-04-25  Bruno Haible  <bruno@clisp.org>
34315
34316         gnulib-tool: Add --without-*-tests options.
34317         * gnulib-tool (func_usage): Document the --without-*-tests options.
34318         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
34319         excl_unportable_tests): New variables.
34320         Fail if they are specified with --import or --update.
34321         (func_acceptable): Respect the excl_*_tests variables.
34322         (func_import): Set the excl_*_tests variables to empty.
34323
34324 2010-04-25  Simon Josefsson  <simon@josefsson.org>
34325             Bruno Haible  <bruno@clisp.org>
34326
34327         Work around a MacOS X 10.4 bug with openpty.
34328         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
34329         * tests/test-openpty.c (main): Close the master side explicitly.
34330
34331 2010-04-25  Bruno Haible  <bruno@clisp.org>
34332
34333         strnlen: Fix a C++ test error on MacOS X and Solaris.
34334         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
34335         the function is not declared.
34336         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
34337         Simon Josefsson.
34338
34339 2010-04-24  Bruno Haible  <bruno@clisp.org>
34340
34341         Avoid a gcc warning.
34342         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
34343         of correct type for %08lx directive.
34344         Reported by Eric Blake.
34345
34346 2010-04-24  Bruno Haible  <bruno@clisp.org>
34347
34348         vasnprintf: Correct errno value in case of out-of-memory.
34349         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
34350         or sprintf. Use the errno value from SNPRINTF or sprintf.
34351         Reported by Ian Beckwith <ianb@erislabs.net>.
34352
34353 2010-04-24  Bruno Haible  <bruno@clisp.org>
34354
34355         ansi-c++-opt: Find correct compiler when cross-compiling.
34356         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
34357         AC_CHECK_PROGS.
34358         Reported by Simon Josefsson.
34359
34360 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
34361
34362         vc-list-files: Add support for subversion
34363         * build-aux/vc-list-files: Use "svn list" to generate the list of
34364         files controlled by subversion.
34365
34366 2010-04-23  Jim Meyering  <meyering@redhat.com>
34367
34368         vc-list-files tests: convert to use init.sh
34369         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
34370         path_prepend_.
34371         Use Exit, not exit.
34372         Use skip_ rather than open coding it.
34373         Remove trap set-up and compare definitions.
34374         * tests/test-vc-list-files-git.sh: Likewise.
34375         * modules/vc-list-files-tests (Files): Add tests/init.sh.
34376
34377 2010-04-22  Simon Josefsson  <simon@josefsson.org>
34378
34379         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
34380         backup files.
34381
34382 2010-04-21  Simon Josefsson  <simon@josefsson.org>
34383
34384         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
34385
34386 2010-04-20  Eric Blake  <eblake@redhat.com>
34387
34388         tests: be robust to ignored SIGPIPE
34389         * tests/test-select-in.sh: Consume all output.
34390         * tests/test-lseek.sh: Check correct exit status, while avoiding
34391         EPIPE.
34392
34393 2010-04-20  Simon Josefsson  <simon@josefsson.org>
34394             Bruno Haible  <bruno@clisp.org>
34395
34396         visibility: Don't use -fvisibility if it leads to a warning.
34397         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
34398         yes, don't pretend that visibility works if it leads to a warning.
34399         Reported by Mike Gran <spk121@yahoo.com>.
34400
34401 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
34402
34403         * build-aux/bootstrap: Use "git -h" for testing for supported options
34404         instead of "git --help".  The short-form option only shows a summary,
34405         and doesn't layout the full man page.  Grep for the full option name
34406         in the summary, too.
34407
34408 2010-04-19  Bruno Haible  <bruno@clisp.org>
34409
34410         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
34411         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
34412         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
34413         mention of RELOCATABLE_STRIP.
34414         Reported by Sylvain Beucler <beuc@beuc.net>.
34415
34416 2010-04-19  Bruno Haible  <bruno@clisp.org>
34417
34418         * lib/diffseq.h: Fix typo in comment.
34419         Reported by Eric Blake.
34420
34421 2010-04-19  Bruno Haible  <bruno@clisp.org>
34422
34423         ioctl: Move autoconf macro to a .m4 file.
34424         * m4/ioctl.m4: New file, extracted from modules/ioctl.
34425         * modules/ioctl (Files): Add it.
34426         (configure.ac): Simply invoke gl_FUNC_IOCTL.
34427         Reported by Ian Beckwith <ianb@erislabs.net>.
34428
34429 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
34430             Bruno Haible  <bruno@clisp.org>
34431
34432         diffseq: Accommodate use-case with abstract arrays.
34433         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
34434         is not defined.
34435         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
34436         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
34437
34438 2010-04-18  Bruno Haible  <bruno@clisp.org>
34439
34440         * doc/posix-headers/stdbool.texi: More precise wording.
34441
34442 2010-04-17  Jim Meyering  <meyering@redhat.com>
34443
34444         maint.mk: use gnu-style indentation in an embedded perl script
34445         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
34446         Rename variable: s/two/last_two_bytes/
34447
34448 2010-04-16  Eric Blake  <eblake@redhat.com>
34449
34450         test-stdbool: skip test that fails with Solaris CC
34451         * tests/test-stdbool.c (f): Skip test that causes compilation
34452         error under buggy C++ compiler.
34453         * lib/stdbool.in.h: Document the limitation.
34454         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
34455
34456         setenv: allow compilation with C++
34457         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
34458         register keyword.
34459
34460         stdint: allow test to pass with C++
34461         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
34462
34463         getopt: allow compilation with C++
34464         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
34465         struct.
34466         * lib/getopt.c (_getopt_internal_r): Use correct type.
34467         Reported by Dagobert Michelson, via Joel E. Denny.
34468
34469 2010-04-16  Bruno Haible  <bruno@clisp.org>
34470
34471         Override netdb.h always.
34472         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
34473         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
34474         Reported by Ludovic Courtès <ludo@gnu.org>.
34475
34476 2010-04-15  Bruno Haible  <bruno@clisp.org>
34477
34478         openpty: Fix mistake from 2010-03-21.
34479         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
34480         Reported by Simon Josefsson.
34481
34482 2010-04-15  Eric Blake  <eblake@redhat.com>
34483
34484         test-forkpty: fix expected signature
34485         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
34486         Reported by Simon Josefsson.
34487
34488 2010-04-15  Jim Meyering  <meyering@redhat.com>
34489
34490         maint.mk: texinfo_suffix_re_: correct the default regexp
34491         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
34492
34493         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
34494         make it configurable via texinfo_suffix_re_.
34495
34496 2010-04-14  Eric Blake  <eblake@redhat.com>
34497
34498         strtok_r: relax license to LGPLv2+
34499         * modules/strtok_r (License): Relax license.
34500         Reported by Matthias Bolte.
34501
34502 2010-04-14  Simon Josefsson  <simon@josefsson.org>
34503
34504         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
34505         version 1.4.4 by default instead of requiring the libgcrypt
34506         version used during build.  This makes it possible to use the
34507         application with older but still binary compatible libgcrypt
34508         versions.
34509
34510 2010-04-13  Eric Blake  <eblake@redhat.com>
34511
34512         getopt-gnu: match recent glibc fixes and posix ruling
34513         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
34514         '+' handling, when requesting extensions.
34515         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
34516         'W;' handling.
34517         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
34518         * doc/posix-functions/getopt.texi (getopt): Document this.
34519         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
34520         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34521         Likewise.
34522
34523         getopt: merge bug fixes from glibc
34524         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
34525         diagnostics.  Honor '+:' correctly.  Reject ';'.
34526
34527         getopt-posix: detect MacOS bug
34528         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
34529         optind when missing a required argument.
34530         * doc/posix-functions/getopt.texi (getopt): Document the bug.
34531         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
34532         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34533         Likewise.
34534
34535         getopt-posix: avoid spurious failure on Solaris
34536         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
34537         an indicator that setting optind=1 is sufficient for reset.
34538
34539         getopt-posix: avoid spurious failure on FreeBSD
34540         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
34541         in POSIX mode, since the m4 test uses it.
34542
34543         gnulib-tool: silence warning on BSD sh
34544         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
34545
34546 2010-04-13  Jim Meyering  <meyering@redhat.com>
34547
34548         doc: users.txt: GNU patch now uses gnulib
34549         * users.txt: Add patch.
34550
34551 2010-04-12  Jim Meyering  <meyering@redhat.com>
34552
34553         maint.mk: generate more concise timing data for syntax-check rules
34554         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
34555         " done" from each line that reports a syntax-check test duration.
34556
34557 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
34558
34559         git-version-gen: use "git update-index..." rather than "git status"
34560         * build-aux/git-version-gen: Use git update-index --refresh, not
34561         "git status".  With some versions of git, "git status" would fail
34562         to update the index and result in an unwarranted "-dirty" suffix.
34563
34564 2010-04-11  Jim Meyering  <meyering@redhat.com>
34565
34566         openat: correct formatting (no semantic change)
34567         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
34568         Suggested by Bruno Haible.
34569
34570 2010-04-11  Bruno Haible  <bruno@clisp.org>
34571
34572         Stricter declaration checking in testdirs.
34573         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
34574         If for_tests is true, augment AM_CPPFLAGS to define
34575         GNULIB_STRICT_CHECKING.
34576         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
34577         GNULIB_STRICT_CHECKING is defined, verify that the function is
34578         declared.
34579
34580 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
34581             Bruno Haible  <bruno@clisp.org>
34582
34583         libunistring: Improve configure output.
34584         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
34585         Don't say "consider installing GNU libunistring" when checking again
34586         with libiconv.
34587
34588 2010-04-11  Bruno Haible  <bruno@clisp.org>
34589
34590         libunistring: Correct value of $LTLIBUNISTRING.
34591         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
34592         correct the value of $LTLIBUNISTRING.
34593
34594 2010-04-11  Bruno Haible  <bruno@clisp.org>
34595
34596         havelib: Add static libraries to LIBS in the right order.
34597         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
34598         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
34599
34600 2010-04-11  Bruno Haible  <bruno@clisp.org>
34601
34602         libunistring: Detect libunistring also when it depends on libiconv.
34603         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
34604         the second AC_LIB_HAVE_LINKFLAGS invocation.
34605
34606 2010-04-11  James Youngman  <jay@gnu.org>
34607
34608         close-stream: declare local scalars to be "const"
34609         * lib/close-stream.c (close_stream): Make boolean variables const
34610         to document the fact that we set but do not change them.
34611
34612 2010-04-11  Bruno Haible  <bruno@clisp.org>
34613
34614         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
34615
34616 2010-04-11  Jim Meyering  <meyering@redhat.com>
34617
34618         maint.mk: don't include dist-check.mk
34619         * top/maint.mk: Remove bogus include directive.
34620
34621         maint.mk: improve empty-line-at-EOF check
34622         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
34623         solution, rather than tail+Perl-based one.  The latter would read
34624         a few kilobytes from the end of each file, and did not handle empty
34625         files properly.
34626
34627         maint.mk: print the elapsed time for each syntax-check rule
34628         * top/maint.mk (sc_m_rules_): Save start time in a file.
34629         (sc_z_rules_): New rules: remove temp file and print elapsed time.
34630         (local-check): Interpose the .z rules
34631
34632 2010-04-11  Jim Meyering  <meyering@redhat.com>
34633
34634         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
34635         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
34636         empty file with one that ends in an empty line.
34637
34638 2010-04-10  Bruno Haible  <bruno@clisp.org>
34639
34640         mkdir: Make it work on mingw64.
34641         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
34642         * lib/mkdir.c: Update comment.
34643         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
34644
34645 2010-04-10  Bruno Haible  <bruno@clisp.org>
34646
34647         Don't override improved macro from newer autoconf.
34648         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
34649         autoconf >= 2.62.
34650         Reported by Joel E. Denny <jdenny@clemson.edu>.
34651
34652 2010-04-10  Jim Meyering  <meyering@redhat.com>
34653
34654         maint.mk: new syntax-check rule: prohibit empty lines at end of file
34655         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
34656
34657         maint.mk: correct a diagnostic
34658         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
34659         in diagnostic; now use $prohibit.
34660
34661 2010-04-10  Bruno Haible  <address@hidden>
34662
34663         fchownat: Fix a C++ test error on Solaris 8.
34664         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
34665         the function does not exist.
34666
34667 2010-04-10  Bruno Haible  <bruno@clisp.org>
34668
34669         vasnprintf: Add more tests.
34670         * tests/test-vasnprintf-posix.c: Include <errno.h>.
34671         (test_function): Test converting an invalid wide string.
34672
34673         vasnprintf: Correct handling of unconvertible wide string arguments.
34674         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
34675         VASNPRINTF.
34676         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
34677         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
34678         smaller than the expected maximum need for the directive. Set errno to
34679         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
34680         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
34681         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
34682         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
34683         * modules/vasnprintf (Files): Add m4/printf.m4.
34684         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34685
34686 2010-04-10  Bruno Haible  <bruno@clisp.org>
34687
34688         vasnprintf: Fix crash in %ls directive.
34689         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
34690         string is passed as argument to %ls, with no precision and no width.
34691         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34692
34693 2010-04-10  Bruno Haible  <bruno@clisp.org>
34694
34695         vasnprintf: Fix multiple test failures on mingw.
34696         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
34697         _snprintf, or snwprintf, not _snwprintf.
34698
34699 2010-04-10  Bruno Haible  <bruno@clisp.org>
34700
34701         write: Fix a C++ test error on mingw.
34702         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
34703
34704 2010-04-10  Bruno Haible  <bruno@clisp.org>
34705
34706         vasnprintf test: Reduce code duplication.
34707         * tests/test-vasnprintf.c (test_function): New function, extracted from
34708         test_vasnprintf.
34709         (test_vasnprintf, test_asnprintf): Invoke it.
34710
34711 2010-04-10  Bruno Haible  <bruno@clisp.org>
34712
34713         strnlen: Fix warning in C++ mode on MacOS X.
34714         * lib/string.in.h (strnlen): Use the modern idiom.
34715         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
34716         defining strnlen as a macro already in <config.h>.
34717         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34718         REPLACE_STRNLEN.
34719         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
34720         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34721
34722 2010-04-08  James Youngman  <jay@gnu.org>
34723
34724         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
34725         the example.
34726
34727 2010-04-09  Jim Meyering  <meyering@redhat.com>
34728
34729         maint.mk: print better diagnostic when there is no $(_hv_file)
34730         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
34731         announce that when $(_hv_file) (aka help-version) does not exist.
34732
34733         init.sh: run tr in the "C" locale to avoid multibyte interpretation
34734         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
34735         not try to interpret its random input bytes.  Jarno Rajahalme reported
34736         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
34737         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
34738         (mktempd_): Likewise, just in case.
34739
34740         ftruncate: add two years to projected module removal date: 2012
34741         * m4/ftruncate.m4: Adjust comments.
34742
34743         ftruncate: mark module as obsolete; even MinGW provides it, now
34744         * modules/ftruncate (Status): Obsolete.
34745         (Notice): Say that.
34746         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
34747         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
34748
34749 2010-04-08  Bruno Haible  <bruno@clisp.org>
34750
34751         Fix side effects from tests-related modules.
34752         * modules/dprintf-posix (Comment): New section.
34753         * modules/fprintf-posix (Comment): Likewise.
34754         * modules/obstack-printf-posix (Comment): Likewise.
34755         * modules/printf-posix (Comment): Likewise.
34756         * modules/snprintf-posix (Comment): Likewise.
34757         * modules/sprintf-posix (Comment): Likewise.
34758         * modules/vasnprintf-posix (Comment): Likewise.
34759         * modules/vasprintf-posix (Comment): Likewise.
34760         * modules/vdprintf-posix (Comment): Likewise.
34761         * modules/vfprintf-posix (Comment): Likewise.
34762         * modules/vprintf-posix (Comment): Likewise.
34763         * modules/vsnprintf-posix (Comment): Likewise.
34764         * modules/vsprintf-posix (Comment): Likewise.
34765         * modules/xprintf-posix (Comment): Likewise.
34766         * modules/xvasprintf-posix (Comment): Likewise.
34767         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
34768         * modules/floorf-tests (Depends-on): Likewise.
34769         * modules/round-tests (Depends-on): Likewise.
34770         * modules/roundf-tests (Depends-on): Likewise.
34771         * modules/trunc-tests (Depends-on): Likewise.
34772         * modules/truncf-tests (Depends-on): Likewise.
34773         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
34774         'fprintf-posix' module is not present.
34775         * tests/test-floorf2.c (check): Likewise.
34776         * tests/test-trunc2.c (check): Likewise.
34777         * tests/test-truncf2.c (check): Likewise.
34778         * tests/test-round2.c (equal): Likewise.
34779         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34780
34781 2010-04-07  Karl Berry  <karl@gnu.org>
34782
34783         * config/srclist.txt,
34784         * config/srclistvars.sh,
34785         * config/srclist-update: doc fixes.
34786
34787 2010-04-07  Jim Meyering  <meyering@redhat.com>
34788
34789         maint.mk: add a PATH crosschecking syntax-check rule
34790         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
34791         Useful if you use a test like the one in help-version (coreutils,
34792         diffutils, grep, gzip) that ensures $(VERSION) matches what is
34793         printed by prog --version.
34794
34795 2010-04-06  Bruno Haible  <bruno@clisp.org>
34796
34797         Fix link error on mingw.
34798         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
34799         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
34800
34801 2010-04-06  Bruno Haible  <bruno@clisp.org>
34802
34803         Assume rmdir exists.
34804         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
34805
34806 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
34807
34808         doc: update users.txt
34809         * users.txt: Add gcal.
34810
34811 2010-04-06  Jim Meyering  <meyering@redhat.com>
34812
34813         init.sh: simply unset TMPDIR rather than risking env -i
34814         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
34815         although it probably works fine on all Unix-based systems, some
34816         systems (Cygwin?) cannot tolerate a totally cleared environment.
34817         Suggestion from Eric Blake.
34818
34819 2010-04-06  Jim Meyering  <meyering@redhat.com>
34820
34821         init.sh: portability fix: use env's POSIX-specified -i option not -u
34822         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
34823         than unportable env -u.  Solaris 5.11's env lacks support for -u.
34824
34825 2010-04-05  Bruno Haible  <bruno@clisp.org>
34826
34827         btowc: Work around Cygwin 1.7.2 bug.
34828         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
34829         does not map NUL to 0.
34830         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
34831
34832 2010-04-05  Bruno Haible  <bruno@clisp.org>
34833
34834         Make the multithread modules work on Cygwin 1.7.2.
34835         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
34836         imported symbols can be declared weak, so that it returns "no" on
34837         Cygwin 1.7.2.
34838
34839 2010-04-05  Bruno Haible  <bruno@clisp.org>
34840
34841         Use the module 'strncat'.
34842         * modules/unistr/u8-strncat (Depends-on): Add strncat.
34843
34844         Tests for module 'strncat'.
34845         * modules/strncat-tests: New file.
34846         * tests/test-strncat.c: New file.
34847
34848         New module 'strncat'.
34849         * lib/string.in.h (strncat): New declaration.
34850         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
34851         * m4/strncat.m4: New file, based on m4/memchr.m4.
34852         * modules/strncat: New file.
34853         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
34854         is declared.
34855         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
34856         REPLACE_STRNCAT.
34857         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
34858         REPLACE_STRNCAT.
34859         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
34860         module.
34861         * tests/test-string-c++.cc: Check signature of strncat.
34862
34863 2010-04-05  Jim Meyering  <meyering@redhat.com>
34864
34865         xstrtoumax-tests: convert to use init.sh
34866         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
34867         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34868         Use Exit, not exit.
34869         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34870
34871         xstrtoimax-tests: convert to use init.sh
34872         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
34873         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34874         Use Exit, not exit.
34875         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34876
34877 2010-04-05  Bruno Haible  <bruno@clisp.org>
34878
34879         sys_socket: Avoid #define replacements in C++ mode.
34880         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
34881         warning to the function if possible, rather than #defining the symbol
34882         to a dysfunctional alias.
34883
34884 2010-04-05  Bruno Haible  <bruno@clisp.org>
34885
34886         fseeko: Fix C++ test error on mingw.
34887         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
34888         gl_FUNC_FSEEKO.
34889         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
34890         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
34891         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
34892         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
34893
34894 2010-04-05  Bruno Haible  <bruno@clisp.org>
34895
34896         duplocale: Improve test output.
34897         * tests/test-duplocale.c (main): Print reason for skipped test.
34898
34899 2010-04-05  Bruno Haible  <bruno@clisp.org>
34900
34901         Assume rmdir exists.
34902         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
34903         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
34904
34905 2010-04-05  Bruno Haible  <bruno@clisp.org>
34906
34907         Fix link error on Solaris 8 with cc.
34908         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
34909
34910 2010-04-05  Bruno Haible  <bruno@clisp.org>
34911
34912         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
34913         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
34914
34915 2010-04-05  Bruno Haible  <bruno@clisp.org>
34916
34917         vasprintf: Update documentation.
34918         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
34919
34920 2010-04-05  Bruno Haible  <bruno@clisp.org>
34921
34922         ptsname: Improve test.
34923         * tests/test-ptsname.c (main): Also try the various master names of BSD
34924         systems.
34925
34926 2010-04-05  Bruno Haible  <bruno@clisp.org>
34927
34928         memchr: Avoid a possible C++ test error.
34929         * lib/string.in.h (memchr): Provide declaration if function is missing.
34930         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
34931         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
34932         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
34933         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
34934
34935 2010-04-05  Bruno Haible  <bruno@clisp.org>
34936
34937         strtok_r: Improve idiom.
34938         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
34939         AC_LIBOBJ is used.
34940
34941 2010-04-05  Bruno Haible  <bruno@clisp.org>
34942
34943         strdup: Improve idiom.
34944         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
34945         AC_LIBOBJ is used.
34946         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
34947         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
34948         when AC_LIBOBJ is used.
34949
34950 2010-04-05  Bruno Haible  <bruno@clisp.org>
34951
34952         mbsinit, mbrtowc, wcrtomb: Improve idioms.
34953         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
34954         don't set REPLACE_MBSINIT to 1.
34955         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
34956         don't set REPLACE_MBRTOWC to 1.
34957         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
34958         exist, don't set REPLACE_MBSRTOWCS to 1.
34959         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
34960         exist, don't set REPLACE_MBSNRTOWCS to 1.
34961         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
34962         don't set REPLACE_WCRTOMB to 1.
34963         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
34964         exist, don't set REPLACE_WCSRTOMBS to 1.
34965         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
34966         exist, don't set REPLACE_WCSNRTOMBS to 1.
34967
34968 2010-04-05  Bruno Haible  <bruno@clisp.org>
34969
34970         ldexpl: Improve idiom.
34971         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
34972         make sure to set HAVE_DECL_LDEXPL to 0.
34973
34974 2010-04-05  Jim Meyering  <meyering@redhat.com>
34975
34976         xstrtol-tests: convert to use init.sh
34977         * modules/xstrtol-tests (Files): Add tests/init.sh.
34978         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34979         Use Exit, not exit.
34980         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34981
34982         atexit-tests: convert to use init.sh
34983         * modules/atexit-tests (Files): Add tests/init.sh.
34984         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34985         Use Exit, not exit.
34986         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34987
34988         init.sh: fix typo
34989         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
34990
34991         init.sh: make it easier for a test script to write to the tty, ...
34992         when using automake's parallel-tests mode.
34993         * tests/init.sh (stderr_fileno_): Define overridable variable.
34994         (warn_): New function, to use it.
34995         (fail_, skip_, framework_failure_): Use warn_.
34996
34997 2010-04-04  Bruno Haible  <bruno@clisp.org>
34998
34999         btowc: Avoid warning.
35000         * lib/btowc.c: Include <stdlib.h>.
35001         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
35002
35003 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
35004             Bruno Haible  <bruno@clisp.org>
35005
35006         wchar: Port to NetBSD 1.5.
35007         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
35008         * lib/wctype.in.h (WEOF): Likewise.
35009
35010 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
35011             Bruno Haible  <bruno@clisp.org>
35012
35013         Port extended stdio to NetBSD 1.5.
35014         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
35015         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
35016         older.
35017
35018 2010-04-04  Bruno Haible  <bruno@clisp.org>
35019
35020         string: Remove unused substitution.
35021         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
35022         HAVE_DECL_STRERROR.
35023         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
35024
35025 2010-04-04  Bruno Haible  <bruno@clisp.org>
35026
35027         strtod: Avoid a possible C++ test error.
35028         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
35029         set REPLACE_STRTOD.
35030
35031 2010-04-04  Bruno Haible  <bruno@clisp.org>
35032
35033         strerror: Update documentation.
35034         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
35035
35036 2010-04-04  Bruno Haible  <bruno@clisp.org>
35037
35038         stdio: Fix some C++ test errors on Solaris 8 with GCC.
35039         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
35040         _GL_CXXALIAS_SYS_CAST.
35041
35042 2010-04-04  Bruno Haible  <bruno@clisp.org>
35043
35044         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
35045         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
35046         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
35047         REPLACE_FREXPL to 1.
35048         * doc/posix-functions/frexpl.texi: Update documentation.
35049
35050 2010-04-04  Bruno Haible  <bruno@clisp.org>
35051
35052         math: Fix some C++ test errors on Solaris 8 and Cygwin.
35053         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
35054
35055 2010-04-04  Bruno Haible  <bruno@clisp.org>
35056
35057         Implement nanosleep for native Windows.
35058         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
35059
35060 2010-04-04  Bruno Haible  <bruno@clisp.org>
35061
35062         math: Fix some C++ test errors on Solaris 8.
35063         * lib/math.in.h (truncf, trunc): Use simpler idiom.
35064
35065 2010-04-04  Bruno Haible  <bruno@clisp.org>
35066
35067         math: Fix some C++ test errors on Cygwin.
35068         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
35069         truncl): Provide declaration if the system does not have it.
35070         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
35071         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
35072         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
35073         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
35074         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
35075         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
35076         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
35077         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
35078         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
35079         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
35080         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
35081         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
35082         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
35083         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
35084         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
35085         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
35086         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
35087         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
35088         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
35089         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
35090         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
35091         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
35092
35093 2010-04-04  Bruno Haible  <bruno@clisp.org>
35094
35095         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
35096         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
35097         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
35098         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
35099         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
35100         * m4/isinf.m4 (gl_ISINF): Likewise.
35101         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
35102
35103 2010-04-04  Bruno Haible  <bruno@clisp.org>
35104
35105         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
35106         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
35107
35108 2010-04-04  Bruno Haible  <bruno@clisp.org>
35109
35110         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
35111         * modules/tmpfile (configure.ac): Update.
35112
35113         tmpfile: Fix C++ test error on mingw.
35114         * lib/stdio.in.h (tmpfile): New declaration.
35115         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
35116         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
35117         * modules/tmpfile (Depends-on): Add stdio.
35118         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
35119         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
35120         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
35121         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
35122         REPLACE_TMPFILE.
35123         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
35124
35125 2010-04-04  Bruno Haible  <bruno@clisp.org>
35126
35127         ioctl: Fix C++ test error on mingw.
35128         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
35129         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
35130         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
35131
35132 2010-04-03  Bruno Haible  <bruno@clisp.org>
35133
35134         wcwidth: Fix C++ test error on mingw.
35135         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
35136         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
35137         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
35138
35139 2010-04-03  Bruno Haible  <bruno@clisp.org>
35140
35141         nanosleep: Fix C++ test error on mingw.
35142         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
35143         * lib/time.in.h (nanosleep): Use modern idiom.
35144         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
35145         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
35146         REPLACE_NANOSLEEP to 1.
35147         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
35148         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
35149
35150 2010-04-03  Bruno Haible  <bruno@clisp.org>
35151
35152         strptime: Fix C++ test error on mingw.
35153         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
35154         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
35155         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
35156         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
35157         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
35158         not REPLACE_STRPTIME.
35159         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
35160         REPLACE_STRPTIME.
35161
35162 2010-04-03  Bruno Haible  <bruno@clisp.org>
35163
35164         timegm: Fix C++ test error on mingw.
35165         * lib/time.in.h (timegm): Use modern idiom.
35166         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
35167         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
35168         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
35169         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
35170
35171 2010-04-03  Bruno Haible  <bruno@clisp.org>
35172
35173         timegm: Assume declaration if function exists.
35174         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
35175         if it exists. Don't clobber ac_cv_func_timegm.
35176
35177 2010-04-03  Bruno Haible  <bruno@clisp.org>
35178
35179         time_r: Fix C++ test error on mingw.
35180         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
35181         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
35182         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
35183         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
35184         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
35185
35186 2010-04-03  Bruno Haible  <bruno@clisp.org>
35187
35188         time_r: Minor updates.
35189         * modules/time_r (Description): Mention the provided functions.
35190         * lib/time_r.c: Don't include <string.h>.
35191         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
35192         * doc/posix-functions/localtime_r.texi: Likewise.
35193
35194 2010-04-03  Bruno Haible  <bruno@clisp.org>
35195
35196         time: Fix regression introduced on 2010-03-08.
35197         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
35198         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
35199
35200 2010-04-03  Jim Meyering  <meyering@redhat.com>
35201
35202         maint.mk: don't silently disable project-specific syntax-check rules
35203         * top/maint.mk (_prohibit_regexp): Define, to help people realize
35204         that they need to convert their project-specific syntax-check rules
35205         to use the new _sc_search_regexp.
35206
35207 2010-04-03  Bruno Haible  <bruno@clisp.org>
35208
35209         fchdir: Fix regression introduced on 2010-03-08.
35210         * lib/unistd.in.h (fchdir): Fix declaration.
35211         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
35212         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
35213         REPLACE_FCHDIR.
35214         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
35215         REPLACE_FCHDIR.
35216
35217 2010-04-03  Bruno Haible  <bruno@clisp.org>
35218
35219         getpagesize: Fix C++ test error on mingw.
35220         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
35221         system does not declare the function.
35222         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
35223         declared.
35224         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35225         HAVE_DECL_GETPAGESIZE.
35226         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
35227
35228 2010-04-03  Bruno Haible  <bruno@clisp.org>
35229
35230         stdio: Make C++ tests work on mingw.
35231         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
35232         does not declare the function.
35233
35234 2010-04-03  Bruno Haible  <bruno@clisp.org>
35235
35236         ftello: Fix C++ test error on mingw.
35237         * lib/stdio.in.h (ftello): Use modern idiom.
35238         * lib/ftello.c (ftello): Renamed from rpl_ftello.
35239         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
35240         is missing and that it needs to be replaced.
35241         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
35242         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
35243         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
35244
35245 2010-04-03  Bruno Haible  <bruno@clisp.org>
35246
35247         fseeko: Fix C++ test error on mingw.
35248         * lib/stdio.in.h (fseeko): Use modern idiom.
35249         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
35250         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
35251         is missing and that it needs to be replaced.
35252         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
35253         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
35254         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
35255
35256 2010-04-03  Bruno Haible  <bruno@clisp.org>
35257
35258         mkstemp: Fix C++ test error on mingw.
35259         * lib/stdlib.in.h (mkstemp): Use modern idiom.
35260         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
35261         function is missing and that it needs to be replaced.
35262         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
35263         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
35264
35265 2010-04-03  Bruno Haible  <bruno@clisp.org>
35266
35267         stpncpy: Fix C++ test error on mingw.
35268         * lib/string.in.h (stpncpy): Use modern idiom.
35269         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
35270         function is missing and that it needs to be replaced.
35271         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35272         REPLACE_STPNCPY.
35273         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
35274
35275 2010-04-03  Bruno Haible  <bruno@clisp.org>
35276
35277         sys_stat: Fix C++ test error on mingw.
35278         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
35279         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
35280
35281 2010-04-03  Bruno Haible  <bruno@clisp.org>
35282
35283         pty: Update doc.
35284         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
35285
35286 2010-04-03  Bruno Haible  <bruno@clisp.org>
35287
35288         unistd: Fix C++ test error on mingw.
35289         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
35290
35291 2010-04-03  Bruno Haible  <bruno@clisp.org>
35292
35293         Update doc regarding mingw.
35294         * doc/glibc-functions/openpty.texi: Update regarding mingw.
35295         * doc/glibc-functions/login_tty.texi: Likewise.
35296         * doc/glibc-functions/forkpty.texi: Likewise.
35297
35298 2010-04-03  Bruno Haible  <bruno@clisp.org>
35299
35300         stdlib: Avoid compilation failure of c-strtold on mingw.
35301         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
35302
35303 2010-04-03  Bruno Haible  <bruno@clisp.org>
35304
35305         locale: Make C++ tests work on Cygwin and mingw.
35306         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
35307         cannot provide the function.
35308         Reported by Simon Josefsson.
35309
35310 2010-04-03  Bruno Haible  <bruno@clisp.org>
35311
35312         localename: Port to MacOS X 10.6.
35313         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
35314         memory layout of the locales in MacOS X 10.6 as well.
35315         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
35316
35317 2010-04-02  Bruno Haible  <bruno@clisp.org>
35318
35319         gnulib-tool: Ensure that long-running tests are executed last.
35320         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
35321         running tests after the one for the other tests.
35322
35323 2010-04-02  Bruno Haible  <bruno@clisp.org>
35324
35325         gnulib-tool: Ensure the tests in the main directory are executed first.
35326         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
35327         start with the current directory.
35328
35329 2010-04-02  Bruno Haible  <bruno@clisp.org>
35330
35331         Tests for module 'havelib', moved here from GNU gettext.
35332         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
35333         modifications.
35334         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
35335         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
35336         with modifications.
35337         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
35338         modifications.
35339         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
35340         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
35341         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
35342         with modifications.
35343         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
35344         with modifications.
35345         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
35346         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
35347         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
35348         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
35349         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
35350         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
35351         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
35352         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
35353         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
35354         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
35355         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
35356         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
35357         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
35358         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
35359         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
35360         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
35361         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
35362         with modifications.
35363         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
35364         with modifications.
35365         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
35366         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
35367         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
35368         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
35369         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
35370         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
35371         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
35372         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
35373         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
35374         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
35375         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
35376         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
35377         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
35378         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
35379         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
35380         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
35381         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
35382         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
35383         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
35384         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
35385         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
35386         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
35387         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
35388         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
35389         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
35390         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
35391         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
35392         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
35393         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
35394         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
35395         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
35396         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
35397         * tests/havelib/rpathx/rpathx.c: New file, from
35398         gettext/autoconf-lib-link.
35399         * tests/havelib/rpathx/Makefile.am: New file, from
35400         gettext/autoconf-lib-link.
35401         * tests/havelib/rpathx/configure.ac: New file, from
35402         gettext/autoconf-lib-link with modifications.
35403         * tests/havelib/rpathy/rpathy.c: New file, from
35404         gettext/autoconf-lib-link.
35405         * tests/havelib/rpathy/Makefile.am: New file, from
35406         gettext/autoconf-lib-link.
35407         * tests/havelib/rpathy/configure.ac: New file, from
35408         gettext/autoconf-lib-link with modifications.
35409         * tests/havelib/rpathz/rpathz.c: New file, from
35410         gettext/autoconf-lib-link.
35411         * tests/havelib/rpathz/Makefile.am: New file, from
35412         gettext/autoconf-lib-link.
35413         * tests/havelib/rpathz/configure.ac: New file, from
35414         gettext/autoconf-lib-link with modifications.
35415         * tests/havelib/rpathlx/usex.c: New file, from
35416         gettext/autoconf-lib-link.
35417         * tests/havelib/rpathlx/Makefile.am: New file, from
35418         gettext/autoconf-lib-link.
35419         * tests/havelib/rpathlx/configure.ac: New file, from
35420         gettext/autoconf-lib-link with modifications.
35421         * tests/havelib/rpathly/usey.c: New file, from
35422         gettext/autoconf-lib-link.
35423         * tests/havelib/rpathly/Makefile.am: New file, from
35424         gettext/autoconf-lib-link.
35425         * tests/havelib/rpathly/configure.ac: New file, from
35426         gettext/autoconf-lib-link with modifications.
35427         * tests/havelib/rpathlz/usez.c: New file, from
35428         gettext/autoconf-lib-link.
35429         * tests/havelib/rpathlz/Makefile.am: New file, from
35430         gettext/autoconf-lib-link.
35431         * tests/havelib/rpathlz/configure.ac: New file, from
35432         gettext/autoconf-lib-link with modifications.
35433         * tests/havelib/rpathlyx/usey.c: New file, from
35434         gettext/autoconf-lib-link.
35435         * tests/havelib/rpathlyx/Makefile.am: New file, from
35436         gettext/autoconf-lib-link.
35437         * tests/havelib/rpathlyx/configure.ac: New file, from
35438         gettext/autoconf-lib-link with modifications.
35439         * tests/havelib/rpathlzyx/usez.c: New file, from
35440         gettext/autoconf-lib-link.
35441         * tests/havelib/rpathlzyx/Makefile.am: New file, from
35442         gettext/autoconf-lib-link.
35443         * tests/havelib/rpathlzyx/configure.ac: New file, from
35444         gettext/autoconf-lib-link with modifications.
35445         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
35446         with modifications.
35447
35448 2010-04-02  Bruno Haible  <bruno@clisp.org>
35449
35450         gnulib-tool: Create distributed built sources also for the tests.
35451         * gnulib-tool (func_create_testdir): Also generate distributed built
35452         sources in the tests directory.
35453
35454 2010-04-02  Bruno Haible  <bruno@clisp.org>
35455
35456         gnulib-tool: Obey user's environment variables.
35457         * gnulib-tool (func_create_testdir): When creating built sources,
35458         respect the environment variables for autoconf, automake, etc. given by
35459         the user.
35460
35461 2010-04-02  Bruno Haible  <bruno@clisp.org>
35462
35463         gnulib-tool: Provide the value of --m4-base to modules.
35464         * gnulib-tool (func_import, func_create_testdir): Emit a definition
35465         of gl_m4_base.
35466
35467 2010-04-02  Eric Blake  <eblake@redhat.com>
35468
35469         maint.mk: fix some fallout
35470         * NEWS: Document the incompatible change, and its effect on cfg.mk.
35471         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
35472
35473 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
35474
35475         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
35476         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
35477         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
35478         (sc_cast_of_x_alloc_return_value): Likewise.
35479         (sc_cast_of_alloca_return_value): Likewise.
35480         (sc_space_tab): Likewise.
35481         (sc_prohibit_atoi_atof): Likewise.
35482         (sc_prohibit_magic_number_exit): Likewise.
35483         (sc_error_exit_success): Likewise.
35484         (sc_file_system): Likewise.
35485         (sc_prohibit_have_config_h): Likewise.
35486         (sc_require_config_h): Likewise.
35487         (sc_prohibit_HAVE_MBRTOWC): Likewise.
35488         (sc_obsolete_symbols): Likewise.
35489         (sc_changelog): Likewise.
35490         (sc_program_name): Likewise.
35491         (sc_the_the): Likewise.
35492         (sc_trailing_blank): Likewise.
35493         (sc_two_space_separator_in_usage): Likewise.
35494         (sc_useless_cpp_parens): Likewise.
35495         (sc_GPL_version): Likewise.
35496         (sc_GFDL_version): Likewise.
35497         (sc_texinfo_acronym): Likewise.
35498         (sc_prohibit_cvs_keyword): Likewise.
35499         (sc_prohibit_stat_st_blocks): Likewise.
35500         (sc_prohibit_S_IS_definition): Likewise.
35501         (sc_redundant_const): Likewise.
35502         (sc_makefile_TAB_only_indentation): Likewise.
35503         (sc_m4_quote_check): Likewise.
35504         (sc_makefile_path_separator_check): Likewise.
35505         (sc_copyright_check): Likewise.
35506         (sc_Wundef_boolean): Likewise.
35507         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
35508
35509         maint.mk: match 0 or more whitespace-before-function-call '('
35510         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
35511         that have zero or two-and-more spaces between the function name
35512         and the open parenthesis.
35513         (sc_error_message_warn_fatal): Likewise.
35514         (sc_error_message_uppercase): Likewise.
35515         (sc_error_message_period): Likewise.
35516
35517 2010-03-31  Eric Blake  <eblake@redhat.com>
35518
35519         maint.mk: check for [ as well as test
35520         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
35521         Based on a libvirt report by Matthias Bolte.
35522
35523         gnumakefile: don't squelch _version output
35524         * top/GNUmakefile (_version): Create one-shot dependency rather
35525         than using $(shell) when version must be regenerated.
35526         (_autoreconf): Run verbosely, by default.
35527
35528         sys_time: avoid compiler warnings
35529         * lib/sys_time.in.h (includes): Ensure gcc pragma is
35530         unconditional, fixing regression from 2010-03-29.
35531         Reported by Simon Josefsson.
35532
35533 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
35534
35535         maint.mk: s/_header_without_use/_sc_header_without_use/
35536         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
35537         (sc_prohibit_assert_without_use): Use the new name.
35538         (sc_prohibit_close_stream_without_use): Likewise.
35539         (sc_prohibit_getopt_without_use): Likewise.
35540         (sc_prohibit_quotearg_without_use): Likewise.
35541         (sc_prohibit_quote_without_use): Likewise.
35542         (sc_prohibit_long_options_without_use): Likewise.
35543         (sc_prohibit_inttostr_without_use): Likewise.
35544         (sc_prohibit_ignore_value_without_use): Likewise.
35545         (sc_prohibit_error_without_use): Likewise.
35546         (sc_prohibit_xalloc_without_use): Likewise.
35547         (sc_prohibit_hash_without_use): Likewise.
35548         (sc_prohibit_hash_pjw_without_use): Likewise.
35549         (sc_prohibit_safe_read_without_use): Likewise.
35550         (sc_prohibit_argmatch_without_use): Likewise.
35551         (sc_prohibit_canonicalize_without_use): Likewise.
35552         (sc_prohibit_root_dev_ino_without_use): Likewise.
35553         (sc_prohibit_openat_without_use): Likewise.
35554         (sc_prohibit_c_ctype_without_use): Likewise.
35555         (sc_prohibit_signal_without_use): Likewise.
35556         (sc_prohibit_intprops_without_use): Likewise.
35557
35558 2010-03-30  Eric Blake  <eblake@redhat.com>
35559
35560         maint: improve module indicators
35561         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
35562         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
35563         columns, and avoid extra macro expansion.
35564
35565         fdopendir: work around FreeBSD bug
35566         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
35567         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
35568         * modules/dirent (Makefile.am): Substitute it.
35569         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
35570         declaration.
35571         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
35572         fix.
35573         Reported by Christian Weisgerber <naddy@mips.inka.de>.
35574
35575 2010-03-29  Bruno Haible  <bruno@clisp.org>
35576
35577         Emit #pragma system_header after the inclusion guard, not before.
35578         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
35579         guard that spans the entire file, not before. This enables an
35580         optimization in GCC's preprocessor.
35581         * lib/ctype.in.h: Likewise.
35582         * lib/dirent.in.h: Likewise.
35583         * lib/errno.in.h: Likewise.
35584         * lib/float.in.h: Likewise.
35585         * lib/getopt.in.h: Likewise.
35586         * lib/iconv.in.h: Likewise.
35587         * lib/langinfo.in.h: Likewise.
35588         * lib/locale.in.h: Likewise.
35589         * lib/math.in.h: Likewise.
35590         * lib/netdb.in.h: Likewise.
35591         * lib/netinet_in.in.h: Likewise.
35592         * lib/pty.in.h: Likewise.
35593         * lib/sched.in.h: Likewise.
35594         * lib/se-selinux.in.h: Likewise.
35595         * lib/search.in.h: Likewise.
35596         * lib/spawn.in.h: Likewise.
35597         * lib/stdarg.in.h: Likewise.
35598         * lib/stdint.in.h: Likewise.
35599         * lib/string.in.h: Likewise.
35600         * lib/strings.in.h: Likewise.
35601         * lib/sys_file.in.h: Likewise.
35602         * lib/sys_ioctl.in.h: Likewise.
35603         * lib/sys_time.in.h: Likewise.
35604         * lib/sys_times.in.h: Likewise.
35605         * lib/sys_utsname.in.h: Likewise.
35606         * lib/sys_wait.in.h: Likewise.
35607         * lib/sysexits.in.h: Likewise.
35608         * lib/wctype.in.h: Likewise.
35609
35610 2010-03-28  James Youngman  <jay@gnu.org>
35611
35612         save-cwd: don't leak a file descriptor when the caller execs.
35613         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
35614         saved file descriptor.
35615         * modules/save-cwd (Depends-on): Depend on cloexec.
35616
35617 2010-03-29  Bruno Haible  <bruno@clisp.org>
35618
35619         Remove vestiges of fts-lgpl module.
35620         * lib/fts_.h: Assume GNULIB_FTS is 1.
35621         * lib/fts.c: Likewise.
35622         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
35623
35624 2010-03-28  Bruno Haible  <bruno@clisp.org>
35625
35626         Fix definition of tests witness macro.
35627         * gnulib-tool (func_import): Fix definition of witness macro.
35628
35629 2010-03-28  Bruno Haible  <bruno@clisp.org>
35630
35631         Fix ioctl's protoype on glibc systems.
35632         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
35633         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
35634         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
35635         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
35636         signature. If not, arrange to replace the ioctl function.
35637         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
35638         REPLACE_IOCTL.
35639         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
35640         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
35641         Reported by Ludovic Courtès <ludo@gnu.org>.
35642
35643 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
35644
35645         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
35646         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
35647         made it so grep -r --include=GLOB* ... did not work.
35648
35649 2010-03-26  Jim Meyering  <meyering@redhat.com>
35650             Eric Blake  <eblake@redhat.com>
35651
35652         maint.mk: prohibit use of test's -o and -a operators
35653         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
35654
35655 2010-03-28  Bruno Haible  <bruno@clisp.org>
35656
35657         Remove unused GNULIB_XYZ macro definitions.
35658         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
35659         invocation.
35660
35661 2010-03-28  Bruno Haible  <bruno@clisp.org>
35662
35663         Mark privileged tests modules.
35664         * modules/idpriv-drop-tests (Status): New section.
35665         * modules/idpriv-droptemp-tests (Status): New section.
35666
35667 2010-03-28  Bruno Haible  <bruno@clisp.org>
35668
35669         Split C++ tests into separate tests modules.
35670         * modules/dirent-c++-tests: New file, extracted from
35671         modules/dirent-tests.
35672         * modules/dirent-tests: Depend on it.
35673         * modules/fcntl-h-c++-tests: New file, extracted from
35674         modules/fcntl-h-tests.
35675         * modules/fcntl-h-tests: Depend on it.
35676         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
35677         * modules/glob-tests: Depend on it.
35678         * modules/iconv-h-c++-tests: New file, extracted from
35679         modules/iconv-h-tests.
35680         * modules/iconv-h-tests: Depend on it.
35681         * modules/langinfo-c++-tests: New file, extracted from
35682         modules/langinfo-tests.
35683         * modules/langinfo-tests: Depend on it.
35684         * modules/locale-c++-tests: New file, extracted from
35685         modules/locale-tests.
35686         * modules/locale-tests: Depend on it.
35687         * modules/math-c++-tests: New file, extracted from modules/math-tests.
35688         * modules/math-tests: Depend on it.
35689         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
35690         * modules/pty-tests: Depend on it.
35691         * modules/search-c++-tests: New file, extracted from
35692         modules/search-tests.
35693         * modules/search-tests: Depend on it.
35694         * modules/signal-c++-tests: New file, extracted from
35695         modules/signal-tests.
35696         * modules/signal-tests: Depend on it.
35697         * modules/spawn-c++-tests: New file, extracted from
35698         modules/spawn-tests.
35699         * modules/spawn-tests: Depend on it.
35700         * modules/stdio-c++-tests: New file, extracted from
35701         modules/stdio-tests.
35702         * modules/stdio-tests: Depend on it.
35703         * modules/stdlib-c++-tests: New file, extracted from
35704         modules/stdlib-tests.
35705         * modules/stdlib-tests: Depend on it.
35706         * modules/string-c++-tests: New file, extracted from
35707         modules/string-tests.
35708         * modules/string-tests: Depend on it.
35709         * modules/sys_ioctl-c++-tests: New file, extracted from
35710         modules/sys_ioctl-tests.
35711         * modules/sys_ioctl-tests: Depend on it.
35712         * modules/sys_select-c++-tests: New file, extracted from
35713         modules/sys_select-tests.
35714         * modules/sys_select-tests: Depend on it.
35715         * modules/sys_socket-c++-tests: New file, extracted from
35716         modules/sys_socket-tests.
35717         * modules/sys_socket-tests: Depend on it.
35718         * modules/sys_stat-c++-tests: New file, extracted from
35719         modules/sys_stat-tests.
35720         * modules/sys_stat-tests: Depend on it.
35721         * modules/sys_time-c++-tests: New file, extracted from
35722         modules/sys_time-tests.
35723         * modules/sys_time-tests: Depend on it.
35724         * modules/time-c++-tests: New file, extracted from modules/time-tests.
35725         * modules/time-tests: Depend on it.
35726         * modules/unistd-c++-tests: New file, extracted from
35727         modules/unistd-tests.
35728         * modules/unistd-tests: Depend on it.
35729         * modules/wchar-c++-tests: New file, extracted from
35730         modules/wchar-tests.
35731         * modules/wchar-tests: Depend on it.
35732         * modules/wctype-c++-tests: New file, extracted from
35733         modules/wctype-tests.
35734         * modules/wctype-tests: Depend on it.
35735         Reported by Simon Josefsson.
35736
35737 2010-03-28  Bruno Haible  <bruno@clisp.org>
35738
35739         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
35740         * gnulib-tool (func_exists_module): New function, extracted from
35741         func_verify_module.
35742         (func_verify_module): Use it.
35743         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
35744         'foo' only if 'foo' exists.
35745         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
35746         module.
35747
35748 2010-03-28  Bruno Haible  <bruno@clisp.org>
35749
35750         gnulib-tool: Add support for special categories of tests.
35751         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
35752         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
35753         (func_usage): Document them.
35754         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
35755         inc_unportable_tests, inc_all_tests): New variables.
35756         (func_acceptable): Consider these variables.
35757         (func_modules_transitive_closure): Make it work when the 'Status' field
35758         consists of multiple words.
35759         (func_import): Store and restore the values of inc_cxx_tests,
35760         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
35761         inc_all_tests in gnulib-comp.m4.
35762         (func_create_testdir): Set inc_all_tests to true.
35763         * doc/gnulib.texi (Extra tests modules): New section.
35764         Suggested by Jim Meyering.
35765
35766 2010-03-28  Bruno Haible  <bruno@clisp.org>
35767
35768         ansi-c++-opt: Allow turning off the C++ build by default.
35769         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
35770         gl_CXX_CHOICE_DEFAULT_NO is defined.
35771         Requested by Eric Blake.
35772
35773 2010-03-28  Bruno Haible  <bruno@clisp.org>
35774
35775         unistd: Avoid #define replacements in C++ mode.
35776         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
35777         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
35778         setsockopt, shutdown, select): In C++, attach a warning to the function
35779         if possible, rather than #defining the symbol to a dysfunctional alias.
35780         Reported by John W. Eaton <jwe@gnu.org>.
35781
35782 2010-03-28  Bruno Haible  <bruno@clisp.org>
35783
35784         Fix link errors on mingw.
35785         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
35786         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
35787         $(LIBSOCKET).
35788         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
35789         $(LIBSOCKET).
35790
35791 2010-03-28  Bruno Haible  <bruno@clisp.org>
35792             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35793
35794         lib-ignore: Determine different options for different compilers.
35795         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
35796         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
35797         Add comments.
35798         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
35799         * NEWS: Mention the change.
35800
35801 2010-03-27  Bruno Haible  <bruno@clisp.org>
35802
35803         Remove unused GNULIB_XYZ macro definitions.
35804         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
35805         * modules/fseek (configure.ac): Likewise.
35806         * modules/ioctl (configure.ac): Likewise.
35807         * modules/open (configure.ac): Likewise.
35808         * modules/stdlib-safer (configure.ac): Likewise.
35809
35810 2010-03-27  Bruno Haible  <bruno@clisp.org>
35811
35812         Add a remark about certain modules.
35813         * modules/malloc (Comment): New section.
35814         * modules/realloc (Comment): Likewise.
35815         * modules/sigpipe (Comment): Likewise.
35816
35817 2010-03-27  Bruno Haible  <bruno@clisp.org>
35818
35819         Resolve conflict between the two kinds of module indicators.
35820         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
35821         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
35822         * modules/canonicalize (configure.ac): Invoke
35823         gl_MODULE_INDICATOR_FOR_TESTS.
35824         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
35825         GNULIB_XYZ.
35826         * tests/test-dirent-c++.cc: Likewise.
35827         * tests/test-dirent-safer.c: Likewise.
35828         * tests/test-dup2.c: Likewise.
35829         * tests/test-fchdir.c: Likewise.
35830         * tests/test-fcntl-h-c++.cc: Likewise.
35831         * tests/test-getopt.c: Likewise.
35832         * tests/test-getopt.h: Likewise.
35833         * tests/test-langinfo-c++.cc: Likewise.
35834         * tests/test-locale-c++.cc: Likewise.
35835         * tests/test-math-c++.cc: Likewise.
35836         * tests/test-pty-c++.cc: Likewise.
35837         * tests/test-search-c++.cc: Likewise.
35838         * tests/test-signal-c++.cc: Likewise.
35839         * tests/test-spawn-c++.cc: Likewise.
35840         * tests/test-stdio-c++.cc: Likewise.
35841         * tests/test-stdlib-c++.cc: Likewise.
35842         * tests/test-string-c++.cc: Likewise.
35843         * tests/test-sys_ioctl-c++.cc: Likewise.
35844         * tests/test-sys_select-c++.cc: Likewise.
35845         * tests/test-sys_socket-c++.cc: Likewise.
35846         * tests/test-sys_stat-c++.cc: Likewise.
35847         * tests/test-sys_time-c++.cc: Likewise.
35848         * tests/test-time-c++.cc: Likewise.
35849         * tests/test-unistd-c++.cc: Likewise.
35850         * tests/test-wchar-c++.cc: Likewise.
35851         * tests/uninorm/test-u8-nfc.c: Likewise.
35852         * tests/uninorm/test-u8-nfd.c: Likewise.
35853         * tests/uninorm/test-u8-nfkc.c: Likewise.
35854         * tests/uninorm/test-u8-nfkd.c: Likewise.
35855         * tests/uninorm/test-u16-nfc.c: Likewise.
35856         * tests/uninorm/test-u16-nfd.c: Likewise.
35857         * tests/uninorm/test-u16-nfkc.c: Likewise.
35858         * tests/uninorm/test-u16-nfkd.c: Likewise.
35859         * tests/uninorm/test-u32-nfc.c: Likewise.
35860         * tests/uninorm/test-u32-nfc-big.c: Likewise.
35861         * tests/uninorm/test-u32-nfd.c: Likewise.
35862         * tests/uninorm/test-u32-nfd-big.c: Likewise.
35863         * tests/uninorm/test-u32-nfkc.c: Likewise.
35864         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
35865         * tests/uninorm/test-u32-nfkd.c: Likewise.
35866         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
35867         * tests/uninorm/test-u32-normalize-big.c: Likewise.
35868
35869 2010-03-27  Bruno Haible  <bruno@clisp.org>
35870
35871         Distinguish two kinds of module indicators.
35872         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
35873         gl_MODULE_INDICATOR.
35874         (gl_MODULE_INDICATOR): New macro.
35875         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
35876         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
35877         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
35878         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
35879         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
35880         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
35881         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
35882         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
35883         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
35884         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
35885         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
35886         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
35887         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
35888         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
35889         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
35890         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
35891         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
35892         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
35893         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
35894         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
35895         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
35896         * modules/cloexec (configure.ac): Likewise.
35897         * modules/getopt-gnu (configure.ac): Likewise.
35898         * modules/uninorm/u8-normalize (configure.ac): Likewise.
35899         * modules/uninorm/u16-normalize (configure.ac): Likewise.
35900         * modules/uninorm/u32-normalize (configure.ac): Likewise.
35901         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
35902
35903 2010-03-27  Bruno Haible  <bruno@clisp.org>
35904
35905         New module description field 'Comment'.
35906         * gnulib-tool: New option --extract-comment.
35907         (func_usage): Document it.
35908         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
35909         (func_get_comment): New function.
35910         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
35911
35912 2010-03-27  Bruno Haible  <bruno@clisp.org>
35913
35914         Addendum to 2010-02-07 commit.
35915         * gnulib-tool (func_usage): Document --extract-applicability option.
35916
35917 2010-03-27  Bruno Haible  <bruno@clisp.org>
35918
35919         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
35920         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
35921         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
35922         rather than link errors.
35923
35924 2010-03-27  Bruno Haible  <bruno@clisp.org>
35925
35926         Avoid side effects from tests-related modules on the compilation of lib.
35927         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
35928         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
35929         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
35930         parameter. Emit into AM_CPPFLAGS a definition of the designated C
35931         macro.
35932         (func_import): Define a witness macro. Assign it a value that depends
35933         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
35934         tests-related modules.
35935         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
35936         Reported by Jim Meyering.
35937
35938 2010-03-27  Bruno Haible  <bruno@clisp.org>
35939
35940         Factorize common .m4 code.
35941         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
35942         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
35943         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
35944         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
35945         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
35946         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
35947         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
35948         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
35949         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
35950         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
35951         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
35952         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
35953         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
35954         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
35955         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
35956         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
35957         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
35958         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
35959         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
35960         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
35961         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
35962         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
35963         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
35964         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
35965         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
35966         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
35967         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
35968         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
35969         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
35970         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
35971         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
35972         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
35973
35974 2010-03-27  Bruno Haible  <bruno@clisp.org>
35975
35976         Fix a compilation error on Cygwin with g++ >= 4.3.
35977         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
35978         if it is undefined or if we alias it to chmod.
35979         (lstat): Don't warn about the use of this function if it is undefined
35980         or if we alias it to stat.
35981         Reported by Simon Josefsson.
35982
35983 2010-03-27  Bruno Haible  <bruno@clisp.org>
35984
35985         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
35986         * modules/getlogin (configure.ac): Update.
35987
35988         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
35989         * modules/getlogin_r (configure.ac): Update.
35990
35991         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
35992         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
35993         * modules/inet_ntop (configure.ac): Update.
35994
35995         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
35996         * modules/inet_pton (configure.ac): Update.
35997
35998         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
35999         * modules/mbslen (configure.ac): Update.
36000
36001         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
36002         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
36003         * modules/forkpty (configure.ac): Update.
36004         * modules/openpty (configure.ac): Update.
36005
36006 2010-03-26  Simon Josefsson  <simon@josefsson.org>
36007
36008         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
36009         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
36010
36011 2010-03-25  Eric Blake  <eblake@redhat.com>
36012
36013         maint: use pragma consistently across replacement headers
36014         * lib/ctype.in.h (system_header): Hoist for consistent placement.
36015         * lib/dirent.in.h (system_header): Likewise.
36016         * lib/errno.in.h (system_header): Likewise.
36017         * lib/float.in.h (system_header): Likewise.
36018         * lib/getopt.in.h (system_header): Likewise.
36019         * lib/iconv.in.h (system_header): Likewise.
36020         * lib/inttypes.in.h (system_header): Likewise.
36021         * lib/langinfo.in.h (system_header): Likewise.
36022         * lib/locale.in.h (system_header): Likewise.
36023         * lib/math.in.h (system_header): Likewise.
36024         * lib/netdb.in.h (system_header): Likewise.
36025         * lib/netinet_in.in.h (system_header): Likewise.
36026         * lib/pty.in.h (system_header): Likewise.
36027         * lib/sched.in.h (system_header): Likewise.
36028         * lib/se-selinux.in.h (system_header): Likewise.
36029         * lib/search.in.h (system_header): Likewise.
36030         * lib/spawn.in.h (system_header): Likewise.
36031         * lib/stdarg.in.h (system_header): Likewise.
36032         * lib/stdint.in.h (system_header): Likewise.
36033         * lib/string.in.h (system_header): Likewise.
36034         * lib/strings.in.h (system_header): Likewise.
36035         * lib/sys_file.in.h (system_header): Likewise.
36036         * lib/sys_ioctl.in.h (system_header): Likewise.
36037         * lib/sys_socket.in.h (system_header): Likewise.
36038         * lib/sys_times.in.h (system_header): Likewise.
36039         * lib/sys_utsname.in.h (system_header): Likewise.
36040         * lib/sys_wait.in.h (system_header): Likewise.
36041         * lib/sysexits.in.h (system_header): Likewise.
36042         * lib/unistd.in.h (system_header): Likewise.
36043         * lib/wctype.in.h (system_header): Likewise.
36044
36045         arpa/inet: fix mingw compilation warning
36046         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
36047         Reported by Matthew Bolte.
36048
36049 2010-03-25  Bruno Haible  <bruno@clisp.org>
36050
36051         Avoid collision between gnulib wrapper and libintl wrapper.
36052         * lib/printf.c (printf): Don't define if a printf wrapper is already
36053         defined in intl/printf.c.
36054         Reported by Michel Boaventura <michel@michelboaventura.com>.
36055
36056 2010-03-25  Bruno Haible  <bruno@clisp.org>
36057
36058         Use ANSI C.
36059         * lib/readutmp.h (getutent): Provide ANSI C prototype.
36060
36061 2010-03-25  Bruno Haible  <bruno@clisp.org>
36062
36063         Minor formatting changes.
36064         * lib/acosl.c: Insert space before function argument list.
36065         * lib/argz.c: Likewise.
36066         * lib/asinl.c: Likewise.
36067         * lib/expl.c: Likewise.
36068         * lib/gen-uni-tables.c: Likewise.
36069         * lib/gettext.h: Likewise.
36070         * lib/glthread/lock.h: Likewise.
36071         * lib/tanl.c: Likewise.
36072         * lib/uniname/uniname.c: Likewise.
36073         * tests/test-idpriv-drop.c: Likewise.
36074         * tests/test-idpriv-droptemp.c: Likewise.
36075         * tests/test-lock.c: Likewise.
36076         * tests/test-tls.c: Likewise.
36077         * lib/argp-help.c: Insert space before function-like macro argument
36078         list.
36079         * lib/memcmp.c: Likewise.
36080         * tests/test-base64.c: Likewise.
36081         * lib/localename.c: Insert space before sizeof's argument list.
36082         * lib/safe-alloc.h: Likewise.
36083         * lib/file-set.h: Insert space before macro argument list.
36084         * tests/test-argp.c: Likewise.
36085         * lib/argp-namefrob.h: Insert space before function parameter list.
36086         * lib/getaddrinfo.c: Likewise.
36087         * lib/netdb.in.h: Likewise.
36088         * lib/parse-duration.h: Likewise.
36089         * lib/parse-duration.c: Likewise.
36090         * lib/poll.c: Likewise.
36091         * lib/select.c: Likewise.
36092         * lib/trim.h: Likewise.
36093         * tests/test-usleep.c: Likewise.
36094         * lib/ldexpl.c: Insert space before function parameter list and before
36095         function argument list.
36096         * lib/logl.c: Likewise.
36097         * lib/sqrtl.c: Likewise.
36098         * lib/trim.c: Likewise.
36099         * lib/cosl.c: Use GNU style indentation. Insert space before function
36100         argument list.
36101         * lib/sinl.c: Likewise.
36102         * lib/tsearch.c: Insert space after 'for'.
36103         Reported by Jim Meyering.
36104
36105 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
36106
36107         * maint.mk (sc_Wundef_boolean): Check for the presence of the
36108         config header before grepping, as it's not present before
36109         autoreconf/configure are run.  Reported by Simon Josefsson.
36110
36111 2010-03-23  Bruno Haible  <bruno@clisp.org>
36112
36113         pt_chown: Make it work with automake < 1.11.
36114         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
36115         Reported by Simon Josefsson.
36116
36117 2010-03-23  Bruno Haible  <bruno@clisp.org>
36118
36119         pt_chown: Don't depend on GPLed modules.
36120         * lib/pt_chown.c: Don't include idpriv.h.
36121         (main): Don't drop privileges.
36122         * modules/pt_chown (Depends-on): Remove idpriv-drop.
36123         Reported by Simon Josefsson.
36124
36125 2010-03-24  Simon Josefsson  <simon@josefsson.org>
36126
36127         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
36128         suggestions from karl@freefriends.org (Karl Berry).
36129
36130 2010-03-22  Eric Blake  <eblake@redhat.com>
36131
36132         gethostname: further tweaks
36133         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
36134         are overriding gethostname.
36135         Suggested by Bruno Haible.
36136
36137 2010-03-21  Bruno Haible  <bruno@clisp.org>
36138
36139         Fix comments.
36140         * lib/forkpty.c (rpl_forkpty): Fix comment.
36141         * lib/openpty.c (rpl_openpty): Likewise.
36142         Reported by Eric Blake.
36143
36144 2010-03-22  Eric Blake  <eblake@redhat.com>
36145
36146         gethostname: fix build on mingw
36147         * lib/unistd.in.h (includes): Work around fact that mingw
36148         <winsock2.h> re-includes <unistd.h>, by avoiding any
36149         redeclarations if we are being included by <winsock2.h>.
36150         Reported by Matthias Bolte.
36151
36152 2010-03-21  Bruno Haible  <bruno@clisp.org>
36153
36154         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
36155         * lib/forkpty.c (forkpty): New replacement function, from glibc with
36156         modifications.
36157         * lib/pty.in.h (forkpty): Update declaration. Add comments.
36158         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
36159         provide the replacement.
36160         * modules/forkpty (Depends-on): Add openpty, login_tty.
36161         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
36162         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
36163         * doc/glibc-functions/forkpty.texi: More supported platforms.
36164         * config/srclist.txt: Add forkpty.c (commented).
36165
36166 2010-03-21  Bruno Haible  <bruno@clisp.org>
36167
36168         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
36169         (Makefile.am): Verify that PTY_LIB is defined.
36170
36171         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
36172
36173 2010-03-21  Bruno Haible  <bruno@clisp.org>
36174
36175         Tests for module 'login_tty'.
36176         * modules/login_tty-tests: New file.
36177         * tests/test-login_tty.c: New file.
36178
36179         New module 'login_tty'.
36180         * lib/login_tty.c: New file.
36181         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
36182         * modules/login_tty: New file.
36183         * doc/glibc-functions/login_tty.texi: Mention the new module.
36184
36185 2010-03-21  Bruno Haible  <bruno@clisp.org>
36186
36187         login_tty: Documentation.
36188         * doc/glibc-functions/login_tty.texi: New file.
36189         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
36190
36191 2010-03-21  Bruno Haible  <bruno@clisp.org>
36192
36193         pty: Consistent macro naming.
36194         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
36195         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
36196         * modules/pty (configure.ac): Update.
36197
36198 2010-03-21  Bruno Haible  <bruno@clisp.org>
36199
36200         Tests for openpty: Make stricter.
36201         * tests/test-openpty.c (main): Add test of canonical processing and
36202         erase.
36203         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
36204
36205         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
36206         * lib/openpty.c (openpty): New replacement function.
36207         * lib/pty.in.h: Include <termios.h>.
36208         (openpty): Update declaration. Add comments.
36209         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
36210         is not declared, arrange to provide the replacement. Check for _getpty
36211         and posix_openpt.
36212         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
36213         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
36214         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
36215         * modules/pty-tests (test_pty_c___LDADD): New variable.
36216         * doc/glibc-functions/openpty.texi: More supported platforms.
36217
36218 2010-03-21  Bruno Haible  <bruno@clisp.org>
36219
36220         setenv: Tweaks.
36221         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
36222         the test program.
36223         * doc/posix-functions/setenv.texi: Update platforms list.
36224
36225 2010-03-21  Bruno Haible  <bruno@clisp.org>
36226
36227         New module 'unlockpt'.
36228         * lib/unlockpt.c: New file, from glibc with modifications.
36229         * m4/unlockpt.m4: New file.
36230         * modules/unlockpt: New file.
36231         * lib/stdlib.in.h (unlockpt): New declaration.
36232         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
36233         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
36234         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
36235         HAVE_UNLOCKPT.
36236         * doc/posix-functions/unlockpt.texi: Mention the new module.
36237         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
36238         * config/srclist.txt: Add unlockpt.c (commented).
36239
36240 2010-03-21  Jim Meyering  <meyering@redhat.com>
36241
36242         maint.mk: prohibit inclusion of "intprops.h" without use
36243         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
36244
36245 2010-03-21  Bruno Haible  <bruno@clisp.org>
36246
36247         New module 'grantpt'.
36248         * lib/grantpt.c: New file, from glibc with modifications.
36249         * m4/grantpt.m4: New file.
36250         * modules/grantpt: New file.
36251         * lib/stdlib.in.h (grantpt): New declaration.
36252         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
36253         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
36254         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
36255         HAVE_GRANTPT.
36256         * doc/posix-functions/grantpt.texi: Mention the new module.
36257         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
36258         * config/srclist.txt: Add grantpt.c (commented).
36259
36260 2010-03-21  Bruno Haible  <bruno@clisp.org>
36261
36262         New module 'pt_chown'.
36263         * lib/pt_chown.c: New file, from glibc with modifications.
36264         * lib/pty-private.h: New file, from glibc with modifications.
36265         * modules/pt_chown: New file.
36266         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
36267
36268 2010-03-21  Bruno Haible  <bruno@clisp.org>
36269
36270         Tests for module 'ptsname'.
36271         * modules/ptsname-tests: New file.
36272         * tests/test-ptsname.c: New file.
36273
36274         New module 'ptsname'.
36275         * lib/ptsname.c: New file, from glibc with modifications.
36276         * m4/ptsname.m4: New file.
36277         * modules/ptsname: New file.
36278         * lib/stdlib.in.h (ptsname): New declaration.
36279         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
36280         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
36281         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
36282         HAVE_PTSNAME.
36283         * doc/posix-functions/ptsname.texi: Mention the new module.
36284         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
36285         * config/srclist.txt: Add ptsname.c (commented).
36286
36287 2010-03-21  Bruno Haible  <bruno@clisp.org>
36288
36289         Tests for module 'ttyname_r'.
36290         * modules/ttyname_r-tests: New file.
36291         * tests/test-ttyname_r.c: New file.
36292
36293         New module 'ttyname_r'.
36294         * lib/ttyname_r.c: New file.
36295         * m4/ttyname_r.m4: New file.
36296         * modules/ttyname_r: New file.
36297         * lib/unistd.in.h (ttyname_r): New declaration.
36298         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
36299         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
36300         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
36301         HAVE_TTYNAME_R.
36302         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
36303         * doc/posix-functions/ttyname_r.texi: Mention the new module.
36304
36305 2010-03-20  Bruno Haible  <bruno@clisp.org>
36306
36307         signal: Undefine macro definitions in C++ mode.
36308         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
36309         sigfillset): Undefine macro definitions from the system header in C++
36310         mode.
36311         Reported by John W. Eaton <jwe@gnu.org>.
36312
36313 2010-03-20  Bruno Haible  <bruno@clisp.org>
36314
36315         Ensure no #include statements inside extern "C" { ... }.
36316         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
36317         contain #include statements.
36318         * lib/time.in.h: Likewise.
36319
36320 2010-03-20  Bruno Haible  <bruno@clisp.org>
36321
36322         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
36323         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
36324         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
36325         Reported by John W. Eaton <jwe@gnu.org>.
36326
36327 2010-03-20  Bruno Haible  <bruno@clisp.org>
36328
36329         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
36330         Reported by Jim Meyering.
36331
36332 2010-03-20  Bruno Haible  <bruno@clisp.org>
36333
36334         pipe: Set errno upon failure.
36335         * lib/pipe.h: Specify that when -1 is returned, errno is set.
36336         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
36337         errno value in error message.
36338
36339 2010-03-20  Bruno Haible  <bruno@clisp.org>
36340             Jim Meyering  <meyering@redhat.com>
36341
36342         lchown: Avoid "unused variable" warning.
36343         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
36344
36345 2010-03-20  Bruno Haible  <bruno@clisp.org>
36346
36347         Work around unlink() bug on MacOS X 10.5.6.
36348         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
36349         attempting to unlink a parent directory.
36350         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
36351         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
36352         activate for the replacement function.
36353         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
36354
36355 2010-03-20  Bruno Haible  <bruno@clisp.org>
36356
36357         Fix link errors on Solaris 8.
36358         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
36359         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
36360
36361 2010-03-19  Jim Meyering  <meyering@redhat.com>
36362
36363         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
36364         The _LIBC implementation of build_range_exp correctly honors the
36365         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
36366         However, the non-_LIBC implementation would ignore that syntax-bit
36367         flag and return REG_ERANGE unconditionally.
36368         This change makes it honor that flag.
36369         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
36370         Make two pointer parameters "const".
36371         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
36372         (parse_bracket_exp): Update caller.
36373
36374         regex.m4: correct the reversed range endpoint ([b-a]) test
36375         * m4/regex.m4: When requiring that [b-a] evoke failure,
36376         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
36377         test pass once again for x86-based systems.
36378
36379 2010-03-19  Bruno Haible  <bruno@clisp.org>
36380
36381         scandir: Fix link error on Solaris 8.
36382         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
36383         macros.
36384
36385 2010-03-19  Bruno Haible  <bruno@clisp.org>
36386
36387         getusershell: Fix documentation.
36388         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
36389         module.
36390         * doc/glibc-functions/setusershell.texi: Likewise.
36391
36392         getusershell: Provide declaration, missing on Solaris 9.
36393         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
36394         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
36395         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
36396         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
36397         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36398         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
36399         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
36400         HAVE_GETUSERSHELL.
36401         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
36402
36403 2010-03-19  Bruno Haible  <bruno@clisp.org>
36404
36405         wctype: Provide iswblank function.
36406         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
36407         exists and is fine.
36408         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
36409         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
36410         * tests/test-wctype.c (main): Re-enable the iswblank tests.
36411         * doc/posix-functions/iswblank.texi: Update.
36412
36413 2010-03-19  Bruno Haible  <bruno@clisp.org>
36414
36415         Tests of module 'pty' in C++ mode.
36416         * modules/pty-tests: New file.
36417         * tests/test-pty-c++.cc: New file.
36418         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
36419
36420 2010-03-19  Eric Blake  <eblake@redhat.com>
36421
36422         logb: fix documentation
36423         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
36424         1.5 declaration bug.
36425
36426         forkpty, openpty: prefer glibc's const-safe prototype
36427         * lib/forkpty.c (rpl_forkpty): New file.
36428         * lib/openpty.c (rpl_openpty): Likewise.
36429         * modules/forkpty (Files): Distribute it.
36430         * modules/openpty (Files): Likewise.
36431         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
36432         check...
36433         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
36434         replacement for for non-const BSD signature.
36435         * modules/pty (Makefile.am): Substitute witnesses.
36436         * lib/pty.in.h (forkpty, openpty): Declare replacements.
36437         * tests/test-forkpty.c: Update signature check.
36438         * tests/test-openpty.c: Likewise.
36439         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
36440         * doc/glibc-functions/openpty.texi (openpty): Likewise.
36441
36442         forkpty, openpty: split functions into new modules
36443         * modules/pty (Makefile.am): Substitute new witnesses.
36444         (Libraries): Move library detection...
36445         * modules/forkpty: ...into new module.
36446         * modules/openpty: Another new module.
36447         * modules/pty-tests: Rename and split...
36448         * modules/forkpty-tests: ...to this...
36449         * modules/openpty-tests: ...and this.
36450         * tests/test-pty.c: Rename and split...
36451         * tests/test-forkpty.c: ...to this...
36452         * tests/test-openpty.c: ...and this.
36453         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
36454         (gl_PTY): Split library searching...
36455         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
36456         (gl_FORKPTY, gl_OPENPTY): New macros.
36457         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
36458         * NEWS: Mention the split.
36459         * MODULES.html.sh (Misc): Document the modules.
36460         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
36461         * doc/glibc-functions/openpty.texi (openpty): Likewise.
36462
36463         pty: improve replacement header
36464         * lib/pty.in.h: New file.
36465         * modules/pty (Files): Ship it.
36466         (Makefile.am): Always build replacement.
36467         * m4/pty.m4: Rename...
36468         * m4/pty_h.m4: ...to this.
36469         (gl_PTY): Modernize setting of witness macros; update check of
36470         forkpty to take proper advantage of cache.
36471         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
36472
36473         getopt: avoid compiler warning
36474         * lib/getopt.c (attribute_hidden): Remove unused macro.
36475
36476 2010-03-18  Bruno Haible  <bruno@clisp.org>
36477
36478         Fix link errors on Solaris 8.
36479         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
36480         * modules/search-tests (test_search_c___LDADD): Likewise.
36481         * modules/signal-tests (test_signal_c___LDADD): Likewise.
36482         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
36483         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
36484         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
36485         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
36486         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
36487         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
36488
36489 2010-03-18  Bruno Haible  <bruno@clisp.org>
36490
36491         Fix bug introduced on 2010-03-14.
36492         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
36493         (gl_SPAWN_H): Require it.
36494         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
36495         Reported by Simon Josefsson.
36496
36497 2010-03-18  Bruno Haible  <bruno@clisp.org>
36498
36499         Fix typo introduced on 2009-12-31.
36500         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
36501         posix_spawn_file_actions_adddup2.
36502
36503 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
36504         and Eric Blake  <eblake@redhat.com>
36505
36506         test-vc-list-files-git: make more robust
36507         * tests/test-vc-list-files-git.sh: Unset problematic environment
36508         variables.  Chain commands together.
36509
36510 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
36511
36512         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
36513         `AC_CHECK_DECL' invocation.
36514
36515 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
36516
36517         * lib/inttostr.c (inttostr): Make sure the invocation of verify
36518         appears before executable statements. Suggested by Petr Sumbera
36519         <Petr.Sumbera@Sun.COM>.
36520
36521 2010-03-14  Bruno Haible  <bruno@clisp.org>
36522
36523         * tests/test-flock.c (test_exclusive): Comment out a test that causes
36524         portability problems. Instead use a simpler test.
36525         (main): Check that invalid arguments are rejected only on Linux.
36526
36527 2010-03-14  Bruno Haible  <bruno@clisp.org>
36528
36529         Fix bug introduced on 2009-12-31.
36530         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
36531         gl_PREREQ_SYS_H_WINSOCK2 always.
36532         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
36533         SYS_SOCKET_H variable.
36534         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
36535         Update comments.
36536         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
36537         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
36538         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
36539         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
36540         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
36541
36542 2010-03-14  Bruno Haible  <bruno@clisp.org>
36543
36544         Fix values returned by sinl, cosl.
36545         * lib/trigl.h: Add specification comments.
36546         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
36547         that combines the values from the precomputed table with the values of
36548         the Chebyshev polynomials.
36549
36550 2010-03-14  Bruno Haible  <bruno@clisp.org>
36551
36552         Fix compilation error when modules 'posix_spawn[p]' are not used.
36553         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
36554         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
36555
36556 2010-03-14  Bruno Haible  <bruno@clisp.org>
36557
36558         Fix compilation error on mingw when module 'time_r' is not used.
36559         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
36560         is 1.
36561         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
36562         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
36563         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
36564         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
36565
36566 2010-03-14  Bruno Haible  <bruno@clisp.org>
36567
36568         Fix compilation error with Sun C.
36569         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
36570         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
36571         instead of GCC specific ULONG_LONG_MAX.
36572         * lib/xstrtoll.c: Likewise.
36573         * lib/xstrtoull.c: Likewise.
36574
36575 2010-03-13  Bruno Haible  <bruno@clisp.org>
36576
36577         Allow the user to disable C++ code and tests.
36578         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
36579         (gl_PROG_ANSI_CXX): Require it.
36580
36581 2010-03-13  Bruno Haible  <bruno@clisp.org>
36582
36583         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
36584         cases.
36585
36586 2010-03-13  Bruno Haible  <bruno@clisp.org>
36587
36588         Test that gnulib does not break the standard C++ headers.
36589         * tests/test-locale-c++2.cc: New file.
36590         * modules/locale-tests (Files): Add it.
36591         (Makefile.am): Compile it for test-locale-c++.
36592         * tests/test-math-c++2.cc: New file.
36593         * modules/math-tests (Files): Add it.
36594         (Makefile.am): Compile it for test-math-c++.
36595         * tests/test-signal-c++2.cc: New file.
36596         * modules/signal-tests (Files): Add it.
36597         (Makefile.am): Compile it for test-signal-c++.
36598         * tests/test-stdio-c++2.cc: New file.
36599         * modules/stdio-tests (Files): Add it.
36600         (Makefile.am): Compile it for test-stdio-c++.
36601         * tests/test-stdlib-c++2.cc: New file.
36602         * modules/stdlib-tests (Files): Add it.
36603         (Makefile.am): Compile it for test-stdlib-c++.
36604         * tests/test-string-c++2.cc: New file.
36605         * modules/string-tests (Files): Add it.
36606         (Makefile.am): Compile it for test-string-c++.
36607         * tests/test-time-c++2.cc: New file.
36608         * modules/time-tests (Files): Add it.
36609         (Makefile.am): Compile it for test-time-c++.
36610         Reported by John W. Eaton <jwe@gnu.org>.
36611
36612 2010-03-13  Bruno Haible  <bruno@clisp.org>
36613
36614         * gnulib-tool (func_usage): Clarify which options are available for
36615         --create-testdir and --create-megatestdir.
36616
36617 2010-03-13  Bruno Haible  <bruno@clisp.org>
36618
36619         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
36620         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
36621         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
36622         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
36623         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
36624         when appropriate.
36625         Reported by Jim Meyering.
36626
36627 2010-03-12  Simon Josefsson  <simon@josefsson.org>
36628
36629         * gnulib-tool (func_import): Explain origin of code.
36630
36631 2010-03-12  Bruno Haible  <bruno@clisp.org>
36632
36633         Fix problem with automake's definition of CXXLINK.
36634         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
36635         Reported by Simon Josefsson and Ludovic Courtès.
36636
36637 2010-03-12  Bruno Haible  <bruno@clisp.org>
36638
36639         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
36640         stable releases.
36641
36642 2010-03-11  Bruno Haible  <bruno@clisp.org>
36643
36644         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
36645         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
36646         whether the system provides one variant or multiple variants of the
36647         function.
36648         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
36649         C++ compilers.
36650         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
36651         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
36652         Reported by Jim Meyering.
36653
36654 2010-03-09  Simon Josefsson  <simon@josefsson.org>
36655
36656         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
36657
36658 2010-03-08  Bruno Haible  <bruno@clisp.org>
36659
36660         gnulib-tool: Add support for --libtool in --create-testdir.
36661         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
36662         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
36663
36664 2010-03-08  Eric Blake  <eblake@redhat.com>
36665
36666         gnulib-tool.texi: mention possibility of git submodule
36667         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
36668         submodules.
36669         * doc/.gitignore: Ignore another generated file.
36670
36671 2010-03-08  Karl Berry  <karl@gnu.org>
36672
36673         * doc/gnulib-tool.texi (VCS Issues): Mention third option
36674         of committing gnulib files while skipping others.
36675
36676 2010-03-07  Bruno Haible  <bruno@clisp.org>
36677
36678         Tests of module 'wctype' in C++ mode.
36679         * tests/test-wctype-c++.cc: New file.
36680         * modules/wctype-tests (Files): Add it and tests/signature.h.
36681         (Depends-on): Add ansi-c++-opt.
36682         (Makefile.am): Arrange to compile and run test-wctype-c++.
36683
36684         Tests of module 'wchar' in C++ mode.
36685         * tests/test-wchar-c++.cc: New file.
36686         * modules/wchar-tests (Files): Add it and tests/signature.h.
36687         (Depends-on): Add ansi-c++-opt.
36688         (Makefile.am): Arrange to compile and run test-wchar-c++.
36689         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
36690         gl_MODULE_INDICATOR.
36691
36692         Tests of module 'unistd' in C++ mode.
36693         * tests/test-unistd-c++.cc: New file.
36694         * modules/unistd-tests (Files): Add it and tests/signature.h.
36695         (Depends-on): Add ansi-c++-opt.
36696         (Makefile.am): Arrange to compile and run test-unistd-c++.
36697         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
36698         gl_MODULE_INDICATOR.
36699
36700         Tests of module 'time' in C++ mode.
36701         * tests/test-time-c++.cc: New file.
36702         * modules/time-tests (Files): Add it and tests/signature.h.
36703         (Depends-on): Add ansi-c++-opt.
36704         (Makefile.am): Arrange to compile and run test-time-c++.
36705         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
36706
36707         Tests of module 'sys_time' in C++ mode.
36708         * tests/test-sys_time-c++.cc: New file.
36709         * modules/sys_time-tests (Files): Add it and tests/signature.h.
36710         (Depends-on): Add ansi-c++-opt.
36711         (Makefile.am): Arrange to compile and run test-sys_time-c++.
36712         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
36713         gl_MODULE_INDICATOR.
36714
36715         Tests of module 'sys_stat' in C++ mode.
36716         * tests/test-sys_stat-c++.cc: New file.
36717         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
36718         (Depends-on): Add ansi-c++-opt.
36719         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
36720         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
36721         gl_MODULE_INDICATOR.
36722
36723         Tests of module 'sys_socket' in C++ mode.
36724         * tests/test-sys_socket-c++.cc: New file.
36725         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
36726         (Depends-on): Add ansi-c++-opt.
36727         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
36728         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
36729         gl_MODULE_INDICATOR.
36730
36731         Tests of module 'sys_select' in C++ mode.
36732         * tests/test-sys_select-c++.cc: New file.
36733         * modules/sys_select-tests (Files): Add it and tests/signature.h.
36734         (Depends-on): Add ansi-c++-opt.
36735         (Makefile.am): Arrange to compile and run test-sys_select-c++.
36736         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
36737         gl_MODULE_INDICATOR.
36738
36739         Tests of module 'sys_ioctl' in C++ mode.
36740         * tests/test-sys_ioctl-c++.cc: New file.
36741         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
36742         (Depends-on): Add ansi-c++-opt.
36743         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
36744         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
36745         gl_MODULE_INDICATOR.
36746
36747         Tests of module 'string' in C++ mode.
36748         * tests/test-string-c++.cc: New file.
36749         * modules/string-tests (Files): Add it and tests/signature.h.
36750         (Depends-on): Add ansi-c++-opt.
36751         (Makefile.am): Arrange to compile and run test-string-c++.
36752         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
36753         gl_MODULE_INDICATOR.
36754
36755         Tests of module 'stdlib' in C++ mode.
36756         * tests/test-stdlib-c++.cc: New file.
36757         * modules/stdlib-tests (Files): Add it and tests/signature.h.
36758         (Depends-on): Add ansi-c++-opt.
36759         (Makefile.am): Arrange to compile and run test-stdlib-c++.
36760         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
36761         gl_MODULE_INDICATOR.
36762
36763         Tests of module 'stdio' in C++ mode.
36764         * tests/test-stdio-c++.cc: New file.
36765         * modules/stdio-tests (Files): Add it and tests/signature.h.
36766         (Depends-on): Add ansi-c++-opt.
36767         (Makefile.am): Arrange to compile and run test-stdio-c++.
36768         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
36769         gl_MODULE_INDICATOR.
36770
36771         Tests of module 'spawn' in C++ mode.
36772         * tests/test-spawn-c++.cc: New file.
36773         * modules/spawn-tests (Files): Add it and tests/signature.h.
36774         (Depends-on): Add ansi-c++-opt.
36775         (Makefile.am): Arrange to compile and run test-spawn-c++.
36776         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
36777         gl_MODULE_INDICATOR.
36778
36779         Tests of module 'signal' in C++ mode.
36780         * tests/test-signal-c++.cc: New file.
36781         * modules/signal-tests (Files): Add it and tests/signature.h.
36782         (Depends-on): Add ansi-c++-opt.
36783         (Makefile.am): Arrange to compile and run test-signal-c++.
36784         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
36785         gl_MODULE_INDICATOR.
36786
36787         Tests of module 'search' in C++ mode.
36788         * tests/test-search-c++.cc: New file.
36789         * modules/search-tests (Files): Add it and tests/signature.h.
36790         (Depends-on): Add ansi-c++-opt.
36791         (Makefile.am): Arrange to compile and run test-search-c++.
36792         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
36793         gl_MODULE_INDICATOR.
36794
36795         Tests of module 'math' in C++ mode.
36796         * tests/test-math-c++.cc: New file.
36797         * modules/math-tests (Files): Add it and tests/signature.h.
36798         (Depends-on): Add ansi-c++-opt.
36799         (Makefile.am): Arrange to compile and run test-math-c++.
36800         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
36801
36802         Tests of module 'locale' in C++ mode.
36803         * tests/test-locale-c++.cc: New file.
36804         * modules/locale-tests (Files): Add it and tests/signature.h.
36805         (Depends-on): Add ansi-c++-opt.
36806         (Makefile.am): Arrange to compile and run test-locale-c++.
36807         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
36808         gl_MODULE_INDICATOR.
36809
36810         Tests of module 'langinfo' in C++ mode.
36811         * tests/test-langinfo-c++.cc: New file.
36812         * modules/langinfo-tests (Files): Add it and tests/signature.h.
36813         (Depends-on): Add ansi-c++-opt.
36814         (Makefile.am): Arrange to compile and run test-langinfo-c++.
36815         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
36816         gl_MODULE_INDICATOR.
36817
36818         Tests of module 'iconv-h' in C++ mode.
36819         * tests/test-iconv-h-c++.cc: New file.
36820         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
36821         (Depends-on): Add ansi-c++-opt.
36822         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
36823
36824         Tests of module 'glob' in C++ mode.
36825         * tests/test-glob-c++.cc: New file.
36826         * modules/glob-tests (Files): Add it.
36827         (Depends-on): Add ansi-c++-opt.
36828         (Makefile.am): Arrange to compile and run test-glob-c++.
36829
36830         Tests of module 'fcntl-h' in C++ mode.
36831         * tests/test-fcntl-h-c++.cc: New file.
36832         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
36833         (Depends-on): Add ansi-c++-opt.
36834         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
36835         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
36836         gl_MODULE_INDICATOR.
36837
36838         Tests of module 'dirent' in C++ mode.
36839         * tests/test-dirent-c++.cc: New file.
36840         * modules/dirent-tests (Files): Add it and tests/signature.h.
36841         (Depends-on): Add ansi-c++-opt.
36842         (Makefile.am): Arrange to compile and run test-dirent-c++.
36843         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
36844         gl_MODULE_INDICATOR.
36845
36846         New module 'ansi-c++-opt'.
36847         * modules/ansi-c++-opt: New file.
36848         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
36849
36850         Document C++ namespace mode.
36851         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
36852
36853         wctype: Avoid #define replacements in C++ mode.
36854         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
36855         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
36856         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
36857         In C++, define a namespaced alias symbol.
36858         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
36859         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
36860         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
36861         rule.
36862
36863         wchar: Avoid #define replacements in C++ mode.
36864         * lib/wchar.in.h: Include c++defs.h.
36865         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
36866         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
36867         symbol.
36868         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
36869         * modules/wchar (Depends-on): Add c++defs.
36870         (Makefile.am): Update wchar.h rule.
36871
36872         unistd: Avoid #define replacements in C++ mode.
36873         * lib/unistd.in.h: Include c++defs.h.
36874         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
36875         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
36876         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
36877         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
36878         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
36879         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
36880         symbol.
36881         (environ): Update.
36882         * modules/unistd (Depends-on): Add c++defs.
36883         (Makefile.am): Update unistd.h rule.
36884
36885         time: Avoid #define replacements in C++ mode.
36886         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
36887         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
36888         define a namespaced alias symbol.
36889         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
36890         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
36891         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
36892         * modules/time (Depends-on): Add c++defs, warn-on-use.
36893         (Makefile.am): Update time.h rule.
36894         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
36895         * modules/nanosleep (configure.ac): Likewise.
36896         * modules/strptime (configure.ac): Likewise.
36897         * modules/timegm (configure.ac): Likewise.
36898
36899         sys_time: Avoid #define replacements in C++ mode.
36900         * lib/sys_time.in.h: Include c++defs.h.
36901         (gettimeofday): In C++, define a namespaced alias symbol.
36902         * modules/sys_time (Depends-on): Add c++defs.
36903         (Makefile.am): Update sys/time.h rule.
36904
36905         sys_stat: Avoid #define replacements in C++ mode.
36906         * lib/sys_stat.in.h: Include c++defs.h.
36907         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
36908         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
36909         namespaced alias symbol.
36910         In C++, define a namespaced alias symbol.
36911         * modules/sys_stat (Depends-on): Add c++defs.
36912         (Makefile.am): Update sys/stat.h rule.
36913
36914         sys_socket: Avoid #define replacements in C++ mode.
36915         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
36916         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
36917         definitions also when the system has a <sys/socket.h>.
36918         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
36919         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
36920         In C++, define a namespaced alias symbol.
36921         * modules/sys_socket (Depends-on): Add c++defs.
36922         (Makefile.am): Update sys/socket.h rule.
36923
36924         sys_select: Avoid #define replacements in C++ mode.
36925         * lib/sys_select.in.h: Include c++defs.h. Enable the function
36926         definitions also when the system has a <sys/select.h>.
36927         (select): In C++, define a namespaced alias symbol.
36928         * modules/sys_select (Depends-on): Add c++defs.
36929         (Makefile.am): Update sys/select.h rule.
36930
36931         sys_ioctl: Avoid #define replacements in C++ mode.
36932         * lib/sys_ioctl.in.h: Include c++defs.h.
36933         (ioctl): In C++, define a namespaced alias symbol.
36934         * modules/sys_ioctl (Depends-on): Add c++defs.
36935         (Makefile.am): Update sys/ioctl.h rule.
36936
36937         string: Avoid #define replacements in C++ mode.
36938         * lib/string.in.h: Include c++defs.h.
36939         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
36940         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
36941         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
36942         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
36943         strsignal, strverscmp): In C++, define a namespaced alias symbol.
36944         * modules/string (Depends-on): Add c++defs.
36945         (Makefile.am): Update string.h rule.
36946
36947         stdlib: Avoid #define replacements in C++ mode.
36948         * lib/stdlib.in.h: Include c++defs.h.
36949         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
36950         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
36951         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
36952         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
36953         symbol.
36954         * modules/stdlib (Depends-on): Add c++defs.
36955         (Makefile.am): Update stdlib.h rule.
36956
36957         stdio: Avoid #define replacements in C++ mode.
36958         * lib/stdio.in.h: Include c++defs.h.
36959         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
36960         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
36961         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
36962         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
36963         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
36964         namespaced alias symbol.
36965         * modules/stdio (Depends-on): Add c++defs.
36966         (Makefile.am): Update stdio.h rule.
36967
36968         spawn: Avoid #define replacements in C++ mode.
36969         * lib/spawn.in.h: Include c++defs.h.
36970         (posix_spawn, posix_spawnp, posix_spawnattr_init,
36971         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
36972         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
36973         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
36974         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
36975         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
36976         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
36977         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
36978         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
36979         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
36980         In C++, define a namespaced alias symbol.
36981         * modules/spawn (Depends-on): Add c++defs.
36982         (Makefile.am): Update spawn.h rule.
36983
36984         signal: Avoid #define replacements in C++ mode.
36985         * lib/signal.in.h: Include c++defs.h.
36986         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
36987         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
36988         namespaced alias symbol.
36989         * modules/signal (Depends-on): Add c++defs.
36990         (Makefile.am): Update signal.h rule.
36991
36992         search: Avoid #define replacements in C++ mode.
36993         * lib/search.in.h: Include c++defs.h.
36994         (_gl_search_compar_fn, _gl_search_action_fn): New types.
36995         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
36996         symbol.
36997         * modules/search (Depends-on): Add c++defs.
36998         (Makefile.am): Update search.h rule.
36999
37000         math: Avoid #define replacements in C++ mode.
37001         * lib/math.in.h: Include c++defs.h.
37002         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
37003         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
37004         trunc, truncl): In C++, define a namespaced alias symbol.
37005         * modules/math (Depends-on): Add c++defs.
37006         (Makefile.am): Update math.h rule.
37007
37008         locale: Avoid #define replacements in C++ mode.
37009         * lib/locale.in.h: Include c++defs.h.
37010         (duplocale): In C++, define a namespaced alias symbol.
37011         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
37012         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
37013         * modules/locale (Depends-on): Add c++defs.
37014         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
37015
37016         langinfo: Avoid #define replacements in C++ mode.
37017         * lib/langinfo.in.h: Include c++defs.h.
37018         (nl_langinfo): In C++, define a namespaced alias symbol.
37019         * modules/langinfo (Depends-on): Add c++defs.
37020         (Makefile.am): Update langinfo.h rule.
37021
37022         iconv-h: Avoid #define replacements in C++ mode.
37023         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
37024         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
37025         symbol.
37026         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
37027         whenever iconv is present.
37028         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
37029         (Makefile.am): Update iconv.h rule.
37030
37031         glob: Avoid #define replacements in C++ mode.
37032         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
37033         (_gl_glob_errfunc_fn): New type.
37034         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
37035         symbol.
37036         * modules/glob (Depends-on): Add c++defs, warn-on-use.
37037         (Makefile.am): Update glob.h rule.
37038
37039         fcntl-h: Avoid #define replacements in C++ mode.
37040         * lib/fcntl.in.h: Include c++defs.h.
37041         (fcntl, open, openat): In C++, define a namespaced alias symbol.
37042         * modules/fcntl-h (Depends-on): Add c++defs.
37043         (Makefile.am): Update fcntl.h rule.
37044
37045         dirent: Avoid #define replacements in C++ mode.
37046         * lib/dirent.in.h: Include c++defs.h.
37047         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
37048         namespaced alias symbol.
37049         (dirfd): Update declaration.
37050         * modules/dirent (Depends-on): Add c++defs.
37051         (Makefile.am): Update dirent.h rule.
37052
37053         ctype: Make it usable in C++ code.
37054         * lib/ctype.in.h: Include c++defs.h.
37055         (isblank): Declare as extern "C".
37056         * modules/ctype (Depends-on): Add c++defs.
37057         (Makefile.am): Update ctype.h rule.
37058
37059         New module 'c++defs'.
37060         * modules/c++defs: New file.
37061         * build-aux/c++defs.h: New file.
37062         Reported by John W. Eaton <jwe@gnu.org>.
37063
37064 2010-03-07  Bruno Haible  <bruno@clisp.org>
37065
37066         logb: Provide missing declaration for Cygwin.
37067         * lib/math.in.h (logb): New declaration.
37068         * m4/logb.m4: New file.
37069         * modules/logb (Files): Add m4/logb.m4.
37070         (Depends-on): Add math.
37071         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
37072         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
37073         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
37074         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
37075         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
37076
37077 2010-03-07  Bruno Haible  <bruno@clisp.org>
37078
37079         Fix test-cond link error.
37080         * tests/test-cond.c: Include <stdio.h>.
37081
37082 2010-03-07  Bruno Haible  <bruno@clisp.org>
37083
37084         Fix test-dirent-safer link error.
37085         * modules/dirent-safer-tests (Makefile.am): Define
37086         test_dirent_safer_LDADD.
37087
37088 2010-03-07  Bruno Haible  <bruno@clisp.org>
37089
37090         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
37091         among default module list.
37092
37093 2010-03-07  Bruno Haible  <bruno@clisp.org>
37094
37095         Fix link error on platforms with GNU libiconv.
37096         * modules/unistr/u8-strcoll-tests (Makefile): Define
37097         test_u8_strcoll_LDADD.
37098         * modules/unistr/u16-strcoll-tests (Makefile): Define
37099         test_u16_strcoll_LDADD.
37100         * modules/unistr/u32-strcoll-tests (Makefile): Define
37101         test_u32_strcoll_LDADD.
37102
37103 2010-03-07  Bruno Haible  <bruno@clisp.org>
37104
37105         Use POSIX declarations for socket functions.
37106         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
37107         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
37108         rpl_sendto): Change declaration to match POSIX.
37109         * lib/connect.c (rpl_connect): Likewise.
37110         * lib/accept.c (rpl_accept): Likewise.
37111         * lib/bind.c (rpl_bind): Likewise.
37112         * lib/getpeername.c (rpl_getpeername): Likewise.
37113         * lib/getsockname.c (rpl_getsockname): Likewise.
37114         * lib/recv.c (rpl_recv): Likewise.
37115         * lib/send.c (rpl_send): Likewise.
37116         * lib/recvfrom.c (rpl_recvfrom): Likewise.
37117         * lib/sendto.c (rpl_sendto): Likewise.
37118
37119 2010-03-06  Bruno Haible  <bruno@clisp.org>
37120
37121         Clarify access, euidaccess, faccessat.
37122         * doc/posix-functions/faccessat.texi: Mention security problem under
37123         "Other problems", not "Portability problems".
37124         * doc/posix-functions/access.texi: Likewise. Mention a related security
37125         problem.
37126         * doc/glibc-functions/euidaccess.texi: Mention security problems.
37127         * lib/euidaccess.c: Add comments about platforms.
37128         * lib/unistd.in.h (access, euidaccess): Add warnings.
37129
37130 2010-03-07  Bruno Haible  <bruno@clisp.org>
37131
37132         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
37133         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
37134         (POSIX_SPAWN_SETSCHEDULER): Likewise.
37135         (POSIX_SPAWN_USEVFORK): Define in a way that works when
37136         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
37137         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
37138         declare when POSIX_SPAWN_SETSCHEDULER is zero.
37139         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
37140         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
37141         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
37142         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
37143         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
37144         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
37145         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
37146         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
37147         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
37148         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
37149         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
37150         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
37151         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
37152         Likewise.
37153         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
37154         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
37155         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
37156         Likewise.
37157         * tests/test-spawn.c (main): Make it work when
37158         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
37159
37160 2010-03-07  Bruno Haible  <bruno@clisp.org>
37161
37162         Fix incorrect Makefile.am generation in German locale.
37163         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
37164         Execute sed command with character range in C locale.
37165
37166 2010-03-06  Bruno Haible  <bruno@clisp.org>
37167
37168         Tests for module 'iconv-h'.
37169         * modules/iconv-h-tests: New file.
37170         * tests/test-iconv-h.c: New file.
37171
37172         New module 'iconv-h'.
37173         * modules/iconv-h: New file.
37174         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
37175         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
37176         (configure.ac): Remove gl_ICONV_H.
37177         (Makefile.am): Remove rule for iconv.h.
37178
37179 2010-03-06  Bruno Haible  <bruno@clisp.org>
37180
37181         More consistent naming of *.m4 files.
37182         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
37183         * modules/wctype (Files): Update.
37184
37185         More consistent naming of *.m4 files.
37186         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
37187         * modules/wchar (Files): Update.
37188
37189 2010-03-06  Jim Meyering  <meyering@redhat.com>
37190
37191         euidaccess: relax license to LGPLv2+
37192         * modules/euidaccess (License): Relax to LGPLv2+.
37193
37194 2010-03-06  Bruno Haible  <bruno@clisp.org>
37195
37196         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
37197         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
37198         (Makefile.am): Augment lib_SOURCES instead.
37199
37200 2010-03-04  Jim Meyering  <meyering@redhat.com>
37201
37202         utime: remove obsolete module
37203         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
37204         unnecessary for years, and has been marked as obsolete for 10 months.
37205         * modules/utime: Remove file.
37206         * lib/utime.c: Remove file.
37207         * m4/utime.m4: Remove file.
37208         * m4/utimes-null.m4: Remove file.
37209         * doc/posix-functions/utime.texi (utime): Remove reference to
37210         the module.  Move the sole "fixed by gnulib" item into the
37211         "problems not fixed by Gnulib" list.
37212         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
37213
37214 2010-03-05  Simon Josefsson  <simon@josefsson.org>
37215
37216         * modules/exit (License): Relax license to LGPLv2+.
37217         (Status): Mark as obsolete.
37218         * NEWS: Mention deprecated 'exit' module.
37219         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
37220         of now obsolete 'exit'.
37221
37222 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37223
37224         fts-lgpl: remove unused module
37225         * modules/fts-lgpl: Remove.
37226         * MODULES.html.sh (func_all_modules): Adjust.
37227         * check-module (find_included_lib_files): Adjust.
37228         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
37229
37230 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
37231
37232         copy-acl: enhance Solaris ACL error handling
37233         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
37234         * lib/set-mode-acl.c (qset_acl): Likewise.
37235
37236 2010-03-02  Bruno Haible  <bruno@clisp.org>
37237
37238         spawn: Don't override the system defined values on FreeBSD 8.
37239         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
37240         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
37241         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
37242         if HAVE_POSIX_SPAWN is 1.
37243         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
37244
37245 2010-03-01  Bruno Haible  <bruno@clisp.org>
37246
37247         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
37248         regarding Automake.
37249
37250 2010-02-25  Bruno Haible  <bruno@clisp.org>
37251
37252         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
37253         * gnulib-tool: Define 'echo' as a function only before the ksh alias
37254         setting, not afterwards.
37255         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
37256
37257 2010-02-24  Eric Blake  <eblake@redhat.com>
37258
37259         bootstrap, git-version-gen: use timestamp
37260         * build-aux/git-version-gen (scriptversion): Force UTC.
37261         * build-aux/bootstrap (scriptversion): New variable.
37262
37263         bootstrap: allow older git
37264         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
37265         older than 1.6.4.  Requested by the libvirt project.
37266
37267 2010-02-23  Eric Blake  <eblake@redhat.com>
37268
37269         warn-on-use: work with old autoconf
37270         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
37271         AS_VAR semantics of autoconf 2.60.
37272         Reported by Bruno Haible.
37273
37274         bootstrap: improve some comments
37275         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
37276         clarification comments.
37277
37278         gettimeofday: provide correct function
37279         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
37280         when replacement is declared, otherwise provide gettimeofday.
37281         Reported by Michael Goffioul.
37282
37283 2010-02-23  Jim Meyering  <meyering@redhat.com>
37284
37285         lib-ignore: relax license to "unlimited", not LGPLv2+
37286         * modules/lib-ignore (License): Relax to "unlimited".
37287
37288 2010-02-23  Jim Meyering  <meyering@redhat.com>
37289
37290         lib-ignore: relax license to LGPLv2+
37291         * modules/lib-ignore (License): Relax to LGPLv2+.
37292
37293 2010-02-22  Eric Blake  <eblake@redhat.com>
37294
37295         lseek: avoid bash 3.2 broken pipe bug
37296         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
37297         warning from bash 3.2.
37298         Reported by Ben Pfaff, with analysis from Bruno Haible.
37299
37300         bootstrap: support non-FSF copyright holder
37301         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
37302         bootstrap.conf override of COPYRIGHT_HOLDER.
37303         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
37304
37305         bootstrap: interoperate with gettext 0.14.1
37306         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
37307
37308         bootstrap: allow for alternate submodule location
37309         * build-aux/bootstrap (gnulib_path): New variable; use instead of
37310         hardcoding submodule location.
37311         (gnulib_mk): Allow direct use of Makefile.am.
37312
37313         bootstrap: use GNULIB_SRCDIR to reduce disk usage
37314         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
37315         rather than reconfiguring where the submodule points.
37316
37317         gettimeofday: restore support for platforms that lack function
37318         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
37319         replacement if function is missing.
37320         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
37321         * modules/sys_time (Makefile.am): Substitute it.
37322         * lib/sys_time.in.h (gettimeofday): Check it.
37323         Reported by Michael Goffioul.
37324
37325 2010-02-21  Bruno Haible  <bruno@clisp.org>
37326
37327         * lib/stdio.in.h (obstack_printf): Fix typo.
37328
37329 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
37330
37331         vc-list-files: use bzr ls's -R option
37332         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
37333         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
37334
37335 2010-02-21  Jim Meyering  <meyering@redhat.com>
37336
37337         init.sh: fix EXEEXT shims to work also for names like test-prog
37338         * tests/init.sh: Re-exec a better shell, when needed.
37339         If the current shell lacks support for posix $(...), an init.sh-using
37340         test will now try to find a shell that supports that.  If EXEEXT is
37341         nonempty, we also require support for hyphen-in-alias-name and shell
37342         substitutions like ${var#glob}.  Failure to find such a shell results
37343         in a skipped test.
37344
37345 2010-02-21  Bruno Haible  <bruno@clisp.org>
37346
37347         Really work around around "broken pipe" error message from bash 3.2.
37348         * gnulib-tool (func_reset_sigpipe): Remove function.
37349         (echo): In bash 3.2, define to a function that uses printf.
37350         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
37351
37352 2010-02-20  Bruno Haible  <bruno@clisp.org>
37353
37354         Restore support for automake 1.9.6 with autoconf 2.61.
37355         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
37356         Reported by James Youngman <jay@gnu.org>.
37357
37358 2010-02-20  Bruno Haible  <bruno@clisp.org>
37359
37360         Improve *printf warning condition.
37361         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
37362         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
37363         and the function is overridden due to SIGPIPE emulation.
37364
37365 2010-02-20  Bruno Haible  <bruno@clisp.org>
37366
37367         * lib/stdio.in.h: Tweak comments.
37368
37369 2010-02-19  Bruno Haible  <bruno@clisp.org>
37370
37371         Make it easier to find modules. New gnulib-tool option '--find'.
37372         * gnulib-tool: New option --find.
37373         (func_usage): Document it.
37374         (func_sanitize_modulelist): New function, extracted from
37375         func_all_modules.
37376         (func_all_modules): Invoke it.
37377         * doc/gnulib-tool.texi (Which modules?): New node.
37378
37379 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
37380
37381         * lib/sys_select.in.h: Provide select replacement even if
37382         sys/select.h exists on a system, for Interix.
37383
37384 2010-02-18  Jim Meyering  <meyering@redhat.com>
37385
37386         init.sh: don't use $(...) just yet
37387         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
37388         to accommodate e.g., Solaris' /bin/sh.
37389
37390 2010-02-17  Bruno Haible  <bruno@clisp.org>
37391
37392         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
37393         Reported by Ludovic Courtès <ludo@gnu.org>.
37394
37395 2010-02-16  Simon Josefsson  <simon@josefsson.org>
37396
37397         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
37398         linking with -lintl.
37399
37400 2010-02-17  Simon Josefsson  <simon@josefsson.org>
37401
37402         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
37403         if not provided by the system's netdb.h.  Reported by
37404         ludo@gnu.org (Ludovic Courtès).
37405
37406 2010-02-15  Jim Meyering  <meyering@redhat.com>
37407
37408         init.sh: improve portability and efficiency
37409         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
37410         "dummy" in a for loop.
37411         Use '!', not '^' to select the complement of a character set used
37412         in a "case" statement.
37413         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
37414         Suggestions from Eric Blake.
37415
37416         init.sh: automatically accommodate programs with the .exe suffix
37417         Automatically arrange for an invocation of "prog" to execute the
37418         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
37419         may use the simpler "prog", yet still work when built on a system
37420         that requires specifying the added suffix.
37421         Do this by constructing a function named "prog" that invokes
37422         "prog.exe" for each .exe file in selected directories.
37423         * tests/init.sh (find_exe_basenames_): New function.
37424         (create_exe_shim_functions_): New function.
37425         (path_prepend_): Use it.
37426
37427         maint.mk: mark syntax-check sc_*.m rules as .PHONY
37428         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
37429         "make -t syntax-check" doesn't create a ton of sc_*.m files.
37430
37431 2010-02-14  Jim Meyering  <meyering@redhat.com>
37432
37433         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
37434         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
37435         (sc_prohibit_hash_pjw_without_use): New rule.
37436
37437         maint.mk: allow the default upload destination dir to be overridden
37438         * top/maint.mk (upload_dest_dir_): Define with a default that
37439         preserves the status quo.
37440         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
37441         Reported by Peter Simons.
37442
37443         maint.mk: prohibit inclusion of "hash.h" without_use
37444         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
37445
37446 2010-02-10  Jim Meyering  <meyering@redhat.com>
37447
37448         maint.mk: prohibit inclusion of "ignore-value.h" without_use
37449         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
37450
37451 2010-02-09  Eric Blake  <ebb9@byu.net>
37452         and Bruno Haible  <bruno@clisp.org>
37453
37454         obstack-printf-posix: ensure declaration
37455         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
37456         extracted from gl_FUNC_OBSTACK_PRINTF.
37457         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
37458         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
37459         Likewise.
37460         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
37461         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
37462         0.
37463
37464 2010-02-08  Bruno Haible  <bruno@clisp.org>
37465
37466         gnulib-tool: Fix typo in 2010-02-07 commit.
37467         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
37468         Reported by Eric Blake.
37469
37470 2010-02-07  Bruno Haible  <bruno@clisp.org>
37471
37472         gnulib-tool: Fix up caching patches.
37473         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
37474         option --no-cache. Use associative arrays when supported by the shell.
37475         (sed_comments): New variable.
37476         (modcache): Renamed from do_cache.
37477         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
37478         abbreviate unnecessarily.
37479         (have_associative): New variable.
37480         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
37481         way also for ksh and zsh.
37482         (func_init_sed_convert_to_cache_statements): New function, extracted
37483         from func_cache_lookup_module. Add support for associative arrays.
37484         Don't set the c_MODULE_cached variable here. Ignore all lines before
37485         the first field header. Remove only the final newline, not all trailing
37486         newlines. Support empty fields correctly. Limit the use of 'eval' to
37487         assignments.
37488         (func_get_description, func_get_status, func_get_notice,
37489         func_get_applicability, func_get_filelist, func_get_dependencies,
37490         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
37491         func_get_automake_snippet, func_get_include_directive,
37492         func_get_link_directive, func_get_license, func_get_maintainer):
37493         Update documentation. List the unoptimized code first. Add support for
37494         associative arrays. Limit the use of 'eval' to assignments.
37495         (func_get_applicability): Undo stylistic pessimisations.
37496         (func_get_automake_snippet, func_get_include_directive): Reduce code
37497         duplication.
37498         (func_modules_transitive_closure, func_modules_add_dummy,
37499         func_modules_notice, func_modules_to_filelist, func_add_file,
37500         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
37501         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
37502         func_create_testdir, func_create_megatestdir): Update documentation.
37503
37504 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37505
37506         * gnulib-tool (func_cache_lookup_module): Store the module name
37507         belonging to the cache variable; error out if two different
37508         module names map to the same cache variable name.
37509
37510 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37511
37512         gnulib-tool: Make caching optional.
37513         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
37514         Update matching short versions of --no-changelog.
37515         (func_usage): Update.
37516         (sed_extract_cache_prog): Renamed from ...
37517         (sed_extract_prog): ... this; revert to old extraction script.
37518         (func_get_description, func_get_status)
37519         (func_get_notice, func_get_applicability, func_get_filelist)
37520         (func_get_dependencies, func_get_autoconf_early_snippet)
37521         (func_get_autoconf_snippet, func_get_automake_snippet)
37522         (func_get_include_directive, func_get_link_directive)
37523         (func_get_license, func_get_maintainer): If $do_cache is false,
37524         use old, non-caching extraction scripts.
37525         Suggestion by Bruno Haible.
37526
37527 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37528
37529         gnulib-tool: cache module metainformation.
37530         * gnulib-tool (sed_extract_prog): Match newline before each
37531         header, and rewrite header to a shell variable suffix.
37532         (func_cache_var, func_cache_lookup_module): New functions,
37533         to turn a module name into a cache variable prefix, and to
37534         look up and cache module metainformation.
37535         (func_get_description, func_get_status)
37536         (func_get_notice, func_get_applicability, func_get_filelist)
37537         (func_get_dependencies, func_get_autoconf_early_snippet)
37538         (func_get_autoconf_snippet, func_get_automake_snippet)
37539         (func_get_include_directive, func_get_link_directive)
37540         (func_get_license, func_get_maintainer): Use
37541         func_cache_lookup_module.
37542
37543 2010-02-07  Bruno Haible  <bruno@clisp.org>
37544
37545         fnctl: Fix missing dependency.
37546         * modules/fcntl (Depends-on): Add getdtablesize.
37547         Reported by John W. Eaton <jwe@gnu.org>.
37548
37549 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
37550
37551         Argp: fix recognition of short alias options.
37552
37553         * lib/argp-parse.c (convert_options): Fix improper use of
37554         `|' between character values.
37555         * tests/test-argp.c (group1_option): New alias option
37556         --read (-r).
37557         (group1_parser): Special handling for 'r'.
37558         (test15): New test case.
37559         (test_fun): Add test15.
37560         * tests/test-argp-2.sh: Update expected --help and --usage
37561         outputs.
37562
37563 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
37564
37565         * tests/test-argp.c: Fix indentation.
37566
37567 2010-02-04  Eric Blake  <ebb9@byu.net>
37568
37569         gettimeofday: expose type of second argument
37570         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
37571         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
37572         * tests/test-gettimeofday.c: Use it to silence warning.
37573         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
37574         the issue.
37575
37576 2010-02-03  Jim Meyering  <meyering@redhat.com>
37577
37578         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
37579         * lib/regcomp.c (TYPE_SIGNED): Define.
37580         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
37581
37582         regcomp.c: avoid a new -Wshadow warning
37583         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
37584
37585 2010-02-01  Jim Meyering  <meyering@redhat.com>
37586
37587         removing useless parentheses in cpp #define directives
37588         For motivation, see commit c0221df4, "define STREQ(a,b)
37589         consistently, removing useless parentheses"
37590         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
37591         * lib/mountlist.c (MNT_IGNORE): Likewise.
37592         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
37593
37594 2010-02-01  Eric Blake  <ebb9@byu.net>
37595
37596         sys_time: use link-warning
37597         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
37598         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
37599         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
37600         * modules/sys_time (Depends-on): Add warn-on-use.
37601         (Makefile.am): Always build replacement.
37602         (configure.ac): Update substitutions.
37603         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
37604         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
37605         bother with SYS_TIME_H.
37606         * modules/gettimeofday (configure.ac): Declare indicator.
37607         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
37608         in use.
37609
37610         closein-tests: silence compiler warning
37611         * tests/test-closein.c (main): Ignore fread result.
37612         * modules/closein-tests (Depends-on): Add ignore-value.
37613
37614         tests: silence warning about system return
37615         * tests/test-areadlink-with-size.c (main): Ignore system result.
37616         * tests/test-areadlink.c (main): Likewise.
37617         * tests/test-areadlinkat-with-size.c (main): Likewise.
37618         * tests/test-areadlinkat.c (main): Likewise.
37619         * tests/test-canonicalize-lgpl.c (main): Likewise.
37620         * tests/test-canonicalize.c (main): Likewise.
37621         * tests/test-chown.c (main): Likewise.
37622         * tests/test-fchownat.c (main): Likewise.
37623         * tests/test-fdutimensat.c (main): Likewise.
37624         * tests/test-fstatat.c (main): Likewise.
37625         * tests/test-futimens.c (main): Likewise.
37626         * tests/test-lchown.c (main): Likewise.
37627         * tests/test-link.c (main): Likewise.
37628         * tests/test-linkat.c (main): Likewise.
37629         * tests/test-lstat.c (main): Likewise.
37630         * tests/test-mkdir.c (main): Likewise.
37631         * tests/test-mkdirat.c (main): Likewise.
37632         * tests/test-mkfifo.c (main): Likewise.
37633         * tests/test-mkfifoat.c (main): Likewise.
37634         * tests/test-mknod.c (main): Likewise.
37635         * tests/test-readlink.c (main): Likewise.
37636         * tests/test-remove.c (main): Likewise.
37637         * tests/test-rename.c (main): Likewise.
37638         * tests/test-renameat.c (main): Likewise.
37639         * tests/test-rmdir.c (main): Likewise.
37640         * tests/test-symlink.c (main): Likewise.
37641         * tests/test-symlinkat.c (main): Likewise.
37642         * tests/test-unlink.c (main): Likewise.
37643         * tests/test-unlinkat.c (main): Likewise.
37644         * tests/test-utimens.c (main): Likewise.
37645         * tests/test-utimensat.c (main): Likewise.
37646         * modules/areadlink-tests (Depends-on): Add ignore-value.
37647         * modules/areadlink-with-size-tests (Depends-on): Likewise.
37648         * modules/areadlinkat-tests (Depends-on): Likewise.
37649         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
37650         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
37651         * modules/canonicalize-tests (Depends-on): Likewise.
37652         * modules/chown-tests (Depends-on): Likewise.
37653         * modules/fdutimensat-tests (Depends-on): Likewise.
37654         * modules/futimens-tests (Depends-on): Likewise.
37655         * modules/lchown-tests (Depends-on): Likewise.
37656         * modules/link-tests (Depends-on): Likewise.
37657         * modules/linkat-tests (Depends-on): Likewise.
37658         * modules/lstat-tests (Depends-on): Likewise.
37659         * modules/mkdir-tests (Depends-on): Likewise.
37660         * modules/mkfifo-tests (Depends-on): Likewise.
37661         * modules/mkfifoat-tests (Depends-on): Likewise.
37662         * modules/mknod-tests (Depends-on): Likewise.
37663         * modules/openat-tests (Depends-on): Likewise.
37664         * modules/readlink-tests (Depends-on): Likewise.
37665         * modules/remove-tests (Depends-on): Likewise.
37666         * modules/rename-tests (Depends-on): Likewise.
37667         * modules/renameat-tests (Depends-on): Likewise.
37668         * modules/rmdir-tests (Depends-on): Likewise.
37669         * modules/symlink-tests (Depends-on): Likewise.
37670         * modules/symlinkat-tests (Depends-on): Likewise.
37671         * modules/unlink-tests (Depends-on): Likewise.
37672         * modules/utimens-tests (Depends-on): Likewise.
37673         * modules/utimensat-tests (Depends-on): Likewise.
37674
37675 2010-01-31  Bruno Haible  <bruno@clisp.org>
37676
37677         Perform the same test for many <math.h> functions.
37678         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
37679         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
37680         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
37681         of gl_MATHFUNC.
37682         * modules/acos (configure.ac): Likewise.
37683         * modules/asin (configure.ac): Likewise.
37684         * modules/atan (configure.ac): Likewise.
37685         * modules/atan2 (configure.ac): Likewise.
37686         * modules/cbrt (configure.ac): Likewise.
37687         * modules/copysign (configure.ac): Likewise.
37688         * modules/cos (configure.ac): Likewise.
37689         * modules/cosh (configure.ac): Likewise.
37690         * modules/erf (configure.ac): Likewise.
37691         * modules/erfc (configure.ac): Likewise.
37692         * modules/exp (configure.ac): Likewise.
37693         * modules/fmod (configure.ac): Likewise.
37694         * modules/hypot (configure.ac): Likewise.
37695         * modules/j0 (configure.ac): Likewise.
37696         * modules/j1 (configure.ac): Likewise.
37697         * modules/jn (configure.ac): Likewise.
37698         * modules/lgamma (configure.ac): Likewise.
37699         * modules/log (configure.ac): Likewise.
37700         * modules/log10 (configure.ac): Likewise.
37701         * modules/log1p (configure.ac): Likewise.
37702         * modules/pow (configure.ac): Likewise.
37703         * modules/remainder (configure.ac): Likewise.
37704         * modules/sin (configure.ac): Likewise.
37705         * modules/sinh (configure.ac): Likewise.
37706         * modules/tan (configure.ac): Likewise.
37707         * modules/tanh (configure.ac): Likewise.
37708         * modules/y0 (configure.ac): Likewise.
37709         * modules/y1 (configure.ac): Likewise.
37710         * modules/yn (configure.ac): Likewise.
37711         Suggested by Paolo Bonzini.
37712
37713 2010-01-31  Bruno Haible  <bruno@clisp.org>
37714
37715         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
37716
37717 2010-01-31  Bruno Haible  <bruno@clisp.org>
37718
37719         Work around getdelim() bug on FreeBSD 8.0.
37720         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
37721         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
37722         not work.
37723         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
37724         is 1.
37725         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
37726         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
37727         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
37728         a non-zero size.
37729         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
37730
37731 2010-01-31  Bruno Haible  <bruno@clisp.org>
37732
37733         Work around getline() bug on FreeBSD 8.0.
37734         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
37735         and a non-zero size.
37736         * tests/test-getline.c (main): Likewise.
37737         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
37738         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
37739
37740 2010-01-28  Eric Blake  <ebb9@byu.net>
37741
37742         regex: fix build failure
37743         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
37744         platforms.
37745
37746 2010-01-28  Jim Meyering  <meyering@redhat.com>
37747
37748         regex: do not ignore memory allocation failure
37749         * lib/regex_internal.c (create_cd_newstate): Detect
37750         re_node_set_init_copy failure.   Extracted from glibc commit
37751         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
37752
37753         regex: sync more white-space changes from libc
37754         * lib/regex_internal.c: White-space only changes.
37755         * lib/regexec.c: Likewise.
37756
37757         regex: add many uses of __attribute_warn_unused_result__
37758         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
37759         * lib/regexec.c: Likewise.
37760         Extracted from a messy glibc commit.
37761
37762         regcomp.c: spelling and merge-artifact from glibc
37763         * lib/regcomp.c: Merge remainder of glibc's
37764         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
37765
37766         regcomp.c: sync white-space changes from glibc
37767         * lib/regcomp.c: Merge to accommodate white space
37768         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
37769
37770         regcomp.c: do not ignore internal return values
37771         * lib/regcomp.c: Do not ignore internal return values.
37772         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
37773         but without its white-space changes and spelling fixes.
37774
37775         regex_internal.h: define __attribute_warn_unused_result__
37776         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
37777
37778         maint: add a syntax-check rule to check for vulnerable Makefile.in
37779         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
37780
37781 2010-01-27  Jim Meyering  <meyering@redhat.com>
37782
37783         ncftpput-ftp: clean up spaces
37784         * build-aux/ncftpput-ftp: Make Copyright line consistent.
37785         Remove trailing blanks.
37786
37787 2010-01-27  Simon Josefsson  <simon@josefsson.org>
37788
37789         * build-aux/git-version-gen: Fix copyright statement.
37790         * build-aux/gnupload: Likewise.
37791         * tests/test-arcfour.c: Likewise.
37792         * tests/test-arctwo.c: Likewise.
37793         * tests/test-count-one-bits.c: Likewise.
37794         * tests/test-crc.c: Likewise.
37795         * tests/test-des.c: Likewise.
37796         * tests/test-gc-arcfour.c: Likewise.
37797         * tests/test-gc-arctwo.c: Likewise.
37798         * tests/test-gc-des.c: Likewise.
37799         * tests/test-gc-hmac-md5.c: Likewise.
37800         * tests/test-gc-hmac-sha1.c: Likewise.
37801         * tests/test-gc-md2.c: Likewise.
37802         * tests/test-gc-md4.c: Likewise.
37803         * tests/test-gc-md5.c: Likewise.
37804         * tests/test-gc-pbkdf2-sha1.c: Likewise.
37805         * tests/test-gc-rijndael.c: Likewise.
37806         * tests/test-gc-sha1.c: Likewise.
37807         * tests/test-gc.c: Likewise.
37808         * tests/test-gethostname.c: Likewise.
37809         * tests/test-gettimeofday.c: Likewise.
37810         * tests/test-hash.c: Likewise.
37811         * tests/test-hmac-md5.c: Likewise.
37812         * tests/test-hmac-sha1.c: Likewise.
37813         * tests/test-md2.c: Likewise.
37814         * tests/test-md4.c: Likewise.
37815         * tests/test-md5.c: Likewise.
37816         * tests/test-memchr.c: Likewise.
37817         * tests/test-memchr2.c: Likewise.
37818         * tests/test-memcmp.c: Likewise.
37819         * tests/test-memmem.c: Likewise.
37820         * tests/test-memrchr.c: Likewise.
37821         * tests/test-rawmemchr.c: Likewise.
37822         * tests/test-read-file.c: Likewise.
37823         * tests/test-rijndael.c: Likewise.
37824         * tests/test-sockets.c: Likewise.
37825         * tests/test-strchrnul.c: Likewise.
37826         * tests/test-strstr.c: Likewise.
37827         * tests/test-strtod.c: Likewise.
37828         * build-aux/ncftpput-ftp: Likewise.
37829
37830 2010-01-26  Eric Blake  <ebb9@byu.net>
37831
37832         ignore-value: update recommended header name
37833         * modules/ignore-value (Include): Only use <> for headers that
37834         exist in glibc.
37835
37836 2010-01-26  Jim Meyering  <meyering@redhat.com>
37837
37838         test-userspec.c: avoid compiler warnings
37839         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
37840         and "initialization discards qualifiers..." warnings.
37841         Put the first "uid" in its own scope, and make char* members "const".
37842
37843 2010-01-25  Bruno Haible  <bruno@clisp.org>
37844
37845         gnulib-tool: Make warning diagnostics consistent.
37846         * gnulib-tool (func_warning): New function.
37847         Use it everywhere where gnulib-tool produces output to stderr and it is
37848         not a fatal error.
37849
37850 2010-01-25  Bruno Haible  <bruno@clisp.org>
37851
37852         Fix test dependencies.
37853         * modules/xstrtol-tests (Depends-on): Add inttypes.
37854         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
37855
37856 2010-01-25 Pádraig Brady <P@draigBrady.com>
37857
37858         syntax-check: detect incorrect boolean macro values in config.h
37859         * modules/maintainer-makefile (configure.ac): Parameterize the location
37860         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
37861         The logic is from Eric Blake and the location indicated by Jim Meyering.
37862         Note the more natural CONFIG_HEADER name is prohibited by automake
37863         for backwards compatibility reasons.
37864         * top/maint.mk (sc_Wundef_boolean): New rule.
37865
37866 2010-01-25  Jim Meyering  <meyering@redhat.com>
37867
37868         bootstrap: detect MacOS 10.6's shasum, too
37869         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
37870         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
37871
37872 2010-01-23  Jim Meyering  <meyering@redhat.com>
37873
37874         xstrtoll: new module
37875         * modules/xstrtoll: New file.
37876         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
37877         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
37878         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
37879         ./configure fails if you use this module and lack "long long".
37880         * modules/xstrtoll-tests: New module.
37881         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
37882         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
37883         new init.sh-based test framework.
37884
37885 2010-01-24  Bruno Haible  <bruno@clisp.org>
37886
37887         Tests for module 'yn'.
37888         * modules/yn-tests: New file.
37889         * tests/test-yn.c: New file.
37890
37891         Tests for module 'y1'.
37892         * modules/y1-tests: New file.
37893         * tests/test-y1.c: New file.
37894
37895         Tests for module 'y0'.
37896         * modules/y0-tests: New file.
37897         * tests/test-y0.c: New file.
37898
37899         Tests for module 'tanh'.
37900         * modules/tanh-tests: New file.
37901         * tests/test-tanh.c: New file.
37902
37903         Tests for module 'tan'.
37904         * modules/tan-tests: New file.
37905         * tests/test-tan.c: New file.
37906
37907         Tests for module 'sqrt'.
37908         * modules/sqrt-tests: New file.
37909         * tests/test-sqrt.c: New file.
37910
37911         Tests for module 'sinh'.
37912         * modules/sinh-tests: New file.
37913         * tests/test-sinh.c: New file.
37914
37915         Tests for module 'sin'.
37916         * modules/sin-tests: New file.
37917         * tests/test-sin.c: New file.
37918
37919         Tests for module 'rint'.
37920         * modules/rint-tests: New file.
37921         * tests/test-rint.c: New file.
37922
37923         Tests for module 'remainder'.
37924         * modules/remainder-tests: New file.
37925         * tests/test-remainder.c: New file.
37926
37927         Tests for module 'pow'.
37928         * modules/pow-tests: New file.
37929         * tests/test-pow.c: New file.
37930
37931         Tests for module 'nextafter'.
37932         * modules/nextafter-tests: New file.
37933         * tests/test-nextafter.c: New file.
37934
37935         Tests for module 'modf'.
37936         * modules/modf-tests: New file.
37937         * tests/test-modf.c: New file.
37938
37939         Tests for module 'logb'.
37940         * modules/logb-tests: New file.
37941         * tests/test-logb.c: New file.
37942
37943         Tests for module 'log1p'.
37944         * modules/log1p-tests: New file.
37945         * tests/test-log1p.c: New file.
37946
37947         Tests for module 'log10'.
37948         * modules/log10-tests: New file.
37949         * tests/test-log10.c: New file.
37950
37951         Tests for module 'log'.
37952         * modules/log-tests: New file.
37953         * tests/test-log.c: New file.
37954
37955         Tests for module 'lgamma'.
37956         * modules/lgamma-tests: New file.
37957         * tests/test-lgamma.c: New file.
37958
37959         Tests for module 'ldexp'.
37960         * modules/ldexp-tests: New file.
37961         * tests/test-ldexp.c: New file.
37962
37963         Tests for module 'jn'.
37964         * modules/jn-tests: New file.
37965         * tests/test-jn.c: New file.
37966
37967         Tests for module 'j1'.
37968         * modules/j1-tests: New file.
37969         * tests/test-j1.c: New file.
37970
37971         Tests for module 'j0'.
37972         * modules/j0-tests: New file.
37973         * tests/test-j0.c: New file.
37974
37975         Tests for module 'hypot'.
37976         * modules/hypot-tests: New file.
37977         * tests/test-hypot.c: New file.
37978
37979         Tests for module 'fmod'.
37980         * modules/fmod-tests: New file.
37981         * tests/test-fmod.c: New file.
37982
37983         Tests for module 'fabs'.
37984         * modules/fabs-tests: New file.
37985         * tests/test-fabs.c: New file.
37986
37987         Tests for module 'exp'.
37988         * modules/exp-tests: New file.
37989         * tests/test-exp.c: New file.
37990
37991         Tests for module 'erfc'.
37992         * modules/erfc-tests: New file.
37993         * tests/test-erfc.c: New file.
37994
37995         Tests for module 'erf'.
37996         * modules/erf-tests: New file.
37997         * tests/test-erf.c: New file.
37998
37999         Tests for module 'cosh'.
38000         * modules/cosh-tests: New file.
38001         * tests/test-cosh.c: New file.
38002
38003         Tests for module 'cos'.
38004         * modules/cos-tests: New file.
38005         * tests/test-cos.c: New file.
38006
38007         Tests for module 'copysign'.
38008         * modules/copysign-tests: New file.
38009         * tests/test-copysign.c: New file.
38010
38011         Tests for module 'cbrt'.
38012         * modules/cbrt-tests: New file.
38013         * tests/test-cbrt.c: New file.
38014
38015         Tests for module 'atan2'.
38016         * modules/atan2-tests: New file.
38017         * tests/test-atan2.c: New file.
38018
38019         Tests for module 'atan'.
38020         * modules/atan-tests: New file.
38021         * tests/test-atan.c: New file.
38022
38023         Tests for module 'asin'.
38024         * modules/asin-tests: New file.
38025         * tests/test-asin.c: New file.
38026
38027         Tests for module 'acos'.
38028         * modules/acos-tests: New file.
38029         * tests/test-acos.c: New file.
38030
38031 2010-01-24  Bruno Haible  <bruno@clisp.org>
38032
38033         Fix tests for common <math.h> functions.
38034         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
38035         code snippet that references the function pointer, rather than merely
38036         calling the function. Substitute the FUNC_LIBM variable.
38037         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
38038         * modules/acos (configure.ac): Likewise.
38039         * modules/asin (configure.ac): Likewise.
38040         * modules/atan (configure.ac): Likewise.
38041         * modules/atan2 (configure.ac): Likewise.
38042         * modules/cbrt (configure.ac): Likewise.
38043         * modules/copysign (configure.ac): Likewise.
38044         * modules/cos (configure.ac): Likewise.
38045         * modules/cosh (configure.ac): Likewise.
38046         * modules/erf (configure.ac): Likewise.
38047         * modules/erfc (configure.ac): Likewise.
38048         * modules/exp (configure.ac): Likewise.
38049         * modules/fabs (configure.ac): Likewise.
38050         * modules/fmod (configure.ac): Likewise.
38051         * modules/hypot (configure.ac): Likewise.
38052         * modules/j0 (configure.ac): Likewise.
38053         * modules/j1 (configure.ac): Likewise.
38054         * modules/jn (configure.ac): Likewise.
38055         * modules/ldexp (configure.ac): Likewise.
38056         * modules/lgamma (configure.ac): Likewise.
38057         * modules/log (configure.ac): Likewise.
38058         * modules/log10 (configure.ac): Likewise.
38059         * modules/log1p (configure.ac): Likewise.
38060         * modules/logb (configure.ac): Likewise.
38061         * modules/modf (configure.ac): Likewise.
38062         * modules/nextafter (configure.ac): Likewise.
38063         * modules/pow (configure.ac): Likewise.
38064         * modules/remainder (configure.ac): Likewise.
38065         * modules/rint (configure.ac): Likewise.
38066         * modules/sin (configure.ac): Likewise.
38067         * modules/sinh (configure.ac): Likewise.
38068         * modules/tan (configure.ac): Likewise.
38069         * modules/tanh (configure.ac): Likewise.
38070         * modules/y0 (configure.ac): Likewise.
38071         * modules/y1 (configure.ac): Likewise.
38072         * modules/yn (configure.ac): Likewise.
38073
38074 2010-01-24  Bruno Haible  <bruno@clisp.org>
38075
38076         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
38077         * tests/test-acosl.c (x): New variable.
38078         (main): Store argument in x and fetch it from x.
38079         * tests/test-asinl.c (x): New variable.
38080         (main): Store argument in x and fetch it from x.
38081         * tests/test-atanl.c (x): New variable.
38082         (main): Store argument in x and fetch it from x.
38083         * tests/test-cosl.c (x): New variable.
38084         (main): Store argument in x and fetch it from x.
38085         * tests/test-expl.c (x): New variable.
38086         (main): Store argument in x and fetch it from x.
38087         * tests/test-logl.c (x): New variable.
38088         (main): Store argument in x and fetch it from x.
38089         * tests/test-sinl.c (x): New variable.
38090         (main): Store argument in x and fetch it from x.
38091         * tests/test-sqrtl.c (x): New variable.
38092         (main): Store argument in x and fetch it from x.
38093         * tests/test-tanl.c (x): New variable.
38094         (main): Store argument in x and fetch it from x.
38095
38096 2010-01-24  Bruno Haible  <bruno@clisp.org>
38097
38098         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
38099         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
38100         assignments to the initial TESTS_ENVIRONMENT.
38101         * doc/gnulib.texi (Unit test modules): Document it.
38102         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
38103         TESTS_ENVIRONMENT.
38104         * modules/btowc-tests (Makefile.am): Likewise.
38105         * modules/c-stack-tests (Makefile.am): Likewise.
38106         * modules/c-strcase-tests (Makefile.am): Likewise.
38107         * modules/copy-file-tests (Makefile.am): Likewise.
38108         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
38109         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
38110         * modules/mbrtowc-tests (Makefile.am): Likewise.
38111         * modules/mbscasecmp-tests (Makefile.am): Likewise.
38112         * modules/mbscasestr-tests (Makefile.am): Likewise.
38113         * modules/mbschr-tests (Makefile.am): Likewise.
38114         * modules/mbscspn-tests (Makefile.am): Likewise.
38115         * modules/mbsinit-tests (Makefile.am): Likewise.
38116         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
38117         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
38118         * modules/mbspbrk-tests (Makefile.am): Likewise.
38119         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
38120         * modules/mbsrchr-tests (Makefile.am): Likewise.
38121         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
38122         * modules/mbsspn-tests (Makefile.am): Likewise.
38123         * modules/mbsstr-tests (Makefile.am): Likewise.
38124         * modules/nl_langinfo-tests (Makefile.am): Likewise.
38125         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
38126         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
38127         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
38128         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
38129         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
38130         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
38131         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
38132         * modules/wcrtomb-tests (Makefile.am): Likewise.
38133         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
38134         * modules/wcsrtombs-tests (Makefile.am): Likewise.
38135         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
38136         assignments from TESTS_ENVIRONMENT.
38137         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
38138         augmentation.
38139         * modules/argp-version-etc-tests (Makefile.am): Likewise.
38140         * modules/atexit-tests (Makefile.am): Likewise.
38141         * modules/binary-io-tests (Makefile.am): Likewise.
38142         * modules/closein-tests (Makefile.am): Likewise.
38143         * modules/dprintf-posix-tests (Makefile.am): Likewise.
38144         * modules/exclude-tests (Makefile.am): Likewise.
38145         * modules/fflush-tests (Makefile.am): Likewise.
38146         * modules/fpending-tests (Makefile.am): Likewise.
38147         * modules/fprintf-posix-tests (Makefile.am): Likewise.
38148         * modules/freadahead-tests (Makefile.am): Likewise.
38149         * modules/freadptr-tests (Makefile.am): Likewise.
38150         * modules/freadseek-tests (Makefile.am): Likewise.
38151         * modules/fseek-tests (Makefile.am): Likewise.
38152         * modules/fseeko-tests (Makefile.am): Likewise.
38153         * modules/ftell-tests (Makefile.am): Likewise.
38154         * modules/ftello-tests (Makefile.am): Likewise.
38155         * modules/idpriv-drop-tests (Makefile.am): Likewise.
38156         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
38157         * modules/lseek-tests (Makefile.am): Likewise.
38158         * modules/parse-duration-tests (Makefile.am): Likewise.
38159         * modules/perror-tests (Makefile.am): Likewise.
38160         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
38161         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
38162         * modules/pipe-tests (Makefile.am): Likewise.
38163         * modules/pread-tests (Makefile.am): Likewise.
38164         * modules/printf-posix-tests (Makefile.am): Likewise.
38165         * modules/select-tests (Makefile.am): Likewise.
38166         * modules/sigpipe-tests (Makefile.am): Likewise.
38167         * modules/tsearch-tests (Makefile.am): Likewise.
38168         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
38169         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
38170         * modules/uniname/uniname-tests (Makefile.am): Likewise.
38171         * modules/uniwidth/width-tests (Makefile.am): Likewise.
38172         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
38173         * modules/version-etc-tests (Makefile.am): Likewise.
38174         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
38175         * modules/vprintf-posix-tests (Makefile.am): Likewise.
38176         * modules/xalloc-die-tests (Makefile.am): Likewise.
38177         * modules/xprintf-posix-tests (Makefile.am): Likewise.
38178         * modules/xstrtoimax-tests (Makefile.am): Likewise.
38179         * modules/xstrtol-tests (Makefile.am): Likewise.
38180         * modules/xstrtoumax-tests (Makefile.am): Likewise.
38181         * modules/yesno-tests (Makefile.am): Likewise.
38182         Suggested by Jim Meyering.
38183
38184 2010-01-24  Bruno Haible  <bruno@clisp.org>
38185
38186         More documentation.
38187         * doc/gnulib.texi (Writing modules): New chapter.
38188         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
38189         the new chapter.
38190
38191 2010-01-24  Jim Meyering  <meyering@redhat.com>
38192
38193         maint.mk: do not prepend "./" after filtering
38194         * top/maint.mk (_prepend_srcdir_prefix): New variable
38195         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
38196         "./" when $(srcdir) is ".".
38197
38198         define STREQ(a,b) consistently, removing useless parentheses
38199         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
38200         since the only risk is that "a" or "b" contains an unparenthesized
38201         comma, but if either did that, STREQ would have 3 or more arguments.
38202         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
38203         * lib/fts.c (STREQ): Remove unnecessary parentheses.
38204         * lib/hash-triple.c (STREQ): Likewise.
38205         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
38206         * lib/getugroups.c (STREQ): Likewise.
38207
38208 2010-01-23  Jim Meyering  <meyering@redhat.com>
38209
38210         maint.mk: fix syntax-check in a non-srcdir build directory
38211         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
38212         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
38213
38214 2010-01-22  Jim Meyering  <meyering@redhat.com>
38215
38216         userspec: add unit tests
38217         * tests/test-userspec.c: New file.
38218         * modules/userspec-tests: Likewise.
38219
38220 2010-01-21  Jim Meyering  <meyering@redhat.com>
38221
38222         maint.mk: handle source file names containing "." robustly
38223         * top/maint.mk (_dot_escaped_srcdir): Define.
38224         (VC_LIST): Use it in LHS of sed substitution.
38225
38226 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
38227
38228         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
38229         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
38230         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
38231         from a non-srcdir build.
38232
38233 2010-01-20  Eric Blake  <ebb9@byu.net>
38234
38235         warn-on-use: use instead of link-warning
38236         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
38237         * modules/unistd (Depends-on, Makefile.am): Likewise.
38238         * modules/arpa_inet (Depends-on): Replace link-warning with
38239         warn-on-use.
38240         (Makefile.am): Update rules accordingly.
38241         * modules/ctype (Depends-on, Makefile.am): Likewise.
38242         * modules/dirent (Depends-on, Makefile.am): Likewise.
38243         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
38244         * modules/inttypes (Depends-on, Makefile.am): Likewise.
38245         * modules/langinfo (Depends-on, Makefile.am): Likewise.
38246         * modules/locale (Depends-on, Makefile.am): Likewise.
38247         * modules/math (Depends-on, Makefile.am): Likewise.
38248         * modules/search (Depends-on, Makefile.am): Likewise.
38249         * modules/signal (Depends-on, Makefile.am): Likewise.
38250         * modules/spawn (Depends-on, Makefile.am): Likewise.
38251         * modules/stdlib (Depends-on, Makefile.am): Likewise.
38252         * modules/string (Depends-on, Makefile.am): Likewise.
38253         * modules/strings (Depends-on, Makefile.am): Likewise.
38254         * modules/sys_file (Depends-on, Makefile.am): Likewise.
38255         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
38256         * modules/sys_select (Depends-on, Makefile.am): Likewise.
38257         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
38258         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
38259         * modules/sys_times (Depends-on, Makefile.am): Likewise.
38260         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
38261         * modules/wchar (Depends-on, Makefile.am): Likewise.
38262         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
38263         should be poisoned.
38264         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
38265         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
38266         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
38267         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38268         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
38269         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
38270         * m4/math_h.m4 (gl_MATH_H): Likewise.
38271         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
38272         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
38273         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
38274         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
38275         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
38276         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
38277         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
38278         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
38279         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
38280         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38281         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
38282         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
38283         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
38284         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
38285         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
38286         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38287         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
38288         GL_LINK_WARNING.
38289         * lib/ctype.in.h: Likewise.
38290         * lib/dirent.in.h: Likewise.
38291         * lib/fcntl.in.h: Likewise.
38292         * lib/inttypes.in.h: Likewise.
38293         * lib/langinfo.in.h: Likewise.
38294         * lib/locale.in.h: Likewise.
38295         * lib/math.in.h: Likewise.
38296         * lib/search.in.h: Likewise.
38297         * lib/signal.in.h: Likewise.
38298         * lib/spawn.in.h: Likewise.
38299         * lib/stdio.in.h: Likewise.
38300         * lib/stdlib.in.h: Likewise.
38301         * lib/string.in.h: Likewise.
38302         * lib/strings.in.h: Likewise.
38303         * lib/sys_file.in.h: Likewise.
38304         * lib/sys_ioctl.in.h: Likewise.
38305         * lib/sys_select.in.h: Likewise.
38306         * lib/sys_socket.in.h: Likewise.
38307         * lib/sys_stat.in.h: Likewise.
38308         * lib/sys_times.in.h: Likewise.
38309         * lib/sys_utsname.in.h: Likewise.
38310         * lib/unistd.in.h: Likewise.
38311         * lib/wchar.in.h: Likewise.
38312
38313 2010-01-20  Bruno Haible  <bruno@clisp.org>
38314
38315         Avoid duplicate -lm.
38316         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
38317         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
38318         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
38319         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
38320         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
38321         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
38322         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
38323         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
38324         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
38325         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
38326         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
38327         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
38328         Reported by Paolo Bonzini.
38329
38330 2010-01-19  Bruno Haible  <bruno@clisp.org>
38331
38332         langinfo, nl_langinfo: Relicense under LGPLv2+.
38333         * modules/langinfo (License): Change to LGPLv2+.
38334         * modules/nl_langinfo (License): Likewise.
38335         Patch by David Lutterkort <lutter@redhat.com>.
38336
38337 2010-01-19  Bruno Haible  <bruno@clisp.org>
38338
38339         Avoid compilation error with cc on OSF/1 5.1.
38340         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
38341         statement, not before.
38342         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38343
38344 2010-01-18  Bruno Haible  <bruno@clisp.org>
38345
38346         Avoid a link error due to the __printf__ symbol.
38347         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
38348         and 2.6.x.
38349         (__format__, __printf__): Remove definitions.
38350         * lib/argp-fmtstream.h: Likewise.
38351         * lib/argp.h: Likewise.
38352         * lib/error.h: Likewise.
38353         * lib/vasnprintf.h: Likewise.
38354         * lib/xprintf.h: Likewise.
38355         * lib/xvasprintf.h: Likewise.
38356         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38357
38358 2010-01-18  Bruno Haible  <bruno@clisp.org>
38359
38360         Tests for module 'tanl'.
38361         * modules/tanl-tests: New file.
38362         * tests/test-tanl.c: New file.
38363
38364         Tests for module 'sqrtl'.
38365         * modules/sqrtl-tests: New file.
38366         * tests/test-sqrtl.c: New file.
38367
38368         Tests for module 'sinl'.
38369         * modules/sinl-tests: New file.
38370         * tests/test-sinl.c: New file.
38371
38372         Tests for module 'logl'.
38373         * modules/logl-tests: New file.
38374         * tests/test-logl.c: New file.
38375
38376         Tests for module 'expl'.
38377         * modules/expl-tests: New file.
38378         * tests/test-expl.c: New file.
38379
38380         Tests for module 'cosl'.
38381         * modules/cosl-tests: New file.
38382         * tests/test-cosl.c: New file.
38383
38384         Tests for module 'atanl'.
38385         * modules/atanl-tests: New file.
38386         * tests/test-atanl.c: New file.
38387
38388         Tests for module 'asinl'.
38389         * modules/asinl-tests: New file.
38390         * tests/test-asinl.c: New file.
38391
38392         Tests for module 'acosl'.
38393         * modules/acosl-tests: New file.
38394         * tests/test-acosl.c: New file.
38395
38396         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
38397         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
38398         tanl): Use the standard gnulib idiom.
38399         * lib/cosl.c: Don't include trigl.c and sincosl.c.
38400         * lib/sinl.c: Likewise.
38401         * lib/tanl.c: Don't include trigl.c.
38402         (kernel_tanl): Make static.
38403         * lib/sincosl.c: Include trigl.h first.
38404         * lib/trigl.c: Likewise.
38405         * m4/acosl.m4: New file.
38406         * m4/asinl.m4: New file.
38407         * m4/atanl.m4: New file.
38408         * m4/cosl.m4: New file.
38409         * m4/expl.m4: New file.
38410         * m4/logl.m4: New file.
38411         * m4/sinl.m4: New file.
38412         * m4/sqrtl.m4: New file.
38413         * m4/tanl.m4: New file.
38414         * m4/mathl.m4: Remove file.
38415         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
38416         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
38417         Don't initialize GNULIB_MATHL.
38418         * modules/acosl: New file.
38419         * modules/asinl: New file.
38420         * modules/atanl: New file.
38421         * modules/cosl: New file.
38422         * modules/expl: New file.
38423         * modules/logl: New file.
38424         * modules/sinl: New file.
38425         * modules/sqrtl: New file.
38426         * modules/tanl: New file.
38427         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
38428         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
38429         substitute GNULIB_MATHL.
38430         * modules/mathl: Rewritten.
38431         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
38432         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
38433         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
38434         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
38435         * doc/posix-functions/expl.texi: Mention the 'expl' module.
38436         * doc/posix-functions/logl.texi: Mention the 'logl' module.
38437         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
38438         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
38439         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
38440
38441 2010-01-18  Bruno Haible  <bruno@clisp.org>
38442
38443         sqrt: Make gl_FUNC_SQRT requirable.
38444         * m4/sqrt.m4: New file.
38445         * modules/sqrt (Files): Add it.
38446         (configure.ac): Invoke gl_FUNC_SQRT.
38447
38448 2010-01-18  Bruno Haible  <bruno@clisp.org>
38449
38450         New modules for common <math.h> functions.
38451         * m4/mathfunc.m4: New file.
38452         * modules/acos: New file.
38453         * modules/asin: New file.
38454         * modules/atan: New file.
38455         * modules/atan2: New file.
38456         * modules/cbrt: New file.
38457         * modules/copysign: New file.
38458         * modules/cos: New file.
38459         * modules/cosh: New file.
38460         * modules/erf: New file.
38461         * modules/erfc: New file.
38462         * modules/exp: New file.
38463         * modules/fabs: New file.
38464         * modules/fmod: New file.
38465         * modules/hypot: New file.
38466         * modules/j0: New file.
38467         * modules/j1: New file.
38468         * modules/jn: New file.
38469         * modules/ldexp: New file.
38470         * modules/lgamma: New file.
38471         * modules/log: New file.
38472         * modules/log10: New file.
38473         * modules/log1p: New file.
38474         * modules/logb: New file.
38475         * modules/modf: New file.
38476         * modules/nextafter: New file.
38477         * modules/pow: New file.
38478         * modules/remainder: New file.
38479         * modules/rint: New file.
38480         * modules/sin: New file.
38481         * modules/sinh: New file.
38482         * modules/sqrt: New file.
38483         * modules/tan: New file.
38484         * modules/tanh: New file.
38485         * modules/y0: New file.
38486         * modules/y1: New file.
38487         * modules/yn: New file.
38488         * doc/posix-functions/acos.texi: Mention the 'acos' module.
38489         * doc/posix-functions/asin.texi: Mention the 'asin' module.
38490         * doc/posix-functions/atan.texi: Mention the 'atan' module.
38491         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
38492         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
38493         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
38494         * doc/posix-functions/cos.texi: Mention the 'cos' module.
38495         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
38496         * doc/posix-functions/erf.texi: Mention the 'erf' module.
38497         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
38498         * doc/posix-functions/exp.texi: Mention the 'exp' module.
38499         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
38500         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
38501         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
38502         * doc/posix-functions/j0.texi: Mention the 'j0' module.
38503         * doc/posix-functions/j1.texi: Mention the 'j1' module.
38504         * doc/posix-functions/jn.texi: Mention the 'jn' module.
38505         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
38506         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
38507         * doc/posix-functions/log.texi: Mention the 'log' module.
38508         * doc/posix-functions/log10.texi: Mention the 'log10' module.
38509         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
38510         * doc/posix-functions/logb.texi: Mention the 'logb' module.
38511         * doc/posix-functions/modf.texi: Mention the 'modf' module.
38512         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
38513         * doc/posix-functions/pow.texi: Mention the 'pow' module.
38514         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
38515         * doc/posix-functions/rint.texi: Mention the 'rint' module.
38516         * doc/posix-functions/sin.texi: Mention the 'sin' module.
38517         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
38518         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
38519         * doc/posix-functions/tan.texi: Mention the 'tan' module.
38520         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
38521         * doc/posix-functions/y0.texi: Mention the 'y0' module.
38522         * doc/posix-functions/y1.texi: Mention the 'y1' module.
38523         * doc/posix-functions/yn.texi: Mention the 'yn' module.
38524
38525 2010-01-18  Jim Meyering  <meyering@redhat.com>
38526
38527         ignore-value: relax license to LGPLv2+
38528         * modules/ignore-value (License): Relax to LGPLv2+.
38529
38530         getdate: don't leak when TZ contains two or more '"'s
38531         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
38532         double quote in TZ after the first one.
38533
38534         readtokens: do not leak internal token_lengths buffer
38535         * lib/readtokens.c (readtokens): Free the local, lengths,
38536         when the supplied "token_lengths" parameter is NULL.
38537
38538 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38539
38540         Fix a couple of missing LIBTHREAD link failures on AIX.
38541         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
38542         $(LIBTHREAD).
38543         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
38544
38545         Link test-poll against INET_PTON_LIB.
38546         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
38547         for inet_pton on Solaris 10.
38548
38549 2010-01-17  Bruno Haible  <bruno@clisp.org>
38550
38551         unistdio/*-sprintf: Fix typo in module description.
38552         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
38553         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
38554         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
38555         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
38556         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
38557         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
38558         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
38559         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38560
38561 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38562
38563         gnulib-tool: fix filelist for AIX, HP-UX ksh.
38564         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
38565         variables in shell case patterns, for AIX and HP-UX ksh.
38566
38567         Split large sed scripts, for HP-UX sed.
38568         * modules/stdio: Split sed scripts around 50 sed commands,
38569         to avoid HP-UX limit of 99 commands, in the near future.
38570         * modules/string: Likewise.
38571         * modules/unistd: Likewise.
38572
38573         gnulib-tool: avoid writing in the current directory.
38574         * gnulib-tool (func_emit_lib_Makefile_am)
38575         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
38576         not in the current directory, so concurrent gnulib-tool
38577         instances do not interfere.
38578
38579 2010-01-16  Jim Meyering  <meyering@redhat.com>
38580
38581         doc: update users.txt
38582         * users.txt: Add grep.
38583         (diffutils, gzip): Update URLs.
38584
38585 2010-01-12  Bruno Haible  <bruno@clisp.org>
38586
38587         posix_spawn: Avoid test failure on Cygwin.
38588         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
38589         characters.
38590         Reported by Simon Josefsson.
38591
38592 2010-01-12  Bruno Haible  <bruno@clisp.org>
38593
38594         * tests/test-cond.c (main): When skipping the test, show the reason.
38595
38596 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38597
38598         * lib/striconv.c (str_cd_iconv): Avoid if before free.
38599
38600 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38601
38602         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
38603         VC_LIST_ALWAYS_EXCLUDE_REGEX.
38604
38605 2010-01-12  Eric Blake  <ebb9@byu.net>
38606
38607         build: guarantee AS_VAR_IF
38608         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
38609         (gl_AS_VAR_IF): Move...
38610         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
38611         Reported by Simon Josefsson.
38612
38613 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38614
38615         * lib/stdio.in.h: Fix typo.
38616
38617 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38618
38619         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
38620         libgpg-error.
38621
38622 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38623
38624         * tests/test-xalloc-die.sh: Use $EXEEXT.
38625
38626 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38627             Bruno Haible  <bruno@clisp.org>
38628
38629         getlogin, getlogin_r: Avoid test failure.
38630         * tests/test-getlogin.c: Include <stdio.h>.
38631         (main): Skip the test when the function fails because stdin is not a
38632         tty.
38633         * tests/test-getlogin_r.c: Include <stdio.h>.
38634         (main): Skip the test when the function fails because stdin is not a
38635         tty.
38636
38637 2010-01-11  Eric Blake  <ebb9@byu.net>
38638
38639         tests: avoid more large file warnings
38640         * tests/test-fflush.c: Avoid warning about ftell use.
38641         * tests/test-fseek.c: Avoid warning about fseek use.
38642
38643 2010-01-10  Bruno Haible  <bruno@clisp.org>
38644
38645         nproc: Work better on Linux when /proc and /sys are not mounted.
38646         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
38647         as lower bound when, on glibc/Linux systems,
38648         sysconf (_SC_NPROCESSORS_CONF) returns 1.
38649         Suggested by Pádraig Brady <P@draigbrady.com>.
38650         Reported by Dmitry V. Levin <ldv@altlinux.org>.
38651
38652         nproc: Refactor.
38653         * lib/nproc.c (num_processors_via_affinity_mask): New function,
38654         extracted from num_processors.
38655         (num_processors): Call it.
38656
38657 2010-01-11  Jim Meyering  <meyering@redhat.com>
38658
38659         utimecmp: avoid new warning from upcoming gcc-4.5.0
38660         * lib/utimecmp.c (BILLION): Define using #define rather than an
38661         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
38662
38663 2010-01-11  Eric Blake  <ebb9@byu.net>
38664
38665         math: add portability warnings for classification macros
38666         * modules/math (Depends-on): Add warn-on-use.
38667         (Makefile.am): Provide new substitutions.
38668         * m4/math_h.m4 (gl_MATH_H): Require inline.
38669         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
38670         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
38671         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
38672         implement warnings.
38673
38674         unistd: warn on use of environ without module
38675         * modules/unistd (Depends-on): Add warn-on-use.
38676         (Makefile.am): Provide new substitutions.
38677         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
38678         * lib/unistd.in.h (environ): Wrap with a warning helper function.
38679
38680         stdio: warn on suspicious uses
38681         * modules/stdio (Depends-on): Add warn-on-use.
38682         (Makefile.am): Provide new substitutions.
38683         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
38684         fseeko.
38685         * lib/stdio.in.h (gets): Always warn on use.
38686         (fseek, ftell): Adjust when warnings are issued, and honor
38687         _GL_NO_LARGE_FILES as a way to silence the warning.
38688         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
38689         any warning about large file offsets.
38690         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
38691         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
38692         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
38693         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
38694         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
38695         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
38696         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
38697         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
38698
38699         warn-on-use: new module
38700         * modules/warn-on-use: New file.
38701         * build-aux/warn-on-use.h: Likewise.
38702         * m4/warn-on-use.m4: Likewise.
38703         * MODULES.html.sh (Support for building): Mention it.
38704
38705 2010-01-10  Bruno Haible  <bruno@clisp.org>
38706
38707         Tests for module 'unistr/u32-strdup'.
38708         * modules/unistr/u32-strdup-tests: New file.
38709         * tests/unistr/test-u32-strdup.c: New file.
38710
38711         Tests for module 'unistr/u16-strdup'.
38712         * modules/unistr/u16-strdup-tests: New file.
38713         * tests/unistr/test-u16-strdup.c: New file.
38714
38715         Tests for module 'unistr/u8-strdup'.
38716         * modules/unistr/u8-strdup-tests: New file.
38717         * tests/unistr/test-u8-strdup.c: New file.
38718         * tests/unistr/test-strdup.h: New file.
38719
38720         Tests for module 'unistr/u32-strncmp'.
38721         * modules/unistr/u32-strncmp-tests: New file.
38722         * tests/unistr/test-u32-strncmp.c: New file.
38723
38724         Tests for module 'unistr/u16-strncmp'.
38725         * modules/unistr/u16-strncmp-tests: New file.
38726         * tests/unistr/test-u16-strncmp.c: New file.
38727
38728         Tests for module 'unistr/u8-strncmp'.
38729         * modules/unistr/u8-strncmp-tests: New file.
38730         * tests/unistr/test-u8-strncmp.c: New file.
38731         * tests/unistr/test-strncmp.h: New file.
38732
38733         Tests for module 'unistr/u32-strcoll'.
38734         * modules/unistr/u32-strcoll-tests: New file.
38735         * tests/unistr/test-u32-strcoll.c: New file.
38736
38737         Tests for module 'unistr/u16-strcoll'.
38738         * modules/unistr/u16-strcoll-tests: New file.
38739         * tests/unistr/test-u16-strcoll.c: New file.
38740
38741         Tests for module 'unistr/u8-strcoll'.
38742         * modules/unistr/u8-strcoll-tests: New file.
38743         * tests/unistr/test-u8-strcoll.c: New file.
38744
38745         Tests for module 'unistr/u32-strcmp'.
38746         * modules/unistr/u32-strcmp-tests: New file.
38747         * tests/unistr/test-u32-strcmp.c: New file.
38748         * tests/unistr/test-u32-strcmp.h: New file.
38749
38750         Tests for module 'unistr/u16-strcmp'.
38751         * modules/unistr/u16-strcmp-tests: New file.
38752         * tests/unistr/test-u16-strcmp.c: New file.
38753         * tests/unistr/test-u16-strcmp.h: New file.
38754
38755         Tests for module 'unistr/u8-strcmp'.
38756         * modules/unistr/u8-strcmp-tests: New file.
38757         * tests/unistr/test-u8-strcmp.c: New file.
38758         * tests/unistr/test-u8-strcmp.h: New file.
38759         * tests/unistr/test-strcmp.h: New file.
38760
38761         Tests for module 'unistr/u32-strncat'.
38762         * modules/unistr/u32-strncat-tests: New file.
38763         * tests/unistr/test-u32-strncat.c: New file.
38764
38765         Tests for module 'unistr/u16-strncat'.
38766         * modules/unistr/u16-strncat-tests: New file.
38767         * tests/unistr/test-u16-strncat.c: New file.
38768
38769         Tests for module 'unistr/u8-strncat'.
38770         * modules/unistr/u8-strncat-tests: New file.
38771         * tests/unistr/test-u8-strncat.c: New file.
38772         * tests/unistr/test-strncat.h: New file.
38773
38774         Tests for module 'unistr/u32-strcat'.
38775         * modules/unistr/u32-strcat-tests: New file.
38776         * tests/unistr/test-u32-strcat.c: New file.
38777
38778         Tests for module 'unistr/u16-strcat'.
38779         * modules/unistr/u16-strcat-tests: New file.
38780         * tests/unistr/test-u16-strcat.c: New file.
38781
38782         Tests for module 'unistr/u8-strcat'.
38783         * modules/unistr/u8-strcat-tests: New file.
38784         * tests/unistr/test-u8-strcat.c: New file.
38785         * tests/unistr/test-strcat.h: New file.
38786
38787         Tests for module 'unistr/u32-stpncpy'.
38788         * modules/unistr/u32-stpncpy-tests: New file.
38789         * tests/unistr/test-u32-stpncpy.c: New file.
38790
38791         Tests for module 'unistr/u16-stpncpy'.
38792         * modules/unistr/u16-stpncpy-tests: New file.
38793         * tests/unistr/test-u16-stpncpy.c: New file.
38794
38795         Tests for module 'unistr/u8-stpncpy'.
38796         * modules/unistr/u8-stpncpy-tests: New file.
38797         * tests/unistr/test-u8-stpncpy.c: New file.
38798         * tests/unistr/test-stpncpy.h: New file.
38799
38800         Tests for module 'unistr/u32-strncpy'.
38801         * modules/unistr/u32-strncpy-tests: New file.
38802         * tests/unistr/test-u32-strncpy.c: New file.
38803
38804         Tests for module 'unistr/u16-strncpy'.
38805         * modules/unistr/u16-strncpy-tests: New file.
38806         * tests/unistr/test-u16-strncpy.c: New file.
38807
38808         Tests for module 'unistr/u8-strncpy'.
38809         * modules/unistr/u8-strncpy-tests: New file.
38810         * tests/unistr/test-u8-strncpy.c: New file.
38811         * tests/unistr/test-strncpy.h: New file.
38812
38813         Tests for module 'unistr/u32-stpcpy'.
38814         * modules/unistr/u32-stpcpy-tests: New file.
38815         * tests/unistr/test-u32-stpcpy.c: New file.
38816
38817         Tests for module 'unistr/u16-stpcpy'.
38818         * modules/unistr/u16-stpcpy-tests: New file.
38819         * tests/unistr/test-u16-stpcpy.c: New file.
38820
38821         Tests for module 'unistr/u8-stpcpy'.
38822         * modules/unistr/u8-stpcpy-tests: New file.
38823         * tests/unistr/test-u8-stpcpy.c: New file.
38824         * tests/unistr/test-stpcpy.h: New file.
38825
38826         Tests for module 'unistr/u32-strcpy'.
38827         * modules/unistr/u32-strcpy-tests: New file.
38828         * tests/unistr/test-u32-strcpy.c: New file.
38829
38830         Tests for module 'unistr/u16-strcpy'.
38831         * modules/unistr/u16-strcpy-tests: New file.
38832         * tests/unistr/test-u16-strcpy.c: New file.
38833
38834         Tests for module 'unistr/u8-strcpy'.
38835         * modules/unistr/u8-strcpy-tests: New file.
38836         * tests/unistr/test-u8-strcpy.c: New file.
38837         * tests/unistr/test-strcpy.h: New file.
38838
38839         Tests for module 'unistr/u32-strnlen'.
38840         * modules/unistr/u32-strnlen-tests: New file.
38841         * tests/unistr/test-u32-strnlen.c: New file.
38842
38843         Tests for module 'unistr/u16-strnlen'.
38844         * modules/unistr/u16-strnlen-tests: New file.
38845         * tests/unistr/test-u16-strnlen.c: New file.
38846
38847         Tests for module 'unistr/u8-strnlen'.
38848         * modules/unistr/u8-strnlen-tests: New file.
38849         * tests/unistr/test-u8-strnlen.c: New file.
38850         * tests/unistr/test-strnlen.h: New file.
38851
38852         Tests for module 'unistr/u32-strlen'.
38853         * modules/unistr/u32-strlen-tests: New file.
38854         * tests/unistr/test-u32-strlen.c: New file.
38855
38856         Tests for module 'unistr/u16-strlen'.
38857         * modules/unistr/u16-strlen-tests: New file.
38858         * tests/unistr/test-u16-strlen.c: New file.
38859
38860         Tests for module 'unistr/u8-strlen'.
38861         * modules/unistr/u8-strlen-tests: New file.
38862         * tests/unistr/test-u8-strlen.c: New file.
38863
38864         Tests for module 'unistr/u32-prev'.
38865         * modules/unistr/u32-prev-tests: New file.
38866         * tests/unistr/test-u32-prev.c: New file.
38867
38868         Tests for module 'unistr/u16-prev'.
38869         * modules/unistr/u16-prev-tests: New file.
38870         * tests/unistr/test-u16-prev.c: New file.
38871
38872         Tests for module 'unistr/u8-prev'.
38873         * modules/unistr/u8-prev-tests: New file.
38874         * tests/unistr/test-u8-prev.c: New file.
38875
38876         Tests for module 'unistr/u32-next'.
38877         * modules/unistr/u32-next-tests: New file.
38878         * tests/unistr/test-u32-next.c: New file.
38879
38880         Tests for module 'unistr/u16-next'.
38881         * modules/unistr/u16-next-tests: New file.
38882         * tests/unistr/test-u16-next.c: New file.
38883
38884         Tests for module 'unistr/u8-next'.
38885         * modules/unistr/u8-next-tests: New file.
38886         * tests/unistr/test-u8-next.c: New file.
38887
38888         Tests for module 'unistr/u32-strmbtouc'.
38889         * modules/unistr/u32-strmbtouc-tests: New file.
38890         * tests/unistr/test-u32-strmbtouc.c: New file.
38891
38892         Tests for module 'unistr/u16-strmbtouc'.
38893         * modules/unistr/u16-strmbtouc-tests: New file.
38894         * tests/unistr/test-u16-strmbtouc.c: New file.
38895
38896         Tests for module 'unistr/u8-strmbtouc'.
38897         * modules/unistr/u8-strmbtouc-tests: New file.
38898         * tests/unistr/test-u8-strmbtouc.c: New file.
38899
38900         Tests for module 'unistr/u32-strmblen'.
38901         * modules/unistr/u32-strmblen-tests: New file.
38902         * tests/unistr/test-u32-strmblen.c: New file.
38903
38904         Tests for module 'unistr/u16-strmblen'.
38905         * modules/unistr/u16-strmblen-tests: New file.
38906         * tests/unistr/test-u16-strmblen.c: New file.
38907
38908         Tests for module 'unistr/u8-strmblen'.
38909         * modules/unistr/u8-strmblen-tests: New file.
38910         * tests/unistr/test-u8-strmblen.c: New file.
38911
38912         Tests for module 'unistr/u32-cpy-alloc'.
38913         * modules/unistr/u32-cpy-alloc-tests: New file.
38914         * tests/unistr/test-u32-cpy-alloc.c: New file.
38915
38916         Tests for module 'unistr/u16-cpy-alloc'.
38917         * modules/unistr/u16-cpy-alloc-tests: New file.
38918         * tests/unistr/test-u16-cpy-alloc.c: New file.
38919
38920         Tests for module 'unistr/u8-cpy-alloc'.
38921         * modules/unistr/u8-cpy-alloc-tests: New file.
38922         * tests/unistr/test-u8-cpy-alloc.c: New file.
38923         * tests/unistr/test-cpy-alloc.h: New file.
38924
38925         Tests for module 'unistr/u32-mbsnlen'.
38926         * modules/unistr/u32-mbsnlen-tests: New file.
38927         * tests/unistr/test-u32-mbsnlen.c: New file.
38928
38929         Tests for module 'unistr/u16-mbsnlen'.
38930         * modules/unistr/u16-mbsnlen-tests: New file.
38931         * tests/unistr/test-u16-mbsnlen.c: New file.
38932
38933         Tests for module 'unistr/u8-mbsnlen'.
38934         * modules/unistr/u8-mbsnlen-tests: New file.
38935         * tests/unistr/test-u8-mbsnlen.c: New file.
38936
38937         Tests for module 'unistr/u32-chr'.
38938         * modules/unistr/u32-chr-tests: New file.
38939         * tests/unistr/test-u32-chr.c: New file.
38940
38941         Tests for module 'unistr/u16-chr'.
38942         * modules/unistr/u16-chr-tests: New file.
38943         * tests/unistr/test-u16-chr.c: New file.
38944
38945         Tests for module 'unistr/u8-chr'.
38946         * modules/unistr/u8-chr-tests: New file.
38947         * tests/unistr/test-u8-chr.c: New file.
38948         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
38949
38950         Tests for module 'unistr/u32-cmp2'.
38951         * modules/unistr/u32-cmp2-tests: New file.
38952         * tests/unistr/test-u32-cmp2.c: New file.
38953
38954         Tests for module 'unistr/u16-cmp2'.
38955         * modules/unistr/u16-cmp2-tests: New file.
38956         * tests/unistr/test-u16-cmp2.c: New file.
38957
38958         Tests for module 'unistr/u8-cmp2'.
38959         * modules/unistr/u8-cmp2-tests: New file.
38960         * tests/unistr/test-u8-cmp2.c: New file.
38961         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
38962
38963         Tests for module 'unistr/u32-cmp'.
38964         * modules/unistr/u32-cmp-tests: New file.
38965         * tests/unistr/test-u32-cmp.c: New file.
38966
38967         Tests for module 'unistr/u16-cmp'.
38968         * modules/unistr/u16-cmp-tests: New file.
38969         * tests/unistr/test-u16-cmp.c: New file.
38970
38971         Tests for module 'unistr/u8-cmp'.
38972         * modules/unistr/u8-cmp-tests: New file.
38973         * tests/unistr/test-u8-cmp.c: New file.
38974         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
38975
38976         Tests for module 'unistr/u32-set'.
38977         * modules/unistr/u32-set-tests: New file.
38978         * tests/unistr/test-u32-set.c: New file.
38979
38980         Tests for module 'unistr/u16-set'.
38981         * modules/unistr/u16-set-tests: New file.
38982         * tests/unistr/test-u16-set.c: New file.
38983
38984         Tests for module 'unistr/u8-set'.
38985         * modules/unistr/u8-set-tests: New file.
38986         * tests/unistr/test-u8-set.c: New file.
38987         * tests/unistr/test-set.h: New file.
38988
38989         Tests for module 'unistr/u32-move'.
38990         * modules/unistr/u32-move-tests: New file.
38991         * tests/unistr/test-u32-move.c: New file.
38992
38993         Tests for module 'unistr/u16-move'.
38994         * modules/unistr/u16-move-tests: New file.
38995         * tests/unistr/test-u16-move.c: New file.
38996
38997         Tests for module 'unistr/u8-move'.
38998         * modules/unistr/u8-move-tests: New file.
38999         * tests/unistr/test-u8-move.c: New file.
39000         * tests/unistr/test-move.h: New file.
39001
39002         Tests for module 'unistr/u32-cpy'.
39003         * modules/unistr/u32-cpy-tests: New file.
39004         * tests/unistr/test-u32-cpy.c: New file.
39005
39006         Tests for module 'unistr/u16-cpy'.
39007         * modules/unistr/u16-cpy-tests: New file.
39008         * tests/unistr/test-u16-cpy.c: New file.
39009
39010         Tests for module 'unistr/u8-cpy'.
39011         * modules/unistr/u8-cpy-tests: New file.
39012         * tests/unistr/test-u8-cpy.c: New file.
39013         * tests/unistr/test-cpy.h: New file.
39014
39015 2010-01-09  Bruno Haible  <bruno@clisp.org>
39016
39017         Tests for module 'unistr/u32-uctomb'.
39018         * modules/unistr/u32-uctomb-tests: New file.
39019         * tests/unistr/test-u32-uctomb.c: New file.
39020
39021         Tests for module 'unistr/u16-uctomb'.
39022         * modules/unistr/u16-uctomb-tests: New file.
39023         * tests/unistr/test-u16-uctomb.c: New file.
39024
39025         Tests for module 'unistr/u8-uctomb'.
39026         * modules/unistr/u8-uctomb-tests: New file.
39027         * tests/unistr/test-u8-uctomb.c: New file.
39028
39029         Tests for module 'unistr/u32-mbtoucr'.
39030         * modules/unistr/u32-mbtoucr-tests: New file.
39031         * tests/unistr/test-u32-mbtoucr.c: New file.
39032
39033         Tests for module 'unistr/u16-mbtoucr'.
39034         * modules/unistr/u16-mbtoucr-tests: New file.
39035         * tests/unistr/test-u16-mbtoucr.c: New file.
39036
39037         Tests for module 'unistr/u8-mbtoucr'.
39038         * modules/unistr/u8-mbtoucr-tests: New file.
39039         * tests/unistr/test-u8-mbtoucr.c: New file.
39040
39041         Tests for module 'unistr/u32-mbtouc'.
39042         * modules/unistr/u32-mbtouc-tests: New file.
39043         * tests/unistr/test-u32-mbtouc.c: New file.
39044
39045         Tests for module 'unistr/u16-mbtouc'.
39046         * modules/unistr/u16-mbtouc-tests: New file.
39047         * tests/unistr/test-u16-mbtouc.c: New file.
39048
39049         Tests for module 'unistr/u8-mbtouc'.
39050         * modules/unistr/u8-mbtouc-tests: New file.
39051         * tests/unistr/test-u8-mbtouc.c: New file.
39052
39053         Tests for module 'unistr/u32-mbtouc-unsafe'.
39054         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
39055         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
39056         * tests/unistr/test-u32-mbtouc.h: New file.
39057
39058         Tests for module 'unistr/u16-mbtouc-unsafe'.
39059         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
39060         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
39061         * tests/unistr/test-u16-mbtouc.h: New file.
39062
39063         Tests for module 'unistr/u8-mbtouc-unsafe'.
39064         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
39065         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
39066         * tests/unistr/test-u8-mbtouc.h: New file.
39067
39068         Tests for module 'unistr/u32-mblen'.
39069         * modules/unistr/u32-mblen-tests: New file.
39070         * tests/unistr/test-u32-mblen.c: New file.
39071
39072         Tests for module 'unistr/u16-mblen'.
39073         * modules/unistr/u16-mblen-tests: New file.
39074         * tests/unistr/test-u16-mblen.c: New file.
39075
39076         Tests for module 'unistr/u8-mblen'.
39077         * modules/unistr/u8-mblen-tests: New file.
39078         * tests/unistr/test-u8-mblen.c: New file.
39079
39080         Tests for module 'unistr/u32-to-u16'.
39081         * modules/unistr/u32-to-u16-tests: New file.
39082         * tests/unistr/test-u32-to-u16.c: New file.
39083
39084         Tests for module 'unistr/u32-to-u8'.
39085         * modules/unistr/u32-to-u8-tests: New file.
39086         * tests/unistr/test-u32-to-u8.c: New file.
39087
39088         Tests for module 'unistr/u16-to-u32'.
39089         * modules/unistr/u16-to-u32-tests: New file.
39090         * tests/unistr/test-u16-to-u32.c: New file.
39091
39092         Tests for module 'unistr/u16-to-u8'.
39093         * modules/unistr/u16-to-u8-tests: New file.
39094         * tests/unistr/test-u16-to-u8.c: New file.
39095
39096         Tests for module 'unistr/u8-to-u32'.
39097         * modules/unistr/u8-to-u32-tests: New file.
39098         * tests/unistr/test-u8-to-u32.c: New file.
39099
39100         Tests for module 'unistr/u8-to-u16'.
39101         * modules/unistr/u8-to-u16-tests: New file.
39102         * tests/unistr/test-u8-to-u16.c: New file.
39103
39104         Tests for module 'unistr/u32-check'.
39105         * modules/unistr/u32-check-tests: New file.
39106         * tests/unistr/test-u32-check.c: New file.
39107
39108         Tests for module 'unistr/u16-check'.
39109         * modules/unistr/u16-check-tests: New file.
39110         * tests/unistr/test-u16-check.c: New file.
39111
39112         Tests for module 'unistr/u8-check'.
39113         * modules/unistr/u8-check-tests: New file.
39114         * tests/unistr/test-u8-check.c: New file.
39115
39116         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
39117         (category_equals): New function.
39118         (main): Add more tests.
39119         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
39120
39121         * tests/unictype/test-bidi_byname.c (main): Add more tests.
39122
39123 2010-01-10  Bruno Haible  <bruno@clisp.org>
39124
39125         unistr/u*-strcoll: Try harder to distinguish different strings.
39126         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
39127         compare s1 and s2 to see if they are different.
39128
39129 2010-01-10  Bruno Haible  <bruno@clisp.org>
39130
39131         unistr/u*-stpncpy: Fix the return value.
39132         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
39133         description of the return value consistent with stpncpy in glibc.
39134         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
39135         written non-NUL unit.
39136
39137 2010-01-10  Bruno Haible  <bruno@clisp.org>
39138
39139         unistr/u*-next: Add missing dependencies.
39140         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
39141         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
39142         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
39143
39144 2010-01-10  Bruno Haible  <bruno@clisp.org>
39145
39146         unistr/u8-mbsnlen: Fix return value for incomplete character.
39147         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
39148         u8_mblen.
39149         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
39150         Remove unistr/u8-mblen.
39151         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
39152         u16_mblen.
39153         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
39154         Remove unistr/u16-mblen.
39155
39156 2010-01-10  Bruno Haible  <bruno@clisp.org>
39157
39158         wchar: Fix compilation error when <wchar.h> is used from coreutils.
39159         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
39160         Reported by Brian Gough <bjg@gnu.org> and
39161         Chris Clayton <chris2553@googlemail.com> via
39162         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
39163
39164 2010-01-09  Bruno Haible  <bruno@clisp.org>
39165
39166         unistr/u16-to-u32: Reject invalid input.
39167         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
39168         u16_mbtouc.
39169         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
39170         Remove unistr/u16-mbtouc.
39171
39172         unistr/u16-to-u8: Reject invalid input.
39173         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
39174         u16_mbtouc.
39175         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
39176         Remove unistr/u16-mbtouc.
39177
39178         unistr/u8-to-u32: Reject invalid input.
39179         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
39180         u8_mbtouc.
39181         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
39182         Remove unistr/u8-mbtouc.
39183
39184         unistr/u8-to-u16: Reject invalid input.
39185         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
39186         u8_mbtouc.
39187         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
39188         Remove unistr/u8-mbtouc.
39189
39190 2010-01-09  Bruno Haible  <bruno@clisp.org>
39191
39192         Tests for module 'getlogin'.
39193         * modules/getlogin-tests: New file.
39194         * tests/test-getlogin.c: New file.
39195
39196         New module 'getlogin'.
39197         * lib/unistd.in.h (getlogin): New declaration.
39198         * lib/getlogin.c: New file.
39199         * m4/getlogin.m4: New file.
39200         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
39201         HAVE_GETLOGIN.
39202         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
39203         HAVE_GETLOGIN.
39204         * modules/getlogin: New file.
39205         * doc/posix-functions/getlogin.texi: Mention the new module.
39206         Reported by John W. Eaton <jwe@gnu.org>.
39207
39208 2010-01-09  Bruno Haible  <bruno@clisp.org>
39209
39210         getlogin_r: Support for native Windows.
39211         * lib/getlogin_r.c: Include <windows.h>
39212         (getlogin_r): Implement for native Windows.
39213         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
39214         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
39215         via John W. Eaton <jwe@gnu.org>.
39216
39217 2010-01-09  Bruno Haible  <bruno@clisp.org>
39218
39219         getlogin_r: Small fixes.
39220         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
39221         succeeds.
39222         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
39223         before testing whether getlogin_r is declared. No need to set
39224         HAVE_DECL_GETLOGIN_R to 1.
39225         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
39226
39227 2010-01-09  Bruno Haible  <bruno@clisp.org>
39228
39229         * lib/unistd.in.h (getlogin_r): Add comment.
39230
39231 2010-01-09  Bruno Haible  <bruno@clisp.org>
39232
39233         Tests for module 'getlogin_r'.
39234         * modules/getlogin_r-tests: New file.
39235         * tests/test-getlogin_r.c: New file.
39236
39237 2010-01-09  Jim Meyering  <meyering@redhat.com>
39238
39239         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
39240         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
39241         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
39242
39243 2010-01-08  Simon Josefsson  <simon@josefsson.org>
39244
39245         * lib/dup2.c (rpl_dup2): Improve comment.
39246
39247 2010-01-08  Eric Blake  <ebb9@byu.net>
39248
39249         maint.mk: allow packages to add makefile @@ exceptions
39250         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
39251         (sc_makefile_check): Rename...
39252         (sc_makefile_at_at_check): ...to this, and use hook.
39253
39254         dup2: work around mingw bug
39255         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
39256         Reported by Simon Josefsson.
39257
39258 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
39259
39260         glob: Fix C++ compilation.
39261         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
39262         C++.
39263
39264 2010-01-07  Bruno Haible  <bruno@clisp.org>
39265
39266         Fix indentation of wctype.in.h, broken since 2007-01-06.
39267         * lib/wctype.in.h: Fix indentation of preprocessor directives.
39268
39269 2010-01-07  Bruno Haible  <bruno@clisp.org>
39270
39271         mbslen: Avoid collision with system function.
39272         * lib/string.in.h [MirBSD]: Include <wchar.h>.
39273         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
39274         * m4/mbslen.m4: New file.
39275         * modules/mbslen (Files): Add it.
39276         (configure.ac): Invoke gl_MBSLEN.
39277         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
39278         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
39279         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
39280         via Ian Beckwith <ianb@erislabs.net>.
39281
39282 2010-01-07  Bruno Haible  <bruno@clisp.org>
39283
39284         dirent: Document the last fix.
39285         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
39286
39287 2010-01-07  Bruno Haible  <bruno@clisp.org>
39288
39289         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
39290         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
39291         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
39292         va_list are defined.
39293         * doc/posix-headers/stdio.texi: Document the bug of missing types.
39294         Reported by Eric Blake.
39295
39296 2010-01-07  Bruno Haible  <bruno@clisp.org>
39297
39298         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
39299         * modules/xlist (Depends-on): Add 'list',
39300         * modules/xoset (Depends-on): Add 'oset'.
39301         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39302
39303 2010-01-07  Bruno Haible  <bruno@clisp.org>
39304
39305         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
39306         * doc/posix-functions/strncasecmp.texi: Likewise.
39307
39308 2010-01-07  Bruno Haible  <bruno@clisp.org>
39309
39310         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
39311
39312 2010-01-07  John W. Eaton  <jwe@octave.org>
39313
39314         wctype: allow C++ use
39315         * lib/wctype.in.h: Add extern "C" block for C++.
39316
39317 2010-01-06  Eric Blake  <ebb9@byu.net>
39318
39319         maint.mk: detect incorrect GFDL usage
39320         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
39321
39322 2010-01-06  Jim Meyering  <meyering@redhat.com>
39323         and Eric Blake  <ebb9@byu.net>
39324
39325         maint.mk: ignore multi-line copyright in NEWS
39326         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
39327
39328 2010-01-06  Eric Blake  <ebb9@byu.net>
39329
39330         select: add missing dependency
39331         * modules/select-tests (Depends-on): Move sockets dependency...
39332         * modules/select (Depends-on): ...here.
39333         Reported by Ian Beckwith.
39334
39335         doc: regenerate INSTALL
39336         * doc/INSTALL: Reflect recent autoconf update.
39337         * doc/INSTALL.ISO: Likewise.
39338         * doc/INSTALL.UTF-8: Likewise.
39339
39340         pread: fix compilation on glibc
39341         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
39342         Reported by Ralf Wildenhues.
39343
39344         dirent: fix test failure
39345         * lib/dirent.in.h (includes): Guarantee ino_t.
39346         Reported by Ralf Wildenhues.
39347
39348 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
39349
39350         linkat, renameat: avoid bad free
39351         * lib/at-func2.c (at_func2): Fix typo.
39352         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
39353
39354 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39355
39356         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
39357         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
39358         to avoid failure of symlink test later.
39359
39360 2010-01-06  Eric Blake  <ebb9@byu.net>
39361
39362         stdio, unistd: guarantee ssize_t
39363         * lib/unistd.in.h (includes): Ensure that types required by POSIX
39364         2008 are exposed when needed.
39365         * lib/stdio.in.h (includes): Likewise.
39366         Reported by Ralf Wildenhues.
39367
39368 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
39369
39370         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
39371         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
39372         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
39373
39374 2010-01-06  Jim Meyering  <meyering@redhat.com>
39375
39376         readtokens: this module *does* require xalloc.h
39377         It uses only functions that were omitted by the old syntax-check rule.
39378         * lib/readtokens.c: Include "xalloc.h" once again.
39379         * modules/readtokens (Depends-on): Add xalloc.
39380         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
39381
39382 2010-01-05  Eric Blake  <ebb9@byu.net>
39383
39384         maint: support 'make announcement' from a VPATH build
39385         * top/maint.mk (announcement): Look for correct NEWS file.
39386
39387 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
39388
39389         utimens (fdutimens): ignore a negative FD, per contract
39390         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
39391         when we have a valid file descriptor.  Otherwise, using a brand
39392         new glibc (with just-patched futimens that now fails with EBADF)
39393         would cause this function to fail with ENOSYS.
39394         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
39395         See also http://bugzilla.redhat.com/552320.
39396
39397 2010-01-05  Eric Blake  <ebb9@byu.net>
39398
39399         strcase: document what it provides
39400         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
39401         gnulib module.
39402         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
39403         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
39404
39405 2010-01-05  Jim Meyering  <meyering@redhat.com>
39406
39407         maint: remove useless inclusions of "xalloc.h"
39408         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
39409         * lib/readtokens.c: Likewise.
39410         * lib/same.c: Likewise.
39411         * modules/getloadavg (Depends-on): Remove xalloc.
39412         * modules/readtokens: Likewise.
39413         * modules/same: Likewise.
39414
39415         maint.mk: include 4 more function names in alloca.h-checking regexp
39416         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
39417         regexp.  Before, we would give a false-positive (saying alloca.h
39418         is included unnecessarily) when the only uses involved omitted symbols.
39419
39420         xalloc.h: use consistent formatting
39421         * lib/xalloc.h: Move declarations to start in the first column.
39422
39423 2010-01-05  Eric Blake  <ebb9@byu.net>
39424
39425         mkdir: avoid xalloc
39426         * lib/mkdir.c (includes): Drop unused header.
39427         Reported by John W. Eaton.
39428
39429 2010-01-04  Jim Meyering  <meyering@redhat.com>
39430
39431         nl_langinfo: avoid configure-time syntax error
39432         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
39433         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
39434         the empty string.  Don't let that provoke a shell syntax error.
39435
39436         regcomp, regexec, fnmatch: avoid array bounds read error
39437         * lib/regcomp.c (build_equiv_class): From glibc:
39438         Use only the low 24 bits of a findidx return value as an index
39439         into the weights array.  Patch by Ulrich Drepper:
39440         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
39441         * lib/regexec.c (check_node_accept_bytes): Likewise.
39442         * lib/fnmatch_loop.c (FCT): Likewise.
39443
39444         regcomp: skip collseq lookup when there are no rules
39445         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
39446         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
39447
39448         regcomp: recognize ill-formed { } expressions
39449         * lib/regcomp.c (parse_dup_op): From glibc:
39450         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
39451
39452         regcomp: fix typo in comment
39453         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
39454         s/satisfy/satisfies/.
39455
39456         regcomp: sync from glibc: remove dead store
39457         * lib/regcomp.c (duplicate_node_closure): Remove useless
39458         search_duplicated_node call and dead store.
39459
39460         regcomp: sync from glibc; always use nl_langinfo
39461         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
39462         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
39463         * modules/regex (Depends-on): Add nl_langinfo.
39464
39465 2010-01-04  Eric Blake  <ebb9@byu.net>
39466
39467         fdopendir: fix configure test
39468         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
39469
39470 2010-01-01  Bruno Haible  <bruno@clisp.org>
39471
39472         wchar: Remove unused configure check.
39473         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
39474
39475 2010-01-01  Eric Blake  <ebb9@byu.net>
39476
39477         headers: make check of system header explicit
39478         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
39479         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
39480         ourselves.
39481         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
39482         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39483         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
39484         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
39485         internals.
39486         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
39487         missing.
39488         Suggested by Bruno Haible.
39489
39490 2010-01-01  Jim Meyering  <meyering@redhat.com>
39491
39492         ChangeLog: tweak to eliminate unnecessary copyright line
39493         * ChangeLog: Remove a copyright line that was mistakenly updated
39494         by today's update-copyright run.  Reported by Eric Blake.
39495
39496         test-update-copyright: don't let envvar setting cause test failure
39497         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
39498
39499 2010-01-01  Bruno Haible  <bruno@clisp.org>
39500
39501         localename: Avoid gcc warning.
39502         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
39503         function if it is not used.
39504
39505 2010-01-01  Jim Meyering  <meyering@redhat.com>
39506
39507         update nearly all FSF copyright year lists to include 2010
39508         Use the same procedure as for 2009, outlined in
39509         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
39510
39511         version-etc: set COPYRIGHT_YEAR to 2010
39512         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
39513
39514 2009-12-31  Eric Blake  <ebb9@byu.net>
39515
39516         doc: correct availability of cygwin 1.5.x getopt
39517         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
39518         variables.
39519         * doc/posix-functions/opterr.texi (opterr): Likewise.
39520         * doc/posix-functions/optind.texi (optind): Likewise.
39521         * doc/posix-functions/optopt.texi (optopt): Likewise.
39522         * doc/posix-functions/tzname.texi (tzname): Likewise.
39523
39524         openat: update maintainer
39525         * modules/openat (Maintainer): Add myself.
39526
39527         utimens: avoid shadowing warning
39528         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
39529         buffers into one, to avoid shadowing, as well as avoiding a
39530         redundant stat.
39531         Reported by Jim Meyering.
39532
39533         test-dup2: avoid compiler warning
39534         * tests/test-dup2.c (is_inheritable): Only define if used.
39535
39536 2010-01-01  Bruno Haible  <bruno@clisp.org>
39537
39538         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
39539         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
39540         defined, use wctomb instead of wcrtomb.
39541
39542 2010-01-01  Bruno Haible  <bruno@clisp.org>
39543
39544         iconv: Reject native Solaris iconv.
39545         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
39546         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
39547
39548 2009-12-31  Bruno Haible  <bruno@clisp.org>
39549
39550         * tests/test-signal.c (main): Remove test of 'SIG'.
39551
39552 2009-12-31  Bruno Haible  <bruno@clisp.org>
39553
39554         spawn: Fix incomplete fix.
39555         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
39556         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
39557         warnings for GNULIB_POSIXCHECK again.
39558         Reported by Eric Blake.
39559
39560 2009-12-31  Bruno Haible  <bruno@clisp.org>
39561
39562         Avoid namespace pollution on glibc systems.
39563         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
39564         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
39565         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
39566         glibc systems.
39567
39568 2009-12-31  Bruno Haible  <bruno@clisp.org>
39569
39570         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
39571         (gl_REPLACE_WCHAR_H): Turn into a no-op.
39572         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
39573         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
39574         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
39575         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
39576         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
39577
39578 2009-12-31  Bruno Haible  <bruno@clisp.org>
39579
39580         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
39581         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
39582         afterwards.
39583
39584 2009-12-31  Bruno Haible  <bruno@clisp.org>
39585
39586         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
39587         SYS_UTSNAME_H.
39588
39589 2009-12-31  Bruno Haible  <bruno@clisp.org>
39590
39591         spawn: Fix misapplied patch.
39592         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
39593         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
39594         warnings for GNULIB_POSIXCHECK.
39595
39596 2009-12-31  Bruno Haible  <bruno@clisp.org>
39597
39598         times: Update after sys_times changed.
39599         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
39600         * modules/times (Files): Add it.
39601         (configure.ac): Invoke gl_FUNC_TIMES.
39602
39603 2009-12-31  Bruno Haible  <bruno@clisp.org>
39604
39605         Use AC_C_INLINE where necessary.
39606         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
39607         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
39608         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
39609         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
39610         * m4/mbfile.m4 (gl_MBFILE): Likewise.
39611         * m4/mbiter.m4 (gl_MBITER): Likewise.
39612         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
39613         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
39614         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
39615         * modules/u64 (configure.ac): Likewise.
39616
39617 2009-12-31  Bruno Haible  <bruno@clisp.org>
39618
39619         Use AC_C_INLINE instead of module 'inline' where possible.
39620         * modules/inline (Description): Clarify purpose.
39621         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
39622         * modules/count-one-bits (Depends-on): Remove inline.
39623         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
39624         * modules/openat (Depends-on): Remove inline.
39625         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
39626         instead of depending on module 'inline'.
39627         * modules/filevercmp (Depends-on, configure.ac): Likewise.
39628         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
39629         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
39630         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
39631         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
39632         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
39633         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
39634         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
39635         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
39636         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
39637         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
39638         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
39639         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
39640         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
39641         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
39642         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
39643         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
39644         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
39645         Likewise.
39646         * modules/unictype/property-ascii-hex-digit (Depends-on,
39647         configure.ac): Likewise.
39648         * modules/unictype/property-bidi-arabic-digit (Depends-on,
39649         configure.ac): Likewise.
39650         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
39651         configure.ac): Likewise.
39652         * modules/unictype/property-bidi-block-separator (Depends-on,
39653         configure.ac): Likewise.
39654         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
39655         configure.ac): Likewise.
39656         * modules/unictype/property-bidi-common-separator (Depends-on,
39657         configure.ac): Likewise.
39658         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
39659         Likewise.
39660         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
39661         configure.ac): Likewise.
39662         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
39663         configure.ac): Likewise.
39664         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
39665         configure.ac): Likewise.
39666         * modules/unictype/property-bidi-european-digit (Depends-on,
39667         configure.ac): Likewise.
39668         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
39669         configure.ac): Likewise.
39670         * modules/unictype/property-bidi-left-to-right (Depends-on,
39671         configure.ac): Likewise.
39672         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
39673         configure.ac): Likewise.
39674         * modules/unictype/property-bidi-other-neutral (Depends-on,
39675         configure.ac): Likewise.
39676         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
39677         Likewise.
39678         * modules/unictype/property-bidi-segment-separator (Depends-on,
39679         configure.ac): Likewise.
39680         * modules/unictype/property-bidi-whitespace (Depends-on,
39681         configure.ac): Likewise.
39682         * modules/unictype/property-combining (Depends-on, configure.ac):
39683         Likewise.
39684         * modules/unictype/property-composite (Depends-on, configure.ac):
39685         Likewise.
39686         * modules/unictype/property-currency-symbol (Depends-on,
39687         configure.ac): Likewise.
39688         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
39689         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
39690         Likewise.
39691         * modules/unictype/property-default-ignorable-code-point (Depends-on,
39692         configure.ac): Likewise.
39693         * modules/unictype/property-deprecated (Depends-on, configure.ac):
39694         Likewise.
39695         * modules/unictype/property-diacritic (Depends-on, configure.ac):
39696         Likewise.
39697         * modules/unictype/property-extender (Depends-on, configure.ac):
39698         Likewise.
39699         * modules/unictype/property-format-control (Depends-on, configure.ac):
39700         Likewise.
39701         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
39702         Likewise.
39703         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
39704         Likewise.
39705         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
39706         Likewise.
39707         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
39708         Likewise.
39709         * modules/unictype/property-hyphen (Depends-on, configure.ac):
39710         Likewise.
39711         * modules/unictype/property-id-continue (Depends-on, configure.ac):
39712         Likewise.
39713         * modules/unictype/property-id-start (Depends-on, configure.ac):
39714         Likewise.
39715         * modules/unictype/property-ideographic (Depends-on, configure.ac):
39716         Likewise.
39717         * modules/unictype/property-ids-binary-operator (Depends-on,
39718         configure.ac): Likewise.
39719         * modules/unictype/property-ids-trinary-operator (Depends-on,
39720         configure.ac): Likewise.
39721         * modules/unictype/property-ignorable-control (Depends-on,
39722         configure.ac): Likewise.
39723         * modules/unictype/property-iso-control (Depends-on, configure.ac):
39724         Likewise.
39725         * modules/unictype/property-join-control (Depends-on, configure.ac):
39726         Likewise.
39727         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
39728         Likewise.
39729         * modules/unictype/property-line-separator (Depends-on, configure.ac):
39730         Likewise.
39731         * modules/unictype/property-logical-order-exception (Depends-on,
39732         configure.ac): Likewise.
39733         * modules/unictype/property-lowercase (Depends-on, configure.ac):
39734         Likewise.
39735         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
39736         * modules/unictype/property-non-break (Depends-on, configure.ac):
39737         Likewise.
39738         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
39739         Likewise.
39740         * modules/unictype/property-numeric (Depends-on, configure.ac):
39741         Likewise.
39742         * modules/unictype/property-other-alphabetic (Depends-on,
39743         configure.ac): Likewise.
39744         * modules/unictype/property-other-default-ignorable-code-point
39745         (Depends-on, configure.ac): Likewise.
39746         * modules/unictype/property-other-grapheme-extend (Depends-on,
39747         configure.ac): Likewise.
39748         * modules/unictype/property-other-id-continue (Depends-on,
39749         configure.ac): Likewise.
39750         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
39751         Likewise.
39752         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
39753         Likewise.
39754         * modules/unictype/property-other-math (Depends-on, configure.ac):
39755         Likewise.
39756         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
39757         Likewise.
39758         * modules/unictype/property-paired-punctuation (Depends-on,
39759         configure.ac): Likewise.
39760         * modules/unictype/property-paragraph-separator (Depends-on,
39761         configure.ac): Likewise.
39762         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
39763         Likewise.
39764         * modules/unictype/property-pattern-white-space (Depends-on,
39765         configure.ac): Likewise.
39766         * modules/unictype/property-private-use (Depends-on, configure.ac):
39767         Likewise.
39768         * modules/unictype/property-punctuation (Depends-on, configure.ac):
39769         Likewise.
39770         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
39771         Likewise.
39772         * modules/unictype/property-radical (Depends-on, configure.ac):
39773         Likewise.
39774         * modules/unictype/property-sentence-terminal (Depends-on,
39775         configure.ac): Likewise.
39776         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
39777         Likewise.
39778         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
39779         * modules/unictype/property-terminal-punctuation (Depends-on,
39780         configure.ac): Likewise.
39781         * modules/unictype/property-titlecase (Depends-on, configure.ac):
39782         Likewise.
39783         * modules/unictype/property-unassigned-code-value (Depends-on,
39784         configure.ac): Likewise.
39785         * modules/unictype/property-unified-ideograph (Depends-on,
39786         configure.ac): Likewise.
39787         * modules/unictype/property-uppercase (Depends-on, configure.ac):
39788         Likewise.
39789         * modules/unictype/property-variation-selector (Depends-on,
39790         configure.ac): Likewise.
39791         * modules/unictype/property-white-space (Depends-on, configure.ac):
39792         Likewise.
39793         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
39794         Likewise.
39795         * modules/unictype/property-xid-start (Depends-on, configure.ac):
39796         Likewise.
39797         * modules/unictype/property-zero-width (Depends-on, configure.ac):
39798         Likewise.
39799         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
39800         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
39801         Likewise.
39802
39803 2009-12-31  Bruno Haible  <bruno@clisp.org>
39804
39805         Remove unnecessary AC_C_INLINE invocation.
39806         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
39807         since 2009-08-21.
39808
39809 2009-12-31  Jim Meyering  <meyering@redhat.com>
39810
39811         maint.mk: don't require explicit gpg_key_ID in cfg.mk
39812         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
39813         With this change, we can all remove the gpg_key_ID = ... definition
39814         from our respective cfg.mk files.
39815
39816         maint.mk: create announcement template in ~/, not in /tmp
39817         * top/maint.mk (emit_upload_commands): Adjust.
39818         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
39819         Remove temporary file, .ci-msg.
39820
39821 2009-12-31  Eric Blake  <ebb9@byu.net>
39822
39823         link-warning: always build headers with link warnings
39824         * modules/arpa_inet (Makefile.am): Always build replacement
39825         header.
39826         * modules/ctype (Makefile.am): Likewise.
39827         * modules/dirent (Makefile.am): Likewise.
39828         * modules/inttypes (Makefile.am): Likewise.
39829         * modules/langinfo (Makefile.am): Likewise.
39830         * modules/locale (Makefile.am): Likewise.
39831         * modules/spawn (Makefile.am): Likewise.
39832         * modules/sys_file (Makefile.am): Likewise.
39833         * modules/sys_ioctl (Makefile.am): Likewise.
39834         * modules/sys_select (Makefile.am): Likewise.
39835         * modules/sys_socket (Makefile.am): Likewise.
39836         * modules/sys_times (Makefile.am): Likewise.
39837         * modules/sys_utsname (Makefile.am): Likewise.
39838         * modules/sys_wait (Makefile.am): Likewise.
39839         * modules/wchar (Makefile.am): Likewise.
39840         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
39841         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
39842         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
39843         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
39844         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
39845         Likewise.
39846         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
39847         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
39848         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
39849         Likewise.
39850         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
39851         Likewise.
39852         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
39853         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
39854         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
39855         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39856         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
39857         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
39858         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
39859         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
39860         (gl_WCHAR_H_DEFAULTS): Likewise.
39861
39862 2009-12-31  Eric Blake  <ebb9@byu.net>
39863
39864         signal, spawn: use link warnings
39865         * lib/signal.in.h (sigset_t): Make unconditional.
39866         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
39867         (sigpending, sigprocmask, sigaction): Add link warnings.
39868         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
39869         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
39870         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
39871         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
39872         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
39873         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
39874         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
39875         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
39876         (posix_spawn_file_actions_destroy)
39877         (posix_spawn_file_actions_addopen)
39878         (posix_spawn_file_actions_addclose)
39879         (posix_spawn_file_actions_adddup2): Likewise.
39880         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
39881         * tests/test-signal.c (main): Enhance test.
39882
39883         spawn: improve wrapper support
39884         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
39885         (gl_SPAWN_H_DEFAULTS): New defaults.
39886         * modules/spawn (Makefile.am): Substitute them.
39887         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
39888         Only declare if missing or broken.
39889
39890         sys_times, sys_utsname: use include_next
39891         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
39892         header.
39893         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
39894         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
39895         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
39896         * modules/sys_times (Depends-on): Add include_next.
39897         (Makefile.am): Substitute additional values.
39898         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
39899         * lib/sys_times.in.h (includes): Include native header, if
39900         available.
39901         * lib/sys_utsname.in.h (includes): Likewise.
39902         * tests/test-sys_times.c (main): Enhance test.
39903
39904         fdutimensat: revert prior patch
39905         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
39906         utimens.h.
39907         Reported by Bruno Haible.
39908
39909 2009-12-30  Eric Blake  <ebb9@byu.net>
39910
39911         sys_wait: drop link-warning dependency
39912         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
39913         link-warning efforts.
39914         * lib/sys_wait.in.h: Likewise.
39915
39916         fdutimensat: remove bogus dependency
39917         * modules/fdutimensat (Depends-on): Drop inline.
39918
39919         unistd: fix typo
39920         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
39921
39922 2009-12-30  Bruno Haible  <bruno@clisp.org>
39923
39924         Fix compilation error with Solaris cc.
39925         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
39926         * lib/unicase/u16-is-invariant.c: Likewise.
39927         * lib/unicase/u32-is-invariant.c: Likewise.
39928         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
39929
39930 2009-12-30  Bruno Haible  <bruno@clisp.org>
39931
39932         Fix test crash.
39933         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
39934         locales.
39935         Reported by Simon Josefsson <simon@josefsson.org>.
39936
39937 2009-12-30  Bruno Haible  <bruno@clisp.org>
39938
39939         Fix compilation error on most platforms.
39940         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
39941         Reported by Simon Josefsson <simon@josefsson.org>
39942         and Nelson H. F. Beebe <beebe@math.utah.edu>.
39943
39944 2009-12-30  Eric Blake  <ebb9@byu.net>
39945
39946         futimens, utimensat: work around ntfs-3g bug
39947         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
39948         a ctime bug is present, and expand workaround to cover ntfs-3g.
39949         * lib/utimens.c (fdutimens, lutimens): Likewise.
39950         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
39951         (validate_timespec): Adjust return value.
39952         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
39953         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39954         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
39955
39956 2009-12-29  Eric Blake  <ebb9@byu.net>
39957
39958         link-warning: make usage consistent
39959         * modules/ctype (Depends-on): Add link-warning.
39960         (Makefile.am): Update rules accordingly.
39961         * modules/langinfo (Depends-on, Makefile.am): Likewise.
39962         * modules/locale (Depends-on, Makefile.am): Likewise.
39963         * modules/sys_file (Makefile.am): Likewise.
39964         * modules/getopt-posix (Makefile.am): Delete unused link warning
39965         efforts.
39966         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
39967         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
39968         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
39969         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
39970
39971         stdio: remove unused variables
39972         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
39973         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
39974         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
39975
39976         tests: test more substitute headers
39977         * modules/ctype-tests: New file.
39978         * modules/dirent-tests: Likewise.
39979         * modules/spawn-tests: Likewise.
39980         * modules/sys_file-tests: Likewise.
39981         * modules/sys_ioctl-tests: Likewise.
39982         * modules/sys_wait-tests: Likewise.
39983         * tests/test-ctype.c: Likewise.
39984         * tests/test-dirent.c: Likewise.
39985         * tests/test-spawn.c: Likewise.
39986         * tests/test-sys_file.c: Likewise.
39987         * tests/test-sys_ioctl.c: Likewise.
39988         * tests/test-sys_wait.c: Likewise.
39989         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
39990         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
39991         whether or not flock is in use.
39992
39993         tests: remove License section from module
39994         * modules/arpa_inet-tests: Remove unneeded section.
39995         * modules/byteswap-tests: Likewise.
39996         * modules/ceilf-tests: Likewise.
39997         * modules/ceill-tests: Likewise.
39998         * modules/crypto/des-tests: Likewise.
39999         * modules/crypto/gc-arcfour-tests: Likewise.
40000         * modules/crypto/gc-arctwo-tests: Likewise.
40001         * modules/crypto/gc-des-tests: Likewise.
40002         * modules/crypto/gc-hmac-md5-tests: Likewise.
40003         * modules/crypto/gc-hmac-sha1-tests: Likewise.
40004         * modules/crypto/gc-md2-tests: Likewise.
40005         * modules/crypto/gc-md4-tests: Likewise.
40006         * modules/crypto/gc-md5-tests: Likewise.
40007         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
40008         * modules/crypto/gc-rijndael-tests: Likewise.
40009         * modules/crypto/gc-sha1-tests: Likewise.
40010         * modules/crypto/gc-tests: Likewise.
40011         * modules/crypto/md2-tests: Likewise.
40012         * modules/crypto/md4-tests: Likewise.
40013         * modules/fcntl-h-tests: Likewise.
40014         * modules/floorf-tests: Likewise.
40015         * modules/floorl-tests: Likewise.
40016         * modules/frexp-nolibm-tests: Likewise.
40017         * modules/frexp-tests: Likewise.
40018         * modules/frexpl-nolibm-tests: Likewise.
40019         * modules/frexpl-tests: Likewise.
40020         * modules/getaddrinfo-tests: Likewise.
40021         * modules/inttypes-tests: Likewise.
40022         * modules/isfinite-tests: Likewise.
40023         * modules/isinf-tests: Likewise.
40024         * modules/ldexpl-tests: Likewise.
40025         * modules/locale-tests: Likewise.
40026         * modules/math-tests: Likewise.
40027         * modules/netdb-tests: Likewise.
40028         * modules/netinet_in-tests: Likewise.
40029         * modules/printf-frexp-tests: Likewise.
40030         * modules/printf-frexpl-tests: Likewise.
40031         * modules/priv-set-tests: Likewise.
40032         * modules/random_r-tests: Likewise.
40033         * modules/round-tests: Likewise.
40034         * modules/roundf-tests: Likewise.
40035         * modules/roundl-tests: Likewise.
40036         * modules/search-tests: Likewise.
40037         * modules/select-tests: Likewise.
40038         * modules/signal-tests: Likewise.
40039         * modules/stdbool-tests: Likewise.
40040         * modules/stddef-tests: Likewise.
40041         * modules/stdint-tests: Likewise.
40042         * modules/stdio-tests: Likewise.
40043         * modules/stdlib-tests: Likewise.
40044         * modules/string-tests: Likewise.
40045         * modules/strings-tests: Likewise.
40046         * modules/sys_select-tests: Likewise.
40047         * modules/sys_socket-tests: Likewise.
40048         * modules/sys_stat-tests: Likewise.
40049         * modules/sys_time-tests: Likewise.
40050         * modules/sys_utsname-tests: Likewise.
40051         * modules/sysexits-tests: Likewise.
40052         * modules/time-tests: Likewise.
40053         * modules/trunc-tests: Likewise.
40054         * modules/truncf-tests: Likewise.
40055         * modules/truncl-tests: Likewise.
40056         * modules/tsearch-tests: Likewise.
40057         * modules/unistd-tests: Likewise.
40058         * modules/wchar-tests: Likewise.
40059         * modules/wctype-tests: Likewise.
40060
40061         tests: fix license on several tests
40062         * tests/test-des.c: Update to GPLv3+.
40063         * tests/test-flock.c: Likewise.
40064         * tests/test-fsync.c: Likewise.
40065         * tests/test-futimens.h: Likewise.
40066         * tests/test-gc-arcfour.c: Likewise.
40067         * tests/test-gc-arctwo.c: Likewise.
40068         * tests/test-gc-des.c: Likewise.
40069         * tests/test-gc-hmac-md5.c: Likewise.
40070         * tests/test-gc-hmac-sha1.c: Likewise.
40071         * tests/test-gc-md2.c: Likewise.
40072         * tests/test-gc-md4.c: Likewise.
40073         * tests/test-gc-md5.c: Likewise.
40074         * tests/test-gc-pbkdf2-sha1.c: Likewise.
40075         * tests/test-gc-rijndael.c: Likewise.
40076         * tests/test-gc-sha1.c: Likewise.
40077         * tests/test-gc.c: Likewise.
40078         * tests/test-getcwd.c: Likewise.
40079         * tests/test-link.c: Likewise.
40080         * tests/test-link.h: Likewise.
40081         * tests/test-lutimens.h: Likewise.
40082         * tests/test-md2.c: Likewise.
40083         * tests/test-md4.c: Likewise.
40084         * tests/test-mkdir.h: Likewise.
40085         * tests/test-rename.c: Likewise.
40086         * tests/test-rename.h: Likewise.
40087         * tests/test-safe-alloc.c: Likewise.
40088         * tests/test-utimens-common.h: Likewise.
40089         * tests/test-utimens.h: Likewise.
40090
40091         maint: sync license texts
40092         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
40093         * doc/gpl-3.0.texi: Revert copyright year update.
40094         * doc/lgpl-3.0.texi: Likewise.
40095
40096 2009-12-29  Jim Meyering  <meyering@redhat.com>
40097
40098         update nearly all FSF copyright year lists to include 2009
40099         The files named by the following are exempted:
40100             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
40101               test -f "$dst" && { echo "$dst"; continue; }
40102               test -d "$dst" || continue
40103               echo "$dst"/$(basename "$src")
40104             done > exempt
40105             git ls-files tests/unictype >> exempt
40106         In the remaining files, convert to all-interval notation if
40107         - there is already at least one year interval like 2000-2003
40108         - the file is maintained by me
40109         - the file is in lib/uni*/, where that style already prevails
40110         Otherwise, use update-copyright's default.
40111
40112 2009-12-29  Simon Josefsson  <simon@josefsson.org>
40113         and Eric Blake  <ebb9@byu.net>
40114
40115         tests: don't require debug system() to pass
40116         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
40117         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40118         * tests/test-unlink.h (test_unlink_func): Likewise.
40119         * tests/test-fstatat.c (main): ...into callers.
40120         * tests/test-lstat.c (main): Likewise.
40121         * tests/test-rmdir.c (main): Likewise.
40122         * tests/test-unlink.c (main): Likewise.
40123         * tests/test-unlinkat.c (main): Likewise.
40124         * tests/test-areadlink-with-size.c (main): Don't require a
40125         debug-only system call to pass, aiding cross-testing to mingw.
40126         * tests/test-areadlink.c (main): Likewise.
40127         * tests/test-areadlinkat-with-size.c (main): Likewise.
40128         * tests/test-areadlinkat.c (main): Likewise.
40129         * tests/test-canonicalize-lgpl.c (main): Likewise.
40130         * tests/test-canonicalize.c (main): Likewise.
40131         * tests/test-chown.c (main): Likewise.
40132         * tests/test-fchownat.c (main): Likewise.
40133         * tests/test-lchown.c (main): Likewise.
40134         * tests/test-fdutimensat.c (main): Likewise.
40135         * tests/test-futimens.c (main): Likewise.
40136         * tests/test-link.c (main): Likewise.
40137         * tests/test-linkat.c (main): Likewise.
40138         * tests/test-mkdir.c (main): Likewise.
40139         * tests/test-mkdirat.c (main): Likewise.
40140         * tests/test-mkfifo.c (main): Likewise.
40141         * tests/test-mkfifoat.c (main): Likewise.
40142         * tests/test-mknod.c (main): Likewise.
40143         * tests/test-readlink.c (main): Likewise.
40144         * tests/test-remove.c (main): Likewise.
40145         * tests/test-rename.c (main): Likewise.
40146         * tests/test-renameat.c (main): Likewise.
40147         * tests/test-symlink.c (main): Likewise.
40148         * tests/test-symlinkat.c (main): Likewise.
40149         * tests/test-utimens.c (main): Likewise.
40150         * tests/test-utimensat.c (main): Likewise.
40151
40152 2009-12-29  Simon Josefsson  <simon@josefsson.org>
40153
40154         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
40155         on $(UNUSED_PARAMETER_H) to avoid build failure.
40156
40157 2009-12-28  Jim Meyering  <meyering@redhat.com>
40158
40159         update-copyright: you may specify a max. line length other than 72
40160         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
40161
40162         maint: use consistent FSF copyright line syntax
40163         * lib/posixtm.c: Add missing comma in FSF copyright line.
40164         * lib/posixtm.h: Likewise.
40165         * lib/getugroups.c: Add missing ", Inc.".
40166
40167         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
40168         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
40169         FSF copyright line.  Remove trailing blanks.
40170
40171 2009-12-28  Eric Blake  <ebb9@byu.net>
40172
40173         test-dup2: reduce dependencies
40174         * modules/cloexec (Configure.ac): Set witness.
40175         * modules/dup2-tests (Depends-on): Drop cloexec.
40176         * tests/test-dup2.c (main): Skip portion of test if cloexec module
40177         not present.
40178         Suggested by Bruno Haible.
40179
40180 2009-12-26  Bruno Haible  <bruno@clisp.org>
40181
40182         Remove an unneeded dependency.
40183         * modules/fseterr (Depends-on): Remove dup2.
40184
40185 2009-12-26  Eric Blake  <ebb9@byu.net>
40186
40187         tests: use macros.h in more places
40188         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
40189         (ASSERT_STREAM): Provide default of stderr.
40190         * tests/test-dirent-safer.c: Include macros.h, using alternate
40191         stream for assertions.
40192         * tests/test-dup-safer.c: Likewise.
40193         * tests/test-freopen-safer.c: Likewise.
40194         * tests/test-getopt.c: Likewise.
40195         * tests/test-openat-safer.c: Likewise.
40196         * tests/test-pipe.c: Likewise.
40197         * tests/test-popen-safer.c: Likewise.
40198         * modules/dirent-safer-tests (Files): Include macros.h.
40199         * modules/unistd-safer-tests (Files): Likewise.
40200         * modules/freopen-safer-tests (Files): Likewise.
40201         * modules/getopt-posix-tests (Files): Likewise.
40202         * modules/openat-safer-tests (Files): Likewise.
40203         * modules/pipe-tests (Files): Likewise.
40204
40205 2009-12-26  Bruno Haible  <bruno@clisp.org>
40206
40207         javacomp: Portability fix.
40208         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
40209         that it also works on Solaris.
40210
40211 2009-12-26  Bruno Haible  <bruno@clisp.org>
40212
40213         localename: Fix storage allocation of gl_locale_name_thread's result.
40214         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
40215         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
40216         all platforms that have 'uselocale'.
40217         (gl_locale_name_thread_unsafe): New function, extracted from
40218         gl_locale_name_thread.
40219         (gl_locale_name_thread): Call struniq on all platforms that have
40220         'uselocale'.
40221         * tests/test-localename.c (test_locale_name_thread): Check that the
40222         resulting strings are permanently allocated.
40223         * modules/localename-tests (Depends-on): Add strdup.
40224
40225 2009-12-26  Bruno Haible  <bruno@clisp.org>
40226
40227         * tests/test-localename.c (categories): Fill in the strings.
40228
40229 2009-12-26  Jim Meyering  <meyering@redhat.com>
40230
40231         isdir: complete the removal of m4/isdir.m4
40232         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
40233
40234         isdir: clean up, since at least grep still uses it
40235         * lib/isdir.c: Include "isdir.h".
40236         (S_ISDIR): Remove now-unneeded definition.
40237         * modules/isdir (Files): Add lib/isdir.h.
40238         * lib/isdir.h: New file, with declaration.
40239         * m4/isdir.m4: Remove file -- unneeded.
40240
40241 2009-12-25  Bruno Haible  <bruno@clisp.org>
40242
40243         selinux-h: Make generated .h files standalone.
40244         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
40245         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
40246         * lib/se-selinux.in.h: Likewise.
40247         * modules/selinux-h (Depends-on): Add unused-parameter.
40248         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
40249         selinux/selinux.h and selinux/context.h.
40250         Suggested by Eric Blake.
40251
40252 2009-12-25  Bruno Haible  <bruno@clisp.org>
40253
40254         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
40255         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
40256         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
40257         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
40258         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
40259
40260 2009-12-24  Bruno Haible  <bruno@clisp.org>
40261
40262         openat: Fix warning.
40263         * lib/openat-proc.c: Include <unistd.h>.
40264
40265 2009-12-24  Bruno Haible  <bruno@clisp.org>
40266
40267         New module 'unused-parameter'.
40268         * build-aux/unused-parameter.h: New file, extracted from earlier
40269         gnulib-common.m4.
40270         * modules/unused-parameter: New file.
40271         * lib/unistr.h: Include unused-parameter.h.
40272         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
40273         _GL_UNUSED.
40274         * modules/unistr/base (Depends-on): Add unused-parameter.
40275
40276 2009-12-24  Bruno Haible  <bruno@clisp.org>
40277
40278         Add missing dependencies to 'extensions' module.
40279         * m4/extensions.m4: Add comment.
40280         * modules/accept4 (Depends-on): Add extensions.
40281         * modules/dup3 (Depends-on): Likewise.
40282         * modules/fcntl (Depends-on): Likewise.
40283         * modules/futimens (Depends-on): Likewise.
40284         * modules/mknod (Depends-on): Likewise.
40285         * modules/pipe2 (Depends-on): Likewise.
40286         * modules/stat-time (Depends-on): Likewise.
40287         * modules/strcasestr-simple (Depends-on): Likewise.
40288         * modules/strsignal (Depends-on): Likewise.
40289         * modules/utimensat (Depends-on): Likewise.
40290         * modules/localcharset (Depends-on): Likewise. Needed because of
40291         gl_FCNTL_O_FLAGS.
40292         * modules/wcrtomb (Depends-on): Likewise. Needed because of
40293         AC_TYPE_MBSTATE_T.
40294         * modules/wcsnrtombs (Depends-on): Likewise.
40295         * modules/wcsrtombs (Depends-on): Likewise.
40296
40297 2009-12-24  Bruno Haible  <bruno@clisp.org>
40298
40299         binary-io: Avoid gcc warning due to SET_BINARY.
40300         * lib/binary-io.h (SET_BINARY): Cast the result to void.
40301         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
40302
40303 2009-12-24  Bruno Haible  <bruno@clisp.org>
40304
40305         Avoid future namespace pollution on glibc systems.
40306         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
40307         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
40308         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
40309         glibc systems.
40310
40311 2009-12-24  Bruno Haible  <bruno@clisp.org>
40312
40313         Refactor common macros used in tests.
40314         * tests/macros.h: New file.
40315         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
40316         and/or <stdlib.h>, if appropriate.
40317         (ASSERT, SIZEOF): Remove macros.
40318         * tests/test-areadlink-with-size.c: Likewise.
40319         * tests/test-areadlinkat.c: Likewise.
40320         * tests/test-areadlinkat-with-size.c: Likewise.
40321         * tests/test-argmatch.c: Likewise.
40322         * tests/test-argv-iter.c: Likewise.
40323         * tests/test-array-mergesort.c: Likewise.
40324         * tests/test-array_list.c: Likewise.
40325         * tests/test-array_oset.c: Likewise.
40326         * tests/test-avltree_list.c: Likewise.
40327         * tests/test-avltree_oset.c: Likewise.
40328         * tests/test-avltreehash_list.c: Likewise.
40329         * tests/test-base64.c: Likewise.
40330         * tests/test-binary-io.c: Likewise.
40331         * tests/test-bitrotate.c: Likewise.
40332         * tests/test-btowc.c: Likewise.
40333         * tests/test-byteswap.c: Likewise.
40334         * tests/test-c-ctype.c: Likewise.
40335         * tests/test-c-stack.c: Likewise.
40336         * tests/test-c-strcasecmp.c: Likewise.
40337         * tests/test-c-strcasestr.c: Likewise.
40338         * tests/test-c-strncasecmp.c: Likewise.
40339         * tests/test-c-strstr.c: Likewise.
40340         * tests/test-canonicalize-lgpl.c: Likewise.
40341         * tests/test-canonicalize.c: Likewise.
40342         * tests/test-carray_list.c: Likewise.
40343         * tests/test-ceilf1.c: Likewise.
40344         * tests/test-ceilf2.c: Likewise.
40345         * tests/test-ceill.c: Likewise.
40346         * tests/test-chown.c: Likewise.
40347         * tests/test-cloexec.c: Likewise.
40348         * tests/test-copy-acl.c: Likewise.
40349         * tests/test-copy-file.c: Likewise.
40350         * tests/test-count-one-bits.c: Likewise.
40351         * tests/test-dprintf-posix.c: Likewise.
40352         * tests/test-dup2.c: Likewise.
40353         * tests/test-dup3.c: Likewise.
40354         * tests/test-duplocale.c: Likewise.
40355         * tests/test-fbufmode.c: Likewise.
40356         * tests/test-fchdir.c: Likewise.
40357         * tests/test-fchownat.c: Likewise.
40358         * tests/test-fcntl-safer.c: Likewise.
40359         * tests/test-fcntl.c: Likewise.
40360         * tests/test-fdopendir.c: Likewise.
40361         * tests/test-fdutimensat.c: Likewise.
40362         * tests/test-fflush2.c: Likewise.
40363         * tests/test-file-has-acl.c: Likewise.
40364         * tests/test-filevercmp.c: Likewise.
40365         * tests/test-flock.c: Likewise.
40366         * tests/test-floorf1.c: Likewise.
40367         * tests/test-floorf2.c: Likewise.
40368         * tests/test-floorl.c: Likewise.
40369         * tests/test-fnmatch.c: Likewise.
40370         * tests/test-fopen.h: Likewise.
40371         * tests/test-fpending.c: Likewise.
40372         * tests/test-fprintf-posix.c: Likewise.
40373         * tests/test-fpurge.c: Likewise.
40374         * tests/test-freadable.c: Likewise.
40375         * tests/test-freadahead.c: Likewise.
40376         * tests/test-freading.c: Likewise.
40377         * tests/test-freadptr.c: Likewise.
40378         * tests/test-freadptr2.c: Likewise.
40379         * tests/test-freadseek.c: Likewise.
40380         * tests/test-freopen.c: Likewise.
40381         * tests/test-frexp.c: Likewise.
40382         * tests/test-frexpl.c: Likewise.
40383         * tests/test-fseek.c: Likewise.
40384         * tests/test-fseeko.c: Likewise.
40385         * tests/test-fstatat.c: Likewise.
40386         * tests/test-fstrcmp.c: Likewise.
40387         * tests/test-fsync.c: Likewise.
40388         * tests/test-ftell.c: Likewise.
40389         * tests/test-ftello.c: Likewise.
40390         * tests/test-func.c: Likewise.
40391         * tests/test-futimens.c: Likewise.
40392         * tests/test-fwritable.c: Likewise.
40393         * tests/test-fwriting.c: Likewise.
40394         * tests/test-getcwd.c: Likewise.
40395         * tests/test-getdate.c: Likewise.
40396         * tests/test-getdelim.c: Likewise.
40397         * tests/test-getdtablesize.c: Likewise.
40398         * tests/test-getgroups.c: Likewise.
40399         * tests/test-getline.c: Likewise.
40400         * tests/test-getndelim2.c: Likewise.
40401         * tests/test-glob.c: Likewise.
40402         * tests/test-hash.c: Likewise.
40403         * tests/test-i-ring.c: Likewise.
40404         * tests/test-iconv-utf.c: Likewise.
40405         * tests/test-iconv.c: Likewise.
40406         * tests/test-idpriv-drop.c: Likewise.
40407         * tests/test-idpriv-droptemp.c: Likewise.
40408         * tests/test-inet_ntop.c: Likewise.
40409         * tests/test-inet_pton.c: Likewise.
40410         * tests/test-isblank.c: Likewise.
40411         * tests/test-isfinite.c: Likewise.
40412         * tests/test-isinf.c: Likewise.
40413         * tests/test-isnan.c: Likewise.
40414         * tests/test-isnand.h: Likewise.
40415         * tests/test-isnanf.h: Likewise.
40416         * tests/test-isnanl.h: Likewise.
40417         * tests/test-lchown.c: Likewise.
40418         * tests/test-ldexpl.c: Likewise.
40419         * tests/test-link.c: Likewise.
40420         * tests/test-linkat.c: Likewise.
40421         * tests/test-linked_list.c: Likewise.
40422         * tests/test-linkedhash_list.c: Likewise.
40423         * tests/test-localename.c: Likewise.
40424         * tests/test-lseek.c: Likewise.
40425         * tests/test-lstat.c: Likewise.
40426         * tests/test-mbmemcasecmp.c: Likewise.
40427         * tests/test-mbmemcasecoll.c: Likewise.
40428         * tests/test-mbrtowc.c: Likewise.
40429         * tests/test-mbscasecmp.c: Likewise.
40430         * tests/test-mbscasestr1.c: Likewise.
40431         * tests/test-mbscasestr2.c: Likewise.
40432         * tests/test-mbscasestr3.c: Likewise.
40433         * tests/test-mbscasestr4.c: Likewise.
40434         * tests/test-mbschr.c: Likewise.
40435         * tests/test-mbscspn.c: Likewise.
40436         * tests/test-mbsinit.c: Likewise.
40437         * tests/test-mbsncasecmp.c: Likewise.
40438         * tests/test-mbsnrtowcs.c: Likewise.
40439         * tests/test-mbspbrk.c: Likewise.
40440         * tests/test-mbspcasecmp.c: Likewise.
40441         * tests/test-mbsrchr.c: Likewise.
40442         * tests/test-mbsrtowcs.c: Likewise.
40443         * tests/test-mbsspn.c: Likewise.
40444         * tests/test-mbsstr1.c: Likewise.
40445         * tests/test-mbsstr2.c: Likewise.
40446         * tests/test-mbsstr3.c: Likewise.
40447         * tests/test-memchr.c: Likewise.
40448         * tests/test-memchr2.c: Likewise.
40449         * tests/test-memcmp.c: Likewise.
40450         * tests/test-memmem.c: Likewise.
40451         * tests/test-memrchr.c: Likewise.
40452         * tests/test-mkdir.c: Likewise.
40453         * tests/test-mkdirat.c: Likewise.
40454         * tests/test-mkfifo.c: Likewise.
40455         * tests/test-mkfifoat.c: Likewise.
40456         * tests/test-mknod.c: Likewise.
40457         * tests/test-nanosleep.c: Likewise.
40458         * tests/test-nl_langinfo.c: Likewise.
40459         * tests/test-obstack-printf.c: Likewise.
40460         * tests/test-open.c: Likewise.
40461         * tests/test-openat.c: Likewise.
40462         * tests/test-pipe-filter-gi1.c: Likewise.
40463         * tests/test-pipe-filter-gi2-main.c: Likewise.
40464         * tests/test-pipe-filter-ii1.c: Likewise.
40465         * tests/test-pipe-filter-ii2-main.c: Likewise.
40466         * tests/test-pipe2.c: Likewise.
40467         * tests/test-popen.h: Likewise.
40468         * tests/test-posixtm.c: Likewise.
40469         * tests/test-pread.c: Likewise.
40470         * tests/test-printf-frexp.c: Likewise.
40471         * tests/test-printf-frexpl.c: Likewise.
40472         * tests/test-printf-posix.c: Likewise.
40473         * tests/test-priv-set.c: Likewise.
40474         * tests/test-quotearg.c: Likewise.
40475         * tests/test-random_r.c: Likewise.
40476         * tests/test-rawmemchr.c: Likewise.
40477         * tests/test-rbtree_list.c: Likewise.
40478         * tests/test-rbtree_oset.c: Likewise.
40479         * tests/test-rbtreehash_list.c: Likewise.
40480         * tests/test-readlink.c: Likewise.
40481         * tests/test-remove.c: Likewise.
40482         * tests/test-rename.c: Likewise.
40483         * tests/test-renameat.c: Likewise.
40484         * tests/test-rmdir.c: Likewise.
40485         * tests/test-round1.c: Likewise.
40486         * tests/test-roundf1.c: Likewise.
40487         * tests/test-roundl.c: Likewise.
40488         * tests/test-safe-alloc.c: Likewise.
40489         * tests/test-sameacls.c: Likewise.
40490         * tests/test-set-mode-acl.c: Likewise.
40491         * tests/test-setenv.c: Likewise.
40492         * tests/test-sigaction.c: Likewise.
40493         * tests/test-signbit.c: Likewise.
40494         * tests/test-sleep.c: Likewise.
40495         * tests/test-snprintf-posix.c: Likewise.
40496         * tests/test-snprintf.c: Likewise.
40497         * tests/test-sprintf-posix.c: Likewise.
40498         * tests/test-stat-time.c: Likewise.
40499         * tests/test-stat.c: Likewise.
40500         * tests/test-strcasestr.c: Likewise.
40501         * tests/test-strchrnul.c: Likewise.
40502         * tests/test-strerror.c: Likewise.
40503         * tests/test-striconv.c: Likewise.
40504         * tests/test-striconveh.c: Likewise.
40505         * tests/test-striconveha.c: Likewise.
40506         * tests/test-strsignal.c: Likewise.
40507         * tests/test-strstr.c: Likewise.
40508         * tests/test-strtod.c: Likewise.
40509         * tests/test-strverscmp.c: Likewise.
40510         * tests/test-symlink.c: Likewise.
40511         * tests/test-symlinkat.c: Likewise.
40512         * tests/test-trunc1.c: Likewise.
40513         * tests/test-trunc2.c: Likewise.
40514         * tests/test-truncf1.c: Likewise.
40515         * tests/test-truncf2.c: Likewise.
40516         * tests/test-truncl.c: Likewise.
40517         * tests/test-uname.c: Likewise.
40518         * tests/test-unlink.c: Likewise.
40519         * tests/test-unlinkat.c: Likewise.
40520         * tests/test-unsetenv.c: Likewise.
40521         * tests/test-usleep.c: Likewise.
40522         * tests/test-utimens.c: Likewise.
40523         * tests/test-utimensat.c: Likewise.
40524         * tests/test-vasnprintf-posix.c: Likewise.
40525         * tests/test-vasnprintf-posix2.c: Likewise.
40526         * tests/test-vasnprintf.c: Likewise.
40527         * tests/test-vasprintf-posix.c: Likewise.
40528         * tests/test-vasprintf.c: Likewise.
40529         * tests/test-vdprintf-posix.c: Likewise.
40530         * tests/test-vfprintf-posix.c: Likewise.
40531         * tests/test-vprintf-posix.c: Likewise.
40532         * tests/test-vsnprintf-posix.c: Likewise.
40533         * tests/test-vsnprintf.c: Likewise.
40534         * tests/test-vsprintf-posix.c: Likewise.
40535         * tests/test-wcrtomb.c: Likewise.
40536         * tests/test-wcsnrtombs.c: Likewise.
40537         * tests/test-wcsrtombs.c: Likewise.
40538         * tests/test-wctype.c: Likewise.
40539         * tests/test-wcwidth.c: Likewise.
40540         * tests/test-xfprintf-posix.c: Likewise.
40541         * tests/test-xmemdup0.c: Likewise.
40542         * tests/test-xprintf-posix.c: Likewise.
40543         * tests/test-xvasprintf.c: Likewise.
40544         * tests/unicase/test-locale-language.c: Likewise.
40545         * tests/unicase/test-mapping-part1.h: Likewise.
40546         * tests/unicase/test-predicate-part1.h: Likewise.
40547         * tests/unicase/test-u8-casecmp.c: Likewise.
40548         * tests/unicase/test-u8-casecoll.c: Likewise.
40549         * tests/unicase/test-u8-casefold.c: Likewise.
40550         * tests/unicase/test-u8-is-cased.c: Likewise.
40551         * tests/unicase/test-u8-is-casefolded.c: Likewise.
40552         * tests/unicase/test-u8-is-lowercase.c: Likewise.
40553         * tests/unicase/test-u8-is-titlecase.c: Likewise.
40554         * tests/unicase/test-u8-is-uppercase.c: Likewise.
40555         * tests/unicase/test-u8-tolower.c: Likewise.
40556         * tests/unicase/test-u8-totitle.c: Likewise.
40557         * tests/unicase/test-u8-toupper.c: Likewise.
40558         * tests/unicase/test-u16-casecmp.c: Likewise.
40559         * tests/unicase/test-u16-casecoll.c: Likewise.
40560         * tests/unicase/test-u16-casefold.c: Likewise.
40561         * tests/unicase/test-u16-is-cased.c: Likewise.
40562         * tests/unicase/test-u16-is-casefolded.c: Likewise.
40563         * tests/unicase/test-u16-is-lowercase.c: Likewise.
40564         * tests/unicase/test-u16-is-titlecase.c: Likewise.
40565         * tests/unicase/test-u16-is-uppercase.c: Likewise.
40566         * tests/unicase/test-u16-tolower.c: Likewise.
40567         * tests/unicase/test-u16-totitle.c: Likewise.
40568         * tests/unicase/test-u16-toupper.c: Likewise.
40569         * tests/unicase/test-u32-casecmp.c: Likewise.
40570         * tests/unicase/test-u32-casecoll.c: Likewise.
40571         * tests/unicase/test-u32-casefold.c: Likewise.
40572         * tests/unicase/test-u32-is-cased.c: Likewise.
40573         * tests/unicase/test-u32-is-casefolded.c: Likewise.
40574         * tests/unicase/test-u32-is-lowercase.c: Likewise.
40575         * tests/unicase/test-u32-is-titlecase.c: Likewise.
40576         * tests/unicase/test-u32-is-uppercase.c: Likewise.
40577         * tests/unicase/test-u32-tolower.c: Likewise.
40578         * tests/unicase/test-u32-totitle.c: Likewise.
40579         * tests/unicase/test-u32-toupper.c: Likewise.
40580         * tests/unicase/test-ulc-casecmp.c: Likewise.
40581         * tests/unicase/test-ulc-casecoll.c: Likewise.
40582         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
40583         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
40584         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
40585         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
40586         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
40587         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
40588         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
40589         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
40590         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
40591         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
40592         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
40593         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
40594         * tests/unictype/test-bidi_byname.c: Likewise.
40595         * tests/unictype/test-bidi_name.c: Likewise.
40596         * tests/unictype/test-bidi_of.c: Likewise.
40597         * tests/unictype/test-bidi_test.c: Likewise.
40598         * tests/unictype/test-block_list.c: Likewise.
40599         * tests/unictype/test-block_of.c: Likewise.
40600         * tests/unictype/test-block_test.c: Likewise.
40601         * tests/unictype/test-categ_and.c: Likewise.
40602         * tests/unictype/test-categ_and_not.c: Likewise.
40603         * tests/unictype/test-categ_byname.c: Likewise.
40604         * tests/unictype/test-categ_name.c: Likewise.
40605         * tests/unictype/test-categ_none.c: Likewise.
40606         * tests/unictype/test-categ_of.c: Likewise.
40607         * tests/unictype/test-categ_or.c: Likewise.
40608         * tests/unictype/test-categ_test_withtable.c: Likewise.
40609         * tests/unictype/test-combining.c: Likewise.
40610         * tests/unictype/test-decdigit.c: Likewise.
40611         * tests/unictype/test-digit.c: Likewise.
40612         * tests/unictype/test-mirror.c: Likewise.
40613         * tests/unictype/test-numeric.c: Likewise.
40614         * tests/unictype/test-pr_byname.c: Likewise.
40615         * tests/unictype/test-pr_test.c: Likewise.
40616         * tests/unictype/test-predicate-part1.h: Likewise.
40617         * tests/unictype/test-scripts.c: Likewise.
40618         * tests/unictype/test-sy_c_ident.c: Likewise.
40619         * tests/unictype/test-sy_java_ident.c: Likewise.
40620         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
40621         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
40622         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
40623         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
40624         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
40625         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
40626         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
40627         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
40628         * tests/uninorm/test-canonical-decomposition.c: Likewise.
40629         * tests/uninorm/test-compat-decomposition.c: Likewise.
40630         * tests/uninorm/test-composition.c: Likewise.
40631         * tests/uninorm/test-decomposing-form.c: Likewise.
40632         * tests/uninorm/test-decomposition.c: Likewise.
40633         * tests/uninorm/test-u8-nfc.c: Likewise.
40634         * tests/uninorm/test-u8-nfd.c: Likewise.
40635         * tests/uninorm/test-u8-nfkc.c: Likewise.
40636         * tests/uninorm/test-u8-nfkd.c: Likewise.
40637         * tests/uninorm/test-u8-normcmp.c: Likewise.
40638         * tests/uninorm/test-u8-normcoll.c: Likewise.
40639         * tests/uninorm/test-u16-nfc.c: Likewise.
40640         * tests/uninorm/test-u16-nfd.c: Likewise.
40641         * tests/uninorm/test-u16-nfkc.c: Likewise.
40642         * tests/uninorm/test-u16-nfkd.c: Likewise.
40643         * tests/uninorm/test-u16-normcmp.c: Likewise.
40644         * tests/uninorm/test-u16-normcoll.c: Likewise.
40645         * tests/uninorm/test-u32-nfc.c: Likewise.
40646         * tests/uninorm/test-u32-nfd.c: Likewise.
40647         * tests/uninorm/test-u32-nfkc.c: Likewise.
40648         * tests/uninorm/test-u32-nfkd.c: Likewise.
40649         * tests/uninorm/test-u32-normalize-big.c: Likewise.
40650         * tests/uninorm/test-u32-normcmp.c: Likewise.
40651         * tests/uninorm/test-u32-normcoll.c: Likewise.
40652         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
40653         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
40654         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
40655         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
40656         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
40657         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
40658         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
40659         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
40660         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
40661         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
40662         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
40663         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
40664         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
40665         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
40666         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
40667         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
40668         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
40669         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
40670         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
40671         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
40672         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
40673         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
40674         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
40675         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
40676         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
40677         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
40678         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
40679         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
40680         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
40681         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
40682         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
40683         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
40684         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
40685         * tests/uniwidth/test-u8-strwidth.c: Likewise.
40686         * tests/uniwidth/test-u8-width.c: Likewise.
40687         * tests/uniwidth/test-u16-strwidth.c: Likewise.
40688         * tests/uniwidth/test-u16-width.c: Likewise.
40689         * tests/uniwidth/test-u32-strwidth.c: Likewise.
40690         * tests/uniwidth/test-u32-width.c: Likewise.
40691         * tests/uniwidth/test-uc_width.c: Likewise.
40692         * tests/uniwidth/test-uc_width2.c: Likewise.
40693         * modules/acl-tests (Files): Add tests/macros.h.
40694         * modules/areadlink-tests (Files): Likewise.
40695         * modules/areadlink-with-size-tests (Files): Likewise.
40696         * modules/areadlinkat-tests (Files): Likewise.
40697         * modules/areadlinkat-with-size-tests (Files): Likewise.
40698         * modules/argmatch-tests (Files): Likewise.
40699         * modules/argv-iter-tests (Files): Likewise.
40700         * modules/array-list-tests (Files): Likewise.
40701         * modules/array-mergesort-tests (Files): Likewise.
40702         * modules/array-oset-tests (Files): Likewise.
40703         * modules/avltree-list-tests (Files): Likewise.
40704         * modules/avltree-oset-tests (Files): Likewise.
40705         * modules/avltreehash-list-tests (Files): Likewise.
40706         * modules/base64-tests (Files): Likewise.
40707         * modules/binary-io-tests (Files): Likewise.
40708         * modules/bitrotate-tests (Files): Likewise.
40709         * modules/btowc-tests (Files): Likewise.
40710         * modules/byteswap-tests (Files): Likewise.
40711         * modules/c-ctype-tests (Files): Likewise.
40712         * modules/c-stack-tests (Files): Likewise.
40713         * modules/c-strcase-tests (Files): Likewise.
40714         * modules/c-strcasestr-tests (Files): Likewise.
40715         * modules/c-strstr-tests (Files): Likewise.
40716         * modules/canonicalize-lgpl-tests (Files): Likewise.
40717         * modules/canonicalize-tests (Files): Likewise.
40718         * modules/carray-list-tests (Files): Likewise.
40719         * modules/ceilf-tests (Files): Likewise.
40720         * modules/ceill-tests (Files): Likewise.
40721         * modules/chown-tests (Files): Likewise.
40722         * modules/cloexec-tests (Files): Likewise.
40723         * modules/copy-file-tests (Files): Likewise.
40724         * modules/count-one-bits-tests (Files): Likewise.
40725         * modules/dprintf-posix-tests (Files): Likewise.
40726         * modules/dup2-tests (Files): Likewise.
40727         * modules/dup3-tests (Files): Likewise.
40728         * modules/duplocale-tests (Files): Likewise.
40729         * modules/fbufmode-tests (Files): Likewise.
40730         * modules/fchdir-tests (Files): Likewise.
40731         * modules/fcntl-safer-tests (Files): Likewise.
40732         * modules/fcntl-tests (Files): Likewise.
40733         * modules/fdopendir-tests (Files): Likewise.
40734         * modules/fdutimensat-tests (Files): Likewise.
40735         * modules/fflush-tests (Files): Likewise.
40736         * modules/filevercmp-tests (Files): Likewise.
40737         * modules/flock-tests (Files): Likewise.
40738         * modules/floorf-tests (Files): Likewise.
40739         * modules/floorl-tests (Files): Likewise.
40740         * modules/fnmatch-tests (Files): Likewise.
40741         * modules/fopen-safer-tests (Files): Likewise.
40742         * modules/fopen-tests (Files): Likewise.
40743         * modules/fpending-tests (Files): Likewise.
40744         * modules/fprintf-posix-tests (Files): Likewise.
40745         * modules/fpurge-tests (Files): Likewise.
40746         * modules/freadable-tests (Files): Likewise.
40747         * modules/freadahead-tests (Files): Likewise.
40748         * modules/freading-tests (Files): Likewise.
40749         * modules/freadptr-tests (Files): Likewise.
40750         * modules/freadseek-tests (Files): Likewise.
40751         * modules/freopen-tests (Files): Likewise.
40752         * modules/frexp-nolibm-tests (Files): Likewise.
40753         * modules/frexp-tests (Files): Likewise.
40754         * modules/frexpl-nolibm-tests (Files): Likewise.
40755         * modules/frexpl-tests (Files): Likewise.
40756         * modules/fseek-tests (Files): Likewise.
40757         * modules/fseeko-tests (Files): Likewise.
40758         * modules/fstrcmp-tests (Files): Likewise.
40759         * modules/fsync-tests (Files): Likewise.
40760         * modules/ftell-tests (Files): Likewise.
40761         * modules/ftello-tests (Files): Likewise.
40762         * modules/func-tests (Files): Likewise.
40763         * modules/futimens-tests (Files): Likewise.
40764         * modules/fwritable-tests (Files): Likewise.
40765         * modules/fwriting-tests (Files): Likewise.
40766         * modules/getcwd-tests (Files): Likewise.
40767         * modules/getdate-tests (Files): Likewise.
40768         * modules/getdelim-tests (Files): Likewise.
40769         * modules/getdtablesize-tests (Files): Likewise.
40770         * modules/getgroups-tests (Files): Likewise.
40771         * modules/getline-tests (Files): Likewise.
40772         * modules/getndelim2-tests (Files): Likewise.
40773         * modules/glob-tests (Files): Likewise.
40774         * modules/hash-tests (Files): Likewise.
40775         * modules/i-ring-tests (Files): Likewise.
40776         * modules/iconv-tests (Files): Likewise.
40777         * modules/iconv_open-utf-tests (Files): Likewise.
40778         * modules/idpriv-drop-tests (Files): Likewise.
40779         * modules/idpriv-droptemp-tests (Files): Likewise.
40780         * modules/inet_ntop-tests (Files): Likewise.
40781         * modules/inet_pton-tests (Files): Likewise.
40782         * modules/isblank-tests (Files): Likewise.
40783         * modules/isfinite-tests (Files): Likewise.
40784         * modules/isinf-tests (Files): Likewise.
40785         * modules/isnan-tests (Files): Likewise.
40786         * modules/isnand-nolibm-tests (Files): Likewise.
40787         * modules/isnand-tests (Files): Likewise.
40788         * modules/isnanf-nolibm-tests (Files): Likewise.
40789         * modules/isnanf-tests (Files): Likewise.
40790         * modules/isnanl-nolibm-tests (Files): Likewise.
40791         * modules/isnanl-tests (Files): Likewise.
40792         * modules/lchown-tests (Files): Likewise.
40793         * modules/ldexpl-tests (Files): Likewise.
40794         * modules/link-tests (Files): Likewise.
40795         * modules/linkat-tests (Files): Likewise.
40796         * modules/linked-list-tests (Files): Likewise.
40797         * modules/linkedhash-list-tests (Files): Likewise.
40798         * modules/localename-tests (Files): Likewise.
40799         * modules/lseek-tests (Files): Likewise.
40800         * modules/lstat-tests (Files): Likewise.
40801         * modules/mbmemcasecmp-tests (Files): Likewise.
40802         * modules/mbmemcasecoll-tests (Files): Likewise.
40803         * modules/mbrtowc-tests (Files): Likewise.
40804         * modules/mbscasecmp-tests (Files): Likewise.
40805         * modules/mbscasestr-tests (Files): Likewise.
40806         * modules/mbschr-tests (Files): Likewise.
40807         * modules/mbscspn-tests (Files): Likewise.
40808         * modules/mbsinit-tests (Files): Likewise.
40809         * modules/mbsncasecmp-tests (Files): Likewise.
40810         * modules/mbsnrtowcs-tests (Files): Likewise.
40811         * modules/mbspbrk-tests (Files): Likewise.
40812         * modules/mbspcasecmp-tests (Files): Likewise.
40813         * modules/mbsrchr-tests (Files): Likewise.
40814         * modules/mbsrtowcs-tests (Files): Likewise.
40815         * modules/mbsspn-tests (Files): Likewise.
40816         * modules/mbsstr-tests (Files): Likewise.
40817         * modules/memchr-tests (Files): Likewise.
40818         * modules/memchr2-tests (Files): Likewise.
40819         * modules/memcmp-tests (Files): Likewise.
40820         * modules/memmem-tests (Files): Likewise.
40821         * modules/memrchr-tests (Files): Likewise.
40822         * modules/mkdir-tests (Files): Likewise.
40823         * modules/mkfifo-tests (Files): Likewise.
40824         * modules/mkfifoat-tests (Files): Likewise.
40825         * modules/mknod-tests (Files): Likewise.
40826         * modules/nanosleep-tests (Files): Likewise.
40827         * modules/nl_langinfo-tests (Files): Likewise.
40828         * modules/obstack-printf-tests (Files): Likewise.
40829         * modules/open-tests (Files): Likewise.
40830         * modules/openat-tests (Files): Likewise.
40831         * modules/pipe-filter-gi-tests (Files): Likewise.
40832         * modules/pipe-filter-ii-tests (Files): Likewise.
40833         * modules/pipe2-tests (Files): Likewise.
40834         * modules/popen-safer-tests (Files): Likewise.
40835         * modules/popen-tests (Files): Likewise.
40836         * modules/posixtm-tests (Files): Likewise.
40837         * modules/pread-tests (Files): Likewise.
40838         * modules/printf-frexp-tests (Files): Likewise.
40839         * modules/printf-frexpl-tests (Files): Likewise.
40840         * modules/printf-posix-tests (Files): Likewise.
40841         * modules/priv-set-tests (Files): Likewise.
40842         * modules/quotearg-tests (Files): Likewise.
40843         * modules/random_r-tests (Files): Likewise.
40844         * modules/rawmemchr-tests (Files): Likewise.
40845         * modules/rbtree-list-tests (Files): Likewise.
40846         * modules/rbtree-oset-tests (Files): Likewise.
40847         * modules/rbtreehash-list-tests (Files): Likewise.
40848         * modules/readlink-tests (Files): Likewise.
40849         * modules/remove-tests (Files): Likewise.
40850         * modules/rename-tests (Files): Likewise.
40851         * modules/renameat-tests (Files): Likewise.
40852         * modules/rmdir-tests (Files): Likewise.
40853         * modules/round-tests (Files): Likewise.
40854         * modules/roundf-tests (Files): Likewise.
40855         * modules/roundl-tests (Files): Likewise.
40856         * modules/safe-alloc-tests (Files): Likewise.
40857         * modules/setenv-tests (Files): Likewise.
40858         * modules/sigaction-tests (Files): Likewise.
40859         * modules/signbit-tests (Files): Likewise.
40860         * modules/sleep-tests (Files): Likewise.
40861         * modules/snprintf-posix-tests (Files): Likewise.
40862         * modules/snprintf-tests (Files): Likewise.
40863         * modules/sprintf-posix-tests (Files): Likewise.
40864         * modules/stat-tests (Files): Likewise.
40865         * modules/stat-time-tests (Files): Likewise.
40866         * modules/strcasestr-tests (Files): Likewise.
40867         * modules/strchrnul-tests (Files): Likewise.
40868         * modules/strerror-tests (Files): Likewise.
40869         * modules/striconv-tests (Files): Likewise.
40870         * modules/striconveh-tests (Files): Likewise.
40871         * modules/striconveha-tests (Files): Likewise.
40872         * modules/strsignal-tests (Files): Likewise.
40873         * modules/strstr-tests (Files): Likewise.
40874         * modules/strtod-tests (Files): Likewise.
40875         * modules/strverscmp-tests (Files): Likewise.
40876         * modules/symlink-tests (Files): Likewise.
40877         * modules/symlinkat-tests (Files): Likewise.
40878         * modules/trunc-tests (Files): Likewise.
40879         * modules/truncf-tests (Files): Likewise.
40880         * modules/truncl-tests (Files): Likewise.
40881         * modules/uname-tests (Files): Likewise.
40882         * modules/unicase/cased-tests (Files): Likewise.
40883         * modules/unicase/ignorable-tests (Files): Likewise.
40884         * modules/unicase/locale-language-tests (Files): Likewise.
40885         * modules/unicase/tolower-tests (Files): Likewise.
40886         * modules/unicase/totitle-tests (Files): Likewise.
40887         * modules/unicase/toupper-tests (Files): Likewise.
40888         * modules/unicase/u8-casecmp-tests (Files): Likewise.
40889         * modules/unicase/u8-casecoll-tests (Files): Likewise.
40890         * modules/unicase/u8-casefold-tests (Files): Likewise.
40891         * modules/unicase/u8-is-cased-tests (Files): Likewise.
40892         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
40893         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
40894         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
40895         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
40896         * modules/unicase/u8-tolower-tests (Files): Likewise.
40897         * modules/unicase/u8-totitle-tests (Files): Likewise.
40898         * modules/unicase/u8-toupper-tests (Files): Likewise.
40899         * modules/unicase/u16-casecmp-tests (Files): Likewise.
40900         * modules/unicase/u16-casecoll-tests (Files): Likewise.
40901         * modules/unicase/u16-casefold-tests (Files): Likewise.
40902         * modules/unicase/u16-is-cased-tests (Files): Likewise.
40903         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
40904         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
40905         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
40906         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
40907         * modules/unicase/u16-tolower-tests (Files): Likewise.
40908         * modules/unicase/u16-totitle-tests (Files): Likewise.
40909         * modules/unicase/u16-toupper-tests (Files): Likewise.
40910         * modules/unicase/u32-casecmp-tests (Files): Likewise.
40911         * modules/unicase/u32-casecoll-tests (Files): Likewise.
40912         * modules/unicase/u32-casefold-tests (Files): Likewise.
40913         * modules/unicase/u32-is-cased-tests (Files): Likewise.
40914         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
40915         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
40916         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
40917         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
40918         * modules/unicase/u32-tolower-tests (Files): Likewise.
40919         * modules/unicase/u32-totitle-tests (Files): Likewise.
40920         * modules/unicase/u32-toupper-tests (Files): Likewise.
40921         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
40922         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
40923         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
40924         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
40925         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
40926         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
40927         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
40928         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
40929         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
40930         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
40931         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
40932         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
40933         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
40934         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
40935         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
40936         * modules/unictype/bidicategory-name-tests (Files): Likewise.
40937         * modules/unictype/bidicategory-of-tests (Files): Likewise.
40938         * modules/unictype/bidicategory-test-tests (Files): Likewise.
40939         * modules/unictype/block-list-tests (Files): Likewise.
40940         * modules/unictype/block-of-tests (Files): Likewise.
40941         * modules/unictype/block-test-tests (Files): Likewise.
40942         * modules/unictype/category-C-tests (Files): Likewise.
40943         * modules/unictype/category-Cc-tests (Files): Likewise.
40944         * modules/unictype/category-Cf-tests (Files): Likewise.
40945         * modules/unictype/category-Cn-tests (Files): Likewise.
40946         * modules/unictype/category-Co-tests (Files): Likewise.
40947         * modules/unictype/category-Cs-tests (Files): Likewise.
40948         * modules/unictype/category-L-tests (Files): Likewise.
40949         * modules/unictype/category-Ll-tests (Files): Likewise.
40950         * modules/unictype/category-Lm-tests (Files): Likewise.
40951         * modules/unictype/category-Lo-tests (Files): Likewise.
40952         * modules/unictype/category-Lt-tests (Files): Likewise.
40953         * modules/unictype/category-Lu-tests (Files): Likewise.
40954         * modules/unictype/category-M-tests (Files): Likewise.
40955         * modules/unictype/category-Mc-tests (Files): Likewise.
40956         * modules/unictype/category-Me-tests (Files): Likewise.
40957         * modules/unictype/category-Mn-tests (Files): Likewise.
40958         * modules/unictype/category-N-tests (Files): Likewise.
40959         * modules/unictype/category-Nd-tests (Files): Likewise.
40960         * modules/unictype/category-Nl-tests (Files): Likewise.
40961         * modules/unictype/category-No-tests (Files): Likewise.
40962         * modules/unictype/category-P-tests (Files): Likewise.
40963         * modules/unictype/category-Pc-tests (Files): Likewise.
40964         * modules/unictype/category-Pd-tests (Files): Likewise.
40965         * modules/unictype/category-Pe-tests (Files): Likewise.
40966         * modules/unictype/category-Pf-tests (Files): Likewise.
40967         * modules/unictype/category-Pi-tests (Files): Likewise.
40968         * modules/unictype/category-Po-tests (Files): Likewise.
40969         * modules/unictype/category-Ps-tests (Files): Likewise.
40970         * modules/unictype/category-S-tests (Files): Likewise.
40971         * modules/unictype/category-Sc-tests (Files): Likewise.
40972         * modules/unictype/category-Sk-tests (Files): Likewise.
40973         * modules/unictype/category-Sm-tests (Files): Likewise.
40974         * modules/unictype/category-So-tests (Files): Likewise.
40975         * modules/unictype/category-Z-tests (Files): Likewise.
40976         * modules/unictype/category-Zl-tests (Files): Likewise.
40977         * modules/unictype/category-Zp-tests (Files): Likewise.
40978         * modules/unictype/category-Zs-tests (Files): Likewise.
40979         * modules/unictype/category-and-not-tests (Files): Likewise.
40980         * modules/unictype/category-and-tests (Files): Likewise.
40981         * modules/unictype/category-byname-tests (Files): Likewise.
40982         * modules/unictype/category-name-tests (Files): Likewise.
40983         * modules/unictype/category-none-tests (Files): Likewise.
40984         * modules/unictype/category-of-tests (Files): Likewise.
40985         * modules/unictype/category-or-tests (Files): Likewise.
40986         * modules/unictype/category-test-withtable-tests (Files): Likewise.
40987         * modules/unictype/combining-class-tests (Files): Likewise.
40988         * modules/unictype/ctype-alnum-tests (Files): Likewise.
40989         * modules/unictype/ctype-alpha-tests (Files): Likewise.
40990         * modules/unictype/ctype-blank-tests (Files): Likewise.
40991         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
40992         * modules/unictype/ctype-digit-tests (Files): Likewise.
40993         * modules/unictype/ctype-graph-tests (Files): Likewise.
40994         * modules/unictype/ctype-lower-tests (Files): Likewise.
40995         * modules/unictype/ctype-print-tests (Files): Likewise.
40996         * modules/unictype/ctype-punct-tests (Files): Likewise.
40997         * modules/unictype/ctype-space-tests (Files): Likewise.
40998         * modules/unictype/ctype-upper-tests (Files): Likewise.
40999         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
41000         * modules/unictype/decimal-digit-tests (Files): Likewise.
41001         * modules/unictype/digit-tests (Files): Likewise.
41002         * modules/unictype/mirror-tests (Files): Likewise.
41003         * modules/unictype/numeric-tests (Files): Likewise.
41004         * modules/unictype/property-alphabetic-tests (Files): Likewise.
41005         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
41006         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
41007         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
41008         Likewise.
41009         * modules/unictype/property-bidi-block-separator-tests (Files):
41010         Likewise.
41011         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
41012         Likewise.
41013         * modules/unictype/property-bidi-common-separator-tests (Files):
41014         Likewise.
41015         * modules/unictype/property-bidi-control-tests (Files): Likewise.
41016         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
41017         Likewise.
41018         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
41019         Likewise.
41020         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
41021         Likewise.
41022         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
41023         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
41024         Likewise.
41025         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
41026         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
41027         Likewise.
41028         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
41029         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
41030         * modules/unictype/property-bidi-segment-separator-tests (Files):
41031         Likewise.
41032         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
41033         * modules/unictype/property-byname-tests (Files): Likewise.
41034         * modules/unictype/property-combining-tests (Files): Likewise.
41035         * modules/unictype/property-composite-tests (Files): Likewise.
41036         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
41037         * modules/unictype/property-dash-tests (Files): Likewise.
41038         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
41039         * modules/unictype/property-default-ignorable-code-point-tests (Files):
41040         Likewise.
41041         * modules/unictype/property-deprecated-tests (Files): Likewise.
41042         * modules/unictype/property-diacritic-tests (Files): Likewise.
41043         * modules/unictype/property-extender-tests (Files): Likewise.
41044         * modules/unictype/property-format-control-tests (Files): Likewise.
41045         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
41046         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
41047         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
41048         * modules/unictype/property-hex-digit-tests (Files): Likewise.
41049         * modules/unictype/property-hyphen-tests (Files): Likewise.
41050         * modules/unictype/property-id-continue-tests (Files): Likewise.
41051         * modules/unictype/property-id-start-tests (Files): Likewise.
41052         * modules/unictype/property-ideographic-tests (Files): Likewise.
41053         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
41054         * modules/unictype/property-ids-trinary-operator-tests (Files):
41055         Likewise.
41056         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
41057         * modules/unictype/property-iso-control-tests (Files): Likewise.
41058         * modules/unictype/property-join-control-tests (Files): Likewise.
41059         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
41060         * modules/unictype/property-line-separator-tests (Files): Likewise.
41061         * modules/unictype/property-logical-order-exception-tests (Files):
41062         Likewise.
41063         * modules/unictype/property-lowercase-tests (Files): Likewise.
41064         * modules/unictype/property-math-tests (Files): Likewise.
41065         * modules/unictype/property-non-break-tests (Files): Likewise.
41066         * modules/unictype/property-not-a-character-tests (Files): Likewise.
41067         * modules/unictype/property-numeric-tests (Files): Likewise.
41068         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
41069         * modules/unictype/property-other-default-ignorable-code-point-tests
41070         (Files): Likewise.
41071         * modules/unictype/property-other-grapheme-extend-tests (Files):
41072         Likewise.
41073         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
41074         * modules/unictype/property-other-id-start-tests (Files): Likewise.
41075         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
41076         * modules/unictype/property-other-math-tests (Files): Likewise.
41077         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
41078         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
41079         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
41080         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
41081         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
41082         * modules/unictype/property-private-use-tests (Files): Likewise.
41083         * modules/unictype/property-punctuation-tests (Files): Likewise.
41084         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
41085         * modules/unictype/property-radical-tests (Files): Likewise.
41086         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
41087         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
41088         * modules/unictype/property-space-tests (Files): Likewise.
41089         * modules/unictype/property-terminal-punctuation-tests (Files):
41090         Likewise.
41091         * modules/unictype/property-test-tests (Files): Likewise.
41092         * modules/unictype/property-titlecase-tests (Files): Likewise.
41093         * modules/unictype/property-unassigned-code-value-tests (Files):
41094         Likewise.
41095         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
41096         * modules/unictype/property-uppercase-tests (Files): Likewise.
41097         * modules/unictype/property-variation-selector-tests (Files): Likewise.
41098         * modules/unictype/property-white-space-tests (Files): Likewise.
41099         * modules/unictype/property-xid-continue-tests (Files): Likewise.
41100         * modules/unictype/property-xid-start-tests (Files): Likewise.
41101         * modules/unictype/property-zero-width-tests (Files): Likewise.
41102         * modules/unictype/scripts-tests (Files): Likewise.
41103         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
41104         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
41105         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
41106         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
41107         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
41108         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
41109         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
41110         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
41111         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
41112         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
41113         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
41114         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
41115         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
41116         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
41117         * modules/uninorm/composition-tests (Files): Likewise.
41118         * modules/uninorm/decomposing-form-tests (Files): Likewise.
41119         * modules/uninorm/decomposition-tests (Files): Likewise.
41120         * modules/uninorm/filter-tests (Files): Likewise.
41121         * modules/uninorm/nfc-tests (Files): Likewise.
41122         * modules/uninorm/nfd-tests (Files): Likewise.
41123         * modules/uninorm/nfkc-tests (Files): Likewise.
41124         * modules/uninorm/nfkd-tests (Files): Likewise.
41125         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
41126         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
41127         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
41128         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
41129         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
41130         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
41131         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
41132         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
41133         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
41134         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
41135         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
41136         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
41137         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
41138         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
41139         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
41140         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
41141         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
41142         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
41143         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
41144         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
41145         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
41146         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
41147         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
41148         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
41149         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
41150         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
41151         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
41152         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
41153         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
41154         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
41155         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
41156         * modules/uniwidth/u8-width-tests (Files): Likewise.
41157         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
41158         * modules/uniwidth/u16-width-tests (Files): Likewise.
41159         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
41160         * modules/uniwidth/u32-width-tests (Files): Likewise.
41161         * modules/uniwidth/width-tests (Files): Likewise.
41162         * modules/unlink-tests (Files): Likewise.
41163         * modules/unsetenv-tests (Files): Likewise.
41164         * modules/usleep-tests (Files): Likewise.
41165         * modules/utimens-tests (Files): Likewise.
41166         * modules/utimensat-tests (Files): Likewise.
41167         * modules/vasnprintf-posix-tests (Files): Likewise.
41168         * modules/vasnprintf-tests (Files): Likewise.
41169         * modules/vasprintf-posix-tests (Files): Likewise.
41170         * modules/vasprintf-tests (Files): Likewise.
41171         * modules/vdprintf-posix-tests (Files): Likewise.
41172         * modules/vfprintf-posix-tests (Files): Likewise.
41173         * modules/vprintf-posix-tests (Files): Likewise.
41174         * modules/vsnprintf-posix-tests (Files): Likewise.
41175         * modules/vsnprintf-tests (Files): Likewise.
41176         * modules/vsprintf-posix-tests (Files): Likewise.
41177         * modules/wcrtomb-tests (Files): Likewise.
41178         * modules/wcsnrtombs-tests (Files): Likewise.
41179         * modules/wcsrtombs-tests (Files): Likewise.
41180         * modules/wctype-tests (Files): Likewise.
41181         * modules/wcwidth-tests (Files): Likewise.
41182         * modules/xmemdup0-tests (Files): Likewise.
41183         * modules/xprintf-posix-tests (Files): Likewise.
41184         * modules/xvasprintf-tests (Files): Likewise.
41185
41186 2009-12-24  Eric Blake  <ebb9@byu.net>
41187
41188         test-nanosleep: fix typo
41189         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
41190         patch.
41191         Reported by Bruno Haible.
41192
41193 2009-12-24  Bruno Haible  <bruno@clisp.org>
41194
41195         Reduce namespace pollution on glibc systems.
41196         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
41197         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
41198         systems.
41199         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
41200         <getopt.h> on glibc systems.
41201         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
41202         systems.
41203         * lib/fcntl.c: Include <unistd.h> here instead.
41204
41205 2009-12-24  Bruno Haible  <bruno@clisp.org>
41206
41207         * lib/stdlib.in.h (includes): Fix typo in today's commit.
41208
41209 2009-12-24  Eric Blake  <ebb9@byu.net>
41210
41211         tests: add signature checks
41212         * tests/signature.h (SIGNATURE_CHECK): New file.
41213         * modules/atexit-tests (Files): Use it.
41214         * modules/btowc-tests (Files): Likewise.
41215         * modules/canonicalize-lgpl-tests (Files): Likewise.
41216         * modules/ceilf-tests (Files): Likewise.
41217         * modules/ceill-tests (Files): Likewise.
41218         * modules/chown-tests (Files): Likewise.
41219         * modules/dprintf-posix-tests (Files): Likewise.
41220         * modules/dup2-tests (Files): Likewise.
41221         * modules/dup3-tests (Files): Likewise.
41222         * modules/duplocale-tests (Files): Likewise.
41223         * modules/fchdir-tests (Files): Likewise.
41224         * modules/fcntl-tests (Files): Likewise.
41225         * modules/fdopendir-tests (Files): Likewise.
41226         * modules/fflush-tests (Files): Likewise.
41227         * modules/flock-tests (Files): Likewise.
41228         * modules/floorf-tests (Files): Likewise.
41229         * modules/floorl-tests (Files): Likewise.
41230         * modules/fnmatch-tests (Files): Likewise.
41231         * modules/fopen-tests (Files): Likewise.
41232         * modules/fprintf-posix-tests (Files): Likewise.
41233         * modules/freopen-tests (Files): Likewise.
41234         * modules/frexp-nolibm-tests (Files): Likewise.
41235         * modules/frexp-tests (Files): Likewise.
41236         * modules/frexpl-nolibm-tests (Files): Likewise.
41237         * modules/frexpl-tests (Files): Likewise.
41238         * modules/fseek-tests (Files): Likewise.
41239         * modules/fseeko-tests (Files): Likewise.
41240         * modules/fsync-tests (Files): Likewise.
41241         * modules/ftell-tests (Files): Likewise.
41242         * modules/ftello-tests (Files): Likewise.
41243         * modules/futimens-tests (Files): Likewise.
41244         * modules/getaddrinfo-tests (Files): Likewise.
41245         * modules/getcwd-tests (Files): Likewise.
41246         * modules/getdelim-tests (Files): Likewise.
41247         * modules/getdtablesize-tests (Files): Likewise.
41248         * modules/getgroups-tests (Files): Likewise.
41249         * modules/gethostname-tests (Files): Likewise.
41250         * modules/getline-tests (Files): Likewise.
41251         * modules/getopt-posix-tests (Files): Likewise.
41252         * modules/gettimeofday-tests (Files): Likewise.
41253         * modules/glob-tests (Files): Likewise.
41254         * modules/iconv-tests (Files): Likewise.
41255         * modules/inet_ntop-tests (Files): Likewise.
41256         * modules/inet_pton-tests (Files): Likewise.
41257         * modules/isblank-tests (Files): Likewise.
41258         * modules/lchown-tests (Files): Likewise.
41259         * modules/ldexpl-tests (Files): Likewise.
41260         * modules/link-tests (Files): Likewise.
41261         * modules/linkat-tests (Files): Likewise.
41262         * modules/lseek-tests (Files): Likewise.
41263         * modules/lstat-tests (Files): Likewise.
41264         * modules/mbrtowc-tests (Files): Likewise.
41265         * modules/mbsinit-tests (Files): Likewise.
41266         * modules/mbsnrtowcs-tests (Files): Likewise.
41267         * modules/mbsrtowcs-tests (Files): Likewise.
41268         * modules/memchr-tests (Files): Likewise.
41269         * modules/memcmp-tests (Files): Likewise.
41270         * modules/memmem-tests (Files): Likewise.
41271         * modules/memrchr-tests (Files): Likewise.
41272         * modules/mkdir-tests (Files): Likewise.
41273         * modules/mkfifo-tests (Files): Likewise.
41274         * modules/mkfifoat-tests (Files): Likewise.
41275         * modules/mknod-tests (Files): Likewise.
41276         * modules/nanosleep-tests (Files): Likewise.
41277         * modules/nl_langinfo-tests (Files): Likewise.
41278         * modules/obstack-printf-tests (Files): Likewise.
41279         * modules/open-tests (Files): Likewise.
41280         * modules/openat-tests (Files): Likewise.
41281         * modules/perror-tests (Files): Likewise.
41282         * modules/pipe2-tests (Files): Likewise.
41283         * modules/poll-tests (Files): Likewise.
41284         * modules/popen-tests (Files): Likewise.
41285         * modules/posix_spawn-tests (Files): Likewise.
41286         * modules/posix_spawnp-tests (Files): Likewise.
41287         * modules/pread-tests (Files): Likewise.
41288         * modules/printf-posix-tests (Files): Likewise.
41289         * modules/pty-tests (Files): Likewise.
41290         * modules/random_r-tests (Files): Likewise.
41291         * modules/rawmemchr-tests (Files): Likewise.
41292         * modules/readlink-tests (Files): Likewise.
41293         * modules/remove-tests (Files): Likewise.
41294         * modules/rename-tests (Files): Likewise.
41295         * modules/renameat-tests (Files): Likewise.
41296         * modules/rmdir-tests (Files): Likewise.
41297         * modules/round-tests (Files): Likewise.
41298         * modules/roundf-tests (Files): Likewise.
41299         * modules/roundl-tests (Files): Likewise.
41300         * modules/select-tests (Files): Likewise.
41301         * modules/setenv-tests (Files): Likewise.
41302         * modules/sigaction-tests (Files): Likewise.
41303         * modules/sleep-tests (Files): Likewise.
41304         * modules/snprintf-posix-tests (Files): Likewise.
41305         * modules/snprintf-tests (Files): Likewise.
41306         * modules/sprintf-posix-tests (Files): Likewise.
41307         * modules/stat-tests (Files): Likewise.
41308         * modules/strcasestr-tests (Files): Likewise.
41309         * modules/strchrnul-tests (Files): Likewise.
41310         * modules/strerror-tests (Files): Likewise.
41311         * modules/strsignal-tests (Files): Likewise.
41312         * modules/strstr-tests (Files): Likewise.
41313         * modules/strtod-tests (Files): Likewise.
41314         * modules/strverscmp-tests (Files): Likewise.
41315         * modules/symlink-tests (Files): Likewise.
41316         * modules/symlinkat-tests (Files): Likewise.
41317         * modules/times-tests (Files): Likewise.
41318         * modules/trunc-tests (Files): Likewise.
41319         * modules/truncf-tests (Files): Likewise.
41320         * modules/truncl-tests (Files): Likewise.
41321         * modules/tsearch-tests (Files): Likewise.
41322         * modules/uname-tests (Files): Likewise.
41323         * modules/unlink-tests (Files): Likewise.
41324         * modules/unsetenv-tests (Files): Likewise.
41325         * modules/usleep-tests (Files): Likewise.
41326         * modules/utimensat-tests (Files): Likewise.
41327         * modules/vasprintf-tests (Files): Likewise.
41328         * modules/vdprintf-posix-tests (Files): Likewise.
41329         * modules/vfprintf-posix-tests (Files): Likewise.
41330         * modules/vprintf-posix-tests (Files): Likewise.
41331         * modules/vsnprintf-posix-tests (Files): Likewise.
41332         * modules/vsnprintf-tests (Files): Likewise.
41333         * modules/vsprintf-posix-tests (Files): Likewise.
41334         * modules/wcrtomb-tests (Files): Likewise.
41335         * modules/wcsnrtombs-tests (Files): Likewise.
41336         * modules/wcsrtombs-tests (Files): Likewise.
41337         * modules/wcwidth-tests (Files): Likewise.
41338         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
41339         * tests/test-isinf.c (isinf): Likewise.
41340         * tests/test-isnan.c (isnan): Likewise.
41341         * tests/test-signbit.c (signbit): Likewise.
41342         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
41343         declaration, either as macro or with correct signature.
41344         (select): Ensure function under test is declared with correct
41345         signature in correct header.
41346         * tests/test-atexit.c (atexit): Likewise.
41347         * tests/test-btowc.c (btowc): Likewise.
41348         * tests/test-canonicalize-lgpl.c (realpath)
41349         (canonicalize_file_name): Likewise.
41350         * tests/test-ceilf1.c (ceilf): Likewise.
41351         * tests/test-ceill.c (ceill): Likewise.
41352         * tests/test-chown.c (chown): Likewise.
41353         * tests/test-dprintf-posix.c (dprintf): Likewise.
41354         * tests/test-dup2.c (dup2): Likewise.
41355         * tests/test-dup3.c (dup3): Likewise.
41356         * tests/test-duplocale.c (duplocale): Likewise.
41357         * tests/test-fchdir.c (fchdir): Likewise.
41358         * tests/test-fchownat.c (fchownat): Likewise.
41359         * tests/test-fcntl.c (fcntl): Likewise.
41360         * tests/test-fdopendir.c (fdopendir): Likewise.
41361         * tests/test-fflush.c (fflush): Likewise.
41362         * tests/test-flock.c (flock): Likewise.
41363         * tests/test-floorf1.c (floorf): Likewise.
41364         * tests/test-floorl.c (floorl): Likewise.
41365         * tests/test-fnmatch.c (fnmatch): Likewise.
41366         * tests/test-fopen.c (fopen): Likewise.
41367         * tests/test-fprintf-posix.c (fprintf): Likewise.
41368         * tests/test-freopen.c (freopen): Likewise.
41369         * tests/test-frexp.c (frexp): Likewise.
41370         * tests/test-frexpl.c (frexpl): Likewise.
41371         * tests/test-fseek.c (fseek): Likewise.
41372         * tests/test-fseeko.c (fseeko): Likewise.
41373         * tests/test-fstatat.c (fstatat): Likewise.
41374         * tests/test-fsync.c (fsync): Likewise.
41375         * tests/test-ftell.c (ftell): Likewise.
41376         * tests/test-ftello.c (ftello): Likewise.
41377         * tests/test-futimens.c (futimens): Likewise.
41378         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
41379         (gai_strerror): Likewise.
41380         * tests/test-getcwd.c (getcwd): Likewise.
41381         * tests/test-getdelim.c (getdelim): Likewise.
41382         * tests/test-getdtablesize.c (getdtablesize): Likewise.
41383         * tests/test-getgroups.c (getgroups): Likewise.
41384         * tests/test-gethostname.c (gethostname): Likewise.
41385         * tests/test-getline.c (getline): Likewise.
41386         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
41387         Likewise.
41388         * tests/test-gettimeofday.c (gettimeofday): Likewise.
41389         * tests/test-glob.c (glob, globfree): Likewise.
41390         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
41391         * tests/test-inet_ntop.c (inet_ntop): Likewise.
41392         * tests/test-inet_pton.c (inet_pton): Likewise.
41393         * tests/test-isblank.c (isblank): Likewise.
41394         * tests/test-lchown.c (lchown): Likewise.
41395         * tests/test-ldexpl.c (ldexpl): Likewise.
41396         * tests/test-link.c (link): Likewise.
41397         * tests/test-linkat.c (linkat): Likewise.
41398         * tests/test-lseek.c (lseek): Likewise.
41399         * tests/test-lstat.c (lstat): Likewise.
41400         * tests/test-mbrtowc.c (mbrtowc): Likewise.
41401         * tests/test-mbsinit.c (mbsinit): Likewise.
41402         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
41403         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
41404         * tests/test-memchr.c (memchr): Likewise.
41405         * tests/test-memcmp.c (memcmp): Likewise.
41406         * tests/test-memmem.c (memmem): Likewise.
41407         * tests/test-memrchr.c (memrchr): Likewise.
41408         * tests/test-mkdir.c (mkdir): Likewise.
41409         * tests/test-mkdirat.c (mkdirat): Likewise.
41410         * tests/test-mkfifo.c (mkfifo): Likewise.
41411         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
41412         * tests/test-mknod.c (mknod): Likewise.
41413         * tests/test-nanosleep.c (nanosleep): Likewise.
41414         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
41415         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
41416         Likewise.
41417         * tests/test-open.c (open): Likewise.
41418         * tests/test-openat.c (openat): Likewise.
41419         * tests/test-perror.c (perror): Likewise.
41420         * tests/test-pipe2.c (pipe2): Likewise.
41421         * tests/test-poll.c (poll): Likewise.
41422         * tests/test-popen.c (popen, pclose): Likewise.
41423         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
41424         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
41425         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
41426         (posix_spawn_file_actions_destroy)
41427         (posix_spawn_file_actions_addclose)
41428         (posix_spawn_file_actions_addopen)
41429         (posix_spawn_file_actions_adddup2): Likewise.
41430         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
41431         * tests/test-pread.c (pread): Likewise.
41432         * tests/test-printf-posix.c (printf): Likewise.
41433         * tests/test-pty.c (openpty, forkpty): Likewise.
41434         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
41435         (random_r): Likewise.
41436         * tests/test-rawmemchr.c (rawmemchr): Likewise.
41437         * tests/test-readlink.c (readlink): Likewise.
41438         * tests/test-remove.c (remove): Likewise.
41439         * tests/test-rename.c (rename): Likewise.
41440         * tests/test-renameat.c (renameat): Likewise.
41441         * tests/test-rmdir.c (rmdir): Likewise.
41442         * tests/test-round1.c (round): Likewise.
41443         * tests/test-roundf1.c (roundf): Likewise.
41444         * tests/test-roundl.c (roundl): Likewise.
41445         * tests/test-setenv.c (setenv): Likewise.
41446         * tests/test-sigaction.c (sigaction): Likewise.
41447         * tests/test-sleep.c (sleep): Likewise.
41448         * tests/test-snprintf.c (snprintf): Likewise.
41449         * tests/test-sprintf-posix.c (sprintf): Likewise.
41450         * tests/test-stat.c (stat): Likewise.
41451         * tests/test-stpncpy.c (stpncpy): Likewise.
41452         * tests/test-strcasestr.c (strcasestr): Likewise.
41453         * tests/test-strchrnul.c (strchrnul): Likewise.
41454         * tests/test-strerror.c (strerror): Likewise.
41455         * tests/test-strsignal.c (strsignal): Likewise.
41456         * tests/test-strstr.c (strstr): Likewise.
41457         * tests/test-strtod.c (strtod): Likewise.
41458         * tests/test-strverscmp.c (strverscmp): Likewise.
41459         * tests/test-symlink.c (symlink): Likewise.
41460         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
41461         * tests/test-times.c (times): Likewise.
41462         * tests/test-trunc1.c (trunc): Likewise.
41463         * tests/test-truncf1.c (truncf): Likewise.
41464         * tests/test-truncl.c (truncl): Likewise.
41465         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
41466         Likewise.
41467         * tests/test-uname.c (uname): Likewise.
41468         * tests/test-unlink.c (unlink): Likewise.
41469         * tests/test-unlinkat.c (unlinkat): Likewise.
41470         * tests/test-unsetenv.c (unsetenv): Likewise.
41471         * tests/test-usleep.c (usleep): Likewise.
41472         * tests/test-utimensat.c (utimensat): Likewise.
41473         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
41474         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
41475         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
41476         * tests/test-vprintf-posix.c (vprintf): Likewise.
41477         * tests/test-vsnprintf.c (vsnprintf): Likewise.
41478         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
41479         * tests/test-wcrtomb.c (wcrtomb): Likewise.
41480         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
41481         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
41482         * tests/test-wcwidth.c (wcwidth): Likewise.
41483
41484         build: pull in conditional headers during GNULIB_POSIXCHECK
41485         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
41486         definitions from any conditionally-included headers.
41487         * lib/stdlib.in.h (includes): Likewise.
41488         * lib/unistd.in.h (includes): Likewise.
41489
41490 2009-12-24  Bruno Haible  <bruno@clisp.org>
41491
41492         * tests/test-argv-iter.c: Include header file being tested immediately
41493         after config.h.
41494         * tests/test-base64.c: Likewise.
41495         * tests/test-flock.c: Likewise.
41496         * tests/test-fsync.c: Likewise.
41497         * tests/test-getdate.c: Likewise.
41498         * tests/test-getndelim2.c: Likewise.
41499         * tests/test-isfinite.c: Likewise.
41500         * tests/test-isinf.c: Likewise.
41501         * tests/test-strerror.c: Likewise.
41502         * tests/test-strsignal.c: Likewise.
41503
41504 2009-12-23  Eric Blake  <ebb9@byu.net>
41505
41506         unistd: work around cygwin bug
41507         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
41508         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
41509         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41510
41511 2009-12-23  Bruno Haible  <bruno@clisp.org>
41512
41513         localename: More tests.
41514         * tests/test-localename.c (SIZEOF): New macro.
41515         (categories): New variable.
41516         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
41517         test_locale_name_default): Add test w.r.t. thread locale.
41518         (test_locale_name_thread): New function.
41519         (main): Invoke it.
41520
41521         localename: Make aware of thread locale.
41522         * lib/localename.h (gl_locale_name_thread): New declaration.
41523         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
41524         behaviour with respect to thread locale.
41525         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
41526         <langinfo.h>, glthread/lock.h.
41527         (SIZE_BITS): New macro.
41528         (string_hash): New function.
41529         (struct hash_node): New type.
41530         (HASH_TABLE_SIZE): New macro.
41531         (struniq_hash_table, struniq_lock): New variables.
41532         (struniq): New function.
41533         (gl_locale_name_thread): New function.
41534         (gl_locale_name): Invoke it.
41535         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
41536         * modules/localename (Depends-on): Add lock.
41537         Reported by Mike Gran <spk121@yahoo.com>.
41538
41539 2009-12-23  Eric Blake  <ebb9@byu.net>
41540
41541         va-args: new module
41542         * modules/va-args: New file.
41543         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
41544         * MODULES.html.sh (Core language properties): Mention it.
41545
41546         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
41547         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
41548         named alias for __attribute__((__unused__)).
41549         * lib/chown.c: Update client.
41550         * lib/fchmodat.c: Likewise.
41551         * lib/fts.c: Likewise.
41552         * lib/getdate.y: Likewise.
41553         * lib/getgroups.c: Likewise.
41554         * lib/getopt.c: Likewise.
41555         * lib/getugroups.c: Likewise.
41556         * lib/mkdir.c: Likewise.
41557         * lib/mkfifo.c: Likewise.
41558         * lib/mkfifoat.c: Likewise.
41559         * lib/mknod.c: Likewise.
41560         * lib/mknodat.c: Likewise.
41561         * lib/readlink.c: Likewise.
41562         * lib/se-context.in.h: Likewise.
41563         * lib/se-selinux.in.h: Likewise.
41564         * lib/sockets.c: Likewise.
41565         * lib/symlink.c: Likewise.
41566         * lib/symlinkat.c: Likewise.
41567         * lib/unicodeio.c: Likewise.
41568         * lib/unistr.h: Likewise.
41569         * tests/test-areadlink.c: Likewise.
41570         * tests/test-areadlinkat.c: Likewise.
41571         * tests/test-filenamecat.c: Likewise.
41572         * tests/test-fseeko.c: Likewise.
41573         * tests/test-ftello.c: Likewise.
41574         * tests/test-getdate.c: Likewise.
41575         * tests/test-getgroups.c: Likewise.
41576         * tests/test-gethostname.c: Likewise.
41577         * tests/test-quotearg.c: Likewise.
41578         * tests/test-version-etc.c: Likewise.
41579         * tests/test-xalloc-die.c: Likewise.
41580         * tests/test-xfprintf-posix.c: Likewise.
41581         * tests/test-xprintf-posix.c: Likewise.
41582         * tests/test-xvasprintf.c: Likewise.
41583
41584         tests: avoid compiler warnings
41585         * tests/test-fcntl.c (main): Delete unused parameters.
41586         * tests/test-freopen-safer.c (main): Likewise.
41587         * tests/test-xalloc-die.c (main): Mark unused parameters.
41588         * tests/test-fseeko.c (main): Likewise.
41589         * tests/test-ftello.c (main): Likewise.
41590         * tests/test-nanosleep.c (main): Avoid declaration warning.
41591         * tests/test-sleep.c (main): Likewise.
41592         * tests/test-unsetenv.c (main): Silence warning about string
41593         literal.
41594         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
41595
41596 2009-12-23  Bruno Haible  <bruno@clisp.org>
41597
41598         * tests/test-localename.c (test_locale_name): New function, extracted
41599         from main. Also test mixed situations.
41600         (test_locale_name_posix, test_locale_name_environ,
41601         test_locale_name_default): New functions.
41602         (main): Invoke them all.
41603         * modules/localename-tests (configure.ac): Test for newlocale.
41604
41605 2009-12-23  Bruno Haible  <bruno@clisp.org>
41606
41607         unistd: Ensure getcwd gets declared before being overridden.
41608         * lib/unistd.in.h: Conditionally include <io.h>.
41609
41610 2009-12-22  Bruno Haible  <bruno@clisp.org>
41611
41612         wchar: Diagnose broken combination of glibc and gcc versions and flags.
41613         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
41614         (gl_WCHAR_H): Invoke it.
41615         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
41616         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
41617         Reported by Karl Berry <karl@freefriends.org>.
41618
41619 2009-12-22  Eric Blake  <ebb9@byu.net>
41620
41621         math, unistd: avoid redundant includes
41622         * lib/math.in.h (isnan): No need to re-include <math.h>.
41623         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
41624
41625         getsubopt: work around cygwin bug
41626         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
41627         avoid conflicting with system getsubopt.
41628         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
41629         bug.
41630
41631         getopt: synchronize from glibc
41632         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
41633         parameter order.  Adjust all callers.
41634         (_getopt_internal_r, main): Adjust quoting in error messages.
41635         Drop considerations for outdated POSIX 1003.2 error message.
41636         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
41637         callers.
41638         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
41639
41640         test-getopt: test stderr behavior
41641         * modules/getopt-posix-tests (Depends-on): Add dup2.
41642         * tests/test-getopt.c (ASSERT): Avoid stderr.
41643         (main): Move stderr to a temporary file.
41644         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
41645         Instead, add parameter to inform caller if output occurred.
41646         (test_getopt): Adjust all existing tests to expect silence, and
41647         add new tests of leading ":".
41648         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
41649         glibc shortcomings with leading "-:" or "+:" in optstring.
41650         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
41651         Likewise.
41652         * doc/posix-functions/getopt.texi (getopt): Likewise.
41653
41654         test-getopt: enhance test
41655         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
41656         supports optind=0.
41657         * tests/test-getopt.c (OPTIND_MIN): Move...
41658         * tests/test-getopt.h (OPTIND_MIN): ...here.
41659         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
41660         Require that optind=0 works, since modern BSD supports it in
41661         addition to optreset, and since coreutils expects it.
41662         (test_getopt_long_only): New test.
41663         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
41664         glibc shortcomings with 'W;', and enforcement of optind=0.
41665         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
41666         Likewise.
41667
41668 2009-12-21  Bruno Haible  <bruno@clisp.org>
41669
41670         localename: Improvements for MacOS X and Cygwin.
41671         * lib/localename.h (gl_locale_name_environ): New declaration.
41672         * lib/localename.c (gl_locale_name_environ): New function, extracted from
41673         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
41674         (gl_locale_name_posix): Invoke it.
41675         (gl_locale_name_default): Add comments. Use Windows native API also on
41676         Cygwin.
41677
41678 2009-12-21  Bruno Haible  <bruno@clisp.org>
41679
41680         Update list of Win32 locale ids.
41681         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
41682         (LANG_SAMI): Renamed from LANG_SAAMI.
41683         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
41684         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
41685         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
41686         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
41687         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
41688         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
41689         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
41690         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
41691         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
41692         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
41693         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
41694         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
41695         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
41696         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
41697         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
41698         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
41699         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
41700         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
41701         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
41702         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
41703         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
41704         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
41705         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
41706         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
41707         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
41708         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
41709         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
41710         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
41711         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
41712         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
41713         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
41714         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
41715         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
41716         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
41717         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
41718         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
41719         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
41720         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
41721         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
41722         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
41723         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
41724         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
41725         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
41726         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
41727         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
41728         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
41729         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
41730         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
41731         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
41732         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
41733         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
41734         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
41735         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
41736         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
41737         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
41738         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
41739         Add more languages and countries for Sami, Sorbian. Add more countries
41740         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
41741         for Pashto. Change country for Syriac, Tswana.
41742
41743 2009-12-21  Eric Blake  <ebb9@byu.net>
41744
41745         test-utimens: avoid spurious failure
41746         * tests/test-chown.h (nap): Factor...
41747         * tests/nap.h: ...into new file.
41748         * tests/test-lchown.h (nap): Avoid duplication.
41749         * tests/test-utimens-common.h (nap): Use shared implementation,
41750         necessary on file systems with 1-second resolution.
41751         * modules/chown-tests (Files): Include new file.
41752         * modules/fdutimensat-tests (Files): Likewise.
41753         * modules/futimens-tests (Files): Likewise.
41754         * modules/lchown-tests (Files): Likewise.
41755         * modules/openat-tests (Files): Likewise.
41756         * modules/utimens-tests (Files): Likewise.
41757         * modules/utimensat-tests (Files): Likewise.
41758
41759 2009-12-19  Eric Blake  <ebb9@byu.net>
41760
41761         futimens, utimensat: work around Linux bug
41762         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
41763         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
41764         * lib/utimensat.c (rpl_utimensat): Work around it.
41765         * lib/futimens.c (rpl_futimens): Adjust comment.
41766
41767         utimens: work around Linux ctime bug
41768         * lib/utimens.c (detect_ctime_bug): New helper function.
41769         (update_timespec): Differentiate between workaround needed for
41770         this bug vs. what is needed for systems that lack utimensat.
41771         (fdutimens, lutimens): Work around bug.
41772
41773         utimens: check for ctime update
41774         * tests/test-utimens-common.h (check_ctime): Define.
41775         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
41776         * tests/test-futimens.h (test_futimens): Likewise.
41777         * tests/test-lutimens.h (test_lutimens): Likewise.
41778         * doc/posix-functions/futimens.texi (futimens): Document the bug.
41779         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
41780
41781 2009-12-19  Bruno Haible  <bruno@clisp.org>
41782
41783         dprintf-posix: Check against memory leak fixed on 2009-12-15.
41784         * tests/test-dprintf-posix2.sh: New file.
41785         * tests/test-dprintf-posix2.c: New file.
41786         * modules/dprintf-posix-tests (Files): Add them.
41787         (configure.ac): Check for getrlimit and setrlimit.
41788         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
41789
41790 2009-12-19  Bruno Haible  <bruno@clisp.org>
41791
41792         fprintf-posix: Check against memory leak fixed on 2009-12-15.
41793         * tests/test-fprintf-posix3.sh: New file.
41794         * tests/test-fprintf-posix3.c: New file.
41795         * modules/fprintf-posix-tests (Files): Add them.
41796         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
41797
41798 2009-12-19  Eric Blake  <ebb9@byu.net>
41799
41800         dirfd: fix prototype
41801         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
41802         * lib/dirfd.c (dirfd): Likewise.
41803
41804         canonicalize: reduce memory usage
41805         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
41806         allocation to size.
41807         Reported by Solar Designer <solar@openwall.com>.
41808
41809 2009-12-19  Bruno Haible  <bruno@clisp.org>
41810
41811         New module attribute 'Applicability'.
41812         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
41813         * gnulib-tool: New option --extract-applicability.
41814         (func_usage): Document it.
41815         (sed_extract_prog): Recognize it.
41816         (func_get_applicability): New function.
41817         (func_import): Generalize handling of 'link-warning' module.
41818         * modules/link-warning (Applicability): New section.
41819         * modules/arg-nonnull (Applicability): New section.
41820         Repoted by Simon Josefsson <simon@josefsson.org>.
41821
41822 2009-12-19  Bruno Haible  <bruno@clisp.org>
41823
41824         fflush: tweak
41825         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
41826         * lib/fseeko.c (rpl_fseeko): Likewise.
41827
41828 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
41829
41830         * lib/gl_list.h: Fix typo in comment.
41831
41832 2009-12-16  Eric Blake  <ebb9@byu.net>
41833
41834         fcntl: use to simplify other modules
41835         * modules/cloexec (Depends-on): Add fcntl.
41836         * modules/fchdir (Depends-on): Likewise.
41837         * modules/fd-safer-flag (Depends-on): Likewise.
41838         * modules/unistd-safer (Depends-on): Likewise.
41839         * modules/dup3 (configure.ac): Set module indicator.
41840         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
41841         missing.
41842         * lib/fchdir.c (_gl_register_dup): Fix comment.
41843         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
41844         * lib/dup-safer.c (dup_safer): Likewise.
41845         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
41846         * lib/dup3.c (dup3): Likewise.
41847         * tests/test-fchdir.c (main): Enhance test.
41848         Fixes a dup_cloexec bug reported by Ondřej Vašík.
41849
41850         fcntl: port portions of fcntl to mingw
41851         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
41852         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
41853         replacement for mingw.
41854         * modules/fcntl (Description): Update.
41855         (Depends-on): Add dup2.
41856         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
41857         * modules/fcntl-h (Makefile.am): Substitute it.
41858         * lib/fcntl.in.h (fcntl): Update declaration.
41859         (F_DUPFD, F_GETFD): New macros, when needed.
41860         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41861         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
41862         * tests/test-fcntl.c (check_flags, main): Enhance test for items
41863         we now guarantee.
41864
41865         fcntl: work around cygwin bug in F_DUPFD
41866         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
41867         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
41868         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
41869         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
41870         * doc/posix-functions/fcntl.texi (fcntl): Document it.
41871
41872         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
41873         * modules/fcntl (Files): List new files.
41874         (configure.ac): Run a test.
41875         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
41876         * lib/fcntl.c (rpl_fcntl): Likewise.
41877         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
41878         (gl_FCNTL_H): Always replace fcntl.h.
41879         * modules/fcntl-h (Makefile.am): Substitute witnesses.
41880         * lib/fcntl.in.h (fcntl): Declare replacement.
41881         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
41882         needed, plus a witness.
41883         * doc/posix-functions/fcntl.texi (fcntl): Document this.
41884         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
41885         * tests/test-fcntl.c: New file.
41886         * modules/fcntl-tests: Likewise.
41887
41888         binary-io: avoid potential compilation warning
41889         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
41890         directives.
41891
41892         fflush: avoid compilation error on NetBSD
41893         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
41894         between off_t and fpos_t, since the latter is sometimes a struct.
41895         * lib/fseeko.c (rpl_fseeko): Likewise.
41896         Reported by Alexander Nasonov <alnsn@yandex.ru>.
41897
41898 2009-12-15  Eric Blake  <ebb9@byu.net>
41899
41900         fcntl-h, stdio, sys_ioctl: fix declarations
41901         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
41902         function must not take arguments.
41903         * lib/sys_ioctl.in.h (ioctl): Likewise.
41904         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
41905         (open): Add a link warning.
41906
41907 2009-12-15  Jim Meyering  <meyering@redhat.com>
41908
41909         areadlink, areadlink-with-size: relax license to LGPLv2+
41910         * modules/areadlink (License): Relax to LGPLv2+.
41911         * modules/areadlink-with-size (License): Likewise.
41912
41913 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
41914             Bruno Haible  <bruno@clisp.org>
41915
41916         *printf: Fix memory leak.
41917         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
41918         * lib/vfprintf.c (vfprintf): Likewise.
41919         * lib/dprintf.c (dprintf): Likewise.
41920         * lib/vdprintf.c (vdprintf): Likewise.
41921
41922 2009-12-14  Eric Blake  <ebb9@byu.net>
41923
41924         accept4: adjust module dependencies
41925         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
41926
41927         utimens: one more try at avoiding compiler warning
41928         * lib/utimens.c (lutimens): Lower scope of result.
41929
41930 2009-12-13  Bruno Haible  <bruno@clisp.org>
41931
41932         Move the malloc checking from module 'list' to new module 'xlist'.
41933         * modules/xlist: New file.
41934         * lib/gl_xlist.h: New file.
41935         * lib/gl_xlist.c: New file.
41936         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
41937         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
41938         gl_list_add_last, gl_list_add_before, gl_list_add_after,
41939         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
41940         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
41941         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
41942         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
41943         gl_sortedlist_nx_add): New declarations.
41944         (struct gl_list_implementation): Rename and change methods accordingly.
41945         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
41946         (gl_list_nx_create): Renamed from gl_list_create.
41947         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
41948         (gl_list_nx_set_at): Renamed from gl_list_set_at.
41949         (gl_list_nx_add_first): Renamed from gl_list_add_first.
41950         (gl_list_nx_add_last): Renamed from gl_list_add_last.
41951         (gl_list_nx_add_before): Renamed from gl_list_add_before.
41952         (gl_list_nx_add_after): Renamed from gl_list_add_after.
41953         (gl_list_nx_add_at): Renamed from gl_list_add_at.
41954         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
41955         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
41956         gl_list_create_empty.
41957         (gl_list_nx_create): Renamed from gl_list_create.
41958         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
41959         (gl_list_nx_set_at): Renamed from gl_list_set_at.
41960         (gl_list_nx_add_first): Renamed from gl_list_add_first.
41961         (gl_list_nx_add_last): Renamed from gl_list_add_last.
41962         (gl_list_nx_add_before): Renamed from gl_list_add_before.
41963         (gl_list_nx_add_after): Renamed from gl_list_add_after.
41964         (gl_list_nx_add_at): Renamed from gl_list_add_at.
41965         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
41966         * lib/gl_array_list.c: Don't include xalloc.h.
41967         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
41968         NULL upon out-of-memory.
41969         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
41970         out-of-memory.
41971         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
41972         Change return type to 'int'.
41973         (gl_array_nx_set_at): Renamed from gl_array_set_at.
41974         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
41975         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
41976         upon out-of-memory.
41977         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
41978         upon out-of-memory.
41979         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
41980         upon out-of-memory.
41981         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
41982         upon out-of-memory.
41983         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
41984         out-of-memory.
41985         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
41986         Update.
41987         (gl_array_list_implementation): Update.
41988         * lib/gl_carray_list.c: Don't include xalloc.h.
41989         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
41990         Return NULL upon out-of-memory.
41991         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
41992         out-of-memory.
41993         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
41994         Change return type to 'int'.
41995         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
41996         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
41997         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
41998         upon out-of-memory.
41999         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
42000         upon out-of-memory.
42001         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
42002         out-of-memory.
42003         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
42004         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
42005         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
42006         Update.
42007         (gl_carray_list_implementation): Update.
42008         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
42009         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
42010         gl_linked_create_empty. Return NULL upon out-of-memory.
42011         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
42012         out-of-memory.
42013         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
42014         Change return type to 'int'. Return -1 upon out-of-memory.
42015         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
42016         out-of-memory.
42017         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
42018         upon out-of-memory.
42019         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
42020         upon out-of-memory.
42021         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
42022         NULL upon out-of-memory.
42023         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
42024         upon out-of-memory.
42025         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
42026         out-of-memory.
42027         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
42028         Update.
42029         * lib/gl_linked_list.c: Don't include xalloc.h.
42030         (gl_linked_list_implementation): Update.
42031         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
42032         (add_to_bucket): Change return type to 'int'.
42033         (gl_linkedhash_list_implementation): Update.
42034         * lib/gl_anytree_list1.h (free_subtree): New function.
42035         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
42036         gl_tree_create_empty. Return NULL upon out-of-memory.
42037         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
42038         Change return type to 'int'. Return -1 upon out-of-memory.
42039         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
42040         out-of-memory.
42041         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
42042         (gl_tree_remove_node): New function, moved here from
42043         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
42044         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
42045         Update.
42046         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
42047         malloc, not xmalloc. Return NULL upon out-of-memory.
42048         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
42049         out-of-memory.
42050         (gl_tree_remove_node_from_tree): New function, extracted from
42051         gl_tree_remove_node.
42052         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
42053         upon out-of-memory.
42054         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
42055         out-of-memory.
42056         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
42057         upon out-of-memory.
42058         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
42059         upon out-of-memory.
42060         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
42061         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
42062         not xmalloc. Return NULL upon out-of-memory.
42063         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
42064         out-of-memory.
42065         (gl_tree_remove_node_from_tree): New function, extracted from
42066         gl_tree_remove_node.
42067         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
42068         upon out-of-memory.
42069         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
42070         out-of-memory.
42071         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
42072         upon out-of-memory.
42073         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
42074         upon out-of-memory.
42075         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
42076         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
42077         gl_anytree_list1.h before gl_anyavltree_list2.h.
42078         (gl_avltree_list_implementation): Update.
42079         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
42080         gl_anytree_list1.h before gl_anyavltree_list2.h.
42081         (gl_rbtree_list_implementation): Update.
42082         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
42083         Change return type to 'int'. Return -1 upon out-of-memory. Use
42084         __builtin_expect.
42085         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
42086         (gl_avltreehash_list_implementation): Update.
42087         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
42088         (gl_rbtreehash_list_implementation): Update.
42089         * modules/array-list (Depends-on): Remove xalloc.
42090         * modules/carray-list (Depends-on): Likewise.
42091         * modules/linked-list (Depends-on): Likewise.
42092         * modules/linkedhash-list (Depends-on): Likewise.
42093         * modules/avltree-list (Depends-on): Likewise.
42094         * modules/rbtree-list (Depends-on): Likewise.
42095         * modules/avltreehash-list (Depends-on): Likewise.
42096         * modules/rbtreehash-list (Depends-on): Likewise.
42097
42098         * modules/xsublist: New file.
42099         * lib/gl_xsublist.h: New file.
42100         * lib/gl_xsublist.c: New file.
42101         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
42102         (gl_sublist_nx_create): New declaration.
42103         * lib/gl_sublist.c: Don't include xalloc.h.
42104         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
42105         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
42106         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
42107         Change return type to 'int'. Return -1 upon out-of-memory.
42108         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
42109         upon out-of-memory.
42110         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
42111         NULL upon out-of-memory.
42112         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
42113         upon out-of-memory.
42114         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
42115         NULL upon out-of-memory.
42116         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
42117         NULL upon out-of-memory.
42118         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
42119         upon out-of-memory.
42120         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
42121         (gl_sublist_list_implementation): Update.
42122         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
42123         upon out-of-memory.
42124         * modules/sublist (Depends-on): Remove xalloc.
42125
42126         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
42127         * tests/test-carray_list.c: Likewise.
42128         * tests/test-linked_list.c: Likewise.
42129         * tests/test-linkedhash_list.c: Likewise.
42130         * tests/test-avltree_list.c: Likewise.
42131         * tests/test-rbtree_list.c: Likewise.
42132         * tests/test-avltreehash_list.c: Likewise.
42133         * tests/test-rbtreehash_list.c: Likewise.
42134         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
42135         * modules/carray-list-tests (Makefile.am): Likewise.
42136         * modules/linked-list-tests (Makefile.am): Likewise.
42137         * modules/linkedhash-list-tests (Makefile.am): Likewise.
42138         * modules/avltree-list-tests (Makefile.am): Likewise.
42139         * modules/rbtree-list-tests (Makefile.am): Likewise.
42140         * modules/avltreehash-list-tests (Makefile.am): Likewise.
42141         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
42142
42143         * NEWS: Mention the changes.
42144
42145         * lib/clean-temp.c: Include gl_xlist.h.
42146         * modules/clean-temp (Depends-on): Add xlist.
42147
42148         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
42149         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
42150
42151         * tests/test-array_oset.c: Include gl_xlist.h.
42152         * modules/array-oset-tests (Depends-on): Add xlist.
42153
42154         Reported by José E. Marchesi <jemarch@gnu.org>.
42155
42156 2009-12-13  Bruno Haible  <bruno@clisp.org>
42157
42158         Move the malloc checking from module 'oset' to new module 'xoset'.
42159         * modules/xoset: New file.
42160         * lib/gl_xoset.h: New file.
42161         * lib/gl_xoset.c: New file.
42162         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
42163         declarations.
42164         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
42165         (struct gl_oset_implementation): Rename and change methods accordingly.
42166         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
42167         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
42168         'int'. Mark as __warn_unused_result__.
42169         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
42170         gl_oset_create_empty.
42171         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
42172         'int'.
42173         * lib/gl_array_oset.c: Don't include xalloc.h.
42174         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
42175         malloc, not xmalloc.
42176         (grow): Change return type to 'int'. Don't call xalloc_die.
42177         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
42178         to 'int'.
42179         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
42180         'int'.
42181         (gl_array_oset_implementation): Update.
42182         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
42183         gl_tree_create_empty.
42184         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
42185         'int'.
42186         * lib/gl_avltree_oset.c: Don't include xalloc.h.
42187         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
42188         xmalloc.
42189         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
42190         not xmalloc.
42191         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
42192         xmalloc.
42193         (gl_avltree_oset_implementation): Update.
42194         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
42195         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
42196         xmalloc.
42197         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
42198         not xmalloc.
42199         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
42200         xmalloc.
42201         (gl_rbtree_oset_implementation): Update.
42202         * modules/array-oset (Depends-on): Remove xalloc.
42203         * modules/avltree-oset (Depends-on): Likewise.
42204         * modules/rbtree-oset (Depends-on): Likewise.
42205         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
42206         * tests/test-avltree_oset.c: Likewise.
42207         * tests/test-rbtree_oset.c: Likewise.
42208         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
42209         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
42210         * modules/rbtree-oset-tests (Makefile.am): Likewise.
42211         * NEWS: Mention the change.
42212
42213 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
42214
42215         maint.mk: allow a project to override release-prep commands
42216         * top/maint.mk (alpha, beta, stable): Move release-preparatory
42217         commands into a new rule.
42218         (release-prep): New rule.
42219         (release-prep-hook): New overridable variable.
42220
42221 2009-12-13  Bruno Haible  <bruno@clisp.org>
42222
42223         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
42224
42225 2009-12-13  Jim Meyering  <meyering@redhat.com>
42226
42227         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
42228         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
42229
42230 2009-12-12  Bruno Haible  <bruno@clisp.org>
42231
42232         duplocale: Tweak.
42233         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
42234
42235 2009-12-12  Karl Berry  <karl@gnu.org>
42236
42237         * config/srclist.txt (strtoll.c): tab changes, no more sync.
42238
42239 2009-12-12  Bruno Haible  <bruno@clisp.org>
42240
42241         * m4/po.m4: Undo incorrect untabification.
42242
42243 2009-12-12  Bruno Haible  <bruno@clisp.org>
42244
42245         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
42246         * modules/c-strtod (Depends-on): Add locale.
42247         * modules/c-strtold (Depends-on): Likewise.
42248
42249 2009-12-12  Bruno Haible  <bruno@clisp.org>
42250
42251         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
42252
42253 2009-12-11  Eric Blake  <ebb9@byu.net>
42254
42255         setenv: relax requirement in light of POSIX ruling
42256         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
42257         not NULL.
42258         * tests/test-setenv.c (main): Relax test.
42259         * tests/test-unsetenv.c (main): Likewise.
42260         * doc/posix-functions/setenv.texi (setenv): Document this.
42261         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
42262
42263 2009-12-11  Bruno Haible  <bruno@clisp.org>
42264
42265         New module 'fd-safer-flag'.
42266         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
42267         * lib/dup-safer.c (dup_safer_flag): Remove function.
42268         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
42269         * lib/fd-safer.c (fd_safer_flag): Remove function.
42270         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
42271         * modules/cloexec (configure.ac): Drop indicator macro.
42272         * modules/fd-safer-flag: New file.
42273         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
42274         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
42275         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
42276
42277 2009-12-11  Bruno Haible  <bruno@clisp.org>
42278
42279         Tests for module 'nl_langinfo'.
42280         * modules/nl_langinfo-tests: New file.
42281         * tests/test-nl_langinfo.sh: New file.
42282         * tests/test-nl_langinfo.c: New file.
42283
42284         New module 'nl_langinfo'.
42285         * lib/nl_langinfo.c: New file.
42286         * m4/nl_langinfo.m4: New file.
42287         * modules/nl_langinfo: New file.
42288         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
42289
42290 2009-12-11  Bruno Haible  <bruno@clisp.org>
42291
42292         Tests for module 'langinfo'.
42293         * modules/langinfo-tests: New file.
42294         * tests/test-langinfo.c: New file.
42295
42296         New module 'langinfo'.
42297         * lib/langinfo.in.h: New file.
42298         * m4/langinfo_h.m4: New file.
42299         * modules/langinfo: New file.
42300         * doc/posix-headers/langinfo.texi: Mention the new module.
42301
42302 2009-12-11  Bruno Haible  <bruno@clisp.org>
42303
42304         * lib/config.charset: Untabify.
42305
42306 2009-12-11  Bruno Haible  <bruno@clisp.org>
42307
42308         * modules/unistd-safer (configure.ac): Drop indicator macro.
42309
42310 2009-12-11  Bruno Haible  <bruno@clisp.org>
42311
42312         Move pipe2-safer code to its own file.
42313         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
42314         * lib/pipe-safer.c (pipe2_safer): Remove function.
42315         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
42316         (Makefile.am): Add it to lib_SOURCES.
42317
42318 2009-12-10  Bruno Haible  <bruno@clisp.org>
42319
42320         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
42321
42322 2009-12-10  Bruno Haible  <bruno@clisp.org>
42323
42324         Declare which arguments expect non-NULL values, for GCC and clang.
42325         * build-aux/arg-nonnull.h: New file.
42326         * modules/arg-nonnull: New file.
42327         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
42328         (inet_ntop, inet_pton): Use it.
42329         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
42330         (closedir, dirfd, opendir, scandir, alphasort): Use it.
42331         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
42332         (open, openat): Use it.
42333         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
42334         (fnmatch): Use it.
42335         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
42336         (getopt, getopt_long, getopt_long_only): Use it.
42337         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
42338         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
42339         Use it.
42340         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
42341         (iconv_open): Use it.
42342         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
42343         (strtoimax, strtoumax): Use it.
42344         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
42345         (duplocale): Use it.
42346         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
42347         (frexp, frexpl): Use it.
42348         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
42349         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
42350         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
42351         (tsearch, tfind, tdelete, twalk): Use it.
42352         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
42353         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
42354         sigpending): Use it.
42355         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
42356         (posix_spawn, posix_spawnp, posix_spawnattr_init,
42357         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
42358         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
42359         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
42360         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
42361         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
42362         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
42363         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
42364         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
42365         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
42366         Use it.
42367         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
42368         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
42369         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
42370         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
42371         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
42372         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
42373         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
42374         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
42375         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
42376         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
42377         strtoull, unsetenv): Use it.
42378         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
42379         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
42380         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
42381         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
42382         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
42383         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
42384         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
42385         (strcasecmp, strncasecmp): Use it.
42386         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
42387         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
42388         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
42389         rpl_setsockopt): Use it.
42390         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
42391         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
42392         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
42393         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
42394         (gettimeofday): Use it.
42395         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
42396         (times): Use it.
42397         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
42398         (uname): Use it.
42399         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
42400         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
42401         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
42402         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
42403         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
42404         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
42405         unlinkat, write): Use it.
42406         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
42407         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
42408         * lib/argv-iter.h: Include arg-nonnull.h.
42409         (_ATTRIBUTE_NONNULL_): Remove macro.
42410         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
42411         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
42412         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
42413         optimization.
42414         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
42415         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
42416         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
42417         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
42418         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
42419         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
42420         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
42421         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
42422         * modules/arpa_inet (Depends-on): Add arg-nonnull.
42423         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
42424         * modules/dirent (Depends-on): Add arg-nonnull.
42425         (Makefile.am): Insert arg-nonnull.h into dirent.h.
42426         * modules/fcntl-h (Depends-on): Add arg-nonnull.
42427         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
42428         * modules/fnmatch (Depends-on): Add arg-nonnull.
42429         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
42430         * modules/getopt-posix (Depends-on): Add arg-nonnull.
42431         (Makefile.am): Insert arg-nonnull.h into getopt.h.
42432         * modules/glob (Depends-on): Add arg-nonnull.
42433         (Makefile.am): Insert arg-nonnull.h into glob.h.
42434         * modules/iconv_open (Depends-on): Add arg-nonnull.
42435         (Makefile.am): Insert arg-nonnull.h into iconv.h.
42436         * modules/inttypes (Depends-on): Add arg-nonnull.
42437         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
42438         * modules/locale (Depends-on): Add arg-nonnull.
42439         (Makefile.am): Insert arg-nonnull.h into locale.h.
42440         * modules/math (Depends-on): Add arg-nonnull.
42441         (Makefile.am): Insert arg-nonnull.h into math.h.
42442         * modules/netdb (Depends-on): Add arg-nonnull.
42443         (Makefile.am): Insert arg-nonnull.h into netdb.h.
42444         * modules/search (Depends-on): Add arg-nonnull.
42445         (Makefile.am): Insert arg-nonnull.h into search.h.
42446         * modules/signal (Depends-on): Add arg-nonnull.
42447         (Makefile.am): Insert arg-nonnull.h into signal.h.
42448         * modules/spawn (Depends-on): Add arg-nonnull.
42449         (Makefile.am): Insert arg-nonnull.h into spawn.h.
42450         * modules/stdio (Depends-on): Add arg-nonnull.
42451         (Makefile.am): Insert arg-nonnull.h into stdio.h.
42452         * modules/stdlib (Depends-on): Add arg-nonnull.
42453         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
42454         * modules/string (Depends-on): Add arg-nonnull.
42455         (Makefile.am): Insert arg-nonnull.h into string.h.
42456         * modules/strings (Depends-on): Add arg-nonnull.
42457         (Makefile.am): Insert arg-nonnull.h into strings.h.
42458         * modules/sys_socket (Depends-on): Add arg-nonnull.
42459         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
42460         * modules/sys_stat (Depends-on): Add arg-nonnull.
42461         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
42462         * modules/sys_time (Depends-on): Add arg-nonnull.
42463         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
42464         * modules/sys_times (Depends-on): Add arg-nonnull.
42465         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
42466         * modules/sys_utsname (Depends-on): Add arg-nonnull.
42467         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
42468         * modules/time (Depends-on): Add arg-nonnull.
42469         (Makefile.am): Insert arg-nonnull.h into time.h.
42470         * modules/unistd (Depends-on): Add arg-nonnull.
42471         (Makefile.am): Insert arg-nonnull.h into unistd.h.
42472         * modules/wchar (Depends-on): Add arg-nonnull.
42473         (Makefile.am): Insert arg-nonnull.h into wchar.h.
42474         * modules/argv-iter (Depends-on): Add arg-nonnull.
42475         * tests/test-canonicalize.c (null_ptr): New function.
42476         (main): Use it.
42477         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
42478         (main): Use it.
42479         * tests/test-memmem.c (null_ptr): New function.
42480         (main): Use it.
42481         Reported by Jim Meyering.
42482
42483 2009-12-10  Bruno Haible  <bruno@clisp.org>
42484
42485         Use spaces for indentation, not tabs.
42486         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
42487         * m4/*.m4: Untabify.
42488         * build-aux/*.h: Untabify.
42489         * tests/**/*.[hc]: Untabify.
42490         * README: New section "Indent with spaces, not TABs", based on
42491         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
42492         * NEWS: Mention the change.
42493
42494 2009-12-10  Bruno Haible  <bruno@clisp.org>
42495
42496         pty test: Fix link error.
42497         * modules/pty-tests (Makefile.am): Add the default LDADD value to
42498         test_pty_LDADD.
42499
42500 2009-12-07  Simon Josefsson  <simon@josefsson.org>
42501
42502         * modules/pty: New file.
42503         * modules/pty-tests: New file.
42504         * m4/pty.m4: New file.
42505         * tests/test-pty.c: New file.
42506         * doc/glibc-headers/pty.texi: Modified.
42507         * doc/glibc-functions/forkpty.texi: Modified.
42508         * doc/glibc-functions/openpty.texi: Modified.
42509
42510 2009-12-10  Bruno Haible  <bruno@clisp.org>
42511
42512         Avoid syntax error in C++ mode.
42513         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
42514
42515 2009-12-10  Bruno Haible  <bruno@clisp.org>
42516
42517         Use sed with option -e.
42518         * gnulib-tool (func_version, func_emit_copyright_notice,
42519         func_emit_initmacro_end, func_import, func_create_testdir): Pass
42520         option -e to sed.
42521         * modules/link-warning (Makefile.am): Likewise.
42522
42523 2009-12-10  Jim Meyering  <meyering@redhat.com>
42524
42525         mgetgroups: do not write bytes beyond end of malloc'd buffer
42526         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
42527         username, we call getgroups with a one-element-shorter buffer,
42528         but still told it the length was original, max_n_groups.
42529
42530 2009-12-09  Eric Blake  <ebb9@byu.net>
42531
42532         cloexec: relax license
42533         * modules/cloexec (Maintainer): Add myself.
42534         (License): Use LGPL, not GPL.
42535
42536         link-warning: optimize generation
42537         * modules/link-warning (Makefile.am): Reduce process usage.
42538
42539 2009-12-09  Bruno Haible  <bruno@clisp.org>
42540
42541         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
42542         workaround was added on 2009-11-17.
42543
42544 2009-12-09  Jim Meyering  <meyering@redhat.com>
42545             Bruno Haible  <bruno@clisp.org>
42546
42547         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
42548         * modules/link-warning (Makefile.am): Make the comment-removing sed
42549         command more robust in the face of bootstrap-prepended comment lines.
42550
42551 2009-12-09  Bruno Haible  <bruno@clisp.org>
42552
42553         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
42554         most one group.
42555
42556 2009-12-09  Simon Josefsson <simon@josefsson.org>
42557             Bruno Haible  <bruno@clisp.org>
42558
42559         * build-aux/link-warning.h: Add copyright notice.
42560         * modules/link-warning (Makefile.am): Generate link-warning.h from
42561         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
42562         * NEWS: Mention change in link-warning module.
42563         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
42564         * modules/dirent (Makefile.am): Add dependency to dirent.h.
42565         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
42566         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
42567         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
42568         * modules/math (Makefile.am): Add dependency to math.h.
42569         * modules/search (Makefile.am): Add dependency to search.h.
42570         * modules/signal (Makefile.am): Add dependency to signal.h.
42571         * modules/spawn (Makefile.am): Add dependency to spawn.h.
42572         * modules/stdio (Makefile.am): Add dependency to stdio.h.
42573         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
42574         * modules/string (Makefile.am): Add dependency to string.h.
42575         * modules/strings (Makefile.am): Add dependency to strings.h.
42576         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
42577         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
42578         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
42579         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
42580         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
42581         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
42582         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
42583         * modules/unistd (Makefile.am): Add dependency to unistd.h.
42584         * modules/wchar (Makefile.am): Add dependency to wchar.h.
42585
42586 2009-12-09  Bruno Haible  <bruno@clisp.org>
42587
42588         fchdir: Optimize away rpl_fstat when possible.
42589         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
42590         REPLACE_OPEN_DIRECTORY.
42591         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
42592
42593 2009-12-09  Bruno Haible  <bruno@clisp.org>
42594
42595         * lib/fchdir.c: Update comment.
42596
42597 2009-12-09  Bruno Haible  <bruno@clisp.org>
42598
42599         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
42600
42601 2009-12-08  Eric Blake  <ebb9@byu.net>
42602
42603         fchdir: avoid memory leak on re-registration.
42604         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
42605
42606 2009-12-08  Jim Meyering  <meyering@redhat.com>
42607
42608         init.sh: avoid Solaris 10 /bin/sh portability problem
42609         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
42610         sourced script:
42611           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
42612           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
42613           bar
42614         tests/init.sh relied on that, accepting a --set-path=DIR argument,
42615         and two tests used that idiom.
42616         * tests/init.sh: Update suggested usage comments.
42617         (path_prepend_): New function, to be used in place
42618         of the --src-path=DIR option.
42619         (setup_): Move PATH-prepending code into path_prepend_.
42620         * tests/test-pread.sh: Adapt to new usage.
42621         * tests/test-xalloc-die.sh: Likewise.
42622
42623 2009-12-08  Simon Josefsson  <simon@josefsson.org>
42624
42625         * doc/gnulib.texi (Glibc pty.h): Add.
42626         * doc/glibc-functions/forkpty.texi: Add.
42627         * doc/glibc-functions/openpty.texi: Add.
42628         Suggested by Bruno Haible.
42629
42630 2009-12-08  Eric Blake  <ebb9@byu.net>
42631
42632         fchdir: fix logic bugs
42633         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
42634         * tests/test-fchdir.c (main): Enhance test.
42635         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
42636         is in use.
42637
42638         dup2: fix logic bugs
42639         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
42640         REPLACE_DUP2 to decide when rpl_dup2 is needed.
42641         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
42642         exists.
42643         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
42644
42645 2009-12-07  Eric Blake  <ebb9@byu.net>
42646
42647         unlink: fix m4 detection
42648         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
42649
42650         unistd-safer: add unit test
42651         * modules/unistd-safer-tests: New file.
42652         * tests/test-dup-safer.c: Likewise.
42653         * tests/test-cloexec.c (setmode): Avoid compiler warning.
42654         * tests/test-dup2.c (setmode): Likewise.
42655         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
42656
42657         cloexec: preserve text vs. binary across dup_cloexec
42658         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
42659         mode.
42660         * modules/dup2-tests (Depends-on): Add binary-io.
42661         * modules/cloexec-tests (Depends-on): Likewise.
42662         * tests/test-dup2.c (setmode, is_mode): New helpers.
42663         (main): Add tests that translation mode is preserved.
42664         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
42665         Reported by Bruno Haible.
42666
42667         mgetgroups: reduce duplicate listings
42668         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
42669         resulting array.
42670         * tests/test-chown.h (test_chown): Simplify client.
42671         * tests/test-lchown.h (test_lchown): Likewise.
42672
42673 2009-12-06  Bruno Haible  <bruno@clisp.org>
42674
42675         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
42676         value.
42677
42678 2009-12-06  Bruno Haible  <bruno@clisp.org>
42679
42680         * lib/progname.c: Include stdio.h, stdlib.h.
42681         (set_program_name): Reject a NULL argument.
42682
42683 2009-12-05  Eric Blake  <ebb9@byu.net>
42684
42685         pipe2-safer: new module
42686         * modules/pipe2-safer: New file.
42687         * lib/unistd-safer.h (pipe2_safer): New prototype.
42688         * lib/unistd--.h (pipe2): New wrapper.
42689         * lib/pipe-safer.c (pipe2_safer): New function.
42690         * modules/pipe (Depends-on): Add pipe2-safer.
42691         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
42692
42693         stdlib-safer: preserve cloexec flag for mkostemp[s]
42694         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
42695         fd_safer_flag.
42696
42697         unistd-safer: allow preservation of cloexec status via flag
42698         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
42699         prototypes.
42700         * lib/dup-safer.c (dup_safer_flag): New function.
42701         * lib/fd-safer.c (fd_safer_flag): Likewise.
42702         * modules/cloexec (configure.ac): Set witness.
42703
42704         test-dup2: enhance test
42705         * modules/dup2-tests (Depends-on): Add cloexec.
42706         * tests/test-dup2.c (main): Enhance test.
42707
42708         cloexec: add dup_cloexec
42709         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
42710         header and comments.
42711         * lib/cloexec.c (set_cloexec_flag): Add comments.
42712         (dup_cloexec): New function, with mingw implementation borrowed
42713         from...
42714         * lib/w32spawn.h (dup_noinherit): ...here.
42715         * modules/execute (Depends-on): Add cloexec.
42716         * modules/pipe (Depends-on): Likewise.
42717         * modules/cloexec (Depends-on): Add dup2.
42718         * modules/cloexec-tests (Files): New file.
42719         * tests/test-cloexec.c: Likewise.
42720
42721         test-xalloc-die: fix test for mingw
42722         * modules/xalloc-die-tests (Files): Add tests/init.sh.
42723         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
42724         directory and .exe suffix off argv[0] output.
42725
42726         test-fseeko: fix test for mingw
42727         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
42728         than undefining fseek, so test will pass on mingw.
42729
42730 2009-12-05  Bruno Haible  <bruno@clisp.org>
42731
42732         * lib/progname.h (set_program_name): Clarify specification.
42733         * lib/progname.c (set_program_name): Likewise.
42734         Reported by Jim Meyering.
42735
42736 2009-12-05  Jim Meyering  <meyering@redhat.com>
42737
42738         maint.mk: backslash-escape parens in default regexp
42739         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
42740         backslash-escape the literal parentheses.
42741
42742         maint.mk: news-date-check: use grep -E
42743         * top/maint.mk (today): Define a Make variable, not a...
42744         (news-date-check): ...shell variable.
42745         (news-date-regexp): Use the Make variable.
42746         Use grep's -E option.  Change the failing diagnostic to mention
42747         the variable, $(news-date-regexp).
42748
42749 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
42750
42751         maintainer-makefile: allow customization of NEWS entry format
42752         * top/maint.mk (news-date-regexp): New overridable variable.
42753         (news-date-check): Use it.
42754
42755 2009-12-04  Eric Blake  <ebb9@byu.net>
42756
42757         mgetgroups: add xgetgroups, and avoid ENOSYS failures
42758         * lib/mgetgroups.h (xgetgroups): New prototype.
42759         * lib/mgetgroups.c (xgetgroups): New wrapper.
42760         (mgetgroups): Handle ENOSYS.
42761         * modules/mgetgroups (Depends-on): Add realloc.
42762         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
42763
42764         mgetgroups: avoid argument promotion issues with -1
42765         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
42766         for invalid gid_t.
42767         * tests/test-chown.h (getegid, test_chown): Likewise.
42768         * tests/test-lchown.h (getegid, test_lchown): Likewise.
42769
42770 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
42771
42772         exclude: Fix header file problems.
42773         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
42774
42775 2009-12-01  Jim Meyering  <meyering@redhat.com>
42776
42777         fts: fts_open: do not let an empty string cause immediate failure
42778         This is required in support of GNU rm, for which the command
42779         "rm A '' B" must process and remove both A and B, in spite of
42780         the empty string argument.
42781         * lib/fts.c (fts_open): Do not let the presence of an empty string
42782         cause fts_open to fail immediately.  Most fts-using tools must be
42783         able to process all arguments, in order, and can be expected to
42784         diagnose such arguments themselves.
42785
42786 2009-11-30  Eric Blake  <ebb9@byu.net>
42787
42788         utimens: fix compilation error
42789         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
42790         Declare variable at right scope.
42791
42792 2009-11-29  Jim Meyering  <meyering@redhat.com>
42793
42794         bootstrap: handle perl-5.11's changed --version output
42795         * build-aux/bootstrap (get_version): Handle perl separately,
42796         since perl-5.11's --version output is different.
42797
42798 2009-11-28  Jim Meyering  <meyering@redhat.com>
42799
42800         userspec: depend on the inttostr module, too
42801         * modules/userspec (Depends-on): Add inttostr.
42802
42803         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
42804         * lib/userspec.c (parse_with_separator): Do not accept a user ID
42805         number of MAXUID when it evaluates to (uid_t) -1.
42806         Likewise for group ID.  Reported by Matt McCutchen in
42807         <http://savannah.gnu.org/bugs/?28113>
42808
42809         userspec: reformat to use spaces, not TABs
42810         * lib/userspec.c: Expand TABs to spaces.
42811         Add Emacs' "indent-tabs-mode: nil" hint.
42812
42813 2009-11-27  Eric Blake  <ebb9@byu.net>
42814
42815         getopt-gnu: flush out another BSD bug
42816         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
42817         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
42818         flush out BSD bug.
42819         * tests/test-getopt.h (test_getopt): End lists with NULL.
42820         * tests/test-getopt_long.h (test_getopt_long): Likewise.
42821         (test_getopt_long_posix): Enhance test.
42822         * modules/getopt-posix-tests (Depends-on): Add stdbool.
42823         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
42824         getopt-gnu.
42825         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
42826         Likewise.
42827
42828 2009-11-27  Simon Josefsson  <simon@josefsson.org>
42829
42830         * modules/idpriv-droptemp-tests (Notice): Fix text.
42831
42832 2009-11-27  Jim Meyering  <meyering@redhat.com>
42833
42834         test-xalloc-die: avoid spurious failure due to libtool argv difference
42835         In a libtool-enabled project, this test would fail due to a difference
42836         in the emitted program name, e.g.,
42837         -test-xalloc-die: memory exhausted
42838         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
42839         Use program to avoid that.
42840         * modules/xalloc-die-tests (Depends-on): Add progname.
42841         * tests/test-xalloc-die.c: Include progname.h".
42842         (program_name): Remove decl.
42843         (main): Call set_program_name.
42844         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
42845
42846 2009-11-26  Richard Jones  <rjones@redhat.com>
42847
42848         w32sock: leave win32 error in place.
42849         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
42850
42851 2009-11-26  Eric Blake  <ebb9@byu.net>
42852
42853         init.sh: suggest to use skip_ and fail_ functions in comments
42854         * tests/init.sh: Add a sentence.
42855
42856 2009-11-25  Bruno Haible  <bruno@clisp.org>
42857
42858         init.sh: add documentation in comments
42859         * tests/init.sh: Add some developer and user documentation.
42860
42861 2009-11-26  Jim Meyering  <meyering@redhat.com>
42862
42863         init.sh: accommodate even those who specify bogus srcdir manually
42864         * tests/init.sh: Normally, srcdir is guaranteed by automake and
42865         configure-time tests to be sanitized, so that there is no need to
42866         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
42867         (with no double quotes) suffices.  However, since tests may be
42868         invoked manually, and since you may explicitly set srcdir to the
42869         name of a directory containing spaces, do quote its uses here.
42870         * tests/test-pread.sh: Likewise.
42871         Suggested by Bruno Haible.
42872
42873         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
42874         * tests/test-pread.sh: Write no data into the pipe, because
42875         test-pread actually reads none.  This avoids a diagnostic,
42876         "bash: echo: write error: Broken pipe", that arises in the unusual
42877         event something is ignoring SIGPIPE, and might be interpreted
42878         as some sort of failure.  Reported by Bruno Haible.
42879
42880 2009-11-25  Jim Meyering  <meyering@redhat.com>
42881
42882         test-pread: cover failure with ESPIPE and EINVAL
42883         * tests/test-pread.c (main): Test for failure, too.
42884         * tests/test-pread.sh: Invoke with stdin on a pipe.
42885         Suggested by Eric Blake.
42886
42887         pread: improvement and fix
42888         * modules/pread (Depends-on): Depend on lseek, for portability to
42889         e.g., mingw.  Suggested by Eric Blake.
42890         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
42891
42892         unistd.in.h: correct declaration of pread
42893         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
42894         Reported by Richard W.M. Jones.
42895
42896         test-pread.sh: distribute the test script
42897         * modules/pread-tests (Files): Include test-pread.sh.
42898
42899         test-pread.sh: clean up
42900         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
42901         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
42902         That is unnecessary, since it's always ".".
42903         Suggestion from Eric Blake.
42904
42905         test-pread.sh: make executable
42906         * tests/test-pread.sh: Set executable bit.
42907         Reported by Eric Blake.
42908
42909         correct typo in test-pread.sh
42910         * tests/test-pread.sh: Add #! line.
42911
42912         test pread
42913         * tests/test-pread.c: New file.
42914         * tests/test-pread.sh: Likewise.
42915         * modules/pread-tests: Likewise.
42916
42917         pread: new module
42918         * modules/pread: New file.
42919         * lib/unistd.in.h (pread): Define/declare.
42920         * lib/pread.c (pread): New file.
42921         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
42922         * modules/unistd (Makefile.am): Substitute witnesses.
42923         * doc/posix-functions/pread.texi (pread): Update.
42924         * MODULES.html.sh: Add pread.
42925
42926 2009-11-25  Jim Meyering  <meyering@redhat.com>
42927
42928         tests/init.sh: new file to be used via most *.sh tests
42929         * tests/init.sh: New file.
42930
42931 2009-11-25  Eric Blake  <ebb9@byu.net>
42932
42933         utimens: work around older Linux failure with symlinks
42934         * lib/utimens.c (lutimensat_works_really): New variable.
42935         (fdutimens, lutimens): Use it to manage kernels that support
42936         nanosecond times on files, but not on symlinks.
42937         Reported by Ondřej Vašík.
42938
42939         utimes: fix configure grammar
42940         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
42941
42942 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
42943
42944         regex: Fix fastmap for multibyte character ranges.
42945         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
42946         characters when a multibyte character range is included.
42947
42948 2009-11-22  Andy Wingo  <wingo@pobox.com>
42949
42950         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
42951         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
42952
42953 2009-11-24  Bruno Haible  <bruno@clisp.org>
42954
42955         doc: Most *_l functions exist in MacOS X 10.5.
42956         * doc/posix-functions/duplocale.texi: Update platforms list.
42957         * doc/posix-functions/freelocale.texi: Likewise.
42958         * doc/posix-functions/newlocale.texi: Likewise.
42959         * doc/posix-functions/uselocale.texi: Likewise.
42960         * doc/posix-functions/isalnum_l.texi: Likewise.
42961         * doc/posix-functions/isalpha_l.texi: Likewise.
42962         * doc/posix-functions/isblank_l.texi: Likewise.
42963         * doc/posix-functions/iscntrl_l.texi: Likewise.
42964         * doc/posix-functions/isdigit_l.texi: Likewise.
42965         * doc/posix-functions/isgraph_l.texi: Likewise.
42966         * doc/posix-functions/islower_l.texi: Likewise.
42967         * doc/posix-functions/isprint_l.texi: Likewise.
42968         * doc/posix-functions/ispunct_l.texi: Likewise.
42969         * doc/posix-functions/isspace_l.texi: Likewise.
42970         * doc/posix-functions/isupper_l.texi: Likewise.
42971         * doc/posix-functions/iswalnum_l.texi: Likewise.
42972         * doc/posix-functions/iswalpha_l.texi: Likewise.
42973         * doc/posix-functions/iswblank_l.texi: Likewise.
42974         * doc/posix-functions/iswcntrl_l.texi: Likewise.
42975         * doc/posix-functions/iswctype_l.texi: Likewise.
42976         * doc/posix-functions/iswdigit_l.texi: Likewise.
42977         * doc/posix-functions/iswgraph_l.texi: Likewise.
42978         * doc/posix-functions/iswlower_l.texi: Likewise.
42979         * doc/posix-functions/iswprint_l.texi: Likewise.
42980         * doc/posix-functions/iswpunct_l.texi: Likewise.
42981         * doc/posix-functions/iswspace_l.texi: Likewise.
42982         * doc/posix-functions/iswupper_l.texi: Likewise.
42983         * doc/posix-functions/iswxdigit_l.texi: Likewise.
42984         * doc/posix-functions/isxdigit_l.texi: Likewise.
42985         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
42986         * doc/posix-functions/strcasecmp_l.texi: Likewise.
42987         * doc/posix-functions/strcoll_l.texi: Likewise.
42988         * doc/posix-functions/strfmon_l.texi: Likewise.
42989         * doc/posix-functions/strftime_l.texi: Likewise.
42990         * doc/posix-functions/strncasecmp_l.texi: Likewise.
42991         * doc/posix-functions/strxfrm_l.texi: Likewise.
42992         * doc/posix-functions/tolower_l.texi: Likewise.
42993         * doc/posix-functions/toupper_l.texi: Likewise.
42994         * doc/posix-functions/towctrans_l.texi: Likewise.
42995         * doc/posix-functions/towlower_l.texi: Likewise.
42996         * doc/posix-functions/towupper_l.texi: Likewise.
42997         * doc/posix-functions/wcscoll_l.texi: Likewise.
42998         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
42999         * doc/posix-functions/wctrans_l.texi: Likewise.
43000         * doc/posix-functions/wctype_l.texi: Likewise.
43001         * doc/glibc-functions/strptime_l.texi: Likewise.
43002         * doc/glibc-functions/strtod_l.texi: Likewise.
43003         * doc/glibc-functions/strtof_l.texi: Likewise.
43004         * doc/glibc-functions/strtol_l.texi: Likewise.
43005         * doc/glibc-functions/strtold_l.texi: Likewise.
43006         * doc/glibc-functions/strtoll_l.texi: Likewise.
43007         * doc/glibc-functions/strtoul_l.texi: Likewise.
43008         * doc/glibc-functions/strtoull_l.texi: Likewise.
43009         * doc/glibc-functions/wcsftime_l.texi: Likewise.
43010         * doc/glibc-functions/wcstod_l.texi: Likewise.
43011         * doc/glibc-functions/wcstof_l.texi: Likewise.
43012         * doc/glibc-functions/wcstol_l.texi: Likewise.
43013         * doc/glibc-functions/wcstold_l.texi: Likewise.
43014         * doc/glibc-functions/wcstoll_l.texi: Likewise.
43015         * doc/glibc-functions/wcstoul_l.texi: Likewise.
43016         * doc/glibc-functions/wcstoull_l.texi: Likewise.
43017
43018 2009-11-24  Bruno Haible  <bruno@clisp.org>
43019
43020         duplocale: Fix logic bug.
43021         * lib/duplocale.c: Don't include <langinfo.h>.
43022         (_NL_LOCALE_NAME): Remove macro.
43023         (rpl_duplocale): Use setlocale instead of nl_langinfo.
43024         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
43025
43026 2009-11-23  Jim Meyering  <meyering@redhat.com>
43027
43028         test-update-copyright: don't hard-code /usr/bin/perl
43029         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
43030         perl to print the current year.  Gilles Espinasse reported that
43031         the replaced use of perl was hard-coded as /usr/bin/perl.
43032
43033 2009-11-23  Bruno Haible  <bruno@clisp.org>
43034
43035         duplocale: Add support for glibc 2.3.x.
43036         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
43037
43038 2009-11-22  Bruno Haible  <bruno@clisp.org>
43039
43040         vasnprintf: Tiny optimization.
43041         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
43042         MacOS X.
43043
43044 2009-11-22  Bruno Haible  <bruno@clisp.org>
43045
43046         Tests for module 'duplocale'.
43047         * modules/duplocale-tests: New file.
43048         * tests/test-duplocale.c: New file.
43049
43050         New module 'duplocale'.
43051         * m4/duplocale.m4: New file.
43052         * lib/locale.in.h (duplocale): New declaration.
43053         * lib/duplocale.c: New file.
43054         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
43055         gl_LOCALE_H_DEFAULTS): New macros.
43056         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
43057         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
43058         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
43059         REPLACE_DUPLOCALE.
43060         * modules/duplocale: New file.
43061         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
43062
43063 2009-11-22  Bruno Haible  <bruno@clisp.org>
43064
43065         * modules/locale-tests (configure.ac): Test for newlocale function.
43066         * tests/test-locale.c: When the system has extended locale functions,
43067         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
43068
43069         locale: Make locale_t available when possible.
43070         * lib/locale.in.h: Include <xlocale.h> when it exists.
43071         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
43072         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
43073         * modules/locale (Depends-on): Add extensions.
43074         (Makefile.am): Also substitute HAVE_XLOCALE_H.
43075         * doc/posix-headers/locale.texi: Document the problem with locale_t.
43076
43077 2009-11-22  Bruno Haible  <bruno@clisp.org>
43078
43079         Add comments.
43080         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
43081         invocation.
43082         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
43083         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
43084         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
43085
43086 2009-11-22  Bruno Haible  <bruno@clisp.org>
43087
43088         error: account for the possibility of freopen (stdout).
43089         * lib/error.c: Include <unistd.h>.
43090         (flush_stdout): New function, extracted from error and error_at_line.
43091         Determine stdout's fd dynamically.
43092         (error, error_at_line): Invoke flush_stdout.
43093         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
43094         * modules/error (Depends-on): Add unistd.
43095
43096 2009-11-22  Bruno Haible  <bruno@clisp.org>
43097
43098         diffseq: Add comment.
43099         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
43100
43101 2009-11-22  Jim Meyering  <meyering@redhat.com>
43102
43103         c-stack: avoid defining an unused static function
43104         * lib/c-stack.c (find_stack_direction): Do not define this function
43105         when it will not be used.
43106
43107         diffseq: avoid spurious gcc warnings
43108         * lib/diffseq.h (IF_LINT2): Define.
43109         (compareseq): Use it to initialize two members of "part".
43110         This avoids two used-uninitialized warnings.
43111
43112 2009-11-21  Jim Meyering  <meyering@redhat.com>
43113
43114         c-stack: avoid "ignoring return value of `write'" warning
43115         * lib/c-stack.c: Include "ignore-value.h".
43116         (die): Explicitly ignore each write return value.
43117         * modules/c-stack (Depends-on): Add ignore-value.
43118
43119 2009-11-21  Bruno Haible  <bruno@clisp.org>
43120
43121         diffseq: reduce scope of variable 'best'.
43122         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
43123         variable, earlier used for two different purposes.
43124
43125 2009-11-21  Jim Meyering  <meyering@redhat.com>
43126
43127         diffseq: remove useless assignment to "best"
43128         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
43129         assignment.  At that point "best" is already guaranteed to be zero.
43130
43131 2009-11-20  Eric Blake  <ebb9@byu.net>
43132
43133         build: mention ftp redirector in release announcements
43134         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
43135         values that used to come from cfg.mk; mention FTP redirect URL.
43136         * build-aux/announce-gen: Mention the mirror list.
43137         Suggested by Karl Berry.
43138
43139         nanosleep: improve port to mingw
43140         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
43141         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
43142         LIB_NANOSLEEP, but only when needed.
43143         * modules/select (Link): Document LIBSOCKET.
43144         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
43145         enough.
43146
43147         nanosleep: work around cygwin bug
43148         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
43149         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
43150         bug.
43151         (getnow): Delete, not needed.
43152         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
43153         LIB_CLOCK_GETTIME.
43154         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
43155         clock-time, gettime.
43156         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
43157         bug.
43158         * modules/nanosleep-tests: New test.
43159         * tests/test-nanosleep.c: New file.
43160
43161         sleep: work around cygwin bug
43162         * lib/sleep.c (rpl_sleep): Work around the bug.
43163         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
43164         (gl_PREREQ_SLEEP): Delete unused macro.
43165         * modules/sleep (Depends-on): Add verify.
43166         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
43167         * modules/unistd (Makefile.am): Substitute witness.
43168         * lib/unistd.in.h (sleep): Update prototype.
43169         * doc/posix-functions/sleep.texi (sleep): Document the bug.
43170         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
43171         * modules/sleep-tests (Depends-on): Check for alarm.
43172
43173 2009-11-20  Jim Meyering  <meyering@redhat.com>
43174
43175         maint.mk: improve sc_prohibit_magic_number_exit
43176         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
43177         so it does not match uses like System.exit(1).
43178         Add comments showing how to correct all offenders.
43179
43180 2009-11-19  Eric Blake  <ebb9@byu.net>
43181
43182         xalloc-die-tests: add missing library
43183         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
43184
43185         test-xvasprintf: silence compiler warnings
43186         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
43187         empty string from gcc.
43188
43189 2009-11-19  Jim Meyering  <meyering@redhat.com>
43190
43191         xfreopen: new module, from coreutils
43192         * modules/xfreopen: New module.
43193         * lib/xfreopen.c: New file.
43194         * lib/xfreopen.h: New file.
43195         * MODULES.html.sh (File stream based Input/Output"): Add it.
43196
43197 2009-11-19  Eric Blake  <ebb9@byu.net>
43198
43199         manywarnings: depend on warnings
43200         * modules/manywarnings (Depends-on): Add warnings.
43201
43202         build: avoid compiler warnings
43203         * lib/select.c (rpl_select): Delete unused variable.
43204         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
43205
43206 2009-11-18  Eric Blake  <ebb9@byu.net>
43207
43208         tests: avoid false negative with --with-packager
43209         * tests/test-version-etc.sh: Discard packager information.
43210         * tests/test-argp-version-etc-1.sh: Likewise.
43211         Reported by Mike Frysinger.
43212
43213         utimens: fix regression on Solaris
43214         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
43215         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
43216         can only change fd timestamps via futimesat.  Instead, use an
43217         additional witness macro to avoid BSD bug.
43218         Reported by Jim Meyering.
43219
43220 2009-11-17  Eric Blake  <ebb9@byu.net>
43221
43222         usleep: use it to simplify tests
43223         * modules/stat-time-tests (Depends-on): Add usleep.
43224         (configure.ac): Drop usleep check.
43225         * modules/chown-tests (Depends-on, configure.ac): Likewise.
43226         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
43227         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
43228         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
43229         * modules/openat-tests (Depends-on, configure.ac): Likewise.
43230         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
43231         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
43232         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
43233         Likewise.
43234         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
43235         * tests/test-lchown.h (nap): Likewise.
43236         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
43237         * tests/test-stat-time.c (nap): Likewise.
43238         * tests/test-utimens-common.h (nap): Update comments.
43239
43240         usleep: new module
43241         * modules/usleep: New file.
43242         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
43243         * lib/usleep.c (usleep): Likewise.
43244         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
43245         * modules/unistd (Makefile.am): Substitute witnesses.
43246         * lib/unistd.in.h (usleep): Add declaration.
43247         * doc/pastposix-functions/usleep.texi (usleep): Document this.
43248         * MODULES.html.sh (Date and time): Likewise.
43249         * modules/usleep-tests (Depends-on): New test.
43250         * tests/test-usleep.c: New file.
43251
43252         chown: work around OpenBSD bug
43253         * lib/chown.c (rpl_chown): Work around the bug.
43254         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
43255         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
43256         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
43257         * modules/chown (Depends-on): Add stdbool.
43258         * modules/lchown (Depends-on): Likewise.
43259         * doc/posix-functions/chown.texi (chown): Document the bug.
43260         * doc/posix-functions/lchown.texi (lchown): Likewise.
43261         * tests/test-lchown.h (test_chown): Relax test.
43262
43263         mkstemp: avoid conflict with C++ keyword template
43264         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
43265         * lib/mkostemp.c (mkostemp): Likewise.
43266         * lib/mkostemps.c (mkostemps): Likewise.
43267         * lib/mkstemp.c (mkstemp): Likewise.
43268         * lib/mkstemps.c (mkstemps): Likewise.
43269
43270         xalloc-die-tests: optimize
43271         * tests/test-xalloc-die.sh: Reduce number of processes.
43272
43273 2009-11-17  Simon Josefsson  <simon@josefsson.org>
43274
43275         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
43276         patch from ludo@gnu.org (Ludovic Courtès).
43277
43278 2009-11-17  Jim Meyering  <meyering@redhat.com>
43279
43280         version-etc: use proper license string
43281         * modules/version-etc (License): Use LGPL, not LGPLv3+.
43282         * modules/version-etc-fsf: Likewise.
43283
43284 2009-11-17  Simon Josefsson  <simon@josefsson.org>
43285
43286         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
43287         printed to stdout.  Deal with EOL differences.
43288
43289 2009-11-17  Eric Blake  <ebb9@byu.net>
43290
43291         unsetenv: work around Solaris bug
43292         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
43293         * lib/unsetenv.c (rpl_unsetenv): Work around it.
43294         Reported by Jim Meyering.
43295
43296         vasnprintf: avoid compiler warnings
43297         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
43298         variables.
43299         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
43300
43301 2009-11-17  Simon Josefsson  <simon@josefsson.org>
43302
43303         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
43304         settings since xalloc-die is no longer the self test,
43305         xalloc-die.sh is.
43306
43307 2009-11-17  Jim Meyering  <meyering@redhat.com>
43308
43309         test-xalloc-die.sh: make the code agree with the commit log
43310         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
43311         at the end, just in case you happen to have a test-xalloc-die
43312         program in some other PATH directory.
43313
43314         test-xalloc-die.sh: fix a portability bug
43315         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
43316         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
43317         Otherwise, argv[0] (as often seen in diagnostics) would be too
43318         system-dependent, sometimes with, and sometimes without the leading "./".
43319
43320         version-etc-fsf: relax license to LGPLv3+
43321         * modules/version-etc-fsf (License): Relax license.
43322
43323 2009-11-16  Eric Blake  <ebb9@byu.net>
43324
43325         xalloc-die-tests: avoid printing null pointer
43326         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
43327         shell script.
43328         * tests/test-xalloc-die.c (program_name): Declare.
43329         * tests/test-xalloc-die.sh (tmpfiles): New file.
43330
43331         setenv, unsetenv: work around various bugs
43332         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
43333         (setenv) [HAVE_SETENV]: Work around bugs.
43334         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
43335         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
43336         for bugs.
43337         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
43338         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
43339         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
43340         * modules/stdlib (Makefile.am): Update substitutions.
43341         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
43342         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
43343         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
43344         * modules/setenv-tests: New test.
43345         * modules/unsetenv-tests: Likewise.
43346         * tests/test-setenv.c: New file.
43347         * tests/test-unsetenv.c: Likewise.
43348
43349 2009-11-16  Jim Meyering  <meyering@redhat.com>
43350
43351         version-etc: relax license to LGPLv3+
43352         * modules/version-etc (License): Relax license.
43353
43354         better AC_REQUIRE expanded-before-required-warning avoidance
43355         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
43356         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
43357         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
43358         which is no longer needed.
43359
43360 2009-11-16  Eric Blake  <ebb9@byu.net>
43361
43362         test-freading: clean up temporary file
43363         * tests/test-freading.c (main): Remove file on success, and use
43364         ASSERT more liberally.
43365         Reported by Jim Meyering.
43366
43367 2009-11-16  Jim Meyering  <meyering@redhat.com>
43368
43369         avoid new AC_REQUIRE expanded-before-required warnings
43370         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
43371         merely using it.
43372         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
43373         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
43374
43375 2009-11-15  Simon Josefsson  <simon@josefsson.org>
43376
43377         * tests/test-xalloc-die.c: New file.
43378         * modules/xalloc-die-tests: New file.
43379         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
43380         XFAIL_TESTS so it can be appended by modules.
43381
43382 2009-11-15  Simon Josefsson  <simon@josefsson.org>
43383
43384         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
43385         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
43386
43387 2009-11-14  Eric Blake  <ebb9@byu.net>
43388
43389         fnmatch: avoid compiler warning
43390         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
43391         to silence compiler warning about mismatch signedness in ?:.
43392         Reported by Robert Millan.
43393
43394         intprops: add double-inclusion guard
43395         * lib/intprops.h: Allow idempotent includes.
43396         Suggested by Bruce Korb.
43397
43398         openat: detect Solaris fchownat bug
43399         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
43400         penalizing glibc chownat when only lchownat is broken.
43401         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
43402         trailing slash bugs.
43403         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
43404         * modules/openat-tests (Files): Include more files.
43405         (Depends-on): Add mgetgroups, sleep, stat-time.
43406         (configure.ac): Add additional checks.
43407         (Makefile.am): Build new test.
43408         * tests/test-fchownat.c: New file.
43409
43410         lchown: detect Solaris and FreeBSD bug
43411         * lib/lchown.c (rpl_lchown): Work around bug.
43412         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
43413         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43414         * modules/unistd (Makefile.am): Populate it.
43415         * lib/unistd.in.h (lchown): Update declaration.
43416         * doc/posix-functions/lchown.texi (lchown): Document the bug.
43417         * modules/lchown-tests: New file.
43418         * tests/test-lchown.h (test_lchown): Likewise.
43419         * tests/test-lchown.c (main): Likewise.
43420
43421         chown: detect Solaris and FreeBSD bug
43422         * lib/chown.c (rpl_chown): Work around bug.
43423         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
43424         (gl_PREREQ_CHOWN): Delete.
43425         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43426         * modules/unistd (Makefile.am): Populate it.
43427         * lib/unistd.in.h (chown): Update declaration.
43428         * lib/lchown.c (chown): Update client.
43429         * modules/lchown (Depends-on): Add lstat.
43430         * doc/posix-functions/chown.texi (chown): Document the bug.
43431         * doc/posix-functions/getgroups.texi (getgroups): Document
43432         getgroups pitfall.
43433         * modules/chown-tests: New file.
43434         * tests/test-chown.h (test_chown): Likewise.
43435         * tests/test-chown.c (main): Likewise.
43436
43437 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
43438
43439         gnulib-tool: correctly detect absence of m4 directories
43440         * gnulib-tool: Avoid extra newline on data passed to wc -l.
43441
43442 2009-11-14  Jim Meyering  <meyering@redhat.com>
43443
43444         maint.mk: Prohibit inclusion of "xalloc.h" without use.
43445         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
43446
43447 2009-11-14  John W. Eaton  <jwe@gnu.org>
43448
43449         strftime.h: wrap function declaration in extern "C" block
43450         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
43451
43452 2009-11-13  Eric Blake  <ebb9@byu.net>
43453
43454         getgroups: avoid compiler warning
43455         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
43456
43457         getgroups: work around FreeBSD bug
43458         * lib/getgroups.c (rpl_getgroups): Work around the bug.
43459         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
43460         * doc/posix-functions/getgroups.texi (getgroups): Document it.
43461         * tests/test-getgroups.c (main): Fix buffer overrun.
43462
43463         getgroups: avoid compilation failure
43464         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
43465         * modules/getgroups (Depends-on): Add stdint.
43466
43467 2009-11-13  Jim Meyering  <meyering@redhat.com>
43468
43469         test-getgroups: avoid compilation failure
43470         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
43471
43472 2009-11-13  Eric Blake  <ebb9@byu.net>
43473
43474         mgetgroups: new module, taken from coreutils
43475         * modules/mgetgroups: New file.
43476         * lib/mgetgroups.h: Likewise.
43477         * lib/mgetgroups.c (mgetgroups): Likewise.
43478         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
43479         * MODULES.html.sh (Users and groups): Mention it.
43480
43481         getgroups: don't expose GETGROUPS_T to user
43482         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
43483         an element at a time if GETGROUPS_T is wrong size.
43484         * lib/getugroups.h (getugroups): Change signature.
43485         * lib/unistd.in.h (getgroups): Likewise.
43486         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
43487         signature needs fixing.
43488         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
43489         AC_TYPE_GETGROUPS.
43490         * modules/group-member (Depends-on): Add getgroups.
43491         * lib/group-member.c (group_info, get_group_info): Use gid_t.
43492         (group_member): Rely on getgroups replacement.
43493         * lib/getugroups.c (getugroups): Use gid_t.
43494         * tests/test-getgroups.c (main): Likewise.
43495         * NEWS: Mention the signature change.
43496         * doc/posix-functions/getgroups.texi (getgroups): Mention the
43497         problem with signature.
43498         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
43499         GETGROUPS_T is still useful for setgroups.
43500
43501         getgroups, getugroups: provide stubs for mingw
43502         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
43503         * lib/getugroups.c (getugroups): Likewise.
43504         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
43505         function.  Modernize replacement scheme.
43506         (gl_PREREQ_GETGROUPS): Delete.
43507         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
43508         * modules/getgroups (configure.ac): Declare witness.
43509         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
43510         * modules/unistd (Depends-on): Substitute witness.
43511         * lib/unistd.in.h (getgroups): Declare replacement.
43512
43513         getgroups: avoid calling exit
43514         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
43515         drop xalloc.
43516         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
43517         dependencies.
43518         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
43519         exiting, in the rare case of malloc failure.
43520
43521         getgroups: fix logic error
43522         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
43523         has more than 20 groups.
43524         * modules/getgroups-tests: New test.
43525         * tests/test-getgroups.c: New file.
43526
43527 2009-11-13  Simon Josefsson  <simon@josefsson.org>
43528
43529         * tests/test-base64.c: Improve.
43530
43531 2009-11-13  Simon Josefsson  <simon@josefsson.org>
43532
43533         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
43534         Blake <ebb9@byu.net>.
43535
43536 2009-11-13  Simon Josefsson  <simon@josefsson.org>
43537
43538         * tests/test-xvasprintf.c: Add %s%s related checks.
43539
43540 2009-11-12  Eric Blake  <ebb9@byu.net>
43541
43542         version-etc: match standards.texi style
43543         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
43544         and use <> only for URLs.
43545
43546 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
43547
43548         fts: do not fail on a submount during traversal
43549         * lib/fts.c (fts_build): Read the stat info again after opening
43550         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
43551         Original report at http://bugzilla.redhat.com/501848.
43552
43553 2009-11-12  Jim Meyering  <meyering@redhat.com>
43554
43555         bootstrap: sync from coreutils
43556         * build-aux/bootstrap (bootstrap_epilogue): New function.
43557         Use git_modules_config in one more place.  This make bootstrap's
43558         --gnulib-srcdir option more useful for testing.
43559
43560         bootstrap: generalize autoheader check
43561         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
43562         AC_CONFIG_HEADERS.
43563
43564 2009-11-11  Eric Blake  <ebb9@byu.net>
43565
43566         mkfifoat: use new modules for Solaris and BSD bugs
43567         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
43568         * lib/mkfifoat.c (mknodat): Split...
43569         * lib/mknodat.c (mknodat): ...into new file.
43570         * modules/mkfifoat (Files): Ship new file.
43571         (Depends-on): Add mkfifo, mknod.
43572         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
43573         (Depends-on): Add symlink.
43574         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
43575         redundant with test_mkfifo.h.
43576         (do_mkfifoat, do_mknodat): New helpers.
43577
43578         mknod: new module
43579         * modules/mknod: New file.
43580         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
43581         * lib/mknod.c (mknod): Likewise.
43582         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
43583         defaults.
43584         * modules/sys_stat (Makefile.am): Substitute them.
43585         * lib/sys_stat.in.h (mknod): Declare replacement.
43586         * MODULES.html.sh (Support for systems lacking POSIX:2008):
43587         Document it.
43588         * doc/posix-functions/mknod.texi (mknod): Likewise.
43589         * modules/mknod-tests: New test.
43590         * tests/test-mknod.c: Likewise.
43591
43592         mkfifo: new module
43593         * modules/mkfifo: New file.
43594         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
43595         * lib/mkfifo.c (mkfifo): Likewise.
43596         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
43597         defaults.
43598         * modules/sys_stat (Makefile.am): Substitute them.
43599         * lib/sys_stat.in.h (mkfifo): Declare replacement.
43600         * MODULES.html.sh (Support for systems lacking POSIX:2008):
43601         Document it.
43602         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
43603         * modules/mkfifo-tests: New test.
43604         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
43605         from test-mkfifoat.c.
43606         * tests/test-mkfifo.c: New file.
43607
43608         readlink: detect FreeBSD bug
43609         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
43610         slash on symlink.
43611         * doc/posix-functions/readlink.texi (readlink): Document the bug.
43612         * tests/test-readlink.h (test_readlink): Enhance test.
43613
43614         symlink: detect FreeBSD bug
43615         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
43616         slash on symlink.
43617         * doc/posix-functions/symlink.texi (symlink): Document the bug.
43618         * tests/test-symlink.h (test_symlink): Enhance test.
43619
43620 2009-11-10  Eric Blake  <ebb9@byu.net>
43621
43622         link: detect FreeBSD bug
43623         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
43624         symlink.
43625         * doc/posix-functions/link.texi (link): Document the bug.
43626         * tests/test-link.h (test_link): Enhance test.
43627         * tests/test-linkat.c (main): Update caller.
43628
43629         unlink, remove: detect FreeBSD bug
43630         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
43631         slash on symlink.
43632         * doc/posix-functions/unlink.texi (unlink): Document the bug.
43633         * doc/posix-functions/remove.texi (remove): Likewise.
43634         * tests/test-unlink.h (test_unlink): Enhance test.
43635         * tests/test-remove.c (main): Likewise.
43636
43637 2009-11-09  Eric Blake  <ebb9@byu.net>
43638
43639         rename: detect FreeBSD bug
43640         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
43641         slash on symlink.
43642         * modules/renameat-tests (Depends-on): Add filenamecat.
43643         * tests/test-rename.h (test_rename): Allow one more errno.
43644         * tests/test-renameat.c (main): Likewise.
43645         * doc/posix-functions/rename.texi (rename): Document the bug.
43646
43647         open: detect FreeBSD bug
43648         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
43649         symlink.
43650         * doc/posix-functions/open.texi (open): Document the bug.
43651         * doc/posix-functions/utimes.texi (utimes): Likewise.
43652         * tests/test-open.h (test_open): Add parameters, and test symlink
43653         handling.
43654         * tests/test-open.c (main): Adjust caller.
43655         * tests/test-fcntl-safer.c (main): Likewise.
43656         * modules/open-tests (Depends-on): Add stdbool, symlink.
43657         * modules/fcntl-safer-tests (Depends-on): Likewise.
43658         * tests/test-openat.c (main): Add test-open tests.
43659
43660         stat: detect FreeBSD bug
43661         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
43662         symlink.
43663         * doc/posix-functions/stat.texi (stat): Document the bug.
43664         * tests/test-stat.h (test_stat_func): Add argument.
43665         * tests/test-stat.c (main): Adjust caller.
43666         * tests/test-fstatat.c (main): Likewise.
43667         * modules/stat-tests (Depends-on): Add stdbool, symlink.
43668         Reported by Jim Meyering.
43669
43670 2009-11-09  James Youngman  <jay@gnu.org>
43671
43672         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
43673         * lib/strftime.c: Correct placement of #include "ignore-value.h".
43674
43675 2009-11-08  Jim Meyering  <meyering@redhat.com>
43676
43677         utimens: remove invalid futimesat call
43678         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
43679         It used the file descriptor of the target file as the DIR_FD
43680         parameter and NULL as the file name.  That caused failure with
43681         errno == EFAULT on FreeBSD-8.0-rc2
43682
43683 2009-11-07  Eric Blake  <ebb9@byu.net>
43684
43685         fflush, freadseek: use fseeko, not fseek
43686         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
43687         (clear_ungetc_buffer): Avoid potential problems on large files.
43688         * lib/freadseek.c (freadseek): Likewise.
43689         * modules/freadseek (Depends-on): Add fseeko.
43690         * modules/fseek (configure.ac): Set a witness.
43691         * tests/test-fflush.c (main): Use fseeko.
43692         * tests/test-fpurge.c (fseek): Disable link warning.
43693         * tests/test-freadable.c (fseek): Likewise.
43694         * tests/test-freading.c (fseek): Likewise.
43695         * tests/test-fseeko.c (fseek): Likewise.
43696         * tests/test-ftell.c (fseek): Likewise.
43697         * tests/test-ftello.c (fseek): Likewise.
43698         * tests/test-fwritable.c (fseek): Likewise.
43699         * tests/test-fwriting.c (fseek): Likewise.
43700
43701 2009-11-06  Simon Josefsson  <simon@josefsson.org>
43702
43703         * modules/memchr (Depends-on): Drop getpagesize dependency.
43704
43705 2009-11-06  Simon Josefsson  <simon@josefsson.org>
43706
43707         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
43708         Reported by Ludovic Courtès.
43709         * build-aux/pmccabe2html: Improve example usage.
43710         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
43711
43712 2009-11-06  Jim Meyering  <meyering@redhat.com>
43713
43714         do-release-commit-and-tag: New module.
43715         Automate the release-commit and tag process.
43716         * build-aux/do-release-commit-and-tag: New script, from coreutils.
43717         * modules/do-release-commit-and-tag: New file.
43718         * MODULES.html.sh (Support for maintaining and releasing): Add it.
43719
43720 2009-11-06  Simon Josefsson  <simon@josefsson.org>
43721
43722         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
43723         because test-select.c uses inet_pton.
43724
43725 2009-11-06  Simon Josefsson  <simon@josefsson.org>
43726
43727         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
43728         GETADDRINFO_LIB.  Bump serial number.
43729         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
43730         Suggested by Eric Blake <ebb9@byu.net>.
43731
43732 2009-11-05  Eric Blake  <ebb9@byu.net>
43733
43734         strtod: detect darwin bug
43735         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
43736         Reported by Leo Davis.
43737
43738         freopen-safer: new module
43739         * modules/freopen-safer: New module.
43740         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
43741         * lib/freopen-safer.c (freopen_safer): New file.
43742         * lib/stdio-safer.h (freopen_safer): New declaration.
43743         * lib/stdio--.h (freopen): New override.
43744         * MODULES.html.sh (File stream based Input/Output): Mention it.
43745         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
43746         freopen-safer module.
43747         * doc/posix-functions/stderr.texi (stderr): Likewise.
43748         * doc/posix-functions/stdin.texi (stdin): Likewise.
43749         * doc/posix-functions/stdout.texi (stdout): Likewise.
43750         * modules/freopen-safer-tests: New test.
43751         * tests/test-reopen-safer.c: New file.
43752
43753 2009-11-05  Jim Meyering  <meyering@redhat.com>
43754
43755         maint.mk: Prohibit inclusion of "close-stream.h" without use.
43756         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
43757
43758 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43759
43760         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
43761
43762 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43763
43764         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
43765
43766 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43767
43768         Fix link error.
43769         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
43770         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43771
43772 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43773
43774         * tests/test-func.c: Also test value of __func__.
43775
43776 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43777
43778         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
43779         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
43780
43781 2009-11-05  Bruno Haible  <bruno@clisp.org>
43782
43783         Fix link error.
43784         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
43785         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43786         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
43787
43788 2009-11-05  Bruno Haible  <bruno@clisp.org>
43789
43790         Tests for module 'inet_pton'.
43791         * modules/inet_pton-tests: New file.
43792         * tests/test-inet_pton.c: New file.
43793
43794 2009-11-05  Bruno Haible  <bruno@clisp.org>
43795
43796         Tests for module 'inet_ntop'.
43797         * modules/inet_ntop-tests: New file.
43798         * tests/test-inet_ntop.c: New file.
43799
43800 2009-11-04  Eric Blake  <ebb9@byu.net>
43801
43802         stdlib-safer: wrap all mkstemp variants
43803         * modules/mkostemp (configure.ac): Set witness.
43804         * modules/mkostemps (configure.ac): Likewise.
43805         * modules/mkstemps (configure.ac): Likewise.
43806         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
43807         (mkstemps_safer): Wrap more functions.
43808         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
43809         wrapping.
43810         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
43811         (mkstemps_safer): Implement the wrappers.
43812
43813         mkstemps, mkostemps: new modules
43814         * modules/mkostemps: New module.
43815         * modules/mkstemps: Likewise.
43816         * lib/mkostemps.c (mkostemps): New file.
43817         * lib/mkstemps.c (mkstemps): Likewise.
43818         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
43819         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
43820         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
43821         * modules/stdlib (Makefile.am): Substitute them.
43822         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
43823         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
43824         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
43825         * doc/gnulib.texi (Glibc stdlib.h): Include them.
43826         * MODULES.html.sh (File system functions): Mention them.
43827
43828         tempname: resync from glibc
43829         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
43830         same values for __GT_FILE as glibc.  Abort even when assertions
43831         are disabled.
43832         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
43833         match its value otherwise.  Allow idempotent inclusion.
43834         * lib/mkdtemp.c (mkdtemp): Adjust caller.
43835         * lib/mkostemp.c (mkostemp): Likewise.
43836         * lib/mkstemp.c (mkstemp): Likewise.
43837         * lib/tmpfile.c (tmpfile): Likewise.
43838         * NEWS: Document this.
43839
43840         utimens: fix use of futimens on older Linux
43841         * lib/utimens.c (fdutimens): Use updated, rather than original,
43842         timespec to avoid bug in older Linux kernel.
43843         Reported by Simon Josefsson.
43844
43845 2009-11-04  Bruno Haible  <bruno@clisp.org>
43846
43847         Make num_processors more flexible and consistent.
43848         * lib/nproc.h (enum nproc_query): New type.
43849         (num_processors): Add a 'query' argument.
43850         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
43851         (num_processors): Add a 'query' argument. Test the value of the
43852         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
43853         mingw, count the number of CPUs available for the current process.
43854         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
43855         Check for sched_getaffinity and sched_getaffinity_np.
43856         * modules/nproc (Depends-on): Add c-ctype, extensions.
43857         * NEWS: Mention the change.
43858
43859 2009-11-03  Bruno Haible  <bruno@clisp.org>
43860
43861         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
43862
43863 2009-11-03  Jim Meyering  <meyering@redhat.com>
43864
43865         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
43866         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
43867         if it is defined.
43868
43869 2009-11-02  Eric Blake  <ebb9@byu.net>
43870
43871         mktime, timegm: share common declaration
43872         * lib/mktime-internal.h: New file.
43873         * lib/mktime.c: Use it rather than open-coding a declaration.
43874         * lib/timegm.c: Likewise.
43875         * modules/mktime (Files): Ship it.
43876         * modules/timegm (Files): Likewise.
43877         Suggested by Bruno Haible.
43878
43879         test-update-copyright: update test to match script changes
43880         * tests/test-update-copyright.sh: Avoid hard-coding perl
43881         location.  Don't update *.bak created by earlier runs.
43882
43883 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
43884             Simon Josefsson  <simon@josefsson.org>
43885             Bruno Haible  <bruno@clisp.org>
43886
43887         Fix link error on Solaris 8.
43888         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
43889         also in libnsl. Define also INET_PTON_LIB.
43890         * modules/inet_pton (Link): New section.
43891
43892 2009-11-02  Simon Josefsson  <simon@josefsson.org>
43893             Bruno Haible  <bruno@clisp.org>
43894
43895         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
43896         * modules/inet_ntop (Link): New section.
43897         Reported by Boyan Kasarov <bkasarov@gmail.com>.
43898
43899 2009-11-02  Eric Blake  <ebb9@byu.net>
43900
43901         maint: avoid compiler warnings in m4 macros
43902         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
43903         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
43904
43905 2009-11-02  Simon Josefsson  <simon@josefsson.org>
43906
43907         * m4/pmccabe2html.m4: Remove file.
43908         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
43909         function.  Change maintainer.
43910         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
43911         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
43912         Courtès).
43913
43914 2009-10-31  Eric Blake  <ebb9@byu.net>
43915
43916         fseeko: fix m4 regression
43917         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
43918         regression from 2009-10-27.
43919         Reported by Ralf Wildenhues.
43920
43921 2009-10-31  Jim Meyering  <meyering@redhat.com>
43922
43923         inttostr: aesthetics and improved (compile-time) safety
43924         Define inttype_is_signed rather than inttype_is_unsigned,
43925         since the sole use is via "#if inttype_is_signed".
43926         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
43927         inttype_is_unsigned.
43928         * lib/offtostr.c (inttype_is_signed): Likewise.
43929         * lib/uinttostr.c (inttype_is_signed): Likewise.
43930         * lib/umaxtostr.c (inttype_is_signed): Likewise.
43931         * lib/inttostr.c (inttostr): Use verify to cross-check the
43932         inttype_is_signed value and the signedness of the actual type.
43933         * modules/inttostr (Depends-on): Add verify.
43934
43935 2009-10-30  Eric Blake  <ebb9@byu.net>
43936
43937         build: avoid compiler warnings
43938         * lib/fchmodat.c (lchmod): Mark unused variables.
43939         * lib/getopt.c (_getopt_initialize): Likewise.
43940         * lib/mktime.c (__mktime_internal): Provide prototype.
43941         * lib/inttostr.c (inttostr): Avoid compiler warning even with
43942         older gcc that do not understand #pragma GCC diagnostic.
43943         * lib/uinttostr.c (inttype_is_unsigned): Define.
43944         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
43945
43946 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
43947
43948         stat: fix compilation on AIX
43949         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
43950         only see struct stat64.
43951
43952 2009-10-30  Eric Blake  <ebb9@byu.net>
43953
43954         exclude: make more robust
43955         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
43956         rather than masking a coding bug.
43957         Suggested by Bruno Haible.
43958
43959 2009-10-30  Jim Meyering  <meyering@redhat.com>
43960
43961         perl scripts: remove #!/usr/bin/perl in favor of more portable...
43962         Rather than putting #!/usr/bin/perl on the first line,
43963         start with a variant of what's recommended by "man perlrun" that
43964         invokes the first "perl" program from your shell's search path.
43965         * build-aux/gitlog-to-changelog: Replace #!... as above.
43966         Add a "Local Variables" perl mode setting.
43967         Prompted by a patch from Ludovic Courtès.
43968         Improved by Eric Blake.
43969         * build-aux/useless-if-before-free: Likewise.
43970         * build-aux/announce-gen: Likewise.
43971         * build-aux/update-copyright: Likewise.
43972
43973 2009-10-29  Eric Blake  <ebb9@byu.net>
43974
43975         filenamecat-lgpl: adjust clients
43976         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
43977         filenamecat.
43978         * modules/renameat (Depends-on): Likewise.
43979
43980         filenamecat: split into filenamecat-lgpl
43981         * modules/filenamecat-lgpl: New module.
43982         * modules/filenamecat (Files): Move library-safe files into
43983         filenamecat-lgpl.
43984         (Depends-on): Add filenamecat-lgpl.
43985         (configure.ac): Declare witness.
43986         * lib/filenamecat.h (file_name_concat): Only declare when using
43987         GPL module.
43988         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
43989         Move...
43990         * lib/filenamecat-lgpl.c: ...into new file.
43991         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
43992         (gl_FILE_NAME_CONCAT): Use it.
43993         * MODULES.html.sh (File system functions): Mention new module.
43994
43995         argp: avoid memory leak
43996         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
43997         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
43998         base_name, since the latter malloc()s and can call exit().
43999         Leak introduced 2006-07-03.
44000
44001         dirname-lgpl: adjust clients that don't need full dirname
44002         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
44003         * modules/filenamecat (Depends-on): Likewise.
44004         * modules/linkat (Depends-on): Likewise.
44005         * modules/mkancesdirs (Depends-on): Likewise.
44006         * modules/mkdir (Depends-on): Likewise.
44007         * modules/openat (Depends-on): Likewise.
44008         * modules/savewd (Depends-on): Likewise.
44009         * modules/rename (Depends-on): Likewise.
44010         (License): Relax license.
44011         * modules/mkdir-tests (Depends-on): Drop progname.
44012         (Makefile.am): Delete unneeded LDADD.
44013         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
44014
44015         dirname: split into dirname-lgpl
44016         * modules/dirname-lgpl: New module.
44017         * modules/dirname (Files): Move library-safe files into
44018         dirname-lgpl.
44019         (Depends-on): Add dirname-lgpl.
44020         (configure.ac): Declare witness.
44021         * modules/double-slash-root (License): Relax license.
44022         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
44023         module.
44024         * lib/dirname.c (dir_len, mdir_name): Move...
44025         * lib/dirname-lgpl.c: ...into new file.
44026         * lib/basename.c (last_component, base_len): Move...
44027         * lib/basename-lgpl.c: ...into new file.
44028         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
44029         (gl_DIRNAME): Use it.
44030         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
44031         Mention new module.
44032         * modules/dirname-tests (Depends-on): Add progname.
44033         * tests/test-dirname.c (program_name): Delete.
44034
44035         mkdir: make safe for libraries
44036         * modules/mkdir (Depends-on): Drop xalloc.
44037         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
44038         exit.
44039
44040         tests: avoid some compiler warnings
44041         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
44042         literals.
44043         * tests/test-memchr.c (main): Avoid type mismatch.
44044         * tests/test-arpa_inet.c (main): Avoid unused parameters.
44045         * tests/test-base64.c (main): Likewise.
44046         * tests/test-getdelim.c (main): Likewise.
44047         * tests/test-gethostname.c (main): Likewise.
44048         * tests/test-getline.c (main): Likewise.
44049         * tests/test-netinet_in.c (main): Likewise.
44050         * tests/test-select.c (open_server_socket, main): Likewise.
44051         * tests/test-select-stdin.c (main): Likewise.
44052         * tests/test-sockets.c (main): Likewise.
44053         * tests/test-strsignal.c (main): Likewise.
44054         * tests/test-sys_select.c (main): Likewise.
44055         * tests/test-sys_socket.c (main): Likewise.
44056         * tests/test-u64.c (main): Likewise.
44057         * tests/test-xfprintf-posix.c (main): Likewise.
44058         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
44059
44060         sockets: avoid compiler warning
44061         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
44062
44063         maint: detect usage(1) and other suspicious exits
44064         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
44065
44066 2009-10-29  Jim Meyering  <meyering@redhat.com>
44067
44068         timespec: long-to-int truncation could make timespec_cmp malfunction
44069         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
44070         a multiple of 2^32 nanoseconds as no difference.
44071
44072 2009-10-28  Jim Meyering  <meyering@redhat.com>
44073
44074         fprintftime: wrap macro code argument in "do {...} while(0)"
44075         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
44076         cpy macro must be a statement that can be followed by a semicolon.
44077         Now that the else clause contains a comment and is hence longer
44078         than one line, I require curly braces.  That in turn requires
44079         that we wrap this code block in the standard do...while(0).
44080
44081         fprintftime: remove stray semicolon from previous change
44082         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
44083
44084         fprintftime: avoid a warning about ignored fwrite return value
44085         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
44086         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
44087         that is unsafe.
44088         * modules/fprintftime (Depends-on): Add ignore-value.
44089
44090         exclude: avoid an unwarranted warning
44091         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
44092
44093 2009-10-27  Eric Blake  <ebb9@byu.net>
44094
44095         fseek: avoid compilation failure when fflush is replaced
44096         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
44097         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
44098         module is in use.
44099         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
44100         module is not in use; since REPLACE_FSEEK worked otherwise.
44101         (GNULIB_FTELLO): Likewise for ftell.
44102         Reported by Ian Beckwith and others.
44103
44104 2009-10-27  Bruno Haible  <bruno@clisp.org>
44105
44106         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
44107         Reported by Jim Meyering.
44108
44109 2009-10-27  Jim Meyering  <jim@meyering.net>
44110             Bruno Haible  <bruno@clisp.org>
44111
44112         Avoid warning despite dropping the return value of fwrite.
44113         * lib/unicodeio.c: Include ignore-value.h.
44114         (fwrite_success_callback): Explicitly ignore fwrite's return value.
44115         * modules/unicodeio (Depends-on): Add ignore-value.
44116
44117 2009-10-26  Eric Blake  <ebb9@byu.net>
44118
44119         areadlinkat: fix fallback path
44120         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
44121         pointer and zero.
44122
44123 2009-10-22  Pádraig Brady  <P@draigBrady.com>
44124
44125         Use a better IO block size for modern systems
44126         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
44127         * lib/md2.c: Likewise.
44128         * lib/md4.c: Likewise.
44129         * lib/md5.c: Likewise.
44130         * lib/sha1.c: Likewise.
44131         * lib/sha256.c: Likewise.
44132         * lib/sha512.c: Likewise.
44133
44134 2009-10-22  Eric Blake  <ebb9@byu.net>
44135
44136         tests: avoid several compiler warnings
44137         * tests/test-getcwd.c (main): Avoid buffer underflow.
44138         * tests/test-getdate.c (main): String literals are not safe with
44139         putenv, so use setenv.  Declare unused argument.
44140         * modules/getdate-tests (Depends-on): Add setenv.
44141         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
44142         problems with string literals in char *.
44143         * tests/test-hash.c (main): Avoid shadowing declaration.
44144         (insert_new): Treat string literals as char const *.
44145         * tests/test-getopt.h (test_getopt): Likewise.
44146         (getopt_loop): Alter types to minimize casting elsewhere.
44147         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
44148         (test_getopt_long_posix): Likewise.
44149         (do_getopt_long): Add wrapper to minimize casting.
44150         * tests/test-atexit.c (clear_temp_file): Use void.
44151         * tests/test-areadlink-with-size.c (main): Declare unused
44152         arguments.
44153         * tests/test-areadlink.c (main): Likewise.
44154         * tests/test-areadlinkat-with-size.c (main): Likewise.
44155         * tests/test-areadlinkat.c (main): Likewise.
44156         * tests/test-canonicalize-lgpl.c (main): Likewise.
44157         * tests/test-canonicalize.c (main): Likewise.
44158         * tests/test-dirent-safer.c (main): Likewise.
44159         * tests/test-dirname.c (main): Likewise.
44160         * tests/test-dup2.c (main): Likewise.
44161         * tests/test-fchdir.c (main): Likewise.
44162         * tests/test-fcntl-h.c (main): Likewise.
44163         * tests/test-fcntl-safer.c (main): Likewise.
44164         * tests/test-fdopendir.c (main): Likewise.
44165         * tests/test-fdutimensat.c (main): Likewise.
44166         * tests/test-fflush.c (main): Likewise.
44167         * tests/test-filenamecat.c (main): Likewise.
44168         * tests/test-filevercmp.c (main): Likewise.
44169         * tests/test-fopen-safer.c (main): Likewise.
44170         * tests/test-fopen.c (main): Likewise.
44171         * tests/test-fpending.c (main): Likewise.
44172         * tests/test-fpurge.c (main): Likewise.
44173         * tests/test-freading.c (main): Likewise.
44174         * tests/test-fstatat.c (main): Likewise.
44175         * tests/test-fsync.c (main): Likewise.
44176         * tests/test-futimens.c (main): Likewise.
44177         * tests/test-getndelim2.c (main): Likewise.
44178         * tests/test-gettimeofday.c (main): Likewise.
44179         * tests/test-getopt.c (main): Likewise.
44180         * tests/test-i-ring.c (main): Likewise.
44181         * tests/test-inttypes.c (main): Likewise.
44182         * tests/test-link.c (main): Likewise.
44183         * tests/test-lstat.c (main): Likewise.
44184         * tests/test-math.c (main): Likewise.
44185         * tests/test-md5.c (main): Likewise.
44186         * tests/test-memchr2.c (main): Likewise.
44187         * tests/test-memrchr.c (main): Likewise.
44188         * tests/test-mkdir.c (main): Likewise.
44189         * tests/test-mkdirat.c (main): Likewise.
44190         * tests/test-mkfifoat.c (main): Likewise.
44191         * tests/test-open.c (main): Likewise.
44192         * tests/test-openat-safer.c (main): Likewise.
44193         * tests/test-openat.c (main): Likewise.
44194         * tests/test-quotearg.c (main): Likewise.
44195         * tests/test-rawmemchr.c (main): Likewise.
44196         * tests/test-readlink.c (main): Likewise.
44197         * tests/test-remove.c (main): Likewise.
44198         * tests/test-rename.c (main): Likewise.
44199         * tests/test-renameat.c (main): Likewise.
44200         * tests/test-rmdir.c (main): Likewise.
44201         * tests/test-sha1.c (main): Likewise.
44202         * tests/test-signal.c (main): Likewise.
44203         * tests/test-sigaction.c (main): Likewise.
44204         * tests/test-stat.c (main): Likewise.
44205         * tests/test-stat-time.c (main): Likewise.
44206         * tests/test-stddef.c (main): Likewise.
44207         * tests/test-stdint.c (main): Likewise.
44208         * tests/test-stdio.c (main): Likewise.
44209         * tests/test-stdlib.c (main): Likewise.
44210         * tests/test-strchrnul.c (main): Likewise.
44211         * tests/test-strerror.c (main): Likewise.
44212         * tests/test-string.c (main): Likewise.
44213         * tests/test-strtod.c (main): Likewise.
44214         * tests/test-strverscmp.c (main): Likewise.
44215         * tests/test-symlink.c (main): Likewise.
44216         * tests/test-symlinkat.c (main): Likewise.
44217         * tests/test-sys_stat.c (main): Likewise.
44218         * tests/test-sys_time.c (main): Likewise.
44219         * tests/test-time.c (main): Likewise.
44220         * tests/test-unistd.c (main): Likewise.
44221         * tests/test-unlink.c (main): Likewise.
44222         * tests/test-unlinkat.c (main): Likewise.
44223         * tests/test-utimens.c (main): Likewise.
44224         * tests/test-utimensat.c (main): Likewise.
44225         * tests/test-version-etc.c (main): Likewise.
44226         * tests/test-wchar.c (main): Likewise.
44227         * tests/test-wctype.c (main): Likewise.
44228         * tests/test-xprintf-posix.c (main): Likewise.
44229         * tests/test-posixtm.c (main): Likewise.
44230         (STREQ): Delete unused macro.
44231         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
44232         shadowed variables.
44233         * tests/test-memchr.c (main): Likewise.
44234
44235 2009-10-21  Eric Blake  <ebb9@byu.net>
44236
44237         areadlinkat: avoid failure on older glibc
44238         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
44239         rather than mis-comparing 0 against FUNC_RESULT of char*.
44240
44241 2009-10-21  Bruno Haible  <bruno@clisp.org>
44242
44243         * modules/stpncpy (License): Relicense under LGPLv2+.
44244         Reported by David Lutterkort <lutter@redhat.com>.
44245
44246 2009-10-20  Eric Blake  <ebb9@byu.net>
44247
44248         utimensat: work around Solaris 9 bug
44249         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
44250         has trailing slash bugs.
44251         * tests/test-lutimens.h (test_lutimens): Enhance test.
44252         * tests/test-utimens.h (test_utimens): Likewise.
44253         * doc/posix-functions/utime.texi (utime): Enhance documentation.
44254         * doc/posix-functions/utimes.texi (utimes): Likewise.
44255         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
44256         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
44257         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
44258         * doc/posix-functions/futimens.texi (futimens): Likewise.
44259
44260         fdutimensat: new module
44261         * modules/fdutimensat: New file.
44262         * lib/fdutimensat.c (fdutimensat): Likewise.
44263         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
44264         * MODULES.html.sh (File system functions): Mention module.
44265         * modules/fdutimensat-tests: New test.
44266         * tests/test-fdutimensat.c: Likewise.
44267
44268         doc: regenerate INSTALL
44269         * doc/INSTALL: Reflect recent autoconf update.
44270         * doc/INSTALL.ISO: Likewise.
44271         * doc/INSTALL.UTF-8: Likewise.
44272
44273 2009-10-20  Pádraig Brady  <P@draigBrady.com>
44274
44275         acl: warn if ACL support is not detected
44276         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
44277
44278 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
44279
44280         * lib/nproc.h: Add extern "C" block for C++.
44281
44282 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
44283             Bruno Haible  <bruno@clisp.org>
44284
44285         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
44286         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
44287         * doc/posix-functions/isalpha.texi: Likewise.
44288         * doc/posix-functions/isblank.texi: Likewise.
44289         * doc/posix-functions/iscntrl.texi: Likewise.
44290         * doc/posix-functions/isdigit.texi: Likewise.
44291         * doc/posix-functions/isgraph.texi: Likewise.
44292         * doc/posix-functions/islower.texi: Likewise.
44293         * doc/posix-functions/isprint.texi: Likewise.
44294         * doc/posix-functions/ispunct.texi: Likewise.
44295         * doc/posix-functions/isspace.texi: Likewise.
44296         * doc/posix-functions/isupper.texi: Likewise.
44297         * doc/posix-functions/isxdigit.texi: Likewise.
44298
44299 2009-10-18  Bruno Haible  <bruno@clisp.org>
44300
44301         Tests for module 'isblank'.
44302         * modules/isblank-tests: New file.
44303         * tests/test-isblank.c: New file.
44304
44305         New module 'isblank'.
44306         * lib/isblank.c: New file.
44307         * m4/isblank.m4: New file.
44308         * modules/isblank: New file.
44309         * doc/posix-functions/isblank.texi: Mention the new module.
44310
44311 2009-10-18  Bruno Haible  <bruno@clisp.org>
44312
44313         New module 'ctype'.
44314         * lib/ctype.in.h: New file.
44315         * m4/ctype.m4: New file.
44316         * modules/ctype: New file.
44317         * doc/posix-headers/ctype.texi: Mention the new module.
44318
44319 2009-10-18  Jim Meyering  <meyering@redhat.com>
44320
44321         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
44322         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
44323         right after its initialization, rather than farther down.
44324         Keeping these in close proximity makes it easier to ensure
44325         that each such variable is initialized.  E.g.,
44326
44327             LIB_CLOCK_GETTIME=
44328             AC_SUBST([LIB_CLOCK_GETTIME])
44329
44330         This change also increments these serial numbers.
44331         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
44332         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
44333         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44334
44335 2009-10-18  Bruno Haible  <bruno@clisp.org>
44336
44337         Don't let environment variables perturb build.
44338         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
44339         (gl_PREREQ_GETHRXTIME): ... not here.
44340
44341 2009-10-18  Bruno Haible  <bruno@clisp.org>
44342
44343         Avoid symlink attack in localcharset module.
44344         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
44345         (O_NOFOLLOW): Define fallback.
44346         (get_charset_aliases): Don't open the file if it is a symbolic link.
44347         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
44348         gl_FCNTL_H.
44349         (gl_FCNTL_H): Require it.
44350         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
44351         * modules/localcharset (Files): Add m4/fcntl_h.m4.
44352         Reported by Fergal Glynn <fglynn@veracode.com>.
44353
44354 2009-10-18  Bruno Haible  <bruno@clisp.org>
44355
44356         Implement nproc for mingw.
44357         * lib/nproc.c: Include <windows.h>
44358         (num_processors): On native Windows platforms, try GetSystemInfo.
44359
44360 2009-10-18  Bruno Haible  <bruno@clisp.org>
44361
44362         Implement nproc for IRIX.
44363         * lib/nproc.c: Include <sys/sysmp.h>.
44364         (num_processors): On IRIX systems, try sysmp.
44365         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
44366
44367 2009-10-18  Bruno Haible  <bruno@clisp.org>
44368
44369         Implement nproc for HP-UX.
44370         * lib/nproc.c: Include <sys/pstat.h>
44371         (num_processors): On HP-UX systems, try pstat_getdynamic.
44372         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
44373         pstat_getdynamic.
44374
44375 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
44376             Bruno Haible  <bruno@clisp.org>
44377
44378         Implement nproc for NetBSD, OpenBSD.
44379         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
44380         (ARRAY_SIZE): New macro.
44381         (num_processors): On BSD systems, try sysctl of HW_NCPU.
44382         * m4/nproc.m4: New file.
44383         * modules/nproc (Files): Add m4/nproc.m4.
44384         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
44385         (Makefile.am): Instead, augment lib_SOURCES.
44386
44387 2009-10-18  Bruno Haible  <bruno@clisp.org>
44388
44389         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
44390         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
44391         sys/param.h.
44392
44393 2009-10-16  Eric Blake  <ebb9@byu.net>
44394
44395         utimensat: new module
44396         * modules/utimensat: New file.
44397         * lib/utimensat.c (utimensat): Likewise.
44398         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
44399         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
44400         so we can work around Linux bugs.
44401         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44402         * modules/sys_stat (Makefile.am): Substitute them.
44403         * lib/sys_stat.in.h (utimensat): Declare it.
44404         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44405         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
44406         * modules/utimensat-tests: New test.
44407         * tests/test-utimensat.c: Likewise.
44408
44409         utimens: let lutimens work on non-symlinks
44410         * lib/utimens.c (lutimens): Fall back to utimens rather than
44411         failing with ENOSYS, when file is not a symlink.
44412         (utimens): Reduce redirection.
44413         * tests/test-lutimens.h (test_lutimens): Update test to cover
44414         non-symlinks.
44415         * tests/test-utimens.h (test_utimens): Update test to cover
44416         symlinks.
44417         * tests/test-utimens.c (main): Update caller.
44418
44419         utimens: cache whether utimensat syscall works
44420         * lib/utimens.c (utimensat_works_really): New cache variable.
44421         (fdutimens, lutimens): Use it to avoid failing syscall.
44422
44423         test-stat-time, test-utimens: improve portability
44424         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
44425         ext4 on alpha, and for cygwin.
44426         * tests/test-utimens-common.h: New file.
44427         (nap): Factor delays into single function.
44428         * tests/test-lutimens.h (test_lutimens): Use new header.
44429         * tests/test-futimens.h (test_futimens): Likewise.
44430         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
44431         timestamps to occur from same machine, as was done previously for
44432         test_utimens.
44433         * modules/utimens-tests (Files): Ship new file.
44434         * modules/futimens-tests (Files): Likewise.
44435         Reported in part by Jim Meyering.
44436
44437         sys_stat: sort replacement declarations
44438         * lib/sys_stat.in.h: Sort declarations.
44439         * lib/futimens.c (futimens): Fix typo.
44440
44441 2009-10-15  Jim Meyering  <meyering@redhat.com>
44442
44443         don't let environment settings perturb build
44444         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
44445         could cause a configure-time and/or build-time malfunction.
44446         Typically, a configure-time function-in-library test is performed
44447         via code like this:
44448
44449           LIB_VAR=
44450           AC_SUBST([LIB_VAR])
44451           prefix_saved_LIBS=$LIBS
44452             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
44453                        [test "$ac_cv_search_FUNC" = "none required" ||
44454                         LIB_VAR=$ac_cv_search_FUNC])
44455           LIBS=$prefix_saved_LIBS
44456
44457         However, in each of the files affected by this change, the LIB_VAR=
44458         initialization was omitted.  Thus, when set in the environment, its
44459         value would propagate into generated Makefiles when FUNC is not found
44460         in LIB_NAME.
44461         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
44462         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
44463         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44464
44465 2009-10-14  Eric Blake  <ebb9@byu.net>
44466
44467         fchdir: avoid infinite recursion in mingw
44468         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
44469         recursing.
44470
44471         test-stat-time: port to mingw
44472         * tests/test-stat-time.c (force_unlink): Return a value.
44473         (test_ctime) [W32]: Fix compilation error.
44474         (nap): Don't call usleep with too large an argument.  Use
44475         force_unlink.
44476         * doc/pastposix-functions/usleep.texi (usleep): Document the
44477         portability issue.
44478
44479 2009-10-13  Jim Meyering  <meyering@redhat.com>
44480
44481         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
44482         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
44483         * modules/pipe-filter-ii: Likewise.
44484         * modules/sys_socket-tests: Likewise.
44485         * modules/tsearch-tests: Likewise.
44486         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
44487         (check): Depend on it.
44488
44489 2009-10-12  Eric Blake  <ebb9@byu.net>
44490
44491         utimens-tests: port to NFS file systems
44492         * tests/test-utimens.h (test_utimens): Refactor utimecmp
44493         comparisons to avoid spurious failures from timestamp drift
44494         between NFS machines.
44495
44496 2009-10-12  Eric Blake  <ebb9@byu.net>
44497
44498         stat-time-tests: minor cleanups
44499         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
44500         * tests/test-stat-time.c (nap): Separate assignment from call.
44501         Suggested by Paolo Bonzini and Bruno Haible.
44502
44503         sys_stat: guarantee struct timespec
44504         * lib/sys_stat.in.h (includes): Always include <time.h>
44505         * modules/sys_stat (Depends-on): Add time.
44506         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
44507         mode_t permission values.
44508         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
44509         get at subsecond timestamps.
44510
44511 2009-10-10  Eric Blake  <ebb9@byu.net>
44512
44513         futimens: new module
44514         * modules/futimens: New file.
44515         * lib/futimens.c (futimens): Likewise.
44516         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
44517         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
44518         we can work around Linux bugs.
44519         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44520         * modules/sys_stat (Makefile.am): Substitute them.
44521         * lib/sys_stat.in.h (futimens): Declare it.
44522         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44523         * doc/posix-functions/futimens.texi (futimens): Likewise.
44524         * modules/futimens-tests: New test.
44525         * tests/test-futimens.c: Likewise.
44526
44527         utimens: introduce fdutimens
44528         * lib/utimens.h (fdutimens): New prototype.
44529         * lib/utimens.c (gl_futimens): Move guts...
44530         (fdutimens): ...to new interface.
44531         * tests/test-utimens.c (do_fdutimens): Use it.
44532
44533         utimens: add UTIME_NOW and UTIME_OMIT support
44534         * lib/utimens.c (validate_timespec, update_timespec): New helper
44535         functions.
44536         (gl_futimens, lutimens): Use them.
44537         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
44538         stdbool, sys_stat.
44539         (Link): Mention resulting library dependency.
44540         * modules/utimecmp (Link): Likewise.
44541         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
44542         (Makefile.am): Pick up library dependency.
44543         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
44544         definition.
44545         * tests/test-sys_stat.c: Test the definitions.
44546         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
44547         * NEWS: Document library dependency.
44548
44549         utimecmp: support symlink timestamps
44550         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
44551         hashing when possible.  Use pathconf when available.
44552         (SYSCALL_RESOLUTION): Recognize tighter resolution.
44553         * modules/utimecmp (Depends-on): Add lstat.
44554
44555         utimens: add lutimens interface
44556         * lib/utimens.c (lutimens): New function.
44557         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
44558         * lib/utimens.h (lutimens): Declare new interface.
44559         * tests/test-utimens.c (main): Enhance test.
44560         * tests/test-lutimens.h (test_lutimens): New file.
44561         * modules/utimens-tests (Files): Distribute it.
44562         (Depends-on): Add symlink.
44563         (configure.ac): Check for usleep.
44564
44565         utimens: validate futimens usage
44566         * lib/utimens.c (gl_futimens): Require valid fd up front, using
44567         fewer syscalls on failure later on.  Avoid compiler warning on
44568         mingw.
44569         * modules/utimens (Depends-on): Add dup2.
44570
44571         utimens: add test
44572         * modules/utimens-tests: New test.
44573         * tests/test-utimens.h: New file.
44574         * tests/test-futimens.h: Likewise.
44575         * tests/test-utimens.c: Likewise.
44576
44577         doc: mention timestamp portability issues
44578         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
44579         instead.
44580         * doc/posix-functions/utime.texi (utime): Likewise.
44581         * doc/posix-functions/utimes.texi (utimes): Likewise.
44582         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
44583         instead.
44584         * doc/posix-functions/futimens.texi (futimens): Mention utimens
44585         module.
44586         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
44587         Mention weakness with symlink timestamps.
44588         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
44589         to utimensat/futimens instead.
44590         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
44591
44592         test-dup2: enhance test
44593         * tests/test-dup2.c (main): Also check AT_FDCWD.
44594
44595         test-stat-time: avoid more spurious failures
44596         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
44597         xfs; and avoid race if the two timestamps cross quantization edge.
44598
44599         relocatable: prefer 'file system' over 'filesystem'
44600         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
44601         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
44602         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
44603         * doc/relocatable.texi (Enabling Relocatability): Likewise.
44604         * lib/relocatable.c (compute_curr_prefix): Likewise.
44605
44606 2009-10-10  Jim Meyering  <meyering@redhat.com>
44607
44608         stat-time-tests: check for the usleep function
44609         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
44610
44611 2009-10-10  Bruno Haible  <bruno@clisp.org>
44612
44613         * modules/xnanosleep: Put the Link section after the Include section.
44614
44615 2009-10-09  Eric Blake  <ebb9@byu.net>
44616
44617         dup2: work around FreeBSD 6.1 bug
44618         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
44619         * doc/posix-functions/dup2.texi (dup2): Document it.
44620         Reported by Nelson H. F. Beebe and Jim Meyering.
44621
44622         test-stat-time: port to buggy NFS clients
44623         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
44624         (test_ctime): Also skip test if mtime and ctime are skewed.
44625
44626         maint: prefer 'file system' over 'filesystem'
44627         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
44628         * doc/posix-functions/lstat.texi (lstat): Likewise.
44629         * lib/file-has-acl.c (file_has_acl): Likewise.
44630         * lib/fwriteerror.c [TEST]: Likewise.
44631         * tests/test-areadlink.h (test_areadlink): Likewise.
44632         * tests/test-areadlinkat-with-size.c (main): Likewise.
44633         * tests/test-areadlinkat.c (main): Likewise.
44634         * tests/test-canonicalize-lgpl.c (main): Likewise.
44635         * tests/test-canonicalize.c (main): Likewise.
44636         * tests/test-fstatat.c (main): Likewise.
44637         * tests/test-linkat.c (main): Likewise.
44638         * tests/test-lstat.h (test_lstat_func): Likewise.
44639         * tests/test-mkdir.h (test_mkdir): Likewise.
44640         * tests/test-readlink.h (test_readlink): Likewise.
44641         * tests/test-remove.c (main): Likewise.
44642         * tests/test-rename.h (test_rename): Likewise.
44643         * tests/test-renameat.c (main): Likewise.
44644         * tests/test-rmdir.h (test_rmdir_func): Likewise.
44645         * tests/test-symlink.h (test_symlink): Likewise.
44646         * tests/test-symlinkat.c (main): Likewise.
44647         * tests/test-unlink.h (test_unlink_func): Likewise.
44648         * tests/test-unlinkat.c (main): Likewise.
44649
44650         maint: make realtime library usage explicit
44651         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
44652         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
44653         * modules/settime (Link): Likewise.
44654         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
44655
44656         test-stat-time: speed up execution
44657         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
44658         warning on mingw.
44659         (nap): New helper function.
44660         (prepare_test): Use it to reduce sleep time.
44661         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
44662         execution.
44663         * modules/stat-time-tests (configure.ac): Check for usleep.
44664
44665 2009-10-09  Jim Meyering  <meyering@redhat.com>
44666
44667         selinux-h: always use getfilecon wrappers
44668         * lib/getfilecon.c: New file.
44669         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
44670         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
44671         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
44672         (fgetfilecon): Provide a stub.
44673         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
44674         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
44675         file unconditionally.
44676         When <selinux/selinux.h> is found, arrange to use wrappers.
44677         * modules/selinux-h (Files): Add getfilecon.c.
44678         (Makefile.am): Substitute include-next-related bits
44679         into the now-always-generated selinux/selinux.h file.
44680         * doc/glibc-functions/lgetfilecon.texi: New file.
44681         * doc/glibc-functions/fgetfilecon.texi: New file.
44682         * doc/glibc-functions/getfilecon.texi: New file.
44683         * doc/glibc-functions/getfilecon-desc.texi: New file.
44684         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
44685         which to pull in the new files.
44686         * MODULES.html.sh (Misc): Add selinux-h.
44687
44688 2009-10-08  Jim Meyering  <meyering@redhat.com>
44689
44690         unistd: fix comment typo
44691         * lib/unistd.in.h (euidaccess): Fix a comment typo.
44692
44693 2009-10-08  Eric Blake  <ebb9@byu.net>
44694
44695         areadlink: use SIZE_MAX consistently
44696         * modules/areadlink (Depends-on): Add stdint.
44697         * modules/areadlink-with-size (Depends-on): Likewise.
44698         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
44699         gives NULL; drop sys/types, since unistd gives size_t; and add
44700         stdint for SIZE_MAX.
44701         (SIZE_MAX): Rely on headers.
44702         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
44703         and add stdint.
44704         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
44705         (SIZE_MAX): Likewise.
44706         (INITIAL_BUF_SIZE): Turn into enum.
44707         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
44708
44709 2009-10-08  Jim Meyering  <meyering@redhat.com>
44710
44711         areadlinkat: avoid compilation failure
44712         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
44713         Fix typo in comment.
44714
44715 2009-10-07  Eric Blake  <ebb9@byu.net>
44716
44717         areadlinkat-with-size: new module
44718         * modules/areadlinkat-with-size: New module.
44719         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
44720         * lib/areadlink.h (areadlinkat): Declare it.
44721         * MODULES.html.sh (File system functions): Mention it.
44722         * modules/areadlinkat-with-size-tests: New test.
44723         * tests/test-areadlinkat-with-size.c: New file.
44724
44725         xreadlinkat: new module
44726         * modules/xreadlinkat: New module.
44727         * lib/xreadlinkat.c (xreadlinkat): New file.
44728         * lib/xreadlink.h (xreadlinkat): Declare it.
44729         * MODULES.html.sh (File system functions): Mention it.
44730
44731         areadlinkat: new module
44732         * lib/at-func.c (FUNC_FAIL): New define.
44733         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
44734         * modules/areadlinkat: New module.
44735         * lib/linkat.c (areadlinkat): Move...
44736         * lib/areadlinkat.c (areadlinkat): ...to new file.
44737         * lib/areadlink.h (areadlinkat): Declare it.
44738         * modules/linkat (Depends-on): Add areadlinkat.
44739         * MODULES.html.sh (File system functions): Mention it.
44740         * modules/areadlinkat-tests: New test.
44741         * tests/test-areadlinkat.c: New file.
44742
44743         areadlink, areadlink-with-size: add tests
44744         * modules/areadlink-tests: New test.
44745         * modules/areadlink-with-size-tests: Likewise.
44746         * tests/test-areadlink.h: New file.
44747         * tests/test-areadlink.c: Likewise.
44748         * tests/test-areadlink-with-size.c: Likewise.
44749
44750         maint: minor cleanups
44751         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
44752         _UNUSED_PARAMETER_ instead.
44753         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
44754         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
44755         * modules/linkat-tests (Files): Distribute test-link.h.
44756
44757         openat, utimens: whitespace cleanup
44758         * lib/openat.c: Prefer space throughout, rather than mix of 8
44759         spaces vs. tabs.
44760         * lib/at-func.c: Likewise.
44761         * lib/utimens.c: Likewise.
44762
44763         openat: avoid using wrong fd
44764         * lib/openat.c (openat_permissive): Reject user's fd if saving the
44765         working directory chooses same fd.
44766         * lib/at-func.c (AT_FUNC_NAME): Likewise.
44767
44768         mkdir, mkdirat: fix cygwin 1.5.x bug
44769         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
44770         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
44771         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
44772         bug.
44773         (gl_PREREQ_MKDIR): Delete unused macro.
44774         * modules/mkdir (Files): Track file rename.
44775         (configure.ac): Update macro name.
44776         * modules/openat (Depends-on): Add mkdir.
44777         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
44778
44779         mkdir, mkdirat: add tests
44780         * modules/mkdir-tests: New test.
44781         * tests/test-mkdir.h: New file.
44782         * tests/test-mkdir.c: Likewise.
44783         * tests/test-mkdirat.c: Likewise.
44784         * modules/openat-tests (Files): Add new files.
44785         (Makefile.am): Run new test.
44786
44787 2009-10-06  Eric Blake  <ebb9@byu.net>
44788
44789         doc: tweak *at function documentation
44790         * doc/posix-functions/faccessat.texi (faccessat): Mention
44791         known issue with replacement.
44792         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
44793         * doc/posix-functions/linkat.texi (linkat): Likewise.
44794         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
44795         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
44796         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
44797         * doc/posix-functions/renameat.texi (renameat): Likewise.
44798         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
44799
44800         openat: fix GNU/Hurd bug in unlinkat
44801         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
44802         broken.
44803         * doc/posix-functions/unlink.texi (unlink): Document this.
44804         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
44805
44806         fdopendir: fix GNU/Hurd bug
44807         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
44808         allowing non-directory fds.
44809         * lib/fdopendir.c (rpl_fdopendir): Work around it.
44810         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
44811         * modules/dirent (Makefile.am): Substitute it.
44812         * lib/dirent.in.h (fdopendir): Declare replacement.
44813         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
44814         * tests/test-fdopendir.c (main): Test something other than
44815         /dev/null, since on Hurd that behaves like a directory.
44816
44817         test-symlink: port to GNU/Hurd
44818         * tests/test-symlink.h (test_symlink): Relax expected errno.
44819
44820         doc: tweak more cygwin information
44821         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
44822         now compatible with glibc.
44823         * doc/posix-functions/getopt.texi (getopt): Likewise.
44824
44825         getopt-gnu: add another test
44826         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
44827         guarantee behavior relied on by m4.
44828         * tests/test-getopt.c (main): Use it.
44829         * modules/getopt-posix-tests (Depends-on): Add setenv.
44830         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
44831
44832         getopt: fix compilation on darwin
44833         * lib/getopt.in.h (includes): Leave breadcrumbs during system
44834         include.
44835         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
44836         Reported by Ludovic Courtès.
44837
44838 2009-10-06  Bruno Haible  <bruno@clisp.org>
44839
44840         * modules/size_max (Description): Discourage its use.
44841         Reported by Simon Josefsson.
44842
44843 2009-10-06  Jim Meyering  <meyering@redhat.com>
44844
44845         linkat: avoid compilation failure
44846         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
44847
44848 2009-10-05  Eric Blake  <ebb9@byu.net>
44849
44850         linkat: support Linux 2.6.17
44851         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
44852         linkat on Linux, but allow cache variable override.
44853         * lib/linkat.c (rpl_linkat): Define override.
44854         * modules/linkat (Depends-on): Add symlinkat.
44855         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
44856         * modules/unistd (Makefile.am): Substitute it.
44857         * lib/unistd.in.h (linkat): Declare replacement.
44858         Reported by Pádraig Brady.
44859
44860         quotearg: port test to systems with C.UTF-8 locale
44861         * tests/test-quotearg.c (struct result_strings): Add another
44862         member, differentiating between C.ASCII and C.UTF-8 handling.
44863         (compare_strings): Add parameter.
44864         (main): Adjust all callers.
44865
44866         getopt: avoid clash with FreeBSD _getopt_internal
44867         * lib/getopt.in.h (_getopt_internal): Override the name.
44868         * lib/getopt_int.h (includes): Pick up any overrides.
44869         Reported by Reuben Thomas.
44870
44871         hash: allow C89 compilation
44872         * lib/hash.c (check_tuning): Move declaration before statement.
44873         Reported by Reuben Thomas.
44874
44875 2009-10-05  Karl Berry  <karl@gnu.org>
44876
44877         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
44878
44879 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
44880             Bruno Haible  <bruno@clisp.org>
44881
44882         * lib/uname.c (uname): Use a table-driven algorithm to compute
44883         Windows NT versions.
44884
44885 2009-10-04  Bruno Haible  <bruno@clisp.org>
44886
44887         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
44888         program_invocation_short_name.
44889         * modules/progname (configure.ac): Test for presence of
44890         program_invocation_short_name.
44891         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
44892
44893 2009-10-04  Bruno Haible  <bruno@clisp.org>
44894
44895         * lib/progname.c (set_program_name): Fix comment.
44896         Reported by Jim Meyering.
44897
44898 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
44899             Bruno Haible  <bruno@clisp.org>
44900
44901         * lib/uname.c: Include <string.h>.
44902         (uname): Do only one call to GetVersionEx in the common case.
44903
44904 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
44905             Bruno Haible  <bruno@clisp.org>
44906
44907         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
44908         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
44909         (uname): Add support for Windows CE and various non-x86 CPU types.
44910
44911 2009-10-03  Bruno Haible  <bruno@clisp.org>
44912
44913         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
44914         invocation to tests/configure.ac.
44915         Reported by Ian Beckwith <ianb@erislabs.net>.
44916
44917 2009-10-02  Eric Blake  <ebb9@byu.net>
44918
44919         fchdir: avoid compiler warning
44920         * lib/fchdir.c (canonicalize_file_name)
44921         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
44922
44923         test-open: support mingw errno values
44924         * tests/test-open.h (test_open): Relax test.
44925         * tests/test-fopen.h (test_fopen): Likewise.
44926         * tests/test-openat-safer.c (main): Likewise.
44927
44928         open: fix opening directory on mingw
44929         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
44930
44931         test-open: on GNU/Hurd, /dev/null is a directory
44932         * tests/test-fopen.h (main): Rename...
44933         (test_fopen): ...to this.  Use a guaranteed non-directory when
44934         confirming open behavior on trailing slash.
44935         * tests/test-openat-safer.c (main): Likewise.
44936         * tests/test-open.h (main): Likewise....
44937         (test_open): ...to this.
44938         * tests/test-fopen.c (main): Adjust caller.
44939         * tests/test-fopen-safer.c (main): Likewise.
44940         * tests/test-open.c (main): Likewise.
44941         * tests/test-fcntl-safer.c (main): Likewise.
44942         Reported by Samuel Thibault.
44943
44944         rename, fchdir: don't ignore chdir failure
44945         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
44946         * lib/rename.c (rpl_rename) [W32]: Likewise.
44947         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
44948         an empty destination directory if source cannot be renamed,
44949         although there is still possibility for failure.
44950         * doc/posix-functions/rename.texi (rename): Document the race.
44951         Reported by Jim Meyering.
44952
44953         maint: cleanup whitespace in recent commits
44954         * lib/rename.c (rpl_rename): Remove tabs.
44955         * tests/test-link.h (test_link): Likewise.
44956         * lib/fchdir.c (get_name): Likewise.
44957         Reported by Jim Meyering.
44958
44959 2009-10-02  Ben Pfaff  <blp@gnu.org>
44960
44961         relocatable-prog-wrapper: Add missing dependency on
44962         double-slash-root.
44963         * modules/relocatable-prog-wrapper: Add dependency.
44964         Reported by Ian Beckwith <ianb@erislabs.net>.
44965
44966 2009-10-02  Eric Blake  <ebb9@byu.net>
44967
44968         renameat: fix Solaris bugs
44969         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
44970         needed fixing.
44971         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
44972         * modules/stdio (Makefile.am): Substitute it.
44973         * lib/stdio.in.h (renameat): Declare replacement.
44974         * lib/renameat.c (rpl_renameat): Implement fix.
44975
44976         renameat: new module
44977         * modules/renameat: New file.
44978         * lib/renameat.c (renameat): Likewise.
44979         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
44980         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
44981         * modules/stdio (Makefile.am): Substitute them.
44982         * lib/stdio.in.h (renameat): Declare it.
44983         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44984         * doc/posix-functions/renameat.texi (renameat): Likewise.
44985         * modules/renameat-tests: New test.
44986         * tests/test-renameat.c: Likewise.
44987
44988         rename: fix mingw bugs
44989         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
44990         directory overwrite bugs.
44991
44992         rename: fix another cygwin 1.5 bug
44993         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
44994         checks.
44995         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
44996         unnecessary cygwin workarounds.  Also work around bug with moving
44997         full directory onto an empty one.
44998         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
44999
45000         rename-dest-slash: merge into rename module
45001         * modules/rename-dest-slash (Status): Mark obsolete.
45002         (Depends-on): Add rename.
45003         (Files): Let rename do it all.
45004         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
45005         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
45006         * m4/rename-dest-slash.m4: ...so this file can be deleted.
45007         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
45008         * lib/rename.c (rpl_rename): Update comments.
45009
45010         rename: fix cygwin 1.5.x bugs
45011         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
45012         * lib/rename.c (rpl_rename): Work around them.
45013         * modules/rename (Depends-on): Add same-inode.
45014
45015         rename: fix Solaris 10 bug
45016         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
45017         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
45018         was the only bug.
45019
45020         rename: fix Solaris 9 bug
45021         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
45022         on non-directory.  Avoid calling exit.
45023         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
45024         strdup.
45025         * modules/rename-tests (Depends-on): Drop lstat.
45026         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
45027         (gl_PREREQ_RENAME): Delete unused macro.
45028
45029         rename-dest-slash: fix NetBSD bug
45030         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
45031         links.
45032         * modules/rename-dest-slash (Depends-on): Add same-inode.
45033
45034         rename-tests: new test, exposes several platform bugs
45035         * modules/rename-tests: New file.
45036         * tests/test-rename.h: Likewise.
45037         * tests/test-rename.c: Likewise.
45038         * doc/posix-functions/rename.texi (rename): Improve documentation,
45039         including bugs that will eventually be fixed in gnulib.
45040
45041 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
45042
45043         * lib/uname.c: Include <stdlib.h>
45044         (uname): Assume version info is available.
45045
45046 2009-10-02  Jim Meyering  <meyering@redhat.com>
45047
45048         gnu-web-doc-update: correct --help output
45049         * build-aux/gnu-web-doc-update: Make --help output relevant.
45050
45051         gnu-web-doc-update: add standard options
45052         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
45053
45054         gnu-web-doc-update: New module.
45055         Use this script to automatically update the on-line web documentation
45056         for your GNU project at http://www.gnu.org/software/$pkg/manual/
45057         * modules/gnu-web-doc-update: New file, from coreutils.
45058         * build-aux/gnu-web-doc-update: New script.
45059
45060 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
45061
45062         link: LoadLibrary is not needed.
45063         * lib/link.c: Use GetModuleHandle.
45064
45065 2009-10-01  Eric Blake  <ebb9@byu.net>
45066
45067         getopt: bump serial number
45068         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
45069         change.
45070
45071         tests: tighten link, rmdir, and remove tests
45072         * tests/test-link.h (includes): No need to use <config.h> here.
45073         Clean up if directory hard link was created, otherwise test for
45074         trailing '.'.
45075         * tests/test-linkat.c (main): Simplify.
45076         * tests/test-remove.c (main): Enhance test for trailing '.'.
45077         * tests/test-rmdir.h (test_rmdir_func): Likewise.
45078
45079 2009-10-01  Jim Meyering  <meyering@redhat.com>
45080
45081         maint.mk: requiring "make major" was annoying, for a "minor" release.
45082         What is intended is "stable", to contrast with alpha and beta,
45083         so require "make stable", not "make major".
45084         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
45085         (get_tool_versions): Likewise.
45086         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
45087
45088 2009-09-30  Ben Pfaff  <blp@gnu.org>
45089
45090         Fix broken build of replacement for Windows tmpfile().
45091         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
45092         flags argument added along with the 'mkostemp' module.
45093
45094 2009-09-28  Bruno Haible  <bruno@clisp.org>
45095
45096         Avoid identifier clash with POSIX function 'remove' defined as a macro.
45097         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
45098         to 'remove_elt'.
45099         (gl_list_remove): Update.
45100         * lib/gl_list.c (gl_list_remove): Update.
45101         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
45102         to 'remove_elt'.
45103         (gl_oset_remove): Update.
45104         * lib/gl_list.c (gl_oset_remove): Update.
45105         Reported by Eric Blake.
45106
45107 2009-09-28  Eric Blake  <ebb9@byu.net>
45108
45109         doc: mention yet more cygwin 1.7 status
45110         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
45111         cygwin.
45112         * doc/glibc-functions/execvpe.texi (execvpe): New file.
45113         * doc/gnulib.texi (Glibc unistd.h): Mention it.
45114
45115         argp: fix test failure
45116         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
45117         that are not upper-case.  Pass correct range to tolower.
45118
45119 2009-09-27  Jim Meyering  <meyering@redhat.com>
45120
45121         test-yesno: work around sparc-dash here-document infelicity
45122         Without this change, the literal \177 byte in a here document
45123         would make dash 0.5.5.1-3 access uninitialized memory.
45124         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
45125         Instead, use a marker, "@", and filter through tr to create the desired
45126         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
45127
45128 2009-09-27  Bruno Haible  <bruno@clisp.org>
45129
45130         Disable untested support for new flavours of ACLs on AIX.
45131         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
45132         progress.
45133         * lib/set-mode-acl.c (qset_acl): Likewise.
45134
45135 2008-12-07  Bruno Haible  <bruno@clisp.org>
45136
45137         Add support for new flavours of ACLs on AIX. (Untested.)
45138         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
45139         (file_has_acl): Add support for newer AIX.
45140         * lib/set-mode-acl.c (qset_acl): Likewise.
45141         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
45142         Rainer Tammer <tammer@tammer.net>.
45143
45144 2009-09-26  Eric Blake  <ebb9@byu.net>
45145
45146         argp: fix compilation of getopt
45147         * lib/getopt.in.h (includes): Use different guard than glibc.
45148         Reported by Sergey Poznyakoff.
45149
45150         doc: mention more cygwin 1.7 status
45151         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
45152         bug.
45153         * doc/posix-functions/execl.texi (execl): Likewise.
45154         * doc/posix-functions/execle.texi (execle): Likewise.
45155         * doc/posix-functions/execlp.texi (execlp): Likewise.
45156         * doc/posix-functions/execv.texi (execv): Likewise.
45157         * doc/posix-functions/execve.texi (execve): Likewise.
45158         * doc/posix-functions/execvp.texi (execvp): Likewise.
45159         * doc/glibc-functions/canonicalize_file_name.texi
45160         (canonicalize_file_name): Cygwin 1.7 now provides this.
45161         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
45162         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
45163         on AT_SYMLINK_NOFOLLOW.
45164
45165 2009-09-24  Eric Blake  <ebb9@byu.net>
45166
45167         test-linkat: make test more robust
45168         * tests/test-linkat.c (main): Avoid collision with EEXIST.
45169
45170         getopt: fix inclusion guards for cygwin
45171         * modules/getopt-posix (Depends-on): Add include-next.
45172         (Makefile.am): Substitute more items in replacement header.
45173         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
45174         <getopt.h>.
45175         * lib/getopt.in.h (includes): Use split inclusion guard, and
45176         prefer <getopt.h> over include <unistd.h> when one is present.
45177         (option): Also override name of 'struct option'.
45178
45179         same-inode: revert prior change; it is not yet ready
45180         * NEWS: Undo mention of this change.
45181         * lib/same-inode.h (same-inode.h): Undo tri-state change.
45182         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
45183         * lib/cycle-check.c (cycle_check): Likewise.
45184         * lib/same.c (same_name): Likewise.
45185         * lib/at-func2.c (at_func2): Likewise.
45186
45187 2009-09-23  Eric Blake  <ebb9@byu.net>
45188
45189         linkat: new module
45190         * modules/linkat: New file.
45191         * lib/at-func2.c (at_func2): Likewise.
45192         * lib/linkat.c (linkat): Likewise.
45193         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
45194         * lib/openat-priv.h (at_func2): Add declaration.
45195         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
45196         * modules/unistd (Makefile.am): Substitute them.
45197         * lib/unistd.in.h (linkat): Declare it.
45198         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45199         * doc/posix-functions/linkat.texi (linkat): Likewise.
45200         * doc/posix-functions/link.texi (link): Tweak wording.
45201         * tests/test-link.c (main): Move guts...
45202         * tests/test-link.h (test_link): ...into new file.
45203         * modules/linkat-tests: New test.
45204         * tests/test-linkat.c: Likewise.
45205         * modules/link-tests (Files): Ship new file.
45206         (Depends-on): Add stdbool.
45207
45208         dirname: add library-safe mdir_name
45209         * lib/dirname.h (mdir_name): New prototype.
45210         * lib/dirname.c (dir_name): Move guts...
45211         (mdir_name): ...to new function that avoids xalloc_die.
45212
45213         fchdir: another mingw fix
45214         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
45215         * lib/fchdir.c (get_name): New helper method; skips canonicalize
45216         on mingw (where it has not yet been ported), and make it optional
45217         elsewhere.
45218         (_gl_register_fd): Use it.
45219
45220         same-inode: make SAME_INODE tri-state, to port to mingw
45221         * NEWS: Mention this change.
45222         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
45223         st_ino always being 0.
45224         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
45225         * lib/cycle-check.c (cycle_check): Likewise.
45226         * lib/same.c (same_name): Likewise.
45227
45228         lstat: avoid mingw compilation error
45229         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
45230         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
45231         lstat ourselves.
45232         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
45233         was adequate.
45234         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
45235         the checks for lstat.
45236         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
45237
45238         link: fix test failure on Solaris 9
45239         * lib/link.c (rpl_link): Don't assume link will catch bogus
45240         trailing slash on source.
45241
45242         test-symlinkat: enhance test
45243         * tests/test-readlink.c (main): Move guts...
45244         * tests/test-readlink.h (test_readlink): ...into new file.
45245         * tests/test-symlink.c (main): Move guts...
45246         * tests/test-symlink.h (test_symlink): ...into new file.
45247         * tests/test-symlinkat.c (main): Use new files for further
45248         coverage.
45249         (do_symlink, do_readlink): New helper functions.
45250         * modules/symlink-tests (Files): Ship new file.
45251         (Depends-on): Add stdbool.
45252         * modules/readlink-tests (Files): Ship new file.
45253         (Depends-on): Add stdbool.
45254         * modules/symlinkat-tests (Files): Use new files.
45255
45256 2009-09-23  Eric Blake  <ebb9@byu.net>
45257
45258         readlink: document portability issue with symlink length
45259         * doc/posix-functions/lstat.texi (lstat): Mention that some file
45260         systems have bogus st_size on symlinks, and mention the
45261         areadlink-with-size module.
45262         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
45263         * doc/posix-functions/readlink.texi (readlink): Mention the
45264         areadlink module, and ERANGE failure.
45265         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
45266         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
45267
45268         readlink: fix Solaris 9 bug with trailing slash
45269         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
45270         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
45271         * doc/posix-functions/readlink.texi (readlink): Document this.
45272         * modules/readlink-tests: New test.
45273         * tests/test-readlink.c: Likewise.
45274
45275         readlink: fix cygwin 1.5.x bug with return type
45276         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
45277         * lib/unistd.in.h (readlink): Use ssize_t.
45278         * lib/readlink.c (readlink): Likewise.
45279         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
45280         * modules/unistd (Makefile.am): Substitute it.
45281         * lib/unistd.in.h (readlink): Declare replacement.
45282         * doc/posix-functions/readlink.texi (readlink): Document this.
45283
45284         symlink: use throughout gnulib
45285         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
45286         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
45287         symlink is not used.
45288         * modules/symlinkat (Depends-on): Add symlink.
45289         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
45290         * modules/canonicalize-tests (Depends-on): Likewise.
45291         * modules/lstat-tests (Depends-on): Likewise.
45292         * modules/openat-tests (Depends-on): Likewise.
45293         * modules/remove-tests (Depends-on): Likewise.
45294         * modules/rmdir-tests (Depends-on): Likewise.
45295         * modules/unlink-tests (Depends-on): Likewise.
45296         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
45297         * tests/test-canonicalize.c (symlink): Likewise.
45298         * tests/test-fstatat.c (symlink): Likewise.
45299         * tests/test-lstat.c (symlink): Likewise.
45300         * tests/test-remove.c (symlink): Likewise.
45301         * tests/test-rmdir.c (symlink): Likewise.
45302         * tests/test-unlink.c (symlink): Likewise.
45303         * tests/test-unlinkat.c (symlink): Likewise.
45304
45305         symlink: new module, for Solaris 9 bug
45306         * modules/symlink: New file.
45307         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
45308         * lib/symlink.c: Likewise.
45309         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
45310         * modules/unistd (Makefile.am): Substitute them.
45311         * lib/unistd.in.h (symlink): Declare replacement.
45312         * MODULES.html.sh (File system functions): Mention it.
45313         * doc/posix-functions/symlink.texi (symlink): Likewise.
45314         * modules/symlink-tests: New test.
45315         * tests/test-symlink.c: Likewise.
45316
45317 2009-09-23  Bruno Haible  <bruno@clisp.org>
45318
45319         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
45320         when needed.
45321         Test case: gnulib-tool --import --with-tests atexit inttypes.
45322         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
45323
45324 2009-09-23  Bruno Haible  <bruno@clisp.org>
45325
45326         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
45327         subcommand, not in a subshell.
45328
45329 2009-09-22  Eric Blake  <ebb9@byu.net>
45330
45331         unistd: sort replacement declarations
45332         * lib/unistd.in.h: Sort declarations.
45333
45334         open, openat: minor optimization
45335         * lib/open.c (open): If open succeeded, len is non-zero.
45336         * lib/openat.c (rpl_openat): Likewise.
45337
45338         link-follow: ensure correct result
45339         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
45340         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
45341         distinguish between possible failures.
45342
45343 2009-09-21  Eric Blake  <ebb9@byu.net>
45344
45345         fts: avoid compiler warning
45346         * lib/fts.c (dirent_inode_sort_may_be_useful)
45347         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
45348
45349 2009-09-19  Bruno Haible  <bruno@clisp.org>
45350
45351         * lib/progreloc.c (canonicalize_file_name): New declaration.
45352
45353 2009-09-19  Eric Blake  <ebb9@byu.net>
45354
45355         link: fix quoting
45356         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
45357
45358         openat: fix openat bugs on Solaris 9
45359         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
45360         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
45361         * modules/openat (Depends-on): Add open.
45362         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
45363         * modules/fcntl-h (Makefile.am): Substitute it.
45364         * lib/fcntl.in.h (openat): Declare replacement.
45365         * doc/posix-functions/openat.texi (openat): Document this.
45366
45367         openat: move fstatat and unlinkat into correct files
45368         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
45369         compiled.
45370         * lib/openat.c (fstatat, unlinkat): Move...
45371         * lib/fstatat.c (fstatat): ...into correct files.
45372         * lib/unlinkat.c (unlinkat): Likewise.
45373
45374         openat: fix unlinkat bugs on Solaris 9
45375         * lib/unlinkat.c (unlinkat): New file.
45376         * modules/openat (Depends-on): Add unlink.
45377         (Files): Distribute it.
45378         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
45379         trailing slash behavior is broken.
45380         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
45381         * modules/unistd (Makefile.am): Substitute it.
45382         * lib/unistd.in.h (unlinkat): Declare replacement.
45383         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
45384
45385         openat: fix fstatat bugs on Solaris 9
45386         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
45387         stat.
45388         * doc/posix-functions/fstatat.texi (fstatat): Document this.
45389
45390         test-unlinkat: enhance test, to expose Solaris 9 bug
45391         * tests/test-unlink.c (main): Factor guts...
45392         * tests/test-unlink.h (test_rmdir_func): ...into new file.
45393         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
45394         * tests/test-rmdir.c (main): Adjust caller.
45395         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
45396         (unlinker): New helper function.
45397         (rmdirat): Enhance check.
45398         * modules/rmdir-tests (Depends-on): Add stdbool.
45399         * modules/unlink-tests (Depends-on): Likewise.
45400         (Files): Add test-unlink.h.
45401         * modules/openat-tests (Files): Likewise.
45402         (Depends-on): Add unlinkdir.
45403
45404         test-fstatat: new test, to expose Solaris 9 bugs
45405         * tests/test-stat.c (main): Factor guts...
45406         * tests/test-stat.h (test_stat_func): ...into new file.
45407         * tests/test-lstat.c (main): Factor guts...
45408         * tests/test-lstat.h (test_lstat_func): ...into new file.
45409         * tests/test-fstatat.c: New file.
45410         * modules/stat-tests (Files): Add test-stat.h.
45411         * modules/lstat-tests (Files): Add test-lstat.h.
45412         (Depends-on): Add stdbool.
45413         * modules/openat-tests (Depends-on): Add pathmax.
45414         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
45415         (Makefile.am): Run new test.
45416
45417         remove: new module, for mingw and Solaris 9 bugs
45418         * modules/remove: New file.
45419         * lib/remove.c: Likewise.
45420         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
45421         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
45422         * modules/stdio (Makefile.am): Use them.
45423         * lib/stdio.in.h (remove): Declare replacement.
45424         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45425         * doc/posix-functions/remove.texi (remove): Likewise.
45426         * modules/remove-tests: New test.
45427         * tests/test-remove.c: Likewise.
45428
45429         unlink: new module, for Solaris 9 bug
45430         * modules/unlink: New file.
45431         * lib/unlink.c: Likewise.
45432         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
45433         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
45434         * modules/unistd (Makefile.am): Use them.
45435         * lib/unistd.in.h (stat): Declare replacement.
45436         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45437         * doc/posix-functions/unlink.texi (unlink): Likewise.
45438         * modules/unlink-tests: New test.
45439         * tests/test-unlink.c: Likewise.
45440
45441         lstat: fix Solaris 9 bug
45442         * lib/lstat.c (lstat): Also check for trailing slash on
45443         non-symlink, non-directories.  Use stat module to simplify logic.
45444         * doc/posix-functions/lstat.texi (lstat): Document it.
45445         * modules/lstat-tests (Depends-on): Add errno, same-inode.
45446         (configure.ac): Check for symlink.
45447         * tests/test-lstat.c (main): Add more tests.
45448
45449         stat: add as dependency to other modules
45450         * modules/chown (Depends-on): Add stat.
45451         * modules/euidaccess (Depends-on): Likewise.
45452         * modules/fchdir (Depends-on): Likewise.
45453         * modules/isdir (Depends-on): Likewise.
45454         * modules/link (Depends-on): Likewise.
45455         * modules/lstat (Depends-on): Likewise.
45456         * modules/mkdir-p (Depends-on): Likewise.
45457         * modules/modechange (Depends-on): Likewise.
45458         * modules/open (Depends-on): Likewise.
45459         * modules/readlink (Depends-on): Likewise.
45460         * modules/same (Depends-on): Likewise.
45461
45462         stat: fix Solaris 9 bug
45463         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
45464         slash.
45465         * lib/stat.c (rpl_stat): Work around it.
45466         * doc/posix-functions/stat.texi (stat): Update documentation.
45467
45468         stat: new module, for mingw bug
45469         * modules/stat: New file.
45470         * lib/stat.c: Likewise.
45471         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
45472         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
45473         * modules/sys_stat (Makefile.am): Use them.
45474         * lib/sys_stat.in.h (stat): Declare replacement.
45475         * lib/openat.c (fstatat): Deal with lstat and stat being function
45476         macros.
45477         * modules/openat (Depends-on): Add inline.
45478         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45479         * doc/posix-functions/stat.texi (stat): Likewise.
45480         * modules/stat-tests: New test.
45481         * tests/test-stat.c: Likewise.
45482
45483 2009-09-19  Jim Meyering  <meyering@redhat.com>
45484
45485         syntax-check: detect unnecessary inclusion of canonicalize.h
45486         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
45487
45488 2009-09-19  Eric Blake  <ebb9@byu.net>
45489
45490         canonicalize-lgpl: adjust clients to use correct header
45491         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
45492         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
45493         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
45494         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
45495         * lib/progreloc.c (includes): Likewise.
45496
45497 2009-09-19  Jim Meyering  <meyering@redhat.com>
45498
45499         test-posixtm.c: correct a comment
45500         * tests/test-posixtm.c: Correct first-line comment.
45501         Spotted by Eric Blake.
45502
45503 2009-09-16  Jim Meyering  <meyering@redhat.com>
45504
45505         posixtm-tests: make T const-correct; add a test case
45506         * tests/test-posixtm.c (T): Declare const.
45507         Add a test for -(2^31+1).
45508         Remove useless can-succeed-only-in-2002 test.
45509
45510         posixtm-tests: adjust the sole failing test
45511         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
45512         expected output matches what mktime now produces.  Cross-checked via
45513         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
45514
45515         posixtm: move #ifdef'd tests into a new module
45516         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
45517         * tests/test-posixtm.c: ... this new file.
45518         * modules/posixtm-tests: New module.
45519
45520 2009-09-19  Eric Blake  <ebb9@byu.net>
45521
45522         openat: simplify use of at-func.c
45523         * lib/at-func.c (includes): Include prerequisites here, to
45524         simplify requirements on client files.
45525         * lib/openat-priv.h: Add double-inclusion guard.
45526         * lib/faccessat.c (includes): Simplify.
45527         * lib/fchmodat.c (includes): Likewise.
45528         * lib/fchownat.c (includes): Likewise.
45529         * lib/mkdirat.c (includes): Likewise.
45530         * lib/mkfifoat.c (includes): Likewise.
45531         * lib/symlinkat.c (includes): Likewise.
45532
45533         openat: allow return of fd 0
45534         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
45535         * modules/save-cwd (Depends-on): Replace fcntl-safer with
45536         unistd-safer.
45537         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
45538         <fcntl.h>; this module does not leak fds.
45539         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
45540         must be allowed to return 0, leaving openat_safer to add the
45541         safety.
45542         (openat_permissive): Avoid writing to just-opened fd 2 if
45543         restoring the current directory fails.
45544         * lib/openat-die.c (openat_restore_fail): Add comment.
45545         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
45546         (save_cwd): Guarantee safe fd, but without use of open_safer.
45547         * tests/test-openat.c: New test.
45548         * modules/openat-tests (Files, Makefile.am): Distribute and build
45549         new file.
45550
45551         relocatable-prog-wrapper: fix build
45552         * modules/relocatable-prog-wrapper (Files): Update name of
45553         canonicalize m4 file, broken on 2009-09-17.
45554         Reported by emad hajjar <aleppos@hotmail.com>.
45555
45556 2009-09-19  Bruno Haible  <bruno@clisp.org>
45557
45558         * lib/safe-alloc.h: Use the standard header with GPL copyright.
45559         * lib/safe-alloc.c: Likewise.
45560         Reported by Ian Beckwith <ianb@erislabs.net>.
45561
45562 2009-09-18  Bruno Haible  <bruno@clisp.org>
45563
45564         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
45565         Reported by <erobles@sensacd.com.mx>.
45566
45567 2009-09-17  Eric Blake  <ebb9@byu.net>
45568
45569         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
45570         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
45571         slashes when checking if last component is missing.
45572         * tests/test-canonicalize.c (main): Test this.
45573
45574         canonicalize, canonicalize-lgpl: honor // if distinct from /
45575         * modules/canonicalize (Files): Add double-slash-root.m4.
45576         * modules/canonicalize-lgpl (Files): Likewise.
45577         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
45578         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
45579         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
45580         fallback definition.
45581         (canonicalize_filename_mode): Use it to protect //.
45582         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
45583         (__realpath): Likewise.
45584         * tests/test-canonicalize.c (main): Test this.
45585         * tests/test-canonicalize-lgpl.c (main): Likewise.
45586         * modules/canonicalize-tests (Depends-on): Add same-inode.
45587         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
45588
45589         canonicalize-lgpl: fix glibc bug with trailing slash
45590         * m4/canonicalize-lgpl.m4: Move contents...
45591         * m4/canonicalize.m4: ...here.
45592         (gl_CANONICALIZE_LGPL): Factor realpath check...
45593         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
45594         glibc 2.3.5 bug, fixed 2005-04-27.
45595         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
45596         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
45597         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
45598         * modules/canonicalize-lgpl (Files): Manage file rename.
45599         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
45600         * modules/stdlib (Makefile.am): Substitute witness.
45601         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
45602         is needed.
45603         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
45604         replacement is required.
45605         * lib/canonicalize.c (canonicalize_file_name): Likewise.
45606         * doc/glibc-functions/canonicalize_file_name.texi
45607         (canonicalize_file_name): Document this.
45608         * doc/posix-functions/realpath.texi (realpath): Likewise.
45609
45610         canonicalize-lgpl: reject non-directory with trailing slash
45611         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
45612         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
45613         catches failures in glibc 2.3.5.
45614         * tests/test-canonicalize.c (main): Likewise.
45615
45616         canonicalize-lgpl: use native realpath if it works
45617         * lib/canonicalize-lgpl.c (realpath): Guard with
45618         FUNC_REALPATH_WORKS.
45619         * lib/stdlib.in.h (realpath): Make declaration optional based on
45620         HAVE_REALPATH.
45621         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
45622         native realpath works.
45623         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
45624         * modules/stdlib (Makefile.am): Substitute witness.
45625
45626         canonicalize, canonicalize-lgpl: use <stdlib.h>
45627         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
45628         (Include): Mention <stdlib.h>.
45629         (configure.ac): Mention functions we provide.
45630         * modules/canonicalize (configure.ac): Likewise.
45631         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
45632         realpath if canonicalize_file_name is missing.
45633         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
45634         * modules/stdlib (Makefile.am): Substitute witnesses.
45635         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
45636         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
45637         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
45638         * NEWS: Document this.
45639         * doc/glibc-functions/canonicalize_file_name.texi
45640         (canonicalize_file_name): Likewise.
45641         * doc/posix-functions/realpath.texi (realpath): Likewise.
45642         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
45643
45644         test-canonicalize: consolidate into single C program
45645         * tests/test-canonicalize.sh: Delete; move setup into...
45646         * tests/test-canonicalize.c (main): ...the program, making it
45647         easier to run in debugger.  Add some tests.
45648         * modules/canonicalize-tests (Files): Remove unused file.
45649         (Depends-on): Add progname.
45650         (configure.ac, Makefile.am): Simplify.
45651
45652         test-canonicalize-lgpl: consolidate into single C program
45653         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
45654         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
45655         easier to run in debugger.  Add some tests.
45656         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
45657         (configure.ac, Makefile.am): Simplify.
45658
45659         canonicalize: avoid resolvepath
45660         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
45661         unnecessary checks.
45662         * lib/canonicalize.c (includes): Simplify.
45663         (canonicalize_file_name): Drop resolvepath implementation.
45664         * modules/canonicalize (Depends-on): Drop filenamecat.
45665
45666         canonicalize: don't lose errno
45667         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
45668         over calls to free.
45669
45670         canonicalize: simplify errno handling
45671         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
45672         assignment.
45673
45674         canonicalize, canonicalize-lgpl: update module dependencies
45675         * modules/canonicalize (Depends-on): Add extensions, lstat,
45676         pathmax, stdlib.
45677         (Files): Drop pathmax.h.
45678         (configure.ac): Adjust macro name.
45679         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
45680         lstat, stdlib, sys_stat.
45681         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
45682         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
45683         extensions.
45684         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
45685         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
45686         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
45687         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
45688         declaration, if available.
45689         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
45690         we can rely on the readlink module.
45691         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
45692         (includes): Use <unistd.h> unconditionally.
45693
45694 2009-09-17  Eric Blake  <ebb9@byu.net>
45695
45696         maint: make Include sections of modules consistent
45697         * modules/alloca: Use only header name; no need to list #include.
45698         * modules/alloca-opt: Likewise.
45699         * modules/arpa_inet: Likewise.
45700         * modules/canon-host: Likewise.
45701         * modules/configmake: Likewise.
45702         * modules/dirent: Likewise.
45703         * modules/eealloc: Likewise.
45704         * modules/environ: Likewise.
45705         * modules/fchdir: Likewise.
45706         * modules/fcntl: Likewise.
45707         * modules/fcntl-h: Likewise.
45708         * modules/gethrxtime: Likewise.
45709         * modules/gettime: Likewise.
45710         * modules/ignore-value: Likewise.
45711         * modules/inet_ntop: Likewise.
45712         * modules/inet_pton: Likewise.
45713         * modules/inttypes: Likewise.
45714         * modules/isnand-nolibm: Likewise.
45715         * modules/isnanf-nolibm: Likewise.
45716         * modules/mbchar: Likewise.
45717         * modules/mbfile: Likewise.
45718         * modules/mbiter: Likewise.
45719         * modules/mbuiter: Likewise.
45720         * modules/netdb: Likewise.
45721         * modules/netinet_in: Likewise.
45722         * modules/nproc: Likewise.
45723         * modules/pagealign_alloc: Likewise.
45724         * modules/poll: Likewise.
45725         * modules/printf-frexp: Likewise.
45726         * modules/pthread: Likewise.
45727         * modules/putenv: Likewise.
45728         * modules/random_r: Likewise.
45729         * modules/relocatable-prog: Likewise.
45730         * modules/search: Likewise.
45731         * modules/select: Likewise.
45732         * modules/selinux-h: Likewise.
45733         * modules/settime: Likewise.
45734         * modules/signal: Likewise.
45735         * modules/size_max: Likewise.
45736         * modules/socklen: Likewise.
45737         * modules/ssize_t: Likewise.
45738         * modules/stdarg: Likewise.
45739         * modules/stdbool: Likewise.
45740         * modules/stddef: Likewise.
45741         * modules/stdint: Likewise.
45742         * modules/stdio: Likewise.
45743         * modules/stdlib: Likewise.
45744         * modules/string: Likewise.
45745         * modules/strings: Likewise.
45746         * modules/sys_file: Likewise.
45747         * modules/sys_ioctl: Likewise.
45748         * modules/sys_select: Likewise.
45749         * modules/sys_socket: Likewise.
45750         * modules/sys_stat: Likewise.
45751         * modules/sys_time: Likewise.
45752         * modules/sys_times: Likewise.
45753         * modules/sys_utsname: Likewise.
45754         * modules/sys_wait: Likewise.
45755         * modules/sysexits: Likewise.
45756         * modules/time: Likewise.
45757         * modules/times: Likewise.
45758         * modules/tmpfile: Likewise.
45759         * modules/trim: Likewise.
45760         * modules/unistd: Likewise.
45761         * modules/wchar: Likewise.
45762         * modules/wctype: Likewise.
45763
45764 2009-09-17  Bruno Haible  <bruno@clisp.org>
45765
45766         Make getdate.y compile on QNX and NetBSD 5 / i386.
45767         * m4/getdate.m4 (gl_GETDATE): Conditionally define
45768         TIME_T_FITS_IN_LONG_INT.
45769         * lib/getdate.y (long_time_t): New type.
45770         (relative_time): Change type of 'seconds' field to long_time_t.
45771         (get_date): Update types of local variables. Check against overflow
45772         during conversion from long_time_t to time_t.
45773         Reported by Matt Kraai <kraai@ftbfs.org>
45774         and Hasso Tepper <hasso@netbsd.org>.
45775
45776 2009-09-17  Bruno Haible  <bruno@clisp.org>
45777
45778         * modules/COPYING: Update copyright years.
45779         * modules/README: Likeiwse.
45780         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
45781         Reported by Ian Beckwith <ianb@erislabs.net>.
45782
45783 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
45784
45785         * users.txt: Update references for gnuit package.
45786
45787 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
45788
45789         * m4/getdelim.m4: Fix typo in copyright line.
45790
45791 2009-09-17  Bruno Haible  <bruno@clisp.org>
45792
45793         * lib/atoll.c: Use the standard header with GPL copyright.
45794         * lib/argz.in.h: Likewise.
45795         * lib/glob.c: Likewise.
45796         * lib/glob-libc.h: Likewise.
45797         * lib/random_r.c: Likewise.
45798         * lib/siglist.h: Likewise.
45799         * lib/strsignal.c: Likewise.
45800         Reported by Ian Beckwith <ianb@erislabs.net>.
45801
45802 2009-09-17  Eric Blake  <ebb9@byu.net>
45803
45804         rmdir: ensure correct dependency order
45805         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
45806
45807 2009-09-17  Bruno Haible  <bruno@clisp.org>
45808
45809         Disable assertion that fails on NetBSD 5 / i386.
45810         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
45811         Reported by Sam Steingold <sds@gnu.org>
45812         and Hasso Tepper <hasso@netbsd.org>.
45813
45814 2009-09-16  Eric Blake  <ebb9@byu.net>
45815
45816         unlinkdir: port to mingw
45817         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
45818         on which no one can unlink a directory.
45819
45820         stdlib: sort witness names
45821         * modules/stdlib (Makefile.am): Sort replacements.
45822         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
45823         * lib/stdlib.in.h: Likewise.
45824
45825         parse-duration-tests: avoid link failure
45826         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
45827         LIBINTL.
45828         Reported by Tom G. Christensen.
45829
45830         openat-tests: ensure unlinkat behaves like rmdir
45831         * tests/test-rmdir.c (main): Factor guts...
45832         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
45833         * modules/rmdir-tests (Files): Ship new file.
45834         * modules/openat-tests: New test.
45835         * tests/test-unlinkat.c: Likewise.
45836
45837         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
45838         * modules/rmdir-errno (Status, Notice): Now obsolete.
45839
45840         rmdir: work around cygwin 1.5.x and mingw bugs
45841         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
45842         * lib/rmdir.c (rmdir): Work around it.
45843         * modules/rmdir (Status, Notice): No longer obsolete.
45844         (Files): Add dos.m4.
45845         (Depends-on): Add unistd.
45846         (configure.ac): Set witnesses.
45847         (License): Relax to LGPLv2+.
45848         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
45849         * modules/unistd (Makefile.am): Substitute witnesses.
45850         * lib/unistd.in.h (rmdir): Declare replacement.
45851         * doc/posix-functions/rmdir.texi (rmdir): Document this.
45852         * modules/rmdir-tests: New tests.
45853         * tests/test-rmdir.c: Likewise.
45854
45855 2009-09-15  Eric Blake  <ebb9@byu.net>
45856
45857         fchdir: improve use of replacement functions
45858         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
45859         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
45860         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
45861         REPLACE_CLOSEDIR.
45862         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
45863         * modules/sys_stat (Makefile.am): Substitute correct witness.
45864         * modules/dirent (Makefile.am): Likewise.
45865         * modules/unistd (Makefile.am): Likewise.
45866         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
45867         * lib/unistd.in.h (dup): Likewise.
45868         * lib/sys_stat.in.h (fstat): Likewise.
45869
45870         maint: ignore gnulib-tool temp files
45871         * .gitignore: Ignore files created during gnulib-tool --test.
45872
45873 2009-09-13  Jim Meyering  <meyering@redhat.com>
45874
45875         posixtm: don't reject a time that specify "60" as the number of seconds
45876         * lib/posixtm.c (posixtime): The code to reject invalid dates
45877         would also reject a time specified with the .60 suffix.
45878         But POSIX allows that, in order to accommodate leap seconds.
45879         So don't reject it.
45880         (main): Adjust tests accordingly.
45881         * modules/posixtm (Depends-on): Add stpcpy.
45882
45883 2009-09-11  Jim Meyering  <meyering@redhat.com>
45884
45885         announce-gen: include [$release_type] in emitted Subject:
45886         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
45887         e.g., [stable] in the emitted Subject: line.
45888
45889 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45890
45891         Remove obsolete macros from several modules.
45892         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
45893         obsolete Autoconf macros with their modern counterparts.
45894         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
45895         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
45896         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
45897         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
45898         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
45899         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
45900         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
45901         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
45902         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
45903         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
45904         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
45905         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
45906         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
45907         * m4/sockets.m4 (gl_SOCKETS): Likewise.
45908         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
45909         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
45910         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
45911         * m4/time_r.m4 (gl_TIME_R): Likewise.
45912         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
45913         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
45914         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
45915
45916         Fix copyright header in build-aux scripts.
45917         * build-aux/git-version-gen: Fix copyright header to match GPLv3
45918         recommendation.
45919         * build-aux/ncftpput-ftp: Likewise.
45920         * build-aux/update-copyright: Likewise.
45921
45922 2009-09-09  Eric Blake  <ebb9@byu.net>
45923
45924         test-link: allow Linux choice of errno
45925         * tests/test-link.c (main): Relax test for alternate error.
45926
45927         strndup: fix improper m4 caching
45928         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
45929         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
45930         (gl_PREREQ_STRNDUP): Delete.
45931         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
45932         * modules/string (Makefile.am): Substitute it.
45933         * lib/string.in.h (strndup): Modernize prototype.
45934
45935         getcwd: port to mingw
45936         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
45937         different from the POSIX assumptions made throughout the getcwd
45938         module; fortunately, the mingw getcwd does not need replacement.
45939         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
45940         * modules/getcwd-tests: New test.
45941         * tests/test-getcwd.c: Likewise.
45942
45943         link: fix platform bugs
45944         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
45945         * lib/link.c (link): Work around them.  Fix related mingw bug.
45946         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
45947         * modules/unistd (Makefile.am): Substitute it.
45948         * lib/unistd.in.h (link): Declare replacement.
45949         * doc/posix-functions/link.texi (link): Document this.
45950         * modules/link (Depends-on): Add strdup-posix, sys_stat.
45951
45952         test-link: consolidate into single C program, test more cases
45953         * tests/test-link.sh: Delete.
45954         * tests/test-link.c: Test more error conditions.  Exposes bugs on
45955         at least Cygwin and Solaris.
45956         * modules/link-tests (Files): Remove unused file.
45957         (Depends-on): Add errno, sys_stat.
45958         (Makefile.am): Simplify.
45959
45960 2009-09-08  Bruno Haible  <bruno@clisp.org>
45961
45962         Work around towlower, towupper bug on mingw.
45963         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
45964         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
45965         * doc/posix-functions/towlower.texi: Mention the mingw bug.
45966         * doc/posix-functions/towupper.texi: Likewise.
45967         Reported by Eric Blake.
45968
45969 2009-09-08  Jim Meyering  <meyering@redhat.com>
45970
45971         build: don't try to run autoheader if we don't use it
45972         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
45973         is not used in configure.ac.
45974
45975 2009-09-08  Eric Blake  <ebb9@byu.net>
45976
45977         euidaccess: fix compilation error
45978         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
45979
45980         rawmemchr: relax license
45981         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
45982         okay.
45983         Reported by Jim Meyering.
45984
45985         mkfifoat: new module
45986         * modules/mkfifoat: New file.
45987         * lib/mkfifoat.c: Likewise.
45988         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
45989         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
45990         * modules/sys_stat (Makefile.am): Use them.
45991         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
45992         * MODULES.html.sh (File system functions): Mention module.
45993         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
45994         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
45995         * modules/mkfifoat-tests: New test.
45996         * tests/test-mkfifoat.c: Likewise.
45997
45998         strchrnul: relax license
45999         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
46000         okay.
46001         Reported by Jim Meyering.
46002
46003 2009-09-08  Eric Blake  <ebb9@byu.net>
46004
46005         fstatat: fix compilation on Solaris
46006         * lib/fstatat.c (includes): Add fcntl.h.
46007         Reported by Pádraig Brady.
46008
46009 2009-09-07  Eric Blake  <ebb9@byu.net>
46010
46011         rename: modernize replacement
46012         * modules/rename (Depends-on): Add stdio.
46013         (configure.ac): Declare witness.
46014         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
46015         stdio take care of replacement.
46016         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
46017         * modules/stdio (Makefile.am): Substitute them.
46018         * lib/stdio.in.h (rename): Declare replacement.
46019         * lib/rename.c (includes): Allow cross-compilation to non-windows
46020         machines.
46021         * doc/posix-functions/rename.texi (rename): Improve
46022         documentation.
46023
46024         stdio: sort witness names
46025         * modules/stdio (Makefile.am): Sort replacements.
46026         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46027         * lib/stdio.in.h: Likewise.
46028
46029         getcwd: minor cleanups
46030         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
46031         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
46032
46033         openat: provide more convenience names
46034         * modules/faccessat (configure.ac): Add C witness.
46035         * lib/unistd.in.h (readlinkat): Fix typo.
46036         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
46037         convenience wrappers.
46038         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
46039         wrappers in syntax checks.
46040
46041 2009-09-06  Eric Blake  <ebb9@byu.net>
46042
46043         doc: fix comments in recent patches
46044         * lib/faccessat.c: Mention correct function.
46045         * lib/fchmodat.c: Likewise.
46046         * lib/fchownat.c: Likewise.
46047         * lib/symlinkat.c: Likewise.
46048         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
46049         constants.
46050
46051         faccessat, symlinkat: continue cleanup of previous patch
46052         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
46053         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
46054         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
46055         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
46056         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
46057         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
46058         set.
46059
46060 2009-09-06  Bruno Haible  <bruno@clisp.org>
46061
46062         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
46063         (fstatat): Declare if GNULIB_FSTATAT is set.
46064         (mkdirat): Declare if GNULIB_MKDIRAT is set.
46065         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
46066         (unlinkat): Declare if GNULIB_UNLINKAT is set.
46067         * modules/fcntl-h (Files): Remove m4/openat.m4.
46068         * modules/sys_stat (Files): Remove m4/openat.m4.
46069         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
46070         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
46071         * modules/unistd (Files): Remove m4/openat.m4.
46072         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
46073         GNULIB_OPENAT.
46074         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
46075         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
46076         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
46077         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
46078         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
46079         gl_OPENAT_DEFAULTS.
46080         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
46081         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
46082         Don't require gl_OPENAT_DEFAULTS.
46083         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
46084         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
46085         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
46086         (gl_OPENAT_DEFAULTS): Remove macro.
46087
46088 2009-09-06  Bruno Haible  <bruno@clisp.org>
46089
46090         * modules/openat (configure.ac): Remove unneeded witness.
46091
46092 2009-09-06  Bruno Haible  <bruno@clisp.org>
46093
46094         Set errno to ENOSYS when a function is entirely unsupported.
46095         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
46096         EOPNOTSUPP.
46097         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
46098         * modules/chown (Depends-on): Remove errno.
46099
46100 2009-09-06  Bruno Haible  <bruno@clisp.org>
46101
46102         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
46103
46104 2009-09-06  Bruno Haible  <bruno@clisp.org>
46105
46106         * lib/sys_stat.in.h: Fix preprocessor command indentation.
46107
46108 2009-09-06  Ben Pfaff  <blp@gnu.org>
46109             Bruno Haible  <bruno@clisp.org>
46110
46111         Work around a glibc bug in strtok_r.
46112         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
46113         Undefine if UNDEFINE_STRTOK_R is set.
46114         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
46115         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46116         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
46117         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
46118         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
46119         UNDEFINE_STRTOK_R.
46120         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
46121
46122 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
46123
46124         exclude: minor fix
46125         * lib/exclude.c: Include wctype.h
46126
46127 2009-09-06  Akim Demaille  <demaille@gostai.com>
46128
46129         bootstrap: improve error message
46130         * build-aux/bootstrap (find_tool): Upon failure, report the list
46131         of candidates.
46132         Honor the initial value of the envvar.
46133
46134 2009-09-05  Eric Blake  <ebb9@byu.net>
46135
46136         symlinkat: new module
46137         * modules/symlinkat: New file.
46138         * lib/symlinkat.c: Likewise.
46139         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
46140         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
46141         * modules/unistd (Makefile.am): Use them.
46142         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
46143         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
46144         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
46145         * MODULES.html.sh (File system functions): Mention module.
46146         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
46147         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
46148         * modules/symlinkat-tests: New test.
46149         * tests/test-symlinkat.c: Likewise.
46150
46151         test-openat-safer: add more checks
46152         * tests/test-openat-safer.c (main): Check more code paths.
46153
46154 2009-09-05  Jim Meyering  <meyering@redhat.com>
46155
46156         syntax-check: detect unnecessary inclusion of openat.h
46157         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
46158
46159 2009-09-05  Bruno Haible  <bruno@clisp.org>
46160
46161         Support towlower, towupper.
46162         * doc/posix-functions/towlower.texi: Mention module wctype.
46163         * doc/posix-functions/towupper.texi: Likewise.
46164         * lib/wctype.in.h (towlower, towupper): New functions.
46165         * tests/test-wctype.c: Include stdio.h, stdlib.h.
46166         (ASSERT): New macro.
46167         (e): New variable.
46168         (main): Test also towlower, towupper. Test WEOF argument.
46169         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46170
46171 2009-09-05  Bruno Haible  <bruno@clisp.org>
46172
46173         Fix conversion behaviour when the input is invalid.
46174         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
46175         mark occurring in first pass of indirect conversion.
46176         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
46177         input.
46178         Found by clang's static analyzer.
46179
46180 2009-09-05  Bruno Haible  <bruno@clisp.org>
46181
46182         * tests/test-striconveh.c (main): Test indirect conversion on platforms
46183         where direct conversion is possible.
46184
46185 2009-09-04  Eric Blake  <ebb9@byu.net>
46186
46187         openat: fail with ENOENT on empty name
46188         * lib/openat-proc.c (openat_proc_name): Special-case the empty
46189         buffer.
46190
46191         link-follow: fix logic bug in prior patch
46192         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
46193         reversed sense of yes and no in prior patch.  Avoid confusing
46194         compilation failure with desired semantics.
46195
46196         link-follow: accommodate mingw and cross-compilation
46197         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
46198         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
46199         cross-compilation results to -1, to make linkat easier to
46200         implement when cross-compiling.  Trivially support mingw.
46201         * modules/link-follow (configure.ac): Call new name.
46202         * NEWS: Mention this.
46203
46204 2009-09-03  Eric Blake  <ebb9@byu.net>
46205
46206         faccessat: compile replacement
46207         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
46208         needed.
46209
46210         fts: fix compilation error
46211         * lib/fts.c (includes): Re-add "openat.h", for
46212         openat_needs_fchdir.
46213
46214         faccessat: new module
46215         * modules/faccessat: New file.
46216         * lib/faccessat.c: Likewise.
46217         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
46218         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
46219         * modules/unistd (Makefile.am): Use it.
46220         * lib/unistd.in.h (faccessat): Declare it.
46221         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
46222         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
46223         * MODULES.html.sh (File system functions): Mention it.
46224         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
46225         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
46226
46227         euidaccess: prefer POSIX over non-standard implementation
46228         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
46229         * lib/euidaccess.c (euidaccess): Use it if available.
46230
46231         openat: make template easier to use
46232         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
46233         AT_FUNC_F2 to be undefined.
46234         (VALIDATE_FLAG): New macro; use it to reject bad flags.
46235         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
46236         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
46237         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
46238         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
46239         Likewise.
46240         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
46241         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
46242         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
46243         Likewise.
46244
46245         openat: declare in POSIX headers
46246         * NEWS: Mention this.
46247         * modules/openat (configure.ac): Declare witnesses.
46248         (Depends-on): Add fcntl-h, sys_stat, unistd.
46249         (Include): Mention correct headers.
46250         * modules/fcntl-h (Depends-on): Add link-warning.
46251         (Files): Add openat.m4.
46252         (Makefile.am): Substitute witnesses.
46253         * modules/sys_stat (Files, Makefile.am): Likewise.
46254         * modules/unistd (Files, Makefile.am): Likewise.
46255         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
46256         (gl_OPENAT_DEFAULTS): New macro.
46257         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
46258         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
46259         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
46260         (SYS_STAT_H): Remove unused variable.
46261         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
46262         * lib/fcntl--.h (includes): Remove unneeded header.
46263         * lib/openat-safer.c (includes): Likewise.
46264         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
46265         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
46266         appropriate headers.
46267         (__OPENAT_PREFIX): Delete.
46268         * lib/fcntl.in.h (openat): Provide declaration.
46269         (AT_FDCWD): Fix Solaris bug.
46270         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
46271         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
46272         * lib/fchmodat.c (includes):  Adjust to find declaration.
46273         * lib/fchownat.c (includes): Likewise.
46274         * lib/mkdirat.c (includes): Likewise.
46275         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
46276         still visible.
46277
46278 2009-09-02  Eric Blake  <ebb9@byu.net>
46279
46280         errno: use consistently
46281         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
46282         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
46283         * lib/canonicalize.c (ELOOP): Likewise.
46284         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
46285         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
46286         * lib/lchown.c (EOPNOTSUPP): Likewise.
46287         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
46288         * lib/savewd.c (ESTALE): Likewise.
46289         * lib/settime.c (ENOSYS): Likewise.
46290         * lib/utimens.c (ENOSYS): Likewise.
46291         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
46292         * lib/chdir-safer.c (ELOOP): Likewise.
46293         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
46294         * modules/c-stack (Depends-on): Add errno.
46295         * modules/canonicalize (Depends-on): Likewise.
46296         * modules/chdir-safer (Depends-on): Likewise.
46297         * modules/fdopendir (Depends-on): Likewise.
46298         * modules/inet_ntop (Depends-on): Likewise.
46299         * modules/inet_pton (Depends-on): Likewise.
46300         * modules/lchown (Depends-on): Likewise.
46301         * modules/openat (Depends-on): Likewise.
46302         * modules/savewd (Depends-on): Likewise.
46303         * modules/settime (Depends-on): Likewise.
46304         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
46305
46306         fts: avoid leaking fds
46307         * modules/fts (Depends-on): Add cloexec.
46308         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
46309         flag.
46310
46311         fts: make directory fds more robust
46312         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
46313         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
46314
46315         backupfile, chdir-long, fts, savedir: make safer
46316         * lib/backupfile.c (includes): Use "dirent--.h", since
46317         numbered_backup can write to stderr during readdir.
46318         * lib/savedir.c (includes): Likewise.
46319         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
46320         emulation can write to stderr on failure.
46321         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
46322         * lib/getcwd.c: Document why opendir_safer is unused.
46323         * lib/glob.c: Likewise.
46324         * lib/scandir.c: Likewise.
46325         * lib/openat-proc.c: Likewise, for open_safer.
46326         * modules/backupfile (Depends-on): Add dirent-safer.
46327         * modules/savedir (Depends-on): Likewise.
46328         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
46329         * modules/chdir-long (Depends-on): Add openat-safer.
46330
46331         openat-safer: new module
46332         * modules/openat-safer: New file.
46333         * lib/openat-safer.c: Likewise.
46334         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
46335         * lib/fcntl-safer.h (openat_safer): Declare.
46336         * lib/fcntl--.h (openat): Override.
46337         * MODULES.html.sh (File descriptor based I/O): Mention it.
46338         * lib/openat.h: Add double-inclusion guards.
46339         * lib/openat.c (includes): Only include "fcntl-safer.h", not
46340         "fcntl--.h", so we can implement openat.
46341         * modules/openat-safer-tests: New test.
46342         * tests/test-openat-safer.c: New file.
46343
46344         dirent-safer: new module
46345         * modules/dirent-safer: New file.
46346         * lib/dirent--.h: Likewise.
46347         * lib/dirent-safer.h: Likewise.
46348         * lib/opendir-safer.c: Likewise.
46349         * m4/dirent-safer.m4: Likewise.
46350         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
46351         * modules/dirent-safer-tests: New test.
46352         * tests/test-dirent-safer.c: New file.
46353         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
46354
46355         fdopendir: optimize on mingw
46356         * lib/unistd.in.h (_gl_directory_name): New prototype.
46357         * lib/fchdir.c (_gl_directory_name): Implement it.
46358         (fchdir): Use it to simplify implementation.
46359         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
46360         fchdir, when available, to avoid calling [f]chdir().
46361
46362         fdopendir: split into its own module
46363         * lib/openat.c (fdopendir): Move...
46364         * lib/fdopendir.c: ...into new file.
46365         * modules/fdopendir: New module.
46366         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
46367         * modules/openat (Depends-on): Add fdopendir.
46368         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
46369         fdopendir here.
46370         * modules/savedir (Depends-on): Only need fdopendir, not full
46371         openat.
46372         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
46373         * lib/openat.h (fdopendir): Drop prototype.
46374         * lib/dirent.in.h (fdopendir): Provide prototype.
46375         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
46376         * modules/dirent (Makefile.am): Substitute them.
46377         * MODULES.html.sh (File system functions): Mention it.
46378         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
46379         * modules/fdopendir-tests: New file.
46380         * tests/test-fdopendir.c: Likewise.
46381
46382         fchdir: use more consistent macro convention
46383         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
46384         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
46385         REPLACE_FCHDIR, rather than relying on config.h macros.
46386         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
46387         inside a single make-time REPLACE_FCHDIR block, rather than using
46388         the config.h FCHDIR_REPLACEMENT.
46389         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
46390         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
46391         Manage fstat replacement.
46392         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
46393         REPLACE_FCHDIR.
46394         * modules/sys_stat (Files): Add m4/unistd_h.m4.
46395         (Makefile.am): Substitute REPLACE_FCHDIR.
46396         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
46397         FCHDIR_REPLACEMENT.
46398         * lib/dup-safer.c (dup_safer): Likewise.
46399         * lib/dup2.c (rpl_dup2): Likewise.
46400         * lib/dup3.c (rpl_dup3): Likewise.
46401         * lib/open.c (rpl_open): Likewise.
46402
46403         fchdir: simplify error handling, and support dup3
46404         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
46405         stdbool, malloc-posix, realloc-posix.
46406         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
46407         (ensure_dirs_slot): Return false on allocation failure.
46408         (rpl_dup2): Delete.
46409         (_gl_register_dup): New function.
46410         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
46411         (_gl_register_fd): Close fd on allocation failure.
46412         * lib/fcntl.in.h (_gl_register_fd): Update signature.
46413         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
46414         prototype.
46415         (rpl_dup2_fchdir): Delete prototype.
46416         * lib/open.c (open): Update caller.
46417         * lib/dup2.c (dup2): Track fchdir metadata.
46418         * lib/dup3.c (dup3): Likewise.
46419         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
46420         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
46421
46422 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46423
46424         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
46425         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
46426         don't pass arguments to AC_OUTPUT.
46427
46428 2009-09-02  Bruno Haible  <bruno@clisp.org>
46429
46430         * modules/mkdtemp (License): Relicense under LGPLv2+.
46431         Reported by Paolo Bonzini.
46432
46433 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46434
46435         Replace uses of obsolete autoconf macros in Jim's modules.
46436         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
46437         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
46438         can evoke a warning from autoconf when run with -Wobsolete
46439         enabled.  They were declared obsolete for good reasons (see
46440         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
46441         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
46442         should not continue using the deprecated macros.
46443         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
46444         obsolete Autoconf macros with modern counterparts.
46445         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
46446         * m4/dos.m4 (gl_AC_DOS): Likewise.
46447         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
46448         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
46449         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
46450         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
46451         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
46452         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
46453         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
46454         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
46455         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
46456         Likewise.
46457         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
46458         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
46459         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
46460         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
46461         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
46462         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
46463
46464 2009-09-01  Eric Blake  <ebb9@byu.net>
46465
46466         fchdir: fix off-by-one bug in previous patch
46467         * lib/fchdir.c (rpl_fstat): Use correct bounds.
46468         (_gl_unregister_fd): Delete useless if.
46469
46470 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
46471
46472         maint.mk: sort the list of syntax-check rules
46473         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
46474         easier to get a sense of progress when the rules are run sequentially
46475         and take a long time.
46476
46477 2009-09-01  Simon Josefsson  <simon@josefsson.org>
46478
46479         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
46480         * modules/netinet_in: Likewise.
46481         * modules/sys_file: Likewise.
46482         * modules/sys_ioctl: Likewise.
46483         * modules/sys_select: Likewise.
46484         * modules/sys_socket: Likewise.
46485         * modules/sys_stat: Likewise.
46486         * modules/sys_time: Likewise.
46487         * modules/sys_times: Likewise.
46488         * modules/sys_utsname: Likewise.
46489         * modules/sys_wait: Likewise.
46490
46491 2009-09-01  Jim Meyering  <meyering@redhat.com>
46492
46493         fts: help ensure that return values are not ignored
46494         * lib/fts_.h (__GNUC_PREREQ): Define.
46495         (__attribute_warn_unused_result__): Define.
46496         (fts_children, fts_close, fts_open, fts_read): Declare with
46497         __attribute_warn_unused_result__.
46498
46499         fts: fts_close now fails also when closing a dir file descriptor fails
46500         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
46501         and propagate to caller, along with errno.
46502
46503         announce-gen: correct formatting in --help output
46504         * build-aux/announce-gen (usage): Move the one-line description in
46505         --help output "up", to where it belongs, just after Usage:.
46506
46507 2009-08-31  Eric Blake  <ebb9@byu.net>
46508
46509         fchdir: port to mingw
46510         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
46511         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
46512         opened, then use a substitute.
46513         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
46514         replacement.
46515         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
46516         (_gl_register_fd): No need to check stat if open already filters
46517         all directories.
46518         (fchdir): Fix error condition to match POSIX.
46519         * modules/fchdir (Depends-on): Add sys_stat.
46520         * doc/posix-functions/open.texi (open): Document the limitation.
46521         * modules/fchdir-tests: New file.
46522         * tests/test-fchdir.c: Likewise.
46523
46524         canonicalize: allow cross-testing from cygwin to mingw
46525         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
46526         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
46527         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
46528         Likewise.
46529         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
46530         target does not support symlinks.
46531         * tests/test-canonicalize-lgpl.sh: Likewise.
46532
46533         chown: avoid compilation warning on mingw
46534         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
46535         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
46536         mingw.
46537         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
46538         * modules/chown (Depends-on): Add errno.
46539
46540 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
46541
46542         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
46543         command.
46544
46545 2009-08-31  Jim Meyering  <meyering@redhat.com>
46546
46547         canonicalize: remove useless initialization
46548         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
46549         initialization of local, "end".
46550
46551 2009-08-30  Bruno Haible  <bruno@clisp.org>
46552
46553         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
46554         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
46555         ENOSYS.
46556
46557 2009-08-30  Bruno Haible  <bruno@clisp.org>
46558
46559         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
46560         /usr/xpg4/bin/tr when it exists.
46561         * tests/test-pipe-filter-gi1.sh: Likewise.
46562
46563 2009-08-30  Bruno Haible  <bruno@clisp.org>
46564
46565         Work around deficient /usr/bin/id program on Solaris.
46566         * tests/test-file-has-acl.sh (ID): New variable.
46567         * tests/test-set-mode-acl.sh (ID): Likewise.
46568         * tests/test-copy-acl.sh (ID): Likewise.
46569         * tests/test-copy-file.sh (ID): Likewise.
46570
46571 2009-08-30  Bruno Haible  <bruno@clisp.org>
46572
46573         New module 'xstriconveh'.
46574         * lib/xstriconveh.h: New file.
46575         * lib/xstriconveh.c: New file.
46576         * modules/xstriconveh: New file.
46577
46578 2009-08-30  Bruno Haible  <bruno@clisp.org>
46579
46580         Make it easier to use mem_cd_iconveh.
46581         * lib/striconveh.h (iconveh_t): New type.
46582         (iconveh_open, iconveh_close): New declarations.
46583         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
46584         with a single 'const iconveh_t *' argument.
46585         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
46586         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
46587         with a single 'const iconveh_t *' argument.
46588         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
46589         * tests/test-striconveh.c (main): Update.
46590         * NEWS: Mention the change.
46591
46592 2009-08-30  Bruno Haible  <bruno@clisp.org>
46593
46594         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
46595         problem.
46596
46597 2009-08-30  Bruno Haible  <bruno@clisp.org>
46598
46599         Work around iconv_open problem on Solaris.
46600         * lib/iconv_open-solaris.gperf: New file.
46601         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
46602         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
46603         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
46604         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
46605         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
46606         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
46607
46608 2009-08-29  Jim Meyering  <meyering@redhat.com>
46609
46610         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
46611         * top/maint.mk (cvs-check): Remove target; it was just an alias
46612         to the better-named vc-diff-check.
46613         (maintainer-distcheck): Remove rule.  It was used only from
46614         the (alpha/beta/major) target, and all of its commands but one
46615         were coreutils-specific.
46616         (vc-dist): Remove rule.
46617         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
46618         Run vc-diff-check, not vc-dist.
46619         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
46620
46621 2009-08-27  Bruno Haible  <bruno@clisp.org>
46622
46623         * tests/test-bitrotate.c (main): Remove test that uses a shift count
46624         of 0.
46625
46626 2009-08-27  Bruno Haible  <bruno@clisp.org>
46627
46628         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
46629         compilers.
46630         * doc/func.texi: Document the SunPRO C bug.
46631
46632 2009-08-27  Bruno Haible  <bruno@clisp.org>
46633
46634         Fix link error on Solaris.
46635         * tests/test-parse-duration.c (xstrdup): Remove function.
46636
46637 2009-08-26  Pádraig Brady  <P@draigbrady.com>
46638
46639         ignore-value: handle pointer types, too
46640         * lib/ignore-value.h (__attribute__): Remove definition.
46641         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
46642         of a more concise and more-often effective "(void) i" statement.
46643         (ignore_ptr): New function to suppress warnings from functions that
46644         return pointers, and to make it explicit that one function doesn't
46645         handle all cases.
46646
46647 2009-08-25  Bruno Haible  <bruno@clisp.org>
46648
46649         dup2: work around a Linux bug.
46650         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
46651         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
46652         * doc/posix-functions/dup2.texi: Mention the Linux bug.
46653         Reported by Simon Josefsson.
46654
46655 2009-08-25  Jim Meyering  <meyering@redhat.com>
46656
46657         libguestfs uses gnulib
46658         * users.txt: Add libguestfs.
46659
46660 2009-08-24  Eric Blake  <ebb9@byu.net>
46661
46662         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
46663         * lib/pipe2.c (includes): Add binary-io.h.
46664         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
46665
46666 2009-08-24  Bruno Haible  <bruno@clisp.org>
46667
46668         Tolerate declared but missing accept4 syscall.
46669         * lib/accept4.c (accept4): Invoke original accept4 function first, if
46670         available.
46671         * lib/sys_socket.in.h (accept4): If the function is already present,
46672         override it.
46673         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
46674         * modules/accept4 (Makefile.am): Compile accept4.c always.
46675         Reported by Paolo Bonzini and Eric Blake.
46676
46677 2009-08-23  Bruno Haible  <bruno@clisp.org>
46678
46679         New module 'accept4'.
46680         * lib/sys_socket.in.h (accept4): New declaration.
46681         * lib/accept4.c: New file.
46682         * m4/accept4.m4: New file.
46683         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
46684         GNULIB_ACCEPT4, HAVE_ACCEPT4.
46685         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
46686         HAVE_ACCEPT4.
46687         * modules/accept4: New file.
46688         * doc/glibc-functions/accept4.texi: Mention the new module.
46689
46690 2009-08-24  Jim Meyering  <meyering@redhat.com>
46691
46692         progname: also set global program_invocation_name, when possible
46693         Before this change, a libtool-enabled program that calls glibc's
46694         error function would report the program name as
46695         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
46696         * modules/progname (configure.ac): Check for a declaration of
46697         program_invocation_name.
46698         * lib/progname.c:  Include <errno.h>.
46699         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
46700         Set program_invocation_name.
46701
46702 2009-08-23  Bruno Haible  <bruno@clisp.org>
46703
46704         * lib/dup3.c: Include <string.h>.
46705
46706 2009-08-23  Bruno Haible  <bruno@clisp.org>
46707
46708         * lib/dup3.c (dup3): Test only once whether the system actually exists.
46709         * lib/pipe2.c (pipe2): Likewise.
46710         Suggested by Eric Blake.
46711
46712 2009-08-23  Bruno Haible  <bruno@clisp.org>
46713
46714         Tolerate declared but missing dup3 syscall.
46715         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
46716         * lib/unistd.in.h (dup3): If the function is already present,
46717         override it.
46718         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
46719         * modules/dup3 (Makefile.am): Compile dup3.c always.
46720         Reported by Paolo Bonzini.
46721
46722 2009-08-23  Bruno Haible  <bruno@clisp.org>
46723
46724         Tolerate declared but missing pipe2 syscall.
46725         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
46726         available.
46727         * lib/unistd.in.h (pipe2): If the function is already present,
46728         override it.
46729         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
46730         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
46731         Reported by Paolo Bonzini.
46732
46733 2009-08-23  Bruno Haible  <bruno@clisp.org>
46734
46735         * lib/pipe2.c (pipe2): Move #ifs inside function.
46736
46737 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
46738
46739         quotearg: document limitations of quote_these_too
46740         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
46741         those limitations are created.
46742         * lib/quotearg.h (set_char_quoting): Document that digits and
46743         letters that are special after backslash are not permitted.
46744         (quotearg_char): Cross-reference set_char_quoting documentation.
46745
46746 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
46747
46748         quotearg: implement custom_quoting_style
46749         * lib/quotearg.c: (struct quoting_options): Add left_quote and
46750         right_quote fields.
46751         (set_custom_quoting): New public function.
46752         (quotearg_buffer_restyled): Add left_quote and right_quote
46753         arguments, handle them very much like locale quoting, and update
46754         all uses.
46755         (quotearg_n_custom): New public function.
46756         (quotearg_n_custom_mem): New public function.
46757         (quotearg_custom): New public function.
46758         (quotearg_custom_mem): New public function.
46759         * lib/quotearg.h: Prototype and document new public functions.
46760         (enum quoting_style): For escape_quoting_style and
46761         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
46762         ignored even though they're otherwise like c_quoting_style.
46763         Add custom_quoting_style member and document with comparison to
46764         clocale_quoting_style.
46765         * tests/test-quotearg.c (custom_quotes): New array.
46766         (custom_results): New array.
46767         (main): Extend to test custom quoting.
46768
46769 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
46770
46771         quotearg: fix right quote escaping when it's in quote_these_too
46772         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
46773         quote, be sure to prepend only one backslash.
46774         * tests/test-quotearg.c (use_quote_double_quotes): New function.
46775         (main): Test it.
46776
46777 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
46778
46779         quotearg-tests: test escaping of embedded locale quotes
46780         * tests/test-quotearg.c (struct result_strings): Add member for
46781         new input.
46782         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
46783         (inputs): Add new input.
46784         (results_g): Add expected results.
46785         (flag_results): Likewise.
46786         (locale_results): Likewise.
46787         (compare_strings): Check those.
46788
46789 2009-08-23  Bruno Haible  <bruno@clisp.org>
46790
46791         Tests for module 'dup3'.
46792         * modules/dup3-tests: New file.
46793         * tests/test-dup3.c: New file.
46794
46795         New module 'dup3'.
46796         * lib/unistd.in.h (dup3): New declaration.
46797         * lib/dup3.c: New file.
46798         * m4/dup3.m4: New file.
46799         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
46800         HAVE_DUP3.
46801         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
46802         * modules/dup3: New file.
46803         * doc/glibc-functions/dup3.texi: Mention the new module.
46804
46805 2009-08-23  Bruno Haible  <bruno@clisp.org>
46806
46807         Tweak the dup2 test.
46808         * tests/test-dup2.c (main): Create the test file empty. Verify that an
46809         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
46810         the test file is still empty. Fix argument order of lseek.
46811
46812 2009-08-23  Bruno Haible  <bruno@clisp.org>
46813
46814         Avoid test link errors when the modules getopt-gnu, gettext are used.
46815         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
46816         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46817
46818 2009-08-23  Bruno Haible  <bruno@clisp.org>
46819
46820         Fix getdtablesize() on mingw.
46821         * lib/getdtablesize.c (getdtablesize): Implement differently.
46822         * lib/unistd.in.h (getdtablesize): Improve comment.
46823
46824 2009-08-23  Bruno Haible  <bruno@clisp.org>
46825
46826         New module 'mkostemp'.
46827         Based on Ulrich Drepper's 2007-08-10 change in glibc.
46828         * lib/stdlib.in.h (mksotemp): New declaration.
46829         * lib/mkostemp.c: New file, from glibc with modifications.
46830         * lib/tempname.h (GT_FILE): Remove outdated comment.
46831         (gen_tempname): Add flags argument.
46832         * lib/tempname.c (__GT_BIGFILE): Remove macro.
46833         (__GT_FILE): Map to 1.
46834         (small_open, large_open): Remove macros.
46835         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
46836         * lib/mkstemp.c (mkstemp): Update.
46837         * lib/mkdtemp.c (mkdtemp): Likewise.
46838         * m4/mkostemp.m4: New file.
46839         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
46840         HAVE_MKOSTEMP.
46841         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
46842         HAVE_MKOSTEMP.
46843         * modules/mkostemp: New file, based on modules/mkstemp.
46844         * doc/glibc-functions/mkostemp.texi: Mention the new module.
46845         * NEWS: Mention the change.
46846
46847 2009-08-23  Bruno Haible  <bruno@clisp.org>
46848
46849         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
46850         Reported by Eric Blake.
46851
46852 2009-08-23  Bruno Haible  <bruno@clisp.org>
46853
46854         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
46855         Reported by Eric Blake.
46856
46857 2009-08-23  Bruno Haible  <bruno@clisp.org>
46858
46859         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
46860         * modules/pipe2 (Depends-on): Likewise.
46861
46862 2009-08-23  Eric Blake  <ebb9@byu.net>
46863
46864         fcntl-h: add O_TTY_INIT support
46865         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
46866         * tests/test-fcntl-h.c (o): Test it.
46867         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
46868
46869         fcntl-h: rename from fcntl, in preparation for fcntl(2)
46870         * modules/fcntl: Move <fcntl.h> header replacement...
46871         * modules/fcntl-h: ...to new name, so as not to collide with
46872         like-named function.
46873         * tests/test-fcntl.c: Rename...
46874         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
46875         * modules/fcntl-tests: Rename...
46876         * modules/fcntl-h-tests: ...to this.  Update test file name.
46877         * modules/chdir-long (Depends-on): Update clients.
46878         * modules/chdir-safer (Depends-on): Likewise.
46879         * modules/fcntl-safer (Depends-on): Likewise.
46880         * modules/fts (Depends-on): Likewise.
46881         * modules/mkancesdirs (Depends-on): Likewise.
46882         * modules/mkdir-p (Depends-on): Likewise.
46883         * modules/open (Depends-on): Likewise.
46884         * modules/savewd (Depends-on): Likewise.
46885         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
46886         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
46887
46888 2009-08-22  Bruno Haible  <bruno@clisp.org>
46889
46890         * modules/binary-io (License): Relicense under LGPL.
46891         * modules/pipe2 (License): Likewise.
46892
46893 2009-08-22  Bruno Haible  <bruno@clisp.org>
46894
46895         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
46896         return value.
46897         * lib/pipe-filter-gi.c (filter_init): Likewise.
46898         Reported by Eric Blake.
46899
46900 2009-08-22  Bruno Haible  <bruno@clisp.org>
46901
46902         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
46903         * modules/pipe (Depends-on): Add pipe2.
46904
46905 2009-08-22  Bruno Haible  <bruno@clisp.org>
46906
46907         Tests for module 'pipe2'.
46908         * modules/pipe2-tests: New file.
46909         * tests/test-pipe2.c: New file.
46910
46911         New module 'pipe2'.
46912         * lib/unistd.in.h (pipe2): New declaration.
46913         * lib/pipe2.c: New file.
46914         * m4/pipe2.m4: New file.
46915         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
46916         HAVE_PIPE2.
46917         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
46918         * modules/pipe2: New file.
46919         * doc/glibc-functions/pipe2.texi: Mention the new module.
46920
46921 2009-08-22  Bruno Haible  <bruno@clisp.org>
46922
46923         Reference some new glibc functions.
46924         * doc/glibc-functions/accept4.texi: New file.
46925         * doc/glibc-functions/dup3.texi: New file.
46926         * doc/glibc-functions/mkostemp.texi: New file.
46927         * doc/glibc-functions/pipe2.texi: New file.
46928         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
46929         (Glibc sys/socket.h): Refer to accept4.
46930         (Glibc unistd.h): Refer to dup3, pipe2.
46931         Reported by Eric Blake.
46932
46933 2009-08-22  Jim Meyering  <meyering@redhat.com>
46934             Bruno Haible  <bruno@clisp.org>
46935
46936         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
46937         This makes it so packages using automake-1.11's silent-rules option
46938         can print e.g., a single "GEN    configmake.h" line, rather than
46939         the 30+ statements that perform the job.  If you want to see the
46940         actual commands, you can still run "make V=1".
46941         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
46942         so that make output is abbreviated when those variables are defined
46943         appropriately.
46944         * modules/argz: Likewise.
46945         * modules/arpa_inet: Likewise.
46946         * modules/byteswap: Likewise.
46947         * modules/configmake: Likewise.
46948         * modules/dirent: Likewise.
46949         * modules/errno: Likewise.
46950         * modules/fcntl: Likewise.
46951         * modules/float: Likewise.
46952         * modules/fnmatch: Likewise.
46953         * modules/getopt-posix: Likewise.
46954         * modules/glob: Likewise.
46955         * modules/iconv_open: Likewise.
46956         * modules/inttypes: Likewise.
46957         * modules/localcharset: Likewise.
46958         * modules/locale: Likewise.
46959         * modules/math: Likewise.
46960         * modules/netdb: Likewise.
46961         * modules/netinet_in: Likewise.
46962         * modules/poll: Likewise.
46963         * modules/posix_spawnp-tests: Likewise.
46964         * modules/sched: Likewise.
46965         * modules/search: Likewise.
46966         * modules/selinux-h: Likewise.
46967         * modules/signal: Likewise.
46968         * modules/spawn: Likewise.
46969         * modules/stdarg: Likewise.
46970         * modules/stdbool: Likewise.
46971         * modules/stddef: Likewise.
46972         * modules/stdint: Likewise.
46973         * modules/stdio: Likewise.
46974         * modules/stdlib: Likewise.
46975         * modules/string: Likewise.
46976         * modules/strings: Likewise.
46977         * modules/sys_file: Likewise.
46978         * modules/sys_ioctl: Likewise.
46979         * modules/sys_select: Likewise.
46980         * modules/sys_socket: Likewise.
46981         * modules/sys_stat: Likewise.
46982         * modules/sys_time: Likewise.
46983         * modules/sys_times: Likewise.
46984         * modules/sys_utsname: Likewise.
46985         * modules/sys_wait: Likewise.
46986         * modules/sysexits: Likewise.
46987         * modules/time: Likewise.
46988         * modules/unistd: Likewise.
46989         * modules/wchar: Likewise.
46990         * modules/wctype: Likewise.
46991
46992 2009-08-22  Jim Meyering  <meyering@redhat.com>
46993
46994         announce-gen: detect write failure
46995         * build-aux/announce-gen: Add Coda at end.
46996         Remove equivalent-but-more-verbose block at top.
46997
46998 2009-08-19  Akim Demaille  <demaille@gostai.com>
46999
47000         bootstrap: --help to stdout.
47001         * bootstrap (usage): Don't send --help to stderr.
47002         Use a here doc instead of a long string.
47003
47004 2009-08-21  Eric Blake  <ebb9@byu.net>
47005
47006         test-popen-safer: split from test-popen
47007         * tests/test-popen.c (main): Move...
47008         * tests/test-popen.h: ...into new file.
47009         * tests/test-popen-safer2.c: New file.
47010         * modules/popen-tests (Files): Add test-popen.h.
47011         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
47012         Suggested by Bruno Haible.
47013
47014         test-fcntl-safer: split from test-open
47015         * tests/test-open.c (main): Move...
47016         * tests/test-open.h: ...into new file.
47017         * tests/test-fcntl-safer.c: New file.
47018         * modules/open-tests (Files): Add test-open.h.
47019         * modules/fcntl-safer-tests: New file.
47020         Suggested by Bruno Haible.
47021
47022         test-fopen-safer: split from test-fopen
47023         * tests/test-fopen.c (main): Move...
47024         * tests/test-fopen.h: ...into new file.
47025         * tests/test-fopen-safer.c: New file.
47026         * modules/fopen-tests (Files): Add test-fopen.h.
47027         * modules/fopen-safer-tests: New file.
47028         Suggested by Bruno Haible.
47029
47030 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
47031
47032         popen-safer: test O_CLOEXEC at run-time.
47033         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
47034
47035 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
47036
47037         fcntl: move more flags to the header
47038         * lib/cloexec.c: Do not define FD_CLOEXEC here.
47039         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
47040         * lib/fcntl.in.h: Do both things here.
47041
47042 2009-08-21  Jim Meyering  <meyering@redhat.com>
47043
47044         consistently remove $@-t before redirecting to it
47045         * modules/argz: Remove $@-t and $@ before redirecting to the former.
47046         * modules/alloca-opt: Likewise.
47047         * modules/byteswap: Likewise.
47048         * modules/fnmatch: Likewise.
47049         * modules/getopt-posix: Likewise.
47050         * modules/glob: Likewise.
47051         * modules/poll: Likewise.
47052         * modules/posix_spawnp-tests: Likewise.
47053         * modules/sys_socket: Likewise.
47054         * modules/sysexits: Likewise.
47055
47056 2009-08-21  Eric Blake  <ebb9@byu.net>
47057
47058         popen: simplify access to original popen
47059         * lib/popen.c (rpl_popen): No need to worry about popen being a
47060         macro.
47061         Reported by Bruno Haible.
47062
47063 2009-08-20  Eric Blake  <ebb9@byu.net>
47064
47065         build: avoid some compiler warnings
47066         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
47067         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
47068         type.
47069         (new_exclude_segment, excluded_file_pattern_p)
47070         (excluded_file_name_p): Reduce scope.
47071         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
47072         old-style declaration.
47073
47074 2009-08-20  Simon Josefsson  <simon@josefsson.org>
47075
47076         * tests/test-exclude1.sh: Handle Windows EOL.
47077         * tests/test-exclude2.sh: Likewise.
47078         * tests/test-exclude3.sh: Likewise.
47079         * tests/test-exclude4.sh: Likewise.
47080         * tests/test-exclude5.sh: Likewise.
47081         * tests/test-exclude6.sh: Likewise.
47082         * tests/test-exclude7.sh: Likewise.
47083
47084 2009-08-19  Akim Demaille  <demaille@gostai.com>
47085
47086         bootstrap: find sha1sum when named gsha1sum.
47087         * bootstrap (find_tool): New.
47088         ($SHA1SUM): New.
47089         Use it.
47090
47091 2009-08-20  Jim Meyering  <meyering@redhat.com>
47092
47093         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
47094         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
47095         expression that converts "." in a file name to "\." in the resulting
47096         regexp.  Start with a dummy statement, so that prior shell variable
47097         definitions are expanded portably.  Reported by Simon Josefsson.
47098
47099 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
47100
47101         Fix polling for writeability of a screen buffer.
47102         * lib/poll.c: Distinguish input and screen buffers for the
47103         Win32 implementation.
47104         * lib/select.c: Likewise.
47105
47106 2009-08-19  Eric Blake  <ebb9@byu.net>
47107
47108         popen-safer: prevent popen from clobbering std descriptors
47109         * modules/popen-safer: New file.
47110         * lib/popen-safer.c: Likewise.
47111         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
47112         * lib/stdio--.h (popen): Provide override.
47113         * lib/stdio-safer.h (popen_safer): Provide declaration.
47114         * tests/test-popen.c (includes): Partially test this.
47115         * modules/popen-safer-tests: New file, for more tests.
47116         * tests/test-popen-safer.c: Likewise.
47117         * MODULES.html.sh (file stream based Input/Output): Mention it.
47118
47119         tests: test some of the *-safer modules
47120         * modules/fopen-safer (Depends-on): Add fopen.
47121         * modules/fcntl-safer (Depends-on): Add fcntl.
47122         * modules/stdlib-safer (Depends-on): Add stdlib.
47123         (configure.ac): Set indicator.
47124         * modules/unistd-safer (configure.ac): Likewise.
47125         * modules/tmpfile-safer (configure.ac): Likewise.
47126         (Depends-on): Add tmpfile.
47127         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
47128         active.
47129         * tests/test-fopen.c (includes): Test safer versions when they are
47130         in use.
47131         * tests/test-open.c (includes): Likewise.
47132
47133         popen: fix cygwin 1.5 bug when stdin closed
47134         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
47135         * modules/popen: New file.
47136         * modules/popen-tests: Likewise.
47137         * tests/test-popen.c: Likewise.
47138         * m4/popen.m4: Likewise.
47139         * lib/popen.c: Likewise.
47140         * lib/stdio.in.h (popen): New declaration.
47141         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
47142         * modules/stdio (Makefile.am): Likewise.
47143         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
47144
47145 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
47146
47147         maint.mk: give full control over update-copyright exclusions
47148         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
47149         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
47150         (update-copyright): Don't force inclusion of top-level
47151         ChangeLog.  Don't force exclusion of all COPYING files, but make
47152         them the default exclusion instead.
47153
47154 2009-08-16  Bruno Haible  <bruno@clisp.org>
47155
47156         Fix test failures on Solaris 10.
47157         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
47158         tests when Solaris iconv() is used.
47159         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
47160         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
47161         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
47162         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
47163         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
47164
47165 2009-08-16  Bruno Haible  <bruno@clisp.org>
47166
47167         Fix test failures on Solaris 10.
47168         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
47169         'tr' program and pass it as first argument.
47170         * tests/test-pipe-filter-gi1.sh: Likewise.
47171         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
47172         program as first argument.
47173         * tests/test-pipe-filter-gi1.c (main): Likewise.
47174
47175 2009-08-16  Eric Blake  <ebb9@byu.net>
47176
47177         fpurge: fix previous commits
47178         * modules/fpurge (Makefile.am): Make replacement conditional,
47179         partially reverting 2007-04-29 change; missed in previous
47180         attempt.
47181         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
47182         is missing.
47183
47184 2009-08-16  Bruno Haible  <bruno@clisp.org>
47185
47186         Clarify fpurge's effect on the file position.
47187         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
47188         * tests/test-fpurge.c (main): Make a second pass for checking the file
47189         position.
47190
47191 2009-08-16  Bruno Haible  <bruno@clisp.org>
47192
47193         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
47194         declaration of fpurge is missing.
47195         * tests/test-fpurge.c (main): Check that the file has not more contents
47196         than expected. Close the file before removing it.
47197
47198 2009-08-15  Eric Blake  <ebb9@byu.net>
47199
47200         fpurge: don't wrap working cygwin implementation
47201         * lib/fpurge.c (fpurge): Fix comment typo.
47202         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
47203         1.7 to avoid replacement.
47204         * tests/test-fpurge.c (main): Enhance test.
47205
47206 2009-08-15  Eric Blake  <ebb9@byu.net>
47207         and Jim Meyering  <meyering@redhat.com>
47208
47209         test-update-copyright: skip if perl is insufficient
47210         * tests/test-update-copyright.sh: Failure to run maintainer tool
47211         should not cause testsuite failure on cygwin 1.5.
47212
47213 2009-08-14  Eric Blake  <ebb9@byu.net>
47214
47215         doc: mention more functions added in cygwin 1.7.0
47216         * doc/posix-headers/limits.texi (limits.h): Update for recent
47217         cygwin additions.
47218         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
47219         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
47220         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
47221         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
47222         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
47223
47224 2009-08-14  Eric Blake  <ebb9@byu.net>
47225
47226         maint.mk: simplify update-copyright rule
47227         * top/maint.mk (update-copyright-local): Delete, and document how
47228         to do it in cfg.mk instead.
47229         (update-copyright-exclude-regexp): Delete, and document how to do
47230         it in .x-update-copyright instead.
47231         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
47232         exclude ChangeLog.
47233
47234 2009-08-14  Bruno Haible  <bruno@clisp.org>
47235
47236         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
47237
47238 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
47239
47240         maint.mk: support update-copyright-env
47241         * top/maint.mk (update-copyright-env): Define place-holder.
47242         (update-copyright): Expand $(update-copyright-env) before
47243         invoking update-copyright.
47244
47245 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
47246
47247         update-copyright: implement forced reformatting
47248         * build-aux/update-copyright: Implement and document
47249         UPDATE_COPYRIGHT_FORCE.
47250         * tests/test-update-copyright.sh: Test it.
47251
47252 2009-08-14  Eric Blake  <ebb9@byu.net>
47253         and Bruno Haible  <bruno@clisp.org>
47254
47255         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
47256         * tests/test-locale.c: Revert previous patch related to NULL.
47257         * tests/test-stdio.c: Likewise.
47258         * tests/test-stdlib.c: Likewise.
47259         * tests/test-string.c: Likewise.
47260         * tests/test-unistd.c: Likewise.
47261         * modules/time-tests (Depends-on): Add verify.
47262         * modules/wchar-tests (Depends-on): Likewise.
47263         * tests/test-time.c: Test for NULL compliance.
47264         * tests/test-wchar.c: Likewise.
47265         * modules/locale (Depends-on): Add stddef.
47266         * modules/stdio (Depends-on): Likewise.
47267         * modules/stdlib (Depends-on): Likewise.
47268         * modules/string (Depends-on): Likewise.
47269         * modules/time (Depends-on): Likewise.
47270         * modules/unistd (Depends-on): Likewise.
47271         * modules/wchar (Depends-on): Likewise.
47272         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
47273         * lib/stdlib.in.h (includes): Likewise.
47274         * lib/string.in.h (includes): Likewise.
47275         * lib/time.in.h (includes): Likewise.
47276         * lib/unistd.in.h (includes): Likewise.
47277         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
47278         replaced.
47279         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
47280         * m4/stddef_h.m4: New file.
47281         * modules/stddef: Likewise.
47282         * lib/stddef.in.h: Likewise.
47283         * modules/stddef-tests: Likewise.
47284         * tests/test-stddef.c: Likewise.
47285         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
47286         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
47287         * doc/posix-headers/locale.texi (locale.h): Likewise.
47288         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
47289         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
47290         * doc/posix-headers/string.texi (string.h): Likewise.
47291         * doc/posix-headers/time.texi (time.h): Likewise.
47292         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
47293         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
47294
47295 2009-08-14  Eric Blake  <ebb9@byu.net>
47296
47297         doc: improve git diff of texinfo files
47298         * .gitattributes: Add rule for *.texi files, with hint on how to
47299         use it.
47300         Copied from m4, and based on a report by Bruno Haible.
47301
47302 2009-08-14  Bruno Haible  <bruno@clisp.org>
47303
47304         Disable multithread support by default on Cygwin 1.5.x for real.
47305         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
47306
47307 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
47308
47309         update-copyright: much ado about intervals
47310         * build-aux/update-copyright: Implement and document
47311         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
47312         of copyright year intervals.
47313         Also, document UPDATE_COPYRIGHT_YEAR.
47314         * tests/test-update-copyright.sh: Test it.
47315
47316         update-copyright: convert 2-digit to 4-digit years
47317         * build-aux/update-copyright: Implement and document.
47318         * tests/test-update-copyright.sh: Update.
47319
47320 2009-08-14  Jim Meyering  <meyering@redhat.com>
47321
47322         test-exclude: avoid coreutils "make check" failure
47323         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
47324         just as in test-argmatch.c.
47325
47326 2009-08-13  Eric Blake  <ebb9@byu.net>
47327
47328         test-dup2: fix bad assumption
47329         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
47330         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
47331
47332         test-version-etc: fix CRLF portability issue
47333         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
47334         recognize \r.
47335         * tests/test-argp-version-etc-1.sh: Likewise.
47336
47337         getopt: update client modules
47338         * modules/argp (Depends-on): Use getopt-gnu.
47339         * modules/git-merge-changelog (Depends-on): Likewise.
47340         * modules/long-options (Depends-on): Likewise.
47341         * modules/xstrtol (Depends-on): Likewise.
47342
47343 2009-08-13  Simon Josefsson  <simon@josefsson.org>
47344
47345         * tests/test-version-etc.sh: Don't fail on different
47346         project/version.  Don't fail on CRLF differences.  Rewrite to use
47347         multiple -e instead of multiple sed forks, suggested by Eric Blake
47348         <ebb9@byu.net>.
47349         * tests/test-argp-version-etc-1.sh: Likewise.
47350
47351 2009-08-13  Simon Josefsson  <simon@josefsson.org>
47352
47353         * tests/test-version-etc.sh: Don't fail on different
47354         project/version.
47355
47356 2009-08-12  Bruno Haible  <bruno@clisp.org>
47357
47358         Tests for modules 'getopt-posix', 'getopt-gnu'.
47359         * modules/getopt-posix-tests: New file.
47360         * tests/test-getopt.c: New file.
47361         * tests/test-getopt.h: New file.
47362         * tests/test-getopt_long.h: New file.
47363
47364         New modules 'getopt-posix', 'getopt-gnu'.
47365         * modules/getopt-gnu: New file, renamed from modules/getopt.
47366         * modules/getopt-posix: New file.
47367         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
47368         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
47369         (gl_GETOPT): Remove macro.
47370         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
47371         Disable the test against BSD systems that declare optreset. Test
47372         against mingw bug. Test against lack of support of optional arguments
47373         on many platforms.
47374         * doc/glibc-headers/getopt.texi: Update module name and list of
47375         relevant platforms.
47376         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
47377         'getopt-gnu' and more portability problems.
47378         * NEWS: Mention the changes.
47379
47380 2009-08-12  Bruno Haible  <bruno@clisp.org>
47381
47382         Ensure that optarg etc. get declared by <unistd.h>.
47383         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
47384         AC_USE_SYSTEM_EXTENSIONS.
47385         * modules/getopt (Depends-on): Add 'extensions'.
47386
47387 2009-08-12  Bruno Haible  <bruno@clisp.org>
47388
47389         Avoid test link errors.
47390         * modules/pipe-filter-ii-tests (Makefile.am): Define
47391         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
47392         * modules/pipe-filter-gi-tests (Makefile.am): Define
47393         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
47394         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47395
47396 2009-08-12  Bruno Haible  <bruno@clisp.org>
47397
47398         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
47399         gl_GETOPT_SUBSTITUTE before.
47400         (gl_GETOPT): Use it.
47401         * m4/argp.m4 (gl_ARGP): Update.
47402         Reported by Sergey Poznyakoff.
47403
47404         * m4/getopt.m4: Reorder macros.
47405         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
47406         (gl_GETOPT_SUBSTITUTE): Remove macro.
47407
47408 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47409
47410         Minor improvement in gitlog-to-changelog
47411
47412         * build-aux/gitlog-to-changelog: New option `--format' makes
47413         output format string configurable.
47414
47415 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47416
47417         Optimize exclude: use hash tables for non-wildcard patterns.
47418
47419         * lib/exclude.c: Include hash.h and mbuiter.h
47420         (struct exclude_pattern, exclude_segment): New data types.
47421         (struct exclude): Rewrite.
47422         (fnmatch_pattern_has_wildcards): New function.
47423         (new_exclude_segment, free_exclude_segment): New functions.
47424         (excluded_file_pattern_p, excluded_file_name_p): New functions.
47425         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
47426         * lib/exclude.h (is_fnmatch_pattern): New prototype.
47427         * modules/exclude: Depend on hash and mbuiter.
47428
47429         * modules/exclude-tests: New file.
47430         * tests/test-exclude.c: New file.
47431         * tests/test-exclude1.sh: New file.
47432         * tests/test-exclude2.sh: New file.
47433         * tests/test-exclude3.sh: New file.
47434         * tests/test-exclude4.sh: New file.
47435         * tests/test-exclude5.sh: New file.
47436         * tests/test-exclude6.sh: New file.
47437         * tests/test-exclude7.sh: New file.
47438
47439 2009-08-12  Bruno Haible  <bruno@clisp.org>
47440
47441         Ensure that getopt() gets declared by <unistd.h>.
47442         * lib/unistd.in.h: Conditionally include getopt.h.
47443         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
47444         Set GNULIB_UNISTD_H_GETOPT.
47445         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47446         GNULIB_UNISTD_H_GETOPT.
47447         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
47448
47449 2009-08-12  Bruno Haible  <bruno@clisp.org>
47450
47451         Clarify logic.
47452         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
47453         gl_replace_getopt instead of GETOPT_H.
47454
47455 2009-08-12  Bruno Haible  <bruno@clisp.org>
47456
47457         * m4/getopt.m4: Add comments.
47458
47459 2009-08-12  Bruno Haible  <bruno@clisp.org>
47460
47461         Disable multithread support by default on Cygwin 1.5.x.
47462         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
47463         set gl_use_threads=no if not specified otherwise.
47464
47465 2009-08-11  Bruno Haible  <bruno@clisp.org>
47466
47467         Avoid compilation error on NetBSD 5.0.
47468         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
47469         * tests/test-stdio.c: Likewise.
47470         * tests/test-stdlib.c: Likewise.
47471         * tests/test-string.c: Likewise.
47472         * tests/test-unistd.c: Likewise.
47473         Reported by Greg Troxel <gdt@ir.bbn.com>
47474         at <https://savannah.gnu.org/support/?106973>.
47475
47476 2009-08-11  Bruno Haible  <bruno@clisp.org>
47477
47478         * modules/dup2-tests (Depends-on): Remove close.
47479
47480         Undo 2009-07-19 commit.
47481         * modules/acl-tests (Depends-on): Remove close.
47482         * modules/binary-io-tests (Depends-on): Likewise.
47483         * modules/closein-tests (Depends-on): Likewise.
47484         * modules/flock-tests (Depends-on): Likewise.
47485         * modules/fsync-tests (Depends-on): Likewise.
47486         * modules/lseek-tests (Depends-on): Likewise.
47487         * modules/pipe-tests (Depends-on): Likewise.
47488         * modules/posix_spawn-tests (Depends-on): Likewise.
47489         * modules/posix_spawnp-tests (Depends-on): Likewise.
47490         * modules/stat-time-tests (Depends-on): Likewise.
47491         * modules/yesno-tests (Depends-on): Likewise.
47492
47493 2009-08-10  Bruno Haible  <bruno@clisp.org>
47494
47495         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
47496
47497 2009-08-10  Bruno Haible  <bruno@clisp.org>
47498
47499         Fix a gcc warning.
47500         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
47501
47502 2009-08-10  Bruno Haible  <bruno@clisp.org>
47503
47504         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
47505         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
47506         not only the first time.
47507         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
47508         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
47509         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
47510         is 1, not only the the first time.
47511
47512 2009-08-10  Bruno Haible  <bruno@clisp.org>
47513
47514         Make it possible to use module 'gethostname' without module 'close'.
47515         * lib/unistd.in.h (close): Evoke a link error only if
47516         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
47517         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47518         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47519         * modules/unistd (Makefile.am): Substitute
47520         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47521         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
47522         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
47523         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
47524         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47525         * modules/sys_ioctl (Makefile.am): Substitute
47526         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47527         * modules/socket (configure.ac): On native Windows, set
47528         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
47529         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47530         Reported by Sam Steingold <sds@gnu.org>.
47531
47532 2009-08-10  Bruno Haible  <bruno@clisp.org>
47533
47534         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
47535         * modules/ioctl (configure.ac): Likewise.
47536
47537 2009-08-10  Bruno Haible  <bruno@clisp.org>
47538
47539         Avoid collision between gnulib wrapper and libintl wrapper.
47540         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
47541         already defined in intl/printf.c.
47542         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
47543         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
47544
47545 2009-08-09  Bruno Haible  <bruno@clisp.org>
47546
47547         Make <sys/select.h> really self-contained, also on Solaris 10.
47548         * lib/sys_select.in.h: Include <string.h>.
47549         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
47550         Solaris 10 problem.
47551         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
47552         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
47553         Reported by Jim Meyering.
47554
47555 2009-08-09  Bruno Haible  <bruno@clisp.org>
47556
47557         Avoid warnings from 'aclocal' that are due to a use of macro name
47558         AM_XGETTEXT_OPTION that is not defined in automake.
47559         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
47560         automake.
47561         * modules/error (configure.ac): Likewise.
47562         * modules/propername (configure.ac): Likewise.
47563         * modules/vasprintf (configure.ac): Likewise.
47564         * modules/verror (configure.ac): Likewise.
47565         * modules/xprintf (configure.ac): Likewise.
47566         * modules/xvasprintf (configure.ac): Likewise.
47567
47568 2009-08-08  Bruno Haible  <bruno@clisp.org>
47569
47570         Avoid compilation error in C++ mode.
47571         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
47572         Reported by Sam Steingold <sds@gnu.org>.
47573
47574 2009-08-08  Bruno Haible  <bruno@clisp.org>
47575
47576         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
47577         for the various Unix platforms.
47578         * doc/posix-headers/limits.texi: Update platforms list regarding
47579         HOST_NAME_MAX.
47580         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47581
47582 2009-08-07  Jim Meyering  <meyering@redhat.com>
47583
47584         selinux-at: fix typo in a comment
47585         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
47586         Spotted by Paolo Bonzini.
47587
47588         selinux-at: remove redundant m4 code, add documentation
47589         * modules/selinux-at (configure.ac): Remove redundant code.
47590         LIB_SELINUX is already set via the dependent module, selinux-h.
47591         (Include): Add quotes around selinux-at.h.
47592         * lib/selinux-at.h: Add documentation.
47593         Reported by Bruno Haible in
47594         http://marc.info/?l=gnulib-bug&m=124958988300749
47595
47596 2009-08-07  Bruno Haible  <bruno@clisp.org>
47597
47598         Avoid link error on MacOS X 10.3 and 10.4.
47599         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
47600         on non-ELF systems.
47601         * lib/argp-pv.c (argp_program_version): Likewise.
47602         Reported by Simon Josefsson.
47603
47604 2009-08-07  Simon Josefsson  <simon@josefsson.org>
47605
47606         * tests/test-version-etc.sh: Use $EXEEXT.
47607
47608 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
47609
47610         update-copyright: update documentation to point to maint.mk
47611         * build-aux/update-copyright: Here.
47612
47613 2009-08-06  Jim Meyering  <meyering@redhat.com>
47614
47615         maint.mk: support update-copyright-local
47616         * top/maint.mk (update-copyright-local): Define place-holder.
47617         (update-copyright): Depend on $(update-copyright-local).
47618
47619 2009-08-06  Jim Meyering  <meyering@redhat.com>
47620
47621         selinux-at: new module
47622         Initially written for coreutils, this module will soon be
47623         used by findutils, too.
47624         * MODULES.html.sh [Misc]: Add selinux-at.
47625         * lib/selinux-at.h: New file, from coreutils.
47626         * lib/selinux-at.c: Likewise.
47627         * modules/selinux-at: Likewise.
47628         (License): Change from LGPL to GPL, since it depends
47629         on the GPL'd openat module.
47630
47631         doc: update README
47632         * README: Remove references to cogito.
47633         Remove cvs-repo-updating instructions from 2007.
47634         Don't imply that CVS is better if you have limited disk space.
47635
47636 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47637
47638         update-copyright: support C-style comments
47639         * build-aux/update-copyright: Implement and document.
47640         * tests/test-update-copyright.sh: Test.
47641
47642 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47643
47644         update-copyright: support omitted "(C)"
47645         * build-aux/update-copyright: Implement and document.  Also,
47646         allow variable whitespace before "(C)".
47647         * tests/test-update-copyright.sh: Test.
47648
47649 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47650
47651         update-copyright: don't trip on non-FSF copyright statements
47652         * build-aux/update-copyright: Fix so that the first correctly
47653         formatted FSF copyright statement is recognized no matter what
47654         appears before it.  Update documentation.
47655         * tests/test-update-copyright.sh: Test that.
47656
47657 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47658
47659         update-copyright: clean up code a little
47660         * build-aux/update-copyright: Append "_re" to the name of any
47661         variable holding a regular expression.
47662         Replace "old" and "new" with "stmt" in variable names.
47663         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
47664         handled correctly.
47665         Format code more consistently.
47666
47667 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47668
47669         update-copyright-tests: improve portability
47670         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
47671         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
47672
47673 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
47674
47675         update-copyright: support @copyright{} and &copy;
47676         * build-aux/update-copyright: Implement and document.
47677         * tests/test-update-copyright.sh: Test.
47678
47679 2009-08-04  Jim Meyering  <meyering@redhat.com>
47680
47681         update-copyright-tests: correctly test EOL=\r\n handling
47682         * tests/test-update-copyright.sh: Put \r at the end of some lines
47683         for the dos-eol tests.  Based on a patch by Joel E. Denny.
47684
47685         maint.mk: make update-copyright exclusion list more configurable
47686         * top/maint.mk (update-copyright): Default to excluding COPYING,
47687         but allow an override, in case someone does want to update that file.
47688
47689         maint.mk: don't update copyright date in COPYING
47690         * top/maint.mk (update-copyright): Exclude COPYING.
47691
47692         maint.mk: add a copyright-updating rule
47693         * top/maint.mk (update-copyright): New rule.
47694         Derived from coreutils/Makefile.am.
47695
47696         update-copyright: rename some variables
47697         * build-aux/update-copyright: Rename a few variables for clarity.
47698         Tweak syntax.  List Joel E. Denny as coauthor.
47699
47700 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
47701
47702         update-copyright: fix bug for 2-digit last year and add tests
47703         * build-aux/update-copyright: Fix bug.
47704         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
47705         specified.
47706         * modules/update-copyright-tests: New
47707         * tests/test-update-copyright.sh: New.
47708
47709 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
47710
47711         update-copyright: handle leading tabs in line prefix
47712         * build-aux/update-copyright: Count leading tabs as 8 spaces
47713         when computing margin.  This helps with the formatting of
47714         ChangeLogs, for example.
47715         Fix documentation a little.
47716
47717 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
47718
47719         update-copyright: support EOL=\r\n
47720         * build-aux/update-copyright: Implement that.
47721
47722 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
47723
47724         update-copyright: automatically format copyright statements
47725         * build-aux/update-copyright: Implement that.
47726         Also, be a little more predictable and safer by always failing
47727         when the full copyright format is not perfectly recognized as an
47728         unbroken whole.  Discussed at
47729         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
47730         Rewrite documentation.
47731
47732 2009-08-03  Bruno Haible  <bruno@clisp.org>
47733
47734         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
47735
47736 2009-08-02  Bruno Haible  <bruno@clisp.org>
47737
47738         Tests for module 'uname'.
47739         * modules/uname-tests: New file.
47740         * tests/test-uname.c: New file.
47741
47742         New module 'uname'.
47743         * lib/uname.c: New file.
47744         * m4/uname.m4: New file.
47745         * modules/uname: New file.
47746         * doc/posix-functions/uname.texi: Mention the new module.
47747
47748 2009-08-02  Bruno Haible  <bruno@clisp.org>
47749
47750         Tests for module 'sys_utsname'.
47751         * modules/sys_utsname-tests: New file.
47752         * tests/test-sys_utsname.c: New file.
47753
47754         New module 'sys_utsname'.
47755         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
47756         * m4/sys_utsname_h.m4: New file.
47757         * modules/sys_utsname: New file.
47758         * doc/posix-headers/sys_utsname.texi: Mention the new module.
47759
47760 2009-08-02  Bruno Haible  <bruno@clisp.org>
47761
47762         Implicitly initialize the sockets library.
47763         * lib/gethostname.c: Include sockets.h.
47764         (rpl_gethostname): Invoke gl_sockets_startup.
47765         * lib/socket.c: Include sockets.h.
47766         (rpl_socket): Invoke gl_sockets_startup.
47767         * modules/gethostname (Depends-on): Add sockets.
47768         * modules/socket (Depends-on): Likewise.
47769         * tests/test-poll.c: Don't include sockets.h.
47770         (main): Don't invoke gl_sockets_startup.
47771         * tests/test-select.c: Don't include sockets.h.
47772         (main): Don't invoke gl_sockets_startup.
47773
47774 2009-08-02  Bruno Haible  <bruno@clisp.org>
47775
47776         Allow multiple calls to gl_sockets_startup.
47777         * lib/sockets.c (initialized_sockets_version): New variable.
47778         (gl_sockets_startup): Do nothing if already called for this or a higher
47779         version.
47780         (gl_sockets_cleanup): Reset initialized_sockets_version.
47781
47782 2009-08-03  Simon Josefsson  <simon@josefsson.org>
47783
47784         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
47785         different project/version.
47786
47787 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
47788             Bruno Haible  <bruno@clisp.org>
47789
47790         Tests for module 'pipe-filter-gi'.
47791         * modules/pipe-filter-gi-tests: New file.
47792         * tests/test-pipe-filter-gi1.sh: New file.
47793         * tests/test-pipe-filter-gi1.c: New file.
47794         * tests/test-pipe-filter-gi2.sh: New file.
47795         * tests/test-pipe-filter-gi2-main.c: New file.
47796         * tests/test-pipe-filter-gi2-child.c: New file.
47797
47798         New module 'pipe-filter-gi'.
47799         * lib/pipe-filter-gi.c: New file.
47800         * modules/pipe-filter-gi: New file.
47801
47802 2009-08-02  Bruno Haible  <bruno@clisp.org>
47803             Paolo Bonzini  <bonzini@gnu.org>
47804
47805         Tests for module 'pipe-filter-ii'.
47806         * modules/pipe-filter-ii-tests: New file.
47807         * tests/test-pipe-filter-ii1.sh: New file.
47808         * tests/test-pipe-filter-ii1.c: New file.
47809         * tests/test-pipe-filter-ii2.sh: New file.
47810         * tests/test-pipe-filter-ii2-main.c: New file.
47811         * tests/test-pipe-filter-ii2-child.c: New file.
47812
47813         New module 'pipe-filter-ii'.
47814         * lib/pipe-filter.h: New file.
47815         * lib/pipe-filter-ii.c: New file.
47816         * lib/pipe-filter-aux.h: New file.
47817         * modules/pipe-filter-ii: New file.
47818
47819 2009-08-02  Simon Josefsson  <simon@josefsson.org>
47820
47821         * lib/gc-libgcrypt.c: Change copyright to FSF.
47822         * lib/gc-gnulib.c: Likewise.
47823
47824 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
47825
47826         * lib/gethostname.c: Include limits.h.
47827
47828 2009-08-02  Simon Josefsson  <simon@josefsson.org>
47829             Bruno Haible  <bruno@clisp.org>
47830
47831         Ensure HOST_NAME_MAX as part of the gethostname module.
47832         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
47833         define also HOST_NAME_MAX.
47834         * tests/test-gethostname.c: Include <limits.h>.
47835         (main): Check also HOST_NAME_MAX.
47836         * doc/posix-headers/limits.texi: Document the mingw problem.
47837
47838 2009-08-02  Bruno Haible  <bruno@clisp.org>
47839
47840         * lib/gethostname.c (gethostname): Fix handling of large len argument.
47841         Add comments.
47842
47843 2009-03-31  Simon Josefsson  <simon@josefsson.org>
47844
47845         * lib/gethostname.c: Add Windows wrapper.
47846         * m4/gethostname.m4: Look for gethostname in -lws2_32.
47847         * modules/gethostname: Depend on sys_socket & errno, for also
47848         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
47849         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
47850
47851 2009-07-31  Jim Meyering  <meyering@redhat.com>
47852
47853         getloadavg: fix symbol name in comment
47854         * lib/getloadavg.c: Correct a typo I introduced when adding
47855         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
47856         Matt Kraai spotted the problem.
47857
47858 2009-07-29  Matt Kraai  <mkraai@beckman.com>
47859
47860         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
47861         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
47862         code also if ! defined N_NAME_POINTER.
47863         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
47864         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
47865         but the n_name member is a 12-byte array.
47866
47867 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
47868
47869         update-copyright: generalize comment handling
47870         * build-aux/update-copyright: Handle copyright statements
47871         within more comment styles.
47872         Document usage.
47873         Report any file with an external copyright holder or parse failure.
47874
47875 2009-07-29  Jim Meyering  <meyering@redhat.com>
47876
47877         mktime: correct setting of REPLACE_MKTIME
47878         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
47879
47880         update-copyright: new module
47881         * modules/update-copyright: New file.
47882         * build-aux/update-copyright: New file.
47883         * MODULES.html.sh (maint+release support): Add update-copyright.
47884
47885 2009-07-27  Bruno Haible  <bruno@clisp.org>
47886
47887         Fix compilation error when <ctime> is used and mktime is replaced.
47888         * lib/time.in.h (mktime): New declaration.
47889         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
47890         REPLACE_MKTIME instead of defining mktime in config.h.
47891         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
47892         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
47893         Reported by Ross McFarland <rwmcfa1@neces.com>.
47894
47895 2009-07-27  Bruno Haible  <bruno@clisp.org>
47896
47897         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
47898         Reported by Matt Kraai <mkraai@beckman.com>.
47899
47900 2009-07-25  Jim Meyering  <meyering@redhat.com>
47901
47902         maint.mk: avoid warnings about missing files
47903         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
47904         diagnostic when .prev-version does not exist.
47905         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
47906         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
47907         nonexistent cfg.mk.
47908         Suggestions from Simon Josefsson.
47909
47910 2009-07-25  Bruno Haible  <bruno@clisp.org>
47911
47912         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
47913         defined as macros. Needed on QNX 6.4.1.
47914         Reported by Matt Kraai <mkraai@beckman.com>.
47915
47916 2009-07-23  Jim Meyering  <meyering@redhat.com>
47917
47918         maint.mk: invoke "make dist" with a working value of XZ_OPT
47919         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
47920
47921 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
47922
47923         Make fseeko.c compile on QNX.
47924         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
47925
47926 2009-07-22  Peter Simons  <simons@cryp.to>
47927
47928         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
47929         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
47930         * lib/md4.h: Likewise.
47931         * lib/md5.h: Likewise.
47932         * lib/sha1.h: Likewise.
47933         * lib/sha256.h: Likewise.
47934         * lib/sha512.h: Likewise.
47935
47936         tests-sha1: don't assign literal string to 'char *' variable
47937         * tests/test-sha1.c (main): Declare locals with "const" to match
47938         attributes of the right hand side.
47939
47940 2009-07-21  Eric Blake  <ebb9@byu.net>
47941
47942         dup2: fix more mingw problems
47943         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
47944         fd to itself.
47945         * doc/posix-functions/dup2.texi (dup2): Document the bug.
47946         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
47947         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
47948         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
47949         care of mingw bugs.
47950
47951 2009-07-21  Jim Meyering  <meyering@redhat.com>
47952
47953         vc-list-files: avoid failure when /bin/sh is dash
47954         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
47955         On some Debian based systems, /bin/sh is a symlink to dash, and running
47956         this command would omit the "/" following each 'tests' prefix:
47957           dash -x build-aux/vc-list-files -C . tests
47958         That is because bash and dash work differently:
47959           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
47960           bash ok
47961           dash odd
47962
47963 2009-07-21  Eric Blake  <ebb9@byu.net>
47964
47965         dup2-tests: test previous patch
47966         * modules/dup2-tests: New file.
47967         * tests/test-dup2.c: Likewise.
47968         * tests/test-open.c (main): Avoid unspecified behavior.
47969         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
47970         test.
47971
47972         dup2: work around mingw and cygwin 1.5 bug
47973         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
47974         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
47975         * modules/unistd (Makefile.am): Substitute it.
47976         * lib/unistd.in.h (dup2): Declare the replacement.
47977         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
47978         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
47979         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
47980         * modules/execute (Depends-on): Add dup2.
47981         * modules/fseterr (Depends-on): Likewise.
47982         * modules/pipe (Depends-on): Likewise.
47983         * modules/posix_spawn-internal (Depends-on): Likewise.
47984
47985 2009-07-21  Bruno Haible  <bruno@clisp.org>
47986
47987         * modules/.gitattributes: New file.
47988
47989 2009-07-20  Bruno Haible  <bruno@clisp.org>
47990
47991         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
47992         (main): Use it.
47993
47994 2009-07-20  Eric Blake  <ebb9@byu.net>
47995
47996         test-pipe: make a bit more robust.
47997         * tests/test-pipe.c (myerr): Allow error messages regardless of
47998         what we do to stderr.
47999         (test_pipe): Rearrange to avoid deadlock.
48000         (child_main): Try a larger read, to ensure we avoided deadlock.
48001         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
48002         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
48003         if misused.
48004
48005 2009-07-19  Jim Meyering  <meyering@redhat.com>
48006
48007         fts: avoid false-positive cycle-detection
48008         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
48009         for each new command line argument.
48010
48011 2009-07-19  Bruno Haible  <bruno@clisp.org>
48012
48013         Fix build error on mingw with the modules sys_select and unistd.
48014         * modules/acl-tests (Depends-on): Add close.
48015         * modules/binary-io-tests (Depends-on): Likewise.
48016         * modules/closein-tests (Depends-on): Likewise.
48017         * modules/flock-tests (Depends-on): Likewise.
48018         * modules/fsync-tests (Depends-on): Likewise.
48019         * modules/lseek-tests (Depends-on): Likewise.
48020         * modules/pipe-tests (Depends-on): Likewise.
48021         * modules/posix_spawn-tests (Depends-on): Likewise.
48022         * modules/posix_spawnp-tests (Depends-on): Likewise.
48023         * modules/stat-time-tests (Depends-on): Likewise.
48024         * modules/yesno-tests (Depends-on): Likewise.
48025
48026 2009-07-19  Bruno Haible  <bruno@clisp.org>
48027
48028         Unify conditionals.
48029         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
48030         macros, not at the compiler macros.
48031         * lib/pipe.c: Likewise.
48032         * lib/execute.c: Likewise.
48033         * lib/spawni.c: Likewise.
48034
48035 2009-07-19  Bruno Haible  <bruno@clisp.org>
48036
48037         Fix handling of closed stdin/stdout/stderr on mingw.
48038         * lib/w32spawn.h: Include unistd.h.
48039         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
48040         file descriptor with O_NOINHERIT flag.
48041         (fd_safer_noinherit): New function, based on fd-safer.c.
48042         (dup_safer_noinherit): New function, based on dup-safer.c.
48043         (undup_safer_noinherit): New function.
48044         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
48045         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
48046         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
48047         instead of fd_safer.
48048         * tests/test-pipe.c: Include <windows.h>.
48049         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
48050         result.
48051
48052         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
48053         from main.
48054         (test_pipe): Pass an extra argument for disambiguation.
48055         (main): Invoke parent_main or child_main.
48056
48057         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
48058         consistently.
48059
48060 2009-07-18  Eric Blake  <ebb9@byu.net>
48061
48062         test-pipe: fix mingw build
48063         * tests/test-pipe.c (main): Avoid fcntl on mingw.
48064
48065 2009-07-18  Bruno Haible  <bruno@clisp.org>
48066
48067         * modules/pipe-tests (Makefile.am): Fix typo.
48068
48069 2009-07-18  Eric Blake  <ebb9@byu.net>
48070
48071         error: fix mingw build
48072         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
48073         Reported by Bruno Haible.
48074
48075         error: avoid undefined use of stdout
48076         * lib/error.c (error, error_at_line): Check that fd 1 is open
48077         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
48078         is handling faults and the close_stdout module wants to report the
48079         detection of closed stdout as an error.
48080
48081 2009-07-17  Eric Blake  <ebb9@byu.net>
48082
48083         pipe: be robust in face of closed fds
48084         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
48085         should cause child to misbehave.
48086         * modules/pipe-tests: New module.
48087         * tests/test-pipe.c: New file.
48088         * tests/test-pipe.sh: New file.
48089         Reported by Akim Demaille.
48090
48091 2009-07-14  Bruno Haible  <bruno@clisp.org>
48092
48093         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
48094         Reported by anonymous kc.
48095
48096 2009-07-07  Jim Meyering  <meyering@redhat.com>
48097
48098         maint.mk: don't look for translatable strings in *.m4 or *.mk
48099         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
48100         when searching for translatable strings.
48101
48102 2009-07-05  Jim Meyering  <meyering@redhat.com>
48103
48104         remove superfluous parentheses in STREQ definition
48105         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
48106         * lib/getugroups.c (STREQ): Likewise.
48107         * lib/fnmatch.c (STREQ): Likewise.
48108         Spotted by Bruno Haible.
48109
48110 2009-07-04  Jim Meyering  <meyering@redhat.com>
48111
48112         argv-iter: new module
48113         * MODULES.html.sh: Add argv-iter.
48114         * lib/argv-iter.c, lib/argv-iter.h: New files.
48115         * modules/argv-iter: New file.
48116         * modules/argv-iter-tests: New file.
48117         * tests/test-argv-iter.c: Test it.
48118
48119 2009-07-04  Bruno Haible  <bruno@clisp.org>
48120
48121         Fix assertion.
48122         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
48123         contains more exact copies of a given entry than file2, leave the extra
48124         copies unpaired rather than aborting.
48125         Reported by Eric Blake.
48126
48127 2009-07-02  Bruno Haible  <bruno@clisp.org>
48128
48129         Speedup git-merge-changelog for git cherry-pick.
48130         * lib/git-merge-changelog.c (struct entries_mapping): New type.
48131         (entries_mapping_get): New function, extracted from compute_mapping.
48132         (entries_mapping_reverse_get): New function.
48133         (compute_mapping): Add a 'full' argument. Return the result in a
48134         'struct entries_mapping'.
48135         (main): Update. Access the mappings through entries_mapping_get.
48136         Reported by Eric Blake.
48137
48138 2009-07-02  Bruno Haible  <bruno@clisp.org>
48139
48140         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
48141         best_i.
48142
48143 2009-07-02  Bruno Haible  <bruno@clisp.org>
48144
48145         Speed up approximate search for matching ChangeLog entries.
48146         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
48147         argument. Call fstrcmp_bounded instead of fstrcmp.
48148         (compute_mapping, try_split_merged_entry, main): Update callers.
48149
48150 2009-07-02  Bruno Haible  <bruno@clisp.org>
48151
48152         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
48153
48154 2009-06-30  Bruno Haible  <bruno@clisp.org>
48155
48156         Reduce the number of uc_is_cased calls.
48157         * lib/unicase.h (casing_suffix_context_t): Add
48158         'first_char_except_ignorable' field.
48159         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
48160         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
48161         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
48162         Update initializer.
48163         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
48164         case-ignorable characters.
48165         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
48166         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
48167         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
48168         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
48169         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
48170
48171 2009-06-30  Bruno Haible  <bruno@clisp.org>
48172
48173         Tests for module 'unicase/ignorable'.
48174         * modules/unicase/ignorable-tests: New file.
48175         * tests/unicase/test-ignorable.c: New file, generated by
48176         gen-uni-tables.
48177
48178         Tests for module 'unicase/cased'.
48179         * modules/unicase/cased-tests: New file.
48180         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
48181         * tests/unicase/test-predicate-part1.h: New file, derived from
48182         tests/unictype/test-predicate-part1.h.
48183         * tests/unicase/test-predicate-part2.h: New file, same as
48184         tests/unictype/test-predicate-part2.h.
48185
48186         Fix evaluation of "Before C" condition of FINAL_SIGMA.
48187         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
48188         (output_casing_properties): New function.
48189         (main): Call it.
48190         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
48191         * lib/unicase/cased.c: Include unictype/bitmap.h.
48192         (uc_is_cased): Define through a bitmap lookup.
48193         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
48194         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
48195         (uc_is_case_ignorable): Define through a bitmap lookup.
48196         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
48197         lib/unictype/bitmap.h.
48198         (Depends-on): Add inline. Clean up.
48199         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
48200         lib/unictype/bitmap.h.
48201         (Depends-on): Add inline. Clean up.
48202         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
48203         recognition.
48204         * tests/unicase/test-u16-tolower.c (main): Likewise.
48205         * tests/unicase/test-u32-tolower.c (main): Likewise.
48206
48207 2009-06-30  Bruno Haible  <bruno@clisp.org>
48208
48209         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
48210         * lib/unicase/u16-casemap.c: Likewise.
48211         * lib/unicase/u32-casemap.c: Likewise.
48212
48213 2009-06-29  Bruno Haible  <bruno@clisp.org>
48214
48215         Define u32_casefold as a wrapper around u32_ct_casefold.
48216         * lib/unicase/u32-casefold.c: Update.
48217         * modules/unicase/u32-casefold (Depends-on): Add
48218         unicase/u32-ct-casefold, unicase/empty-prefix-context,
48219         unicase/empty-suffix-context. Clean up.
48220
48221         Define u16_casefold as a wrapper around u16_ct_casefold.
48222         * lib/unicase/u16-casefold.c: Update.
48223         * modules/unicase/u16-casefold (Depends-on): Add
48224         unicase/u16-ct-casefold, unicase/empty-prefix-context,
48225         unicase/empty-suffix-context. Clean up.
48226
48227         Define u8_casefold as a wrapper around u8_ct_casefold.
48228         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
48229         * lib/unicase/u8-casefold.c: Update.
48230         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
48231         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48232
48233         Define u32_totitle as a wrapper around u32_ct_totitle.
48234         * lib/unicase/u32-totitle.c: Update.
48235         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
48236         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48237
48238         Define u16_totitle as a wrapper around u16_ct_totitle.
48239         * lib/unicase/u16-totitle.c: Update.
48240         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
48241         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48242
48243         Define u8_totitle as a wrapper around u8_ct_totitle.
48244         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
48245         functions.
48246         (FUNC): Delegate to U_CT_TOTITLE.
48247         * lib/unicase/u8-totitle.c: Update.
48248         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
48249         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48250
48251         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
48252         invocation.
48253         * modules/unicase/u32-tolower (Depends-on): Add
48254         unicase/empty-prefix-context, unicase/empty-suffix-context.
48255
48256         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
48257         invocation.
48258         * modules/unicase/u16-tolower (Depends-on): Add
48259         unicase/empty-prefix-context, unicase/empty-suffix-context.
48260
48261         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
48262         * modules/unicase/u8-tolower (Depends-on): Add
48263         unicase/empty-prefix-context, unicase/empty-suffix-context.
48264
48265         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
48266         invocation.
48267         * modules/unicase/u32-toupper (Depends-on): Add
48268         unicase/empty-prefix-context, unicase/empty-suffix-context.
48269
48270         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
48271         invocation.
48272         * modules/unicase/u16-toupper (Depends-on): Add
48273         unicase/empty-prefix-context, unicase/empty-suffix-context.
48274
48275         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
48276         * modules/unicase/u8-toupper (Depends-on): Add
48277         unicase/empty-prefix-context, unicase/empty-suffix-context.
48278
48279         New module 'unicase/u32-ct-casefold'.
48280         * lib/unicase/u32-ct-casefold.c: New file.
48281         * modules/unicase/u32-ct-casefold: New file.
48282
48283         New module 'unicase/u16-ct-casefold'.
48284         * lib/unicase/u16-ct-casefold.c: New file.
48285         * modules/unicase/u16-ct-casefold: New file.
48286
48287         New module 'unicase/u8-ct-casefold'.
48288         * lib/unicase/u8-ct-casefold.c: New file.
48289         * lib/unicase/u-ct-casefold.h: New file, derived from
48290         lib/unicase/u-casefold.h.
48291         * modules/unicase/u8-ct-casefold: New file.
48292
48293         New module 'unicase/u32-ct-totitle'.
48294         * lib/unicase/u32-ct-totitle.c: New file.
48295         * modules/unicase/u32-ct-totitle: New file.
48296
48297         New module 'unicase/u16-ct-totitle'.
48298         * lib/unicase/u16-ct-totitle.c: New file.
48299         * modules/unicase/u16-ct-totitle: New file.
48300
48301         New module 'unicase/u8-ct-totitle'.
48302         * lib/unicase/u8-ct-totitle.c: New file.
48303         * lib/unicase/u-ct-totitle.h: New file, derived from
48304         lib/unicase/u-totitle.h.
48305         * modules/unicase/u8-ct-totitle: New file.
48306
48307         New module 'unicase/u32-ct-tolower'.
48308         * lib/unicase/u32-ct-tolower.c: New file.
48309         * modules/unicase/u32-ct-tolower: New file.
48310
48311         New module 'unicase/u16-ct-tolower'.
48312         * lib/unicase/u16-ct-tolower.c: New file.
48313         * modules/unicase/u16-ct-tolower: New file.
48314
48315         New module 'unicase/u8-ct-tolower'.
48316         * lib/unicase/u8-ct-tolower.c: New file.
48317         * modules/unicase/u8-ct-tolower: New file.
48318
48319         New module 'unicase/u32-ct-toupper'.
48320         * lib/unicase/u32-ct-toupper.c: New file.
48321         * modules/unicase/u32-ct-toupper: New file.
48322
48323         New module 'unicase/u16-ct-toupper'.
48324         * lib/unicase/u16-ct-toupper.c: New file.
48325         * modules/unicase/u16-ct-toupper: New file.
48326
48327         New module 'unicase/u8-ct-toupper'.
48328         * lib/unicase/u8-ct-toupper.c: New file.
48329         * modules/unicase/u8-ct-toupper: New file.
48330
48331         Add context arguments to u*_casemap functions.
48332         * lib/unicase/unicasemap.h: Include unicase.h.
48333         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
48334         suffix_context arguments.
48335         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
48336         functions.
48337         (FUNC): Add prefix_context and suffix_context arguments. Use
48338         uc_is_cased and uc_is_case_ignorable.
48339         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
48340         * lib/unicase/u16-casemap.c: Likewise.
48341         * lib/unicase/u32-casemap.c: Likewise.
48342         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
48343         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
48344         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
48345         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
48346         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
48347         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
48348
48349         New module 'unicase/u32-suffix-context'.
48350         * lib/unicase/u32-suffix-context.c: New file.
48351         * modules/unicase/u32-suffix-context: New file.
48352
48353         New module 'unicase/u16-suffix-context'.
48354         * lib/unicase/u16-suffix-context.c: New file.
48355         * modules/unicase/u16-suffix-context: New file.
48356
48357         New module 'unicase/u8-suffix-context'.
48358         * lib/unicase/u8-suffix-context.c: New file.
48359         * lib/unicase/u-suffix-context.h: New file.
48360         * modules/unicase/u8-suffix-context: New file.
48361
48362         New module 'unicase/empty-suffix-context'.
48363         * lib/unicase/empty-suffix-context.c: New file.
48364         * modules/unicase/empty-suffix-context: New file.
48365
48366         New module 'unicase/u32-prefix-context'.
48367         * lib/unicase/u32-prefix-context.c: New file.
48368         * modules/unicase/u32-prefix-context: New file.
48369
48370         New module 'unicase/u16-prefix-context'.
48371         * lib/unicase/u16-prefix-context.c: New file.
48372         * modules/unicase/u16-prefix-context: New file.
48373
48374         New module 'unicase/u8-prefix-context'.
48375         * lib/unicase/u8-prefix-context.c: New file.
48376         * lib/unicase/u-prefix-context.h: New file.
48377         * lib/unicase/context.h: New file.
48378         * modules/unicase/u8-prefix-context: New file.
48379
48380         New module 'unicase/empty-prefix-context'.
48381         * lib/unicase/empty-prefix-context.c: New file.
48382         * modules/unicase/empty-prefix-context: New file.
48383
48384         New module 'unicase/ignorable'.
48385         * lib/unicase/ignorable.c: New file.
48386         * modules/unicase/ignorable: New file.
48387
48388         New module 'unicase/cased'.
48389         * lib/unicase/caseprop.h: New file.
48390         * lib/unicase/cased.c: New file.
48391         * modules/unicase/cased: New file.
48392
48393         New functions for case mapping of substrings.
48394         * lib/unicase.h (casing_prefix_context_t): New type.
48395         (unicase_empty_prefix_context): New variable.
48396         (u8_casing_prefix_context, u16_casing_prefix_context,
48397         u32_casing_prefix_context, u8_casing_prefixes_context,
48398         u16_casing_prefixes_context, u32_casing_prefixes_context): New
48399         declarations.
48400         (casing_suffix_context_t): New type.
48401         (unicase_empty_suffix_context): New variable.
48402         (u8_casing_suffix_context, u16_casing_suffix_context,
48403         u32_casing_suffix_context, u8_casing_suffixes_context,
48404         u16_casing_suffixes_context, u32_casing_suffixes_context,
48405         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
48406         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
48407         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
48408         declarations.
48409
48410 2009-06-28  Jim Meyering  <meyering@redhat.com>
48411
48412         boostrap: indent only with spaces
48413         * build-aux/bootstrap: Indent only with spaces, never TABs.
48414
48415         bootstrap: split long lines
48416         * build-aux/bootstrap: Keep line length < 80.
48417
48418         bootstrap: sync from coreutils
48419         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
48420         just as autoreconf does.  Verify a list of prerequisite
48421         package-name,version-number pairs if defined in bootstrap.conf.
48422         Refer to README-prereq, if prerequisites are not satisfied.
48423
48424 2009-06-27  Eric Blake  <ebb9@byu.net>
48425
48426         tests: add test for bogus NULL definition
48427         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
48428         * tests/test-stdlib.c: Likewise.
48429         * tests/test-string.c: Likewise.
48430         * tests/test-locale.c: Likewise.
48431         * tests/test-unistd.c: Likewise.
48432         * modules/stdio-tests (Depends-on): Add verify.
48433         * modules/stdlib-tests (Depends-on): Likewise.
48434         * modules/string-tests (Depends-on): Likewise.
48435         * modules/locale-tests (Depends-on): Likewise.
48436         * modules/unistd-tests (Depends-on): Likewise.
48437
48438 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
48439
48440         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
48441         self-explaining comment.
48442         * m4/selinux-selinux-h: Update serial.
48443         (gl_LIBSELINUX): New macro, adding a warning for missing development
48444         packages to code extracted from...
48445         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
48446         Add warning for missing development packages here, too.
48447
48448 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
48449
48450         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
48451
48452 2009-06-25  Eric Blake  <ebb9@byu.net>
48453
48454         version-etc: fix regression
48455         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
48456         gcc.
48457         (version_etc): Use it, to catch bugs with trailing NULL.
48458         * lib/version-etc.c (version_etc_arn): Delete unused argument.
48459         (version_etc_va): Fix logic bug.
48460         * modules/version-etc-tests: Add test.
48461         * tests/test-version-etc.c: New file.
48462         * tests/test-version-etc.sh: Likewise.
48463
48464 2009-06-25  Sam Steingold  <sds@gnu.org>
48465
48466         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
48467         mbtowc declaration.
48468
48469 2009-06-25  Eric Blake  <ebb9@byu.net>
48470
48471         fpurge: migrate into <stdio.h>
48472         * lib/fpurge.h: Delete...
48473         * lib/stdio.in.h (fpurge): ...and declare here, instead.
48474         * lib/fpurge.c (fpurge): Change declaring header.
48475         * modules/fpurge (Files): Drop deleted file.
48476         (Depends-on): Add stdio.
48477         (configure.ac): Set witness.
48478         * modules/stdio (Makefile.am): Support fpurge macros.
48479         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48480         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
48481         * lib/fflush.c: Update client.
48482         * tests/test-fpurge.c: Likewise.
48483         * NEWS: Mention the change.
48484
48485 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
48486
48487         * lib/argp-version-etc.c (program_authors): Add const
48488         qualifier.
48489         * lib/version-etc.c: Fix typos in the comments.
48490         * modules/argp-version-etc: Depends on version-etc.
48491
48492 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
48493
48494         argp-version-etc: new module.
48495
48496         * lib/argp-version-etc.c: New file.
48497         * lib/argp-version-etc.h: New file.
48498         * modules/argp-version-etc: New file.
48499         * modules/argp-version-etc-tests: New file.
48500         * tests/test-argp-version-etc.c: New test.
48501         * tests/test-argp-version-etc-1.sh: New test.
48502
48503 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
48504
48505         Provide additional interfaces and documentation for version-etc
48506         module.
48507
48508         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
48509         interfaces.
48510         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
48511         prototypes.
48512
48513 2009-06-24  Bruno Haible  <bruno@clisp.org>
48514
48515         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
48516         HAVE_LIB${NAME} macro.
48517         Reported by Sam Steingold <sds@gnu.org>.
48518
48519 2009-06-23  Simon Josefsson  <simon@josefsson.org>
48520
48521         * modules/hash-tests (test_hash_LDADD): Link to libintl when
48522         needed.
48523
48524 2009-06-21  Bruno Haible  <bruno@clisp.org>
48525
48526         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
48527         work.
48528         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
48529         together with LIB${NAME}, LTLIB${NAME}.
48530         Reported by Sam Steingold <sds@gnu.org>.
48531
48532 2009-06-20  Jim Meyering  <meyering@redhat.com>
48533
48534         tests: make sc_require_test_exit_idiom more generic
48535         * top/maint.mk (Exit_witness_file): New overridable variable.
48536         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
48537         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
48538
48539 2009-06-19  Jim Meyering  <meyering@redhat.com>
48540
48541         hash: reverse order of src/dst parameters in an internal interface
48542         * lib/hash.c (transfer_entries): Reverse order of parameters to
48543         put DST before SRC.  Adjust callers.
48544
48545         tests: test-hash: avoid wholesale duplication
48546         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
48547         Instead, use a loop and add a single conditional.
48548
48549         tests: test-hash: allow seed selection via a command line argument
48550         * tests/test-hash.c (get_seed): New function.
48551         (main): Use it.
48552
48553 2009-06-19  Eric Blake  <ebb9@byu.net>
48554
48555         hash: avoid memory leak on allocation failure
48556         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
48557         failure.  Factor repeated algorithm...
48558         (transfer_entries): ...into new helper routine.
48559         (hash_delete): React to hash_rehash return value.
48560
48561         hash: reduce memory pressure in hash_rehash no-op case
48562         * lib/hash.c (next_prime): Avoid overflow.
48563         (hash_initialize): Factor bucket size computation...
48564         (compute_bucket_size): ...into new helper function.
48565         (hash_rehash): Use new function and open coding to reduce memory
48566         pressure, and avoid a memory leak in USE_OBSTACK code.
48567         Reported by Jim Meyering.
48568
48569 2009-06-18  Eric Blake  <ebb9@byu.net>
48570
48571         hash: make rotation more obvious
48572         * modules/hash (Depends-on): Add bitrotate and stdint.
48573         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
48574         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
48575         (SIZE_MAX): Rely on headers for definition.
48576         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
48577         (raw_hasher): Use rotr_sz.
48578         Suggested by Jim Meyering.
48579
48580         hash: fix memory leak in last patch
48581         * lib/hash.c (hash_rehash): Avoid memory leak.
48582
48583         hash: avoid no-op rehashing
48584         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
48585
48586         hash: provide default callback functions
48587         * lib/hash.c (raw_hasher, raw_comparator): New functions.
48588         (hash_initialize): Use them as defaults.
48589         * tests/test-hash.c (main): Test this.
48590
48591         hash: minor optimization
48592         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
48593         when possible.
48594         (hash_initialize): Document this promise.
48595         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
48596         * tests/test-hash.c (hash_compare_strings): Test this.
48597
48598 2009-06-18  Bruno Haible  <bruno@clisp.org>
48599
48600         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
48601         going to be replaced anyway.
48602
48603 2009-06-18  Bruno Haible  <bruno@clisp.org>
48604
48605         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
48606         in one place.
48607         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
48608         be replaced anyway.
48609
48610 2009-06-18  Eric Blake  <ebb9@byu.net>
48611
48612         hash: check for resize before insertion
48613         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
48614         threshold before insertion, so that a pathological hash_rehash
48615         that fills every bucket can still trigger another rehash.
48616
48617 2009-06-18  Jim Meyering  <meyering@redhat.com>
48618
48619         hash-tests: add a loop around the small tests
48620         * tests/test-hash.c (main): Repeat small tests with selected
48621         small initial table sizes.
48622
48623 2009-06-17  Eric Blake  <ebb9@byu.net>
48624
48625         hash: minor cleanups
48626         * lib/hash.h (hash_entry): Make opaque, by moving...
48627         * lib/hash.c (hash_entry): ...here.
48628         (hash_insert): Clarify restrictions on what can be inserted.
48629         (hash_get_next): Clarify when it is safe to remove an element
48630         during traversal.
48631         (check_tuning): Skip verification when tuning is known safe.
48632         (hash_initialize): Clarify restrictions on tuning.
48633
48634 2009-06-17  Jim Meyering  <jim@meyering.net>
48635         and Eric Blake  <ebb9@byu.net>
48636
48637         hash-tests: new module
48638         * modules/hash-tests: New file.
48639         * tests/test-hash.c: New file.
48640
48641 2009-06-17  Eric Blake  <ebb9@byu.net>
48642
48643         strstr-simple: document new module
48644         * MODULES.html.sh: Document new module.
48645
48646         strstr, strcasestr: replace on platforms with broken memchr
48647         * modules/strstr: Split into...
48648         * modules/strstr-simple: ...new module that does not care about
48649         performance, but does care about glibc bug.
48650         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
48651         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
48652         if platform memchr is broken, per Debian bug 521737.
48653         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
48654         memchr.
48655         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
48656         * doc/posix-functions/strstr.texi (strstr): Document the fix.
48657         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
48658         * modules/mountlist (Depends-on): Add strstr-simple.
48659         * modules/gen-uni-tables (Depends-on): Likewise.
48660         * modules/argz (Depends-on): Add strstr.
48661
48662 2009-06-17  Bruno Haible  <bruno@clisp.org>
48663
48664         * modules/posix_spawn-internal (Depends-on): Add errno.
48665
48666 2009-06-17  Bruno Haible  <bruno@clisp.org>
48667
48668         Define missing ESTALE on Interix 3.5.
48669         * lib/errno.in.h (ESTALE): Assign a value if missing.
48670         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
48671         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
48672         missing.
48673         * doc/posix-headers/errno.texi: Mention the Interix bug.
48674         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
48675
48676 2009-06-15  Eric Blake  <ebb9@byu.net>
48677
48678         memchr, memchr2: add valgrind exception
48679         * lib/memchr.valgrind: New file.
48680         * lib/memchr2.valgrind: New file.
48681         * modules/memchr (Files): Distribute valgrind file.
48682         * modules/memchr2 (Files): Likewise.
48683
48684         docs: memchr is no longer obsolete
48685         * MODULES.html.sh: Move memchr from obsolete to string.h section.
48686         * lib/string.in.h (memchr): Simplify logic.
48687
48688 2009-06-14  Jim Meyering  <meyering@redhat.com>
48689
48690         link-follow: fix the "checking..." message to not mention trailing slash
48691         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
48692         never considered trailing slashes.
48693
48694 2009-06-14  Bruno Haible  <bruno@clisp.org>
48695
48696         * m4/memchr.m4: Mention also the bug on IA-64.
48697         * doc/posix-functions/memchr.texi: Likewise.
48698
48699 2009-06-12  Eric Blake  <ebb9@byu.net>
48700
48701         memchr: detect broken x86_64 and alpha implementations
48702         * modules/memchr-tests (Depends-on): Move mmap detection...
48703         * modules/memchr (Depends-on): ...here.
48704         (configure.ac): Set indicator.
48705         * lib/string.in.h (memchr): Declare replacement.
48706         * modules/string (Makefile.am): Trigger replacement.
48707         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
48708         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
48709         bugs.
48710         * doc/posix-functions/memchr.texi (memchr): Document the bug.
48711         * modules/getpagesize (License): Relax license.
48712
48713 2009-06-11  Bruno Haible  <bruno@clisp.org>
48714
48715         * lib/idpriv.h: Add more references.
48716
48717 2009-06-08  Bruno Haible  <bruno@clisp.org>
48718
48719         Tests for module 'idpriv-droptemp'.
48720         * modules/idpriv-droptemp-tests: New file.
48721         * tests/test-idpriv-droptemp.sh: New file.
48722         * tests/test-idpriv-droptemp.su.sh: New file.
48723         * tests/test-idpriv-droptemp.c: New file.
48724
48725         New module 'idpriv-droptemp'.
48726         * lib/idpriv-droptemp.c: New file.
48727         * modules/idpriv-droptemp: New file.
48728
48729 2009-06-08  Bruno Haible  <bruno@clisp.org>
48730
48731         Tests for module 'idpriv-drop'.
48732         * modules/idpriv-drop-tests: New file.
48733         * tests/test-idpriv-drop.sh: New file.
48734         * tests/test-idpriv-drop.su.sh: New file.
48735         * tests/test-idpriv-drop.c: New file.
48736
48737         New module 'idpriv-drop'.
48738         * lib/idpriv.h: New file.
48739         * lib-idpriv-drop.c: New file.
48740         * m4/idpriv.m4: New file.
48741         * modules/idpriv-drop: New file.
48742
48743 2009-06-08  Bruno Haible  <bruno@clisp.org>
48744
48745         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
48746         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48747         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48748         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48749         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48750         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48751         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48752
48753 2009-06-08  Eric Blake  <ebb9@byu.net>
48754
48755         test-strstr: use memory fence, when possible
48756         * tests/test-strstr.c (main): Use memory fence, in order to be
48757         more likely to trigger Debian bug 521737.
48758         * modules/strstr-tests (Files): Pull in additional files.
48759
48760         memchr: no longer obsolete, for wider field testing
48761         * modules/memchr (Status, Notice): Delete, this module is no
48762         longer obsolete.
48763         * modules/vasnprintf (Depends-on): Add memchr.
48764
48765 2009-06-07  Jim Meyering  <meyering@redhat.com>
48766
48767         hash: declare some functions with the warn_unused_result attribute
48768         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
48769
48770 2009-06-07  Bruno Haible  <bruno@clisp.org>
48771
48772         * tests/test-alignof.c: Don't test int64_t if it does not exist.
48773         Reported by Eric Blake.
48774
48775 2009-06-06  Eric Blake  <ebb9@byu.net>
48776
48777         test-alignof: fix typo with long double
48778         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
48779         compiler error.
48780
48781 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
48782
48783         Escape non-texinfo { and }s.
48784         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
48785         markup error.
48786
48787 2009-06-04  Jim Meyering  <meyering@redhat.com>
48788
48789         gitlog-to-changelog: don't infloop on an empty commit log
48790         * build-aux/gitlog-to-changelog: Warn about an empty log message.
48791         Reported by Boris Petersen <transacid@centerim.org>.
48792
48793 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
48794
48795         version-etc: extend for packagers
48796         Add three new configure options, intended for packagers:
48797           --with-packager="packager name"
48798           --with-packager-version="packager-specific version"
48799           --with-packager-bug-reports="packager bug reporting"
48800         An example with coreutils:
48801           $ ./configure \
48802             --with-packager=Gentoo \
48803             --with-packager-bug-report=http://bugs.gentoo.org/ \
48804             --with-packager-version="patchset 1.6"
48805           $ ./src/ls --version | head -n2
48806           ls (GNU coreutils) 7.1-dirty
48807           Packaged by Gentoo (patchset 1.6)
48808         Note that the bug reporting info via --help doesn't show up because
48809         coreutils uses its own custom emit_bug_reporting_address() implementation
48810         in src/system.h.  If it didn't, it'd look like:
48811           $ ./src/ls --help | tail -n4
48812           Report bugs to <bug-coreutils@gnu.org>.
48813           Report Gentoo bugs to <http://bugs.gentoo.org/>.
48814           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
48815           General help using GNU software: <http://www.gnu.org/gethelp/>.
48816         * lib/version-etc.c: Print new information, if provided.
48817         * m4/version-etc.m4: New file.
48818         * modules/version-etc (Files): Add m4/version-etc.m4.
48819         (configure.ac): Add gl_VERSION_ETC.
48820
48821 2009-05-31  Bruno Haible  <bruno@clisp.org>
48822
48823         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
48824         and 'int64_t'.
48825         * modules/alignof-tests (Dependencies): Add stdint.
48826         Reported by Eric Blake.
48827
48828 2009-05-31  Bruno Haible  <bruno@clisp.org>
48829
48830         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
48831         restriction due to compiler bugs.
48832         Reported by Eric Blake.
48833
48834 2009-05-31  Simon Josefsson  <simon@josefsson.org>
48835             Bruno Haible  <bruno@clisp.org>
48836
48837         Fix test-alignof failure.
48838         * lib/alignof.h (alignof_slot): New macro.
48839         (alignof_type): New macro, with the same semantics as the previous
48840         'alignof'.
48841         (alignof): Alias to alignof_slot.
48842         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
48843         check that the results are usable as constant expressions.
48844
48845 2009-05-31  Bruno Haible  <bruno@clisp.org>
48846
48847         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
48848         * tests/test-memchr.c (main): Check that memchr does not read past the
48849         first occurrence of the byte.
48850         * tests/test-strstr.c (main): Update comment.
48851         Suggested by Eric Blake.
48852
48853 2009-05-30  Bruno Haible  <bruno@clisp.org>
48854
48855         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
48856         detail how to use dumpbin.
48857         Reported by David Byron <dbyron@dbyron.com>.
48858
48859 2009-06-02  Simon Josefsson  <simon@josefsson.org>
48860
48861         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
48862
48863 2009-06-02  Simon Josefsson  <simon@josefsson.org>
48864
48865         * m4/manywarnings.m4: Add GCC 4.4 warnings.
48866
48867 2009-05-28  Bruno Haible  <bruno@clisp.org>
48868
48869         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
48870         build-aux/ files.
48871
48872 2009-05-28  Simon Josefsson  <simon@josefsson.org>
48873
48874         * gnulib-tool (func_import): Transform license on build-aux/ files too.
48875
48876 2009-05-27  Simon Josefsson  <simon@josefsson.org>
48877
48878         * gnulib-tool (sed_transform_main_lib_file)
48879         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
48880         regexps.
48881
48882 2009-05-26  Simon Josefsson  <simon@josefsson.org>
48883
48884         * tests/test-strstr.c: Add another self-test.
48885         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
48886         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
48887
48888 2009-05-23  Bruno Haible  <bruno@clisp.org>
48889
48890         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
48891         change.
48892
48893 2009-05-21  Bruno Haible  <bruno@clisp.org>
48894
48895         Simplify use of mode_t varargs.
48896         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
48897         uses 'mode_t' or 'int'.
48898         * lib/openat.c (openat): Likewise.
48899         * lib/open-safer.c (open_safer): Likewise.
48900         * m4/mode_t.m4: New file.
48901         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
48902         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
48903         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
48904         * modules/open (Files): Add m4/mode_t.m4.
48905         * modules/openat (Files): Likewise.
48906         * modules/fcntl-safer (Files): Likewise.
48907         Suggested by Eric Blake.
48908
48909 2009-05-21  Pádraig Brady  <P@draigbrady.com>
48910
48911         * doc/glibc-functions/fallocate.texi: New file.
48912         * doc/gnulib.texi: Include it.
48913
48914 2009-05-21  Eric Blake  <ebb9@byu.net>
48915             Bruno Haible  <bruno@clisp.org>
48916
48917         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
48918         invocations.
48919         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
48920
48921 2009-05-21  Eric Blake  <ebb9@byu.net>
48922             Bruno Haible  <bruno@clisp.org>
48923
48924         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
48925         include_next. Fix of 2008-11-20 commit.
48926         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
48927         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
48928         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
48929         NEXT_MATH_H.
48930         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
48931         instead of NEXT_MATH_H.
48932
48933 2009-05-21  Bruno Haible  <bruno@clisp.org>
48934
48935         Avoid redefinition warnings for SIZE_MAX.
48936         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
48937         Reported by Simon Josefsson.
48938
48939 2009-05-21  Bruno Haible  <bruno@clisp.org>
48940
48941         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
48942         AC_CACHE_VAL.
48943
48944 2009-05-20  Bruno Haible  <bruno@clisp.org>
48945
48946         Make zeroptr.h work on mingw.
48947         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
48948         mprotect.
48949         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
48950         * modules/memchr2-tests (configure.ac): Likewise.
48951         * modules/memcmp-tests (configure.ac): Likewise.
48952         * modules/memmem-tests (configure.ac): Likewise.
48953         * modules/memrchr-tests (configure.ac): Likewise.
48954         Reported by Simon Josefsson.
48955
48956 2009-05-20  Simon Josefsson  <simon@josefsson.org>
48957
48958         * tests/test-glob.c: Include string.h for strcmp prototype.
48959
48960 2009-05-20  Simon Josefsson  <simon@josefsson.org>
48961
48962         * modules/getdelim (Depends-on): Add explicit stdint, although it
48963         was implicitly already pulled in via realloc-posix.
48964         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
48965
48966 2009-05-20  Simon Josefsson  <simon@josefsson.org>
48967
48968         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
48969         G. Christensen" <tgc@jupiterrise.com>.
48970         * m4/sys_socket_h.m4: Check for sa_family_t.
48971         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
48972         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
48973         * tests/test-sys_socket.c: Check that sa_family_t works.
48974
48975 2009-05-18  Eric Blake  <ebb9@byu.net>
48976
48977         maint.mk: allow gnulib_dir in VPATH build
48978         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
48979
48980 2009-05-15  Jim Meyering  <meyering@redhat.com>
48981
48982         maint.mk: Give gnulib_dir a default definition.
48983         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
48984         Thus, most packages no longer need to specify this variable in cfg.mk
48985
48986 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
48987
48988         rename.m4: fix typos that would make non-mingw cross-configure fail
48989         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
48990
48991 2009-05-13  Eric Blake  <ebb9@byu.net>
48992
48993         mmap-anon: avoid out-of-order autoconf expansion
48994         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
48995         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
48996         * modules/memchr-tests (Depends-on): Add extensions.
48997         * modules/memchr2-tests (Depends-on): Add extensions.
48998         * modules/memcmp-tests (Depends-on): Add extensions.
48999         * modules/memmem-tests (Depends-on): Add extensions.
49000         * modules/memrchr-tests (Depends-on): Add extensions.
49001
49002 2009-05-13  Bruno Haible  <bruno@clisp.org>
49003
49004         Make some tests ISO C 99 compliant.
49005         * tests/zerosize-ptr.h: New file.
49006         * tests/test-memchr.c: Include zerosize-ptr.h.
49007         (main): Use a zero-size object pointer instead of NULL.
49008         * tests/test-memchr2.c: Include zerosize-ptr.h.
49009         (main): Use a zero-size object pointer instead of NULL.
49010         * tests/test-memcmp.c: Include zerosize-ptr.h.
49011         (main): Use a zero-size object pointer instead of NULL.
49012         * tests/test-memmem.c: Include zerosize-ptr.h.
49013         (main): Use a zero-size object pointer instead of NULL.
49014         * tests/test-memrchr.c: Include zerosize-ptr.h.
49015         (main): Use a zero-size object pointer instead of NULL.
49016         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
49017         m4/mmap-anon.m4.
49018         (Depends-on): Add getpagesize.
49019         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49020         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
49021         m4/mmap-anon.m4.
49022         (Depends-on): Add getpagesize.
49023         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49024         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
49025         m4/mmap-anon.m4.
49026         (Depends-on): Add getpagesize.
49027         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49028         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
49029         m4/mmap-anon.m4.
49030         (Depends-on): Add getpagesize.
49031         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49032         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
49033         m4/mmap-anon.m4.
49034         (Depends-on): Add getpagesize.
49035         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49036
49037 2009-05-12  Bruno Haible  <bruno@clisp.org>
49038
49039         Tests for module 'alignof'.
49040         * modules/alignof-tests: New file.
49041         * tests/test-alignof.c: New file.
49042
49043 2009-05-12  Bruno Haible  <bruno@clisp.org>
49044
49045         Fix alignof macro.
49046         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
49047         vendor compilers that are always correct.
49048
49049 2009-05-12  Bruno Haible  <bruno@clisp.org>
49050
49051         Make the MAP_ANONYMOUS detection work on HP-UX 11.
49052         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
49053         not whether its fully works.
49054
49055 2009-05-12  Bruno Haible  <bruno@clisp.org>
49056
49057         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
49058
49059 2009-05-12  Jim Meyering  <meyering@redhat.com>
49060
49061         * top/maint.mk: Adjust backslash alignment.
49062
49063 2009-05-11  Simon Josefsson  <simon@josefsson.org>
49064
49065         * top/maint.mk: Make $(srcdir)/build-aux configurable.
49066
49067 2009-05-11  Eric Blake  <ebb9@byu.net>
49068
49069         argp: avoid undefined behavior
49070         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
49071         macros.
49072
49073 2009-05-08  Simon Josefsson  <simon@josefsson.org>
49074
49075         * tests/test-vc-list-files-git.sh: Do git config of user.email and
49076         user.name to prevent git commit from complaining.
49077
49078 2009-05-10  Bruno Haible  <bruno@clisp.org>
49079
49080         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
49081         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
49082         it rewrites every file name only once.
49083         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
49084
49085 2009-05-08  Bruno Haible  <bruno@clisp.org>
49086
49087         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
49088         instead of 'max'.
49089
49090 2009-05-08  Simon Josefsson  <simon@josefsson.org>
49091
49092         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
49093         sockaddr_storage test.
49094
49095 2009-05-07  Simon Josefsson  <simon@josefsson.org>
49096
49097         * modules/sys_socket (Makefile.am): Substitute
49098         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
49099         * m4/sys_socket_h.m4: Check for sockaddr_storage.
49100         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
49101         * tests/test-sys_socket.c: Check sockaddr_storage.
49102
49103 2009-05-08  Bruno Haible  <bruno@clisp.org>
49104
49105         New module 'alignof'.
49106         * lib/alignof.h: New file.
49107         * modules/alignof: New file.
49108
49109 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49110             Bruno Haible  <bruno@clisp.org>
49111
49112         Fix test-file-has-acl on FreeBSD.
49113         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
49114         mask is implicitly added.
49115         * tests/test-file-has-acl.c: Include <signal.h>.
49116         (main): Terminate the test after 5 seconds.
49117         * modules/acl-tests (configure.ac): Check for alarm function.
49118
49119 2009-05-04  Bruno Haible  <bruno@clisp.org>
49120
49121         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
49122         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
49123         * modules/errno (configure.ac): Drop AC_REQUIRE.
49124         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
49125         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
49126
49127 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49128
49129         * modules/glob-tests: New module.
49130         * tests/test-glob.c: Add.
49131
49132 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49133
49134         * modules/fnmatch-tests: New module.
49135         * tests/test-fnmatch.c: Add.
49136
49137 2009-05-04  Eric Blake  <ebb9@byu.net>
49138
49139         maint: make the new no-submodule-changes rule VPATH-safe
49140         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
49141
49142 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49143             Bruno Haible  <bruno@clisp.org>
49144
49145         acl: Fix infinite loop on FreeBSD.
49146         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
49147         of return value from acl_get_entry.
49148         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
49149         Likewise.
49150
49151 2009-05-03  Bruno Haible  <bruno@clisp.org>
49152
49153         * lib/acl-internal.h (acl_entries): Clarify return value.
49154         * lib/acl_entries.c (acl_entries): Likewise.
49155
49156 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49157
49158         Bug fix in acl module.
49159         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
49160
49161 2009-05-03  Bruno Haible  <bruno@clisp.org>
49162
49163         Create gperf-generated file in the source dir, not in the build dir.
49164         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
49165         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
49166         * modules/unicase/locale-language (unicase/locale-languages.h):
49167         Likewise.
49168         * modules/unicase/special-casing (unicase/special-casing-table.h):
49169         Likewise.
49170         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
49171         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
49172         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
49173         Reported by Ralf Wildenhues.
49174
49175 2009-05-03  Bruno Haible  <bruno@clisp.org>
49176
49177         * modules/fnmatch (Description, configure.ac): Taken from
49178         fnmatch-posix.
49179         * modules/fnmatch-posix: Turn into a symbolic reference to the
49180         'fnmatch' module, and deprecate.
49181         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
49182
49183 2009-05-03  Bruno Haible  <bruno@clisp.org>
49184
49185         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
49186         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
49187         Reported by Ralf Wildenhues.
49188
49189 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49190
49191         * m4/fnmatch.m4: Fix fnmatch re-define.
49192
49193 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49194
49195         priv-set: new module and tests; adapt write-any-file
49196         * lib/priv-set.c: New file.
49197         * lib/priv-set.h: New file.
49198         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
49199         * lib/write-any-file.c: Simplify by using priv-set module.
49200         * m4/priv-set.m4: New file.
49201         * modules/priv-set: New file.
49202         * modules/unlinkdir: Add dependency on priv-set module.
49203         * modules/write-any-file: Likewise.
49204
49205         Tests for module 'priv-set'.
49206         * modules/priv-set-tests: New file.
49207         * tests/test-priv-set.c: New file.
49208
49209 2009-05-03  Jim Meyering  <meyering@redhat.com>
49210             Bruno Haible  <bruno@clisp.org>
49211
49212         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
49213         use the converted UTF-8 variant of the name instead.
49214
49215 2009-05-03  Jim Meyering  <meyering@redhat.com>
49216
49217         tests: tighten some getdate tests
49218         * tests/test-getdate.c (main): Tighten tests: require equality,
49219         not just greater than.  Set TZ envvar to UTC0.
49220
49221 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
49222
49223         getdate: correctly interpret "next monday" when run on a Monday
49224         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
49225         that e.g., "next tues" (when run on a tuesday) results in a date
49226         that is one week in the future, and not today's date.
49227         I.e., add a week when the wday is the same as the current one.
49228         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
49229         and earlier by Martin Bernreuther and Jan Minář.
49230         * tests/test-getdate.c (main): Check that "next DAY" is always in
49231         the future and that "last DAY" is always in the past.
49232
49233 2009-05-02  Jim Meyering  <meyering@redhat.com>
49234
49235         build: ensure that a release build fails when a submodule is unclean
49236         * top/maint.mk (no-submodule-changes): New rule.
49237         (alpha beta major): Depend on it.
49238
49239 2009-05-02  Bruno Haible  <bruno@clisp.org>
49240
49241         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
49242         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
49243         shell variable gl_fnmatch_required to detect which variant is
49244         requested.
49245         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
49246         gl_FUNC_FNMATCH_POSIX.
49247         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
49248         exclude fnmatch-posix.
49249
49250 2009-05-02  Bruno Haible  <bruno@clisp.org>
49251
49252         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
49253         * modules/mbsrtowcs (License): Change to LGPLv2+.
49254         * modules/strnlen1 (License): Likewise.
49255         Reported by Simon Josefsson.
49256
49257 2009-05-02  Bruno Haible  <bruno@clisp.org>
49258
49259         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
49260         "cross".
49261         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
49262         gnulib-tool was called with option --source-base=lib.
49263
49264 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49265
49266         Use automake *-local hooks without commands, for extensibility.
49267         * modules/localcharset (Makefile.am): Rename install-exec-local
49268         rule to install-exec-localcharset, and make it a prerequisite of
49269         install-exec-local.  Likewise, rename the uninstall-local rule to
49270         uninstall-localcharset, and make it a prerequisite of the former.
49271
49272 2009-05-01  Bruno Haible  <bruno@clisp.org>
49273
49274         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
49275         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
49276         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
49277         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
49278         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
49279         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
49280         m4/locale-zh.m4, m4/codeset.m4.
49281
49282         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
49283         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
49284         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
49285         m4/locale-zh.m4.
49286
49287         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
49288         REPLACE_WCRTOMB if mbstate_t must be replaced.
49289         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
49290         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
49291
49292 2009-05-01  Bruno Haible  <bruno@clisp.org>
49293
49294         Avoid compiler warnings when redefining macros defined by <libintl.h>.
49295         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
49296         dngettext, dcngettext, textdomain, bindtextdomain,
49297         bind_textdomain_codeset): Undefine before redefining.
49298
49299 2009-04-30  Bruno Haible  <bruno@clisp.org>
49300
49301         Fix bug introduced on 2009-04-25.
49302         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
49303         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
49304         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
49305         is defined.
49306         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
49307         is defined.
49308         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
49309         is defined.
49310         Reported by Elbert_Pol <elbert.pol@gmail.com>.
49311
49312 2009-04-28  Bruno Haible  <bruno@clisp.org>
49313
49314         Comment tweaks.
49315         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
49316         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
49317         * lib/unicase.h (u*_casexfrm): Likewise.
49318         Reported by Paolo Bonzini.
49319
49320 2009-04-28  Bruno Haible  <bruno@clisp.org>
49321
49322         Fix a compilation error.
49323         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
49324         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
49325         Reported by Jim Meyering.
49326
49327 2009-04-27  Bruno Haible  <bruno@clisp.org>
49328
49329         New module 'libunistring'.
49330         * modules/libunistring: New file.
49331         * m4/libunistring.m4: New file.
49332         * MODULES.html.sh (Unicode string functions): Add it.
49333
49334 2009-04-27  Eric Blake  <ebb9@byu.net>
49335
49336         maint.mk: allow package-specific header to provide <config.h>
49337         * top/maint.mk (sc_require_config_h): New variable.
49338         (sc_require_config_h, sc_require_config_h_first): Use it.
49339
49340 2009-04-27  Simon Josefsson  <simon@josefsson.org>
49341
49342         * top/maint.mk (sc_avoid_if_before_free): Except
49343         useless-if-before-free script.
49344
49345 2009-04-27  Eric Blake  <ebb9@byu.net>
49346
49347         maintainer-makefile: depend on all required helper scripts
49348         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
49349         useless-if-before-free.
49350         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
49351         version, rather than assuming gnulib checkout is available.
49352         Reported by Simen Josefsson.
49353
49354 2009-04-26  Bruno Haible  <bruno@clisp.org>
49355
49356         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
49357         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
49358         "../" or "..".
49359
49360 2009-04-26  Bruno Haible  <bruno@clisp.org>
49361
49362         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
49363         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
49364         AC_LIB_HAVE_LINKFLAGS.
49365
49366 2009-04-26  Bruno Haible  <bruno@clisp.org>
49367
49368         Simplify calling convention of u*_conv_from_encoding.
49369         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
49370         u32_conv_from_encoding): Expect a resultbuf argument and return the
49371         result directly as a pointer.
49372         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
49373         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
49374         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
49375         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
49376         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
49377         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
49378         Update.
49379         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
49380         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
49381         * lib/vasnprintf.c (VASNPRINTF): Update.
49382         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
49383         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
49384         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
49385         * NEWS: Mention the change.
49386
49387 2009-04-26  Bruno Haible  <bruno@clisp.org>
49388
49389         Simplify calling convention of u*_conv_to_encoding.
49390         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
49391         u32_conv_to_encoding): Expect a resultbuf argument and return the
49392         result directly as a pointer.
49393         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
49394         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
49395         freeing scaled_offsets if mem_iconveha failed.
49396         * lib/unicase/u-casexfrm.h (FUNC): Update.
49397         * lib/uninorm/u-normxfrm.h (FUNC): Update.
49398         * lib/vasnprintf.c (VASNPRINTF): Update.
49399         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
49400         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
49401         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
49402         * NEWS: Mention the change.
49403
49404 2009-04-26  Bruno Haible  <bruno@clisp.org>
49405
49406         Avoid test failures on AIX and OSF/1.
49407         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
49408         malloc(0).
49409         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
49410         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
49411         Likewise.
49412         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
49413         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
49414         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
49415         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
49416         * doc/posix-functions/malloc.texi: Document the portability problem
49417         related to malloc(0).
49418
49419 2009-04-26  Bruno Haible  <bruno@clisp.org>
49420
49421         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
49422         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
49423         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
49424
49425 2009-04-25  Bruno Haible  <bruno@clisp.org>
49426
49427         Avoid link error when creating a namespace clean library.
49428         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
49429         as macro with arguments if already defined as an alias.
49430         * lib/signbitf.c (gl_signbitf): Don't undefine.
49431         * lib/signbitd.c (gl_signbitd): Don't undefine.
49432         * lib/signbitl.c (gl_signbitl): Don't undefine.
49433
49434 2009-04-25  Jim Meyering  <meyering@redhat.com>
49435
49436         vc-list-files: fix another quoting bug
49437         * build-aux/vc-list-files: Avoid sed backslash expansion
49438         of pathological directory names.
49439
49440 2009-04-25  Eric Blake  <ebb9@byu.net>
49441
49442         vc-list-files: fix shell quoting error
49443         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
49444         timestamp.
49445
49446 2009-04-25  Jim Meyering  <meyering@redhat.com>
49447
49448         vc-list-files: restore lost functionality with subdir argument
49449         * build-aux/vc-list-files: When given a non-"." sub-directory
49450         argument, substitute the $dir/ prefix back onto each resulting name.
49451         Otherwise, coreutils' root_tests check would fail.
49452
49453 2009-04-24  Eric Blake  <ebb9@byu.net>
49454
49455         vc-list-files: ignore git symlinks
49456         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
49457         than ls-files, to ignore git symlinks.
49458
49459         maint.mk: import improvements from m4
49460         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
49461         (move_if_change): Delete unused macro.
49462         (news-date-check, vc-diff-check): Support VPATH builds.
49463         (announcement): Likewise.  Split --bootstrap-tools list...
49464         (boostrap-tools): ...into separate list, which can be overridden
49465         in cfg.mk.
49466         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
49467         requiring dependency on useless-if-before-free module.
49468         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
49469         Support VPATH builds.
49470
49471 2009-04-24  Jim Meyering  <meyering@redhat.com>
49472
49473         maint.mk: remove coreutils-specific rules and variables
49474         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
49475         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
49476         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
49477
49478         maint.mk: remove obsolete rule
49479         * top/maint.mk (rel-check): Remove rule.
49480         (WGET, WGETFLAGS): Remove now-unused variables.
49481
49482 2009-04-24  Simon Josefsson  <simon@josefsson.org>
49483
49484         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
49485         consistency.
49486
49487         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
49488         '$(PATH_SEPARATOR)' instead of ':'.
49489
49490 2009-04-24  Simon Josefsson  <simon@josefsson.org>
49491
49492         * lib/getopt1.c (main): Use 'const' for static array.
49493
49494 2009-04-24  Simon Josefsson  <simon@josefsson.org>
49495
49496         * top/maint.mk: Sync with coreutils.
49497         * NEWS: Explain incompatibilities.
49498
49499 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49500             Bruno Haible  <bruno@clisp.org>
49501
49502         Fix cross-compilation results.
49503         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
49504         statement, as third argument of AC_TRY_RUN.
49505         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
49506         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
49507         Likewise.
49508         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
49509         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
49510         Likewise.
49511         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
49512         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
49513         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
49514
49515 2009-04-20  Bruno Haible  <bruno@clisp.org>
49516
49517         Avoid test failure on mingw.
49518         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
49519
49520 2009-04-20  Bruno Haible  <bruno@clisp.org>
49521
49522         Avoid compilation error on mingw.
49523         * modules/localename-tests (Depends-on): Add locale.
49524
49525 2009-04-19  Bruno Haible  <bruno@clisp.org>
49526
49527         Support for building a shared library on Windows platforms.
49528         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
49529         (main): Test the presence of UNINORM_NFC here.
49530         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
49531         (main): Test the presence of UNINORM_NFD here.
49532         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
49533         (main): Test the presence of UNINORM_NFKC here.
49534         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
49535         (main): Test the presence of UNINORM_NFKD here.
49536
49537 2009-04-19  Bruno Haible  <bruno@clisp.org>
49538
49539         Avoid a compiler warning.
49540         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
49541         Change type of variable 'sequence'.
49542
49543 2009-04-19  Bruno Haible  <bruno@clisp.org>
49544
49545         * modules/configmake (Makefile.am): When the contents of configmake.h
49546         does not change, arrange to preserve its modification time.
49547
49548 2009-04-17  Simon Josefsson  <simon@josefsson.org>
49549
49550         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
49551         gettext domain.
49552
49553 2009-04-16  Jim Meyering  <meyering@redhat.com>
49554
49555         useless-if-before-free: improve conversion code
49556         * build-aux/useless-if-before-free: Adjust code-in-comment to match
49557         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
49558
49559 2009-04-14  Bruno Haible  <bruno@clisp.org>
49560
49561         * modules/fcntl (Depends-on): Add extensions.
49562         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
49563
49564 2009-04-12  Ben Pfaff  <blp@gnu.org>
49565
49566         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
49567         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
49568
49569 2009-03-20  Ben Pfaff  <blp@gnu.org>
49570
49571         Make rename replace existing destinations on Windows.
49572         * m4/rename.m4: Add test for Mingw.
49573         * lib/rename.c: Add rename replacement that uses MoveFileEx with
49574         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
49575         * doc/posix-functions/rename.texi: Document.
49576
49577 2009-04-10  Bruno Haible  <bruno@clisp.org>
49578
49579         New include file "iconveh.h".
49580         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
49581         * lib/striconveh.h: Include it.
49582         (enum iconv_ilseq_handler): Remove definition.
49583         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
49584         striconveh.h.
49585         * lib/striconveha.c: Include striconveh.h.
49586         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
49587         * modules/striconveh (Files): Add lib/iconveh.h.
49588         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
49589         lib/striconveh.h.
49590
49591 2009-04-10  Bruno Haible  <bruno@clisp.org>
49592
49593         * lib/uniconv.h: Update comment.
49594
49595 2009-04-10  Bruno Haible  <bruno@clisp.org>
49596
49597         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
49598         always.
49599         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
49600         * lib/unistr/u16-mbtouc-aux.c: Likewise.
49601         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
49602         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
49603         "unistring-notinline.h", so that the function gets defined always.
49604         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
49605         * lib/unistr/u8-uctomb.c: Likewise.
49606         * lib/unistr/u16-mbtouc.c: Likewise.
49607         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
49608         * lib/unistr/u16-uctomb.c: Likewise.
49609         * lib/unistr/u32-mbtouc.c: Likewise.
49610         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
49611         * lib/unistr/u32-uctomb.c: Likewise.
49612
49613 2009-04-10  Bruno Haible  <bruno@clisp.org>
49614
49615         Mark 'utime' obsolete.
49616         * modules/utime (Status, Notice): New sections.
49617         Suggested by Jim Meyering.
49618
49619         Fix cross-compile guess for utime test.
49620         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
49621         autoconf.
49622         * doc/posix-functions/utime.texi: Give more precisions.
49623         Reported by Jan <ipif@ymail.com>.
49624
49625 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
49626
49627         filevercmp: correct today's change
49628         * lib/filevercmp.c: Also handle coreutils' test inputs.
49629         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
49630
49631         Fix regression in 'filevercmp' module. Thanks Sven Joachim
49632         for reporting it.
49633         * lib/filevercmp.c: Special handle for "", "." and "..".
49634         * tests/test-filevercmp.c: Enlarge the set suite.
49635
49636 2009-04-07  Jim Meyering  <meyering@redhat.com>
49637
49638         useless-if-before-free: show how to remove braced useless free, too
49639         * build-aux/useless-if-before-free: still only in a comment, though.
49640
49641 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
49642
49643         maint.mk: import changes to syntax-check macros from coreutils
49644         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
49645         Use them in the relevant macros.
49646
49647 2009-04-06  Bruno Haible  <bruno@clisp.org>
49648
49649         Fix unportable use of bit-fields.
49650         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
49651         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
49652         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
49653
49654 2009-04-06  Bruno Haible  <bruno@clisp.org>
49655
49656         Avoid test failures on AIX and OSF/1.
49657         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
49658         that malloc(0) = NULL.
49659         * tests/unicase/test-u8-tolower.c (check): Likewise.
49660         * tests/unicase/test-u8-totitle.c (check): Likewise.
49661         * tests/unicase/test-u8-toupper.c (check): Likewise.
49662         * tests/unicase/test-u16-casefold.c (check): Likewise.
49663         * tests/unicase/test-u16-tolower.c (check): Likewise.
49664         * tests/unicase/test-u16-totitle.c (check): Likewise.
49665         * tests/unicase/test-u16-toupper.c (check): Likewise.
49666         * tests/unicase/test-u32-casefold.c (check): Likewise.
49667         * tests/unicase/test-u32-tolower.c (check): Likewise.
49668         * tests/unicase/test-u32-totitle.c (check): Likewise.
49669         * tests/unicase/test-u32-toupper.c (check): Likewise.
49670         * tests/uninorm/test-u8-nfc.c (check): Likewise.
49671         * tests/uninorm/test-u8-nfd.c (check): Likewise.
49672         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
49673         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
49674         * tests/uninorm/test-u16-nfc.c (check): Likewise.
49675         * tests/uninorm/test-u16-nfd.c (check): Likewise.
49676         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
49677         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
49678         * tests/uninorm/test-u32-nfc.c (check): Likewise.
49679         * tests/uninorm/test-u32-nfd.c (check): Likewise.
49680         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
49681         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
49682
49683 2009-04-05  Bruno Haible  <bruno@clisp.org>
49684
49685         Work around an autoconf limitation.
49686         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
49687         comment line if it would be longer than 3 KB.
49688
49689 2009-04-05  Bruno Haible  <bruno@clisp.org>
49690
49691         Avoid test failure with libiconv-1.13.
49692         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
49693         of the expected test results.
49694
49695 2009-04-05  Bruno Haible  <bruno@clisp.org>
49696
49697         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
49698         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
49699         that it should be installed.
49700
49701 2009-04-05  Bruno Haible  <bruno@clisp.org>
49702
49703         * gnulib-tool: New option --copy-file.
49704         (func_usage): Document it.
49705         (func_dest_tmpfilename): Moved out of func_import.
49706         (func_add_file, func_update_file): New functions, extracted from
49707         func_import.
49708         (func_import): Update.
49709
49710 2009-04-05  Karl Berry  <karl@gnu.org>
49711
49712         * README: prominently mention gnulib-tool.
49713         Rearrange sections so getting the code is near the top.
49714
49715 2009-04-05  Bruno Haible  <bruno@clisp.org>
49716
49717         * lib/unicase.h: Mention u*_cmp2.
49718         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
49719         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
49720         * lib/unicase/ulc-casecmp.c: Likewise.
49721         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
49722         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
49723         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
49724         unistr/u8-cmp.
49725         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
49726         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
49727         unistr/u16-cmp.
49728         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
49729         unistr/u32-cmp.
49730
49731         * lib/uninorm.h: Mention u*_cmp2.
49732         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
49733         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
49734         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
49735         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
49736         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
49737         unistr/u8-cmp.
49738         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
49739         unistr/u16-cmp.
49740         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
49741         unistr/u32-cmp.
49742
49743         New module 'unistr/u32-cmp2'.
49744         * lib/unistr/u32-cmp2.c: New file.
49745         * modules/unistr/u32-cmp2: New file.
49746
49747         New module 'unistr/u16-cmp2'.
49748         * lib/unistr/u16-cmp2.c: New file.
49749         * modules/unistr/u16-cmp2: New file.
49750
49751         New module 'unistr/u8-cmp2'.
49752         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
49753         * lib/unistr/u8-cmp2.c: New file.
49754         * lib/unistr/u-cmp2.h: New file.
49755         * modules/unistr/u8-cmp2: New file.
49756
49757 2009-04-05  Bruno Haible  <bruno@clisp.org>
49758
49759         * lib/unictype.h (uc_property_is_valid): New macro.
49760         * tests/unictype/test-pr_byname.c (main): Use it.
49761
49762         * lib/unistr.h: Doc fixes.
49763         * lib/uniconv.h: Doc fixes.
49764         * lib/unictype.h: Doc fixes.
49765
49766 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
49767
49768         Port coreutils 7.2 to Solaris 8.
49769
49770         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
49771         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
49772         for Solaris 8.  This is a bit of a hack, as it means it's the
49773         caller's responsibility to add -lnsl if needed, but most likely it
49774         won't be needed since only getaddrinfo uses this and getaddrinfo
49775         isn't needed on Solaris 8.
49776
49777         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
49778         problem to Solaris 8 encountered with coreutils 7.2, which
49779         resulted in a message "fnmatch.c:292: warning: passing argument 4
49780         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
49781         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
49782
49783 2009-04-03  Simon Josefsson  <simon@josefsson.org>
49784
49785         * m4/ld-version-script.m4: Add FIXME comment.
49786
49787 2009-04-02  Simon Josefsson  <simon@josefsson.org>
49788
49789         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
49790         SOVERSION variable.
49791
49792 2009-04-02  Bruno Haible  <bruno@clisp.org>
49793
49794         * Makefile (info, html, dvi, pdf): Combine the rules.
49795         Suggested by Jim Meyering.
49796
49797 2009-04-01  Bruno Haible  <bruno@clisp.org>
49798
49799         * Makefile (info, html, dvi, pdf): New targets.
49800         Reported by Reuben Thomas <rrt@sc3d.org>.
49801
49802 2009-04-01  Bruno Haible  <bruno@clisp.org>
49803
49804         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
49805         can be put into PATH.
49806         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
49807
49808 2009-04-01  Bruno Haible  <bruno@clisp.org>
49809
49810         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
49811
49812 2009-04-01  Bruno Haible  <bruno@clisp.org>
49813
49814         Rename module 'visibility'.
49815         * modules/lib-symbol-visibility: Renamed from modules/visibility.
49816         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
49817         * doc/gnulib.texi: Update.
49818         * MODULES.html.sh (Misc): Update.
49819         * NEWS: Mention the change.
49820
49821 2009-04-01  Simon Josefsson  <simon@josefsson.org>
49822
49823         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
49824         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
49825         Eric Blake <ebb9@byu.net> for review.
49826         * MODULES.html.sh: Add lib-msvc-compat.
49827         * doc/gnulib.texi: Link to new section.
49828         * m4/ld-output-def.m4: New file.
49829         * doc/ld-output-def.texi: New file.
49830
49831 2009-04-01  Simon Josefsson  <simon@josefsson.org>
49832
49833         Rename ld-version-script to lib-symbol-versions.  Suggested by
49834         Bruno Haible <bruno@clisp.org>.
49835         * modules/ld-version-script: Renamed to lib-symbol-versions.
49836         * doc/ld-version-script.texi: Fix module name.
49837         * MODULES.html.sh: Add lib-symbol-versions.
49838
49839 2009-03-31  Simon Josefsson  <simon@josefsson.org>
49840
49841         * modules/u64-tests: New file.
49842         * tests/test-u64.c: New file.
49843
49844 2009-03-04  Simon Josefsson  <simon@josefsson.org>
49845
49846         * MODULES.html.sh: Mention u64.
49847         * modules/u64: New module.
49848         * modules/crypto/sha512: Depend on u64 module instead of providing
49849         u64.h.
49850
49851 2009-03-27  Eric Blake  <ebb9@byu.net>
49852
49853         test-strerror: make debugging EAI_SYSTEM easier
49854         * modules/getaddrinfo-tests (Depends-on): Add strerror.
49855         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
49856         failure was EAI_SYSTEM.
49857
49858 2009-03-25  Bruno Haible  <bruno@clisp.org>
49859
49860         Fix a problem with --enable-relocatable on Solaris 7.
49861         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
49862         since 2008-02-24.
49863
49864 2009-03-25  Eric Blake  <ebb9@byu.net>
49865
49866         test-sockets: avoid gcc warning
49867         * tests/test-sockets.c (main): Silence compiler warning.
49868
49869 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
49870
49871         New modules nproc, pthread, contributed by Glen Lenker.
49872
49873         * MODULES.html.sh: Add pthread, nproc.
49874         * lib/nproc.c: New file.
49875         * lib/nproc.h: New file.
49876         * lib/pthread.in.h: New file.
49877         * m4/pthread.m4: New file.
49878         * modules/nproc: New file.
49879         * modules/pthread: New file.
49880
49881 2009-03-24  Simon Josefsson  <simon@josefsson.org>
49882
49883         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
49884         New variable.
49885
49886 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
49887
49888         filevercmp: handle simple~ and numbered.~3~ backup suffixes
49889         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
49890         * tests/test-filevercmp.c: Add tests for backup suffixes.
49891
49892 2009-03-24  Simon Josefsson  <simon@josefsson.org>
49893
49894         * modules/stdlib (Depends-on): Add stdint, needed when defining
49895         struct random_data on, for example, HP-UX 10.20.  Reported by
49896         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49897
49898 2009-03-24  Simon Josefsson  <simon@josefsson.org>
49899
49900         * lib/readline.c (readline): Call fflush on stdout after printing
49901         prompt.
49902
49903 2009-03-20  Bruno Haible  <bruno@clisp.org>
49904
49905         Remove dependency from 'close' module to -lws2_32 on native Windows.
49906         * lib/close-hook.h: New file.
49907         * lib/close-hook.c: New file.
49908         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
49909         w32sock.h.
49910         (_gl_close_fd_maybe_socket): Remove function.
49911         (rpl_close): Invoke execute_all_close_hooks instead of
49912         _gl_close_fd_maybe_socket.
49913         * lib/sockets.c: Include close-hook.h, w32sock.h.
49914         (close_fd_maybe_socket): New function, essentially from lib/close.c.
49915         (close_sockets_hook): New variable.
49916         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
49917         (gl_sockets_cleanup): Unregister it.
49918         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
49919         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
49920         * modules/close-hook: New file.
49921         * modules/close (Files): Remove lib/w32sock.h.
49922         (Depends-on): Add close-hook.
49923         (Link): Remove section.
49924         * modules/sockets (Files): Add lib/w32sock.h.
49925         (Depends-on): Add close-hook.
49926         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
49927         invocation.
49928         * NEWS: Mention that LIB_CLOSE is gone.
49929
49930 2009-03-23  Eric Blake  <ebb9@byu.net>
49931
49932         signal-tests: test previous patch
49933         * tests/test-signal.c: New file.
49934         * modules/signal-tests: Likewise.
49935
49936         signal.h: always support 'volatile sig_atomic_t'
49937         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
49938         (gl_SIGNAL_H_DEFAULTS): Add a default.
49939         * modules/signal (Makefile.am): Substitute if needed.
49940         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
49941         users can blindly add volatile.
49942         * doc/posix-headers/signal.texi (signal.h): Document it.
49943         Reported by Matthew Woehlke.
49944
49945 2009-03-23  Jim Meyering  <meyering@redhat.com>
49946
49947         pathmax: PATH_MAX: use pathconf only when available
49948         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
49949         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
49950         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
49951         This avoids a link failure in a PSP cross-compilation environment
49952         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
49953
49954         * lib/vasnprintf.c (divide): Fix typo in comment.
49955
49956 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49957
49958         * gnulib-tool (func_filter_filelist): Fix comment.
49959
49960 2009-03-20  Bruno Haible  <bruno@clisp.org>
49961
49962         Make sockets.h self-contained.
49963         * lib/sockets.c: Include sockets.h first.
49964         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
49965
49966 2009-03-19  Eric Blake  <ebb9@byu.net>
49967
49968         doc: mention more functions added in cygwin 1.7.0
49969         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
49970         addition.
49971         * doc/posix-functions/log2f.texi: Likewise.
49972
49973 2009-03-19  Jim Meyering  <meyering@redhat.com>
49974
49975         fsusage: avoid syntax error due to statement-before-declaration
49976         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
49977         after all declarations.  Reported by Matthew Woehlke in
49978         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
49979
49980 2009-03-18  Eric Blake  <ebb9@byu.net>
49981
49982         build-aux/compile: sync from automake
49983         * build-aux/compile: New file, from automake.
49984         * config/srclist.txt: Mention build-aux/compile.
49985
49986 2009-03-17  Bruno Haible  <bruno@clisp.org>
49987
49988         * lib/git-merge-changelog.c: Fix typo in comment.
49989         Reported by Reuben Thomas <rrt@sc3d.org>.
49990
49991 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
49992
49993         * m4/regex.m4: update and improve help for
49994         --without-included-regex.
49995
49996 2009-03-17  Simon Josefsson  <simon@josefsson.org>
49997
49998         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
49999         failure on missing include files.
50000
50001 2009-03-17  Eric Blake  <ebb9@byu.net>
50002
50003         doc: mention more functions added in cygwin 1.7.0
50004         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
50005         addition.
50006         * doc/posix-functions/fwscanf.texi: Likewise.
50007         * doc/posix-functions/swprintf.texi: Likewise.
50008         * doc/posix-functions/swscanf.texi: Likewise.
50009         * doc/posix-functions/vfwprintf.texi: Likewise.
50010         * doc/posix-functions/vfwscanf.texi: Likewise.
50011         * doc/posix-functions/vswprintf.texi: Likewise.
50012         * doc/posix-functions/vswscanf.texi: Likewise.
50013         * doc/posix-functions/vwprintf.texi: Likewise.
50014         * doc/posix-functions/vwscanf.texi: Likewise.
50015         * doc/posix-functions/wcscasecmp.texi: Likewise.
50016         * doc/posix-functions/wcsdup.texi: Likewise.
50017         * doc/posix-functions/wcsftime.texi: Likewise.
50018         * doc/posix-functions/wcsncasecmp.texi: Likewise.
50019         * doc/posix-functions/wprintf.texi: Likewise.
50020         * doc/posix-functions/wscanf.texi: Likewise.
50021         * doc/glibc-functions/gethostbyname2.texi: Likewise.
50022
50023 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50024
50025         maint.mk: really add $(AM_MAKEFLAGS)
50026         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
50027         was inadvertently omitted in the last commit.
50028         Spotted by Bruno Haible.
50029
50030         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
50031         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
50032         $(AM_MAKEFLAGS)' rather than plain `make'.
50033
50034         gnulib-tool: execute $MAKE not make
50035         * gnulib-tool: Default $MAKE to 'make'.
50036         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
50037         than make.  Initialize $MAKE in the do-autobuild script.
50038
50039         gnulib-tool: use $MAKE not make in generated files
50040         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
50041         make, in generated files.  Initialize $MAKE in the do-autobuild
50042         script.
50043
50044         * top/GNUmakefile (_have-git-version-gen): Fix typo.
50045
50046         GNUmakefile: disable parallelism only for multiple, recursive targets
50047         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
50048         additions in the Makefile.
50049         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
50050         by Automake.
50051         (.NOTPARALLEL): Only disable parallel builds if multiple targets
50052         are listed on the command line and at least one of them is
50053         listed in $(ALL_RECURSIVE_TARGETS).
50054
50055 2009-03-14  Bruno Haible  <bruno@clisp.org>
50056
50057         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
50058         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
50059         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
50060         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
50061         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
50062         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
50063         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
50064         unistr/u8-uctomb.
50065         * modules/unistr/u8-strchr (Depends-on): Likewise.
50066         * modules/unistr/u8-strrchr (Depends-on): Likewise.
50067         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
50068         unistr/u16-uctomb.
50069         * modules/unistr/u16-strchr (Depends-on): Likewise.
50070         * modules/unistr/u16-strrchr (Depends-on): Likewise.
50071
50072 2009-03-12  Bruno Haible  <bruno@clisp.org>
50073
50074         Work around select() bug on Interix 3.5.
50075         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
50076         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
50077         * m4/select.m4: New file.
50078         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
50079         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
50080         * modules/select (Files): Add m4/select.m4.
50081         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
50082         * modules/nanosleep (Depends-on): Add select.
50083         * modules/poll (Depends-on): Likewise.
50084         * doc/posix-functions/select.texi: Mention the Interix bug.
50085         Reported by Markus Duft <mduft@gentoo.org>.
50086
50087         * lib/select.c: Renamed from lib/winsock-select.c.
50088         * modules/select (Files): Add lib/select.c, remove
50089         lib/winsock-select.c.
50090         (configure.ac): Update.
50091
50092 2009-03-12  Jim Meyering  <meyering@redhat.com>
50093
50094         avoid gcc warnings about unused macro definitions
50095         * lib/readtokens.c (STREQ): Remove unused definition.
50096         * lib/xmalloc.c (SIZE_MAX): Likewise.
50097         * lib/openat-die.c (N_): Likewise.
50098         * lib/mountlist.c (SIZE_MAX): Remove definition.
50099         Instead, include <stdint.h>.
50100         * lib/readutmp.c: Likewise.
50101         * modules/readutmp (Depends-on): Add stdint.
50102         * modules/mountlist (Depends-on): Add stdint.
50103         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
50104
50105 2009-03-10  Bruno Haible  <bruno@clisp.org>
50106
50107         Tests for module 'mbmemcasecoll'.
50108         * modules/mbmemcasecoll-tests: New file.
50109         * tests/test-mbmemcasecoll1.sh: New file.
50110         * tests/test-mbmemcasecoll2.sh: New file.
50111         * tests/test-mbmemcasecoll3.sh: New file.
50112         * tests/test-mbmemcasecoll.c: New file.
50113
50114         New module 'mbmemcasecoll'.
50115         * lib/mbmemcasecoll.h: New file.
50116         * lib/mbmemcasecoll.c: New file.
50117         * modules/mbmemcasecoll: New file.
50118
50119         * tests/test-mbmemcasecmp.h: New file, extracted from
50120         tests/test-mbmemcasecmp.c.
50121         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
50122         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
50123         (main): Update.
50124         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
50125
50126 2009-03-09  Bruno Haible  <bruno@clisp.org>
50127
50128         Tests for module 'mbmemcasecmp'.
50129         * modules/mbmemcasecmp-tests: New file.
50130         * tests/test-mbmemcasecmp1.sh: New file.
50131         * tests/test-mbmemcasecmp2.sh: New file.
50132         * tests/test-mbmemcasecmp3.sh: New file.
50133         * tests/test-mbmemcasecmp.c: New file.
50134
50135         New module 'mbmemcasecmp'.
50136         * lib/mbmemcasecmp.h: New file.
50137         * lib/mbmemcasecmp.c: New file.
50138         * modules/mbmemcasecmp: New file.
50139
50140 2009-03-09  Bruno Haible  <bruno@clisp.org>
50141
50142         Tests for module 'unicase/ulc-casecoll'.
50143         * modules/unicase/ulc-casecoll-tests: New file.
50144         * tests/unicase/test-ulc-casecoll1.sh: New file.
50145         * tests/unicase/test-ulc-casecoll2.sh: New file.
50146         * tests/unicase/test-ulc-casecoll.c: New file.
50147
50148         New module 'unicase/ulc-casecoll'.
50149         * lib/unicase.h (ulc_casecoll): New declaration.
50150         * lib/unicase/ulc-casecoll.c: New file.
50151         * modules/unicase/ulc-casecoll: New file.
50152
50153         New module 'unicase/ulc-casexfrm'.
50154         * lib/unicase.h (ulc_casexfrm): New declaration.
50155         * lib/unicase/ulc-casexfrm.c: New file.
50156         * modules/unicase/ulc-casexfrm: New file.
50157
50158 2009-03-09  Bruno Haible  <bruno@clisp.org>
50159
50160         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
50161         invocations.
50162
50163         * m4/mbscasecmp.m4: Remove file.
50164         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
50165         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
50166
50167         * m4/mbscasestr.m4: Remove file.
50168         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
50169         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
50170
50171         * m4/mbschr.m4: Remove file.
50172         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
50173         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
50174
50175         * m4/mbscspn.m4: Remove file.
50176         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
50177         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
50178
50179         * m4/mbslen.m4: Remove file.
50180         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
50181         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
50182
50183         * m4/mbsncasecmp.m4: Remove file.
50184         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
50185         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
50186
50187         * m4/mbsnlen.m4: Remove file.
50188         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
50189         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
50190
50191         * m4/mbspbrk.m4: Remove file.
50192         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
50193         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
50194
50195         * m4/mbspcasecmp.m4: Remove file.
50196         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
50197         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
50198
50199         * m4/mbsrchr.m4: Remove file.
50200         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
50201         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
50202
50203         * m4/mbssep.m4: Remove file.
50204         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
50205         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
50206
50207         * m4/mbsspn.m4: Remove file.
50208         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
50209         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
50210
50211         * m4/mbsstr.m4: Remove file.
50212         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
50213         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
50214
50215         * m4/mbstok_r.m4: Remove file.
50216         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
50217         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
50218
50219         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
50220
50221         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
50222         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
50223
50224         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
50225
50226 2009-03-08  Bruno Haible  <bruno@clisp.org>
50227
50228         Tests for module 'unicase/ulc-casecmp'.
50229         * modules/unicase/ulc-casecmp-tests: New file.
50230         * tests/unicase/test-ulc-casecmp1.sh: New file.
50231         * tests/unicase/test-ulc-casecmp2.sh: New file.
50232         * tests/unicase/test-ulc-casecmp.c: New file.
50233
50234         New module 'unicase/ulc-casecmp'.
50235         * lib/unicase.h (ulc_casecmp): New declaration.
50236         * lib/unicase/ulc-casecmp.c: New file.
50237         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
50238         'const SRC_UNIT *'.
50239         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
50240         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
50241         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
50242         * modules/unicase/ulc-casecmp: New file.
50243
50244         Tests for module 'unicase/u32-is-cased'.
50245         * modules/unicase/u32-is-cased-tests: New file.
50246         * tests/unicase/test-u32-is-cased.c: New file.
50247
50248         Tests for module 'unicase/u16-is-cased'.
50249         * modules/unicase/u16-is-cased-tests: New file.
50250         * tests/unicase/test-u16-is-cased.c: New file.
50251
50252         Tests for module 'unicase/u8-is-cased'.
50253         * modules/unicase/u8-is-cased-tests: New file.
50254         * tests/unicase/test-u8-is-cased.c: New file.
50255         * tests/unicase/test-is-cased.h: New file.
50256
50257         New module 'unicase/u32-is-cased'.
50258         * lib/unicase/u32-is-cased.c: New file.
50259         * modules/unicase/u32-is-cased: New file.
50260
50261         New module 'unicase/u16-is-cased'.
50262         * lib/unicase/u16-is-cased.c: New file.
50263         * modules/unicase/u16-is-cased: New file.
50264
50265         New module 'unicase/u8-is-cased'.
50266         * lib/unicase/u8-is-cased.c: New file.
50267         * lib/unicase/u-is-cased.h: New file.
50268         * modules/unicase/u8-is-cased: New file.
50269
50270         Tests for module 'unicase/u32-is-casefolded'.
50271         * modules/unicase/u32-is-casefolded-tests: New file.
50272         * tests/unicase/test-u32-is-casefolded.c: New file.
50273
50274         Tests for module 'unicase/u16-is-casefolded'.
50275         * modules/unicase/u16-is-casefolded-tests: New file.
50276         * tests/unicase/test-u16-is-casefolded.c: New file.
50277
50278         Tests for module 'unicase/u8-is-casefolded'.
50279         * modules/unicase/u8-is-casefolded-tests: New file.
50280         * tests/unicase/test-u8-is-casefolded.c: New file.
50281         * tests/unicase/test-is-casefolded.h: New file.
50282
50283         New module 'unicase/u32-is-casefolded'.
50284         * lib/unicase/u32-is-casefolded.c: New file.
50285         * modules/unicase/u32-is-casefolded: New file.
50286
50287         New module 'unicase/u16-is-casefolded'.
50288         * lib/unicase/u16-is-casefolded.c: New file.
50289         * modules/unicase/u16-is-casefolded: New file.
50290
50291         New module 'unicase/u8-is-casefolded'.
50292         * lib/unicase/u8-is-casefolded.c: New file.
50293         * modules/unicase/u8-is-casefolded: New file.
50294
50295         Tests for module 'unicase/u32-is-titlecase'.
50296         * modules/unicase/u32-is-titlecase-tests: New file.
50297         * tests/unicase/test-u32-is-titlecase.c: New file.
50298
50299         Tests for module 'unicase/u16-is-titlecase'.
50300         * modules/unicase/u16-is-titlecase-tests: New file.
50301         * tests/unicase/test-u16-is-titlecase.c: New file.
50302
50303         Tests for module 'unicase/u8-is-titlecase'.
50304         * modules/unicase/u8-is-titlecase-tests: New file.
50305         * tests/unicase/test-u8-is-titlecase.c: New file.
50306         * tests/unicase/test-is-titlecase.h: New file.
50307
50308         New module 'unicase/u32-is-titlecase'.
50309         * lib/unicase/u32-is-titlecase.c: New file.
50310         * modules/unicase/u32-is-titlecase: New file.
50311
50312         New module 'unicase/u16-is-titlecase'.
50313         * lib/unicase/u16-is-titlecase.c: New file.
50314         * modules/unicase/u16-is-titlecase: New file.
50315
50316         New module 'unicase/u8-is-titlecase'.
50317         * lib/unicase/u8-is-titlecase.c: New file.
50318         * modules/unicase/u8-is-titlecase: New file.
50319
50320         Tests for module 'unicase/u32-is-lowercase'.
50321         * modules/unicase/u32-is-lowercase-tests: New file.
50322         * tests/unicase/test-u32-is-lowercase.c: New file.
50323
50324         Tests for module 'unicase/u16-is-lowercase'.
50325         * modules/unicase/u16-is-lowercase-tests: New file.
50326         * tests/unicase/test-u16-is-lowercase.c: New file.
50327
50328         Tests for module 'unicase/u8-is-lowercase'.
50329         * modules/unicase/u8-is-lowercase-tests: New file.
50330         * tests/unicase/test-u8-is-lowercase.c: New file.
50331         * tests/unicase/test-is-lowercase.h: New file.
50332
50333         New module 'unicase/u32-is-lowercase'.
50334         * lib/unicase/u32-is-lowercase.c: New file.
50335         * modules/unicase/u32-is-lowercase: New file.
50336
50337         New module 'unicase/u16-is-lowercase'.
50338         * lib/unicase/u16-is-lowercase.c: New file.
50339         * modules/unicase/u16-is-lowercase: New file.
50340
50341         New module 'unicase/u8-is-lowercase'.
50342         * lib/unicase/u8-is-lowercase.c: New file.
50343         * modules/unicase/u8-is-lowercase: New file.
50344
50345         Tests for module 'unicase/u32-is-uppercase'.
50346         * modules/unicase/u32-is-uppercase-tests: New file.
50347         * tests/unicase/test-u32-is-uppercase.c: New file.
50348
50349         Tests for module 'unicase/u16-is-uppercase'.
50350         * modules/unicase/u16-is-uppercase-tests: New file.
50351         * tests/unicase/test-u16-is-uppercase.c: New file.
50352
50353         Tests for module 'unicase/u8-is-uppercase'.
50354         * modules/unicase/u8-is-uppercase-tests: New file.
50355         * tests/unicase/test-u8-is-uppercase.c: New file.
50356         * tests/unicase/test-is-uppercase.h: New file.
50357
50358         New module 'unicase/u32-is-uppercase'.
50359         * lib/unicase/u32-is-uppercase.c: New file.
50360         * modules/unicase/u32-is-uppercase: New file.
50361
50362         New module 'unicase/u16-is-uppercase'.
50363         * lib/unicase/u16-is-uppercase.c: New file.
50364         * modules/unicase/u16-is-uppercase: New file.
50365
50366         New module 'unicase/u8-is-uppercase'.
50367         * lib/unicase/u8-is-uppercase.c: New file.
50368         * modules/unicase/u8-is-uppercase: New file.
50369
50370         New module 'unicase/u32-is-invariant'.
50371         * lib/unicase/u32-is-invariant.c: New file.
50372         * modules/unicase/u32-is-invariant: New file.
50373
50374         New module 'unicase/u16-is-invariant'.
50375         * lib/unicase/u16-is-invariant.c: New file.
50376         * modules/unicase/u16-is-invariant: New file.
50377
50378         New module 'unicase/u8-is-invariant'.
50379         * lib/unicase/u8-is-invariant.c: New file.
50380         * lib/unicase/invariant.h: New file.
50381         * lib/unicase/u-is-invariant.h: New file.
50382         * modules/unicase/u8-is-invariant: New file.
50383
50384         Tests for module 'unicase/u32-casecoll'.
50385         * modules/unicase/u32-casecoll-tests: New file.
50386         * tests/unicase/test-u32-casecoll.c: New file.
50387
50388         Tests for module 'unicase/u16-casecoll'.
50389         * modules/unicase/u16-casecoll-tests: New file.
50390         * tests/unicase/test-u16-casecoll.c: New file.
50391
50392         Tests for module 'unicase/u8-casecoll'.
50393         * modules/unicase/u8-casecoll-tests: New file.
50394         * tests/unicase/test-u8-casecoll.c: New file.
50395
50396         New module 'unicase/u32-casecoll'.
50397         * lib/unicase/u32-casecoll.c: New file.
50398         * modules/unicase/u32-casecoll: New file.
50399
50400         New module 'unicase/u16-casecoll'.
50401         * lib/unicase/u16-casecoll.c: New file.
50402         * modules/unicase/u16-casecoll: New file.
50403
50404         New module 'unicase/u8-casecoll'.
50405         * lib/unicase/u8-casecoll.c: New file.
50406         * lib/unicase/u-casecoll.h: New file.
50407         * modules/unicase/u8-casecoll: New file.
50408
50409         New module 'unicase/u32-casexfrm'.
50410         * lib/unicase/u32-casexfrm.c: New file.
50411         * modules/unicase/u32-casexfrm: New file.
50412
50413         New module 'unicase/u16-casexfrm'.
50414         * lib/unicase/u16-casexfrm.c: New file.
50415         * modules/unicase/u16-casexfrm: New file.
50416
50417         New module 'unicase/u8-casexfrm'.
50418         * lib/unicase/u8-casexfrm.c: New file.
50419         * lib/unicase/u-casexfrm.h: New file.
50420         * modules/unicase/u8-casexfrm: New file.
50421
50422         Tests for module 'unicase/u32-casecmp'.
50423         * modules/unicase/u32-casecmp-tests: New file.
50424         * tests/unicase/test-u32-casecmp.c: New file.
50425
50426         Tests for module 'unicase/u16-casecmp'.
50427         * modules/unicase/u16-casecmp-tests: New file.
50428         * tests/unicase/test-u16-casecmp.c: New file.
50429
50430         Tests for module 'unicase/u8-casecmp'.
50431         * modules/unicase/u8-casecmp-tests: New file.
50432         * tests/unicase/test-u8-casecmp.c: New file.
50433         * tests/unicase/test-casecmp.h: New file.
50434
50435         New module 'unicase/u32-casecmp'.
50436         * lib/unicase/u32-casecmp.c: New file.
50437         * modules/unicase/u32-casecmp: New file.
50438
50439         New module 'unicase/u16-casecmp'.
50440         * lib/unicase/u16-casecmp.c: New file.
50441         * modules/unicase/u16-casecmp: New file.
50442
50443         New module 'unicase/u8-casecmp'.
50444         * lib/unicase/u8-casecmp.c: New file.
50445         * lib/unicase/u-casecmp.h: New file.
50446         * modules/unicase/u8-casecmp: New file.
50447
50448         Tests for module 'unicase/u32-casefold'.
50449         * modules/unicase/u32-casefold-tests: New file.
50450         * tests/unicase/test-u32-casefold.c: New file.
50451
50452         Tests for module 'unicase/u16-casefold'.
50453         * modules/unicase/u16-casefold-tests: New file.
50454         * tests/unicase/test-u16-casefold.c: New file.
50455
50456         Tests for module 'unicase/u8-casefold'.
50457         * modules/unicase/u8-casefold-tests: New file.
50458         * tests/unicase/test-u8-casefold.c: New file.
50459
50460         New module 'unicase/u32-casefold'.
50461         * lib/unicase/u32-casefold.c: New file.
50462         * modules/unicase/u32-casefold: New file.
50463
50464         New module 'unicase/u16-casefold'.
50465         * lib/unicase/u16-casefold.c: New file.
50466         * modules/unicase/u16-casefold: New file.
50467
50468         New module 'unicase/u8-casefold'.
50469         * lib/unicase/u8-casefold.c: New file.
50470         * lib/unicase/u-casefold.h: New file.
50471         * modules/unicase/u8-casefold: New file.
50472
50473         New module 'unicase/tocasefold'.
50474         * lib/unicase/casefold.h: New file.
50475         * lib/unicase/tocasefold.c: New file.
50476         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
50477         * modules/unicase/tocasefold: New file.
50478
50479         Tests for module 'unicase/u32-totitle'.
50480         * modules/unicase/u32-totitle-tests: New file.
50481         * tests/unicase/test-u32-totitle.c: New file.
50482
50483         Tests for module 'unicase/u16-totitle'.
50484         * modules/unicase/u16-totitle-tests: New file.
50485         * tests/unicase/test-u16-totitle.c: New file.
50486
50487         Tests for module 'unicase/u8-totitle'.
50488         * modules/unicase/u8-totitle-tests: New file.
50489         * tests/unicase/test-u8-totitle.c: New file.
50490
50491         New module 'unicase/u32-totitle'.
50492         * lib/unicase/u32-totitle.c: New file.
50493         * modules/unicase/u32-totitle: New file.
50494
50495         New module 'unicase/u16-totitle'.
50496         * lib/unicase/u16-totitle.c: New file.
50497         * modules/unicase/u16-totitle: New file.
50498
50499         New module 'unicase/u8-totitle'.
50500         * lib/unicase/u8-totitle.c: New file.
50501         * lib/unicase/u-totitle.h: New file.
50502         * modules/unicase/u8-totitle: New file.
50503
50504         Tests for module 'unicase/u32-tolower'.
50505         * modules/unicase/u32-tolower-tests: New file.
50506         * tests/unicase/test-u32-tolower.c: New file.
50507
50508         Tests for module 'unicase/u16-tolower'.
50509         * modules/unicase/u16-tolower-tests: New file.
50510         * tests/unicase/test-u16-tolower.c: New file.
50511
50512         Tests for module 'unicase/u8-tolower'.
50513         * modules/unicase/u8-tolower-tests: New file.
50514         * tests/unicase/test-u8-tolower.c: New file.
50515
50516         New module 'unicase/u32-tolower'.
50517         * lib/unicase/u32-tolower.c: New file.
50518         * modules/unicase/u32-tolower: New file.
50519
50520         New module 'unicase/u16-tolower'.
50521         * lib/unicase/u16-tolower.c: New file.
50522         * modules/unicase/u16-tolower: New file.
50523
50524         New module 'unicase/u8-tolower'.
50525         * lib/unicase/u8-tolower.c: New file.
50526         * modules/unicase/u8-tolower: New file.
50527
50528         Tests for module 'unicase/u32-toupper'.
50529         * modules/unicase/u32-toupper-tests: New file.
50530         * tests/unicase/test-u32-toupper.c: New file.
50531
50532         Tests for module 'unicase/u16-toupper'.
50533         * modules/unicase/u16-toupper-tests: New file.
50534         * tests/unicase/test-u16-toupper.c: New file.
50535
50536         Tests for module 'unicase/u8-toupper'.
50537         * modules/unicase/u8-toupper-tests: New file.
50538         * tests/unicase/test-u8-toupper.c: New file.
50539
50540         New module 'unicase/u32-toupper'.
50541         * lib/unicase/u32-toupper.c: New file.
50542         * modules/unicase/u32-toupper: New file.
50543
50544         New module 'unicase/u16-toupper'.
50545         * lib/unicase/u16-toupper.c: New file.
50546         * modules/unicase/u16-toupper: New file.
50547
50548         New module 'unicase/u8-toupper'.
50549         * lib/unicase/u8-toupper.c: New file.
50550         * modules/unicase/u8-toupper: New file.
50551
50552         New module 'unicase/u32-casemap'.
50553         * lib/unicase/u32-casemap.c: New file.
50554         * modules/unicase/u32-casemap: New file.
50555
50556         New module 'unicase/u16-casemap'.
50557         * lib/unicase/u16-casemap.c: New file.
50558         * modules/unicase/u16-casemap: New file.
50559
50560         New module 'unicase/u8-casemap'.
50561         * lib/unicase/unicasemap.h: New file.
50562         * lib/unicase/u8-casemap.c: New file.
50563         * lib/unicase/u-casemap.h: New file.
50564         * modules/unicase/u8-casemap: New file.
50565
50566         New module 'unicase/special-casing'.
50567         * lib/unicase/special-casing.h: New file.
50568         * lib/unicase/special-casing.c: New file.
50569         * lib/unicase/special-casing-table.gperf: New file, generated by
50570         gen-uni-tables.c.
50571         * modules/unicase/special-casing: New file.
50572
50573         Tests for module 'unicase/locale-language'.
50574         * modules/unicase/locale-language-tests: New file.
50575         * tests/unicase/test-locale-language.sh: New file.
50576         * tests/unicase/test-locale-language.c: New file.
50577
50578         New module 'unicase/locale-language'.
50579         * lib/unicase/locale-language.c: New file.
50580         * lib/unicase/locale-languages.gperf: New file.
50581         * modules/unicase/locale-language: New file.
50582
50583         Generate more tables for case conversion and case folding.
50584         * lib/gen-uni-tables.c (SCC_*): New enum items.
50585         (struct special_casing_rule): New type.
50586         (casing_rules, num_casing_rules, allocated_casing_rules): New
50587         variables.
50588         (add_casing_rule, fill_casing_rules): New functions.
50589         (struct casefold_rule): New type.
50590         (casefolding_rules, num_casefolding_rules,
50591         allocated_casefolding_rules): New variables.
50592         (fill_casefolding_rules): New function.
50593         (unicode_casefold): New variable.
50594         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
50595         sort_casing_rules, output_casing_rules): New functions.
50596         (main): Accept to more arguments: SpecialCasing.txt and
50597         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
50598         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
50599         Output mapping for casefolding.
50600
50601         * lib/unicase.h: Include stdbool.h, uninorm.h.
50602         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
50603         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
50604         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
50605         arguments.
50606         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
50607         resultp arguments.
50608         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
50609         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
50610         resultp arguments.
50611         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
50612         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
50613         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
50614         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
50615         declarations.
50616         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
50617
50618 2009-03-08  Bruno Haible  <bruno@clisp.org>
50619
50620         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
50621         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
50622         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
50623         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
50624
50625 2009-03-07  Bruno Haible  <bruno@clisp.org>
50626
50627         Adjust u*_normcmp, u*_normcoll API.
50628         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
50629         u16_normcoll, u32_normcoll): Change failure conventions.
50630         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
50631         errno and return -1.
50632         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
50633
50634 2009-03-07  Bruno Haible  <bruno@clisp.org>
50635
50636         Tests for module 'uninorm/u32-normcoll'.
50637         * modules/uninorm/u32-normcoll-tests: New file.
50638         * tests/uninorm/test-u32-normcoll.c: New file.
50639
50640         Tests for module 'uninorm/u16-normcoll'.
50641         * modules/uninorm/u16-normcoll-tests: New file.
50642         * tests/uninorm/test-u16-normcoll.c: New file.
50643
50644         Tests for module 'uninorm/u8-normcoll'.
50645         * modules/uninorm/u8-normcoll-tests: New file.
50646         * tests/uninorm/test-u8-normcoll.c: New file.
50647
50648 2009-03-07  Bruno Haible  <bruno@clisp.org>
50649
50650         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
50651         tests/uninorm/test-u32-normcmp.c.
50652         * tests/uninorm/test-u32-normcmp.c: Include it.
50653         (test_nonascii): New function, extracted from main. Add some more
50654         tests.
50655         (main): Invoke test_ascii and test_nonascii.
50656         * modules/uninorm/u32-normcmp-tests (Files): Add
50657         tests/uninorm/test-u32-normcmp.h.
50658         (Depends-on): Remove uninorm/u32-normcmp.
50659
50660         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
50661         tests/uninorm/test-u16-normcmp.c.
50662         * tests/uninorm/test-u16-normcmp.c: Include it.
50663         (test_nonascii): New function, extracted from main. Add some more
50664         tests.
50665         (main): Invoke test_ascii and test_nonascii.
50666         * modules/uninorm/u16-normcmp-tests (Files): Add
50667         tests/uninorm/test-u16-normcmp.h.
50668         (Depends-on): Remove uninorm/u16-normcmp.
50669
50670         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
50671         tests/uninorm/test-u8-normcmp.c.
50672         * tests/uninorm/test-u8-normcmp.c: Include it.
50673         (test_nonascii): New function, extracted from main. Add some more
50674         tests.
50675         (main): Invoke test_ascii and test_nonascii.
50676         * modules/uninorm/u8-normcmp-tests (Files): Add
50677         tests/uninorm/test-u8-normcmp.h.
50678         (Depends-on): Remove uninorm/u8-normcmp.
50679
50680 2009-03-07  Bruno Haible  <bruno@clisp.org>
50681
50682         New module 'uninorm/u32-normcoll'.
50683         * lib/uninorm/u32-normcoll.c: New file.
50684         * modules/uninorm/u32-normcoll: New file.
50685
50686         New module 'uninorm/u16-normcoll'.
50687         * lib/uninorm/u16-normcoll.c: New file.
50688         * modules/uninorm/u16-normcoll: New file.
50689
50690         New module 'uninorm/u8-normcoll'.
50691         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
50692         declarations.
50693         * lib/uninorm/u8-normcoll.c: New file.
50694         * lib/uninorm/u-normcoll.h: New file.
50695         * modules/uninorm/u8-normcoll: New file.
50696
50697         New module 'uninorm/u32-normxfrm'.
50698         * lib/uninorm/u32-normxfrm.c: New file.
50699         * modules/uninorm/u32-normxfrm: New file.
50700
50701         New module 'uninorm/u16-normxfrm'.
50702         * lib/uninorm/u16-normxfrm.c: New file.
50703         * modules/uninorm/u16-normxfrm: New file.
50704
50705         New module 'uninorm/u8-normxfrm'.
50706         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
50707         declarations.
50708         * lib/uninorm/u8-normxfrm.c: New file.
50709         * lib/uninorm/u-normxfrm.h: New file.
50710         * modules/uninorm/u8-normxfrm: New file.
50711
50712 2009-03-07  Bruno Haible  <bruno@clisp.org>
50713
50714         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
50715         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
50716         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
50717
50718 2009-03-07  Bruno Haible  <bruno@clisp.org>
50719
50720         New module 'memxfrm'.
50721         * lib/memxfrm.h: New file.
50722         * lib/memxfrm.c: New file.
50723         * modules/memxfrm: New file.
50724
50725 2009-03-07  Bruno Haible  <bruno@clisp.org>
50726
50727         New module 'memcmp2'.
50728         * lib/memcmp2.h: New file.
50729         * lib/memcmp2.c: New file.
50730         * modules/memcmp2: New file.
50731
50732 2009-03-07  Bruno Haible  <bruno@clisp.org>
50733
50734         Tests for module 'uninorm/decomposing-form'.
50735         * modules/uninorm/decomposing-form-tests: New file.
50736         * tests/uninorm/test-decomposing-form.c: New file.
50737
50738         New module 'uninorm/decomposing-form'.
50739         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
50740         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
50741         Add 'decomposing_variant' field.
50742         * lib/uninorm/decomposing-form.c: New file.
50743         * lib/uninorm/nfc.c (uninorm_nfc): Update.
50744         * lib/uninorm/nfd.c (uninorm_nfd): Update.
50745         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
50746         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
50747         * modules/uninorm/decomposing-form: New file.
50748         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
50749         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
50750
50751 2009-03-07  Bruno Haible  <bruno@clisp.org>
50752
50753         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
50754         strings.
50755
50756 2009-03-06  Bruno Haible  <bruno@clisp.org>
50757
50758         Tests for module 'uninorm/u32-normcmp'.
50759         * tests/uninorm/test-u32-normcmp.c: New file.
50760         * modules/uninorm/u32-normcmp-tests: New file.
50761
50762         Tests for module 'uninorm/u16-normcmp'.
50763         * tests/uninorm/test-u16-normcmp.c: New file.
50764         * modules/uninorm/u16-normcmp-tests: New file.
50765
50766         Tests for module 'uninorm/u8-normcmp'.
50767         * tests/uninorm/test-u8-normcmp.c: New file.
50768         * modules/uninorm/u8-normcmp-tests: New file.
50769
50770         New module 'uninorm/u32-normcmp'.
50771         * lib/uninorm/u32-normcmp.c: New file.
50772         * modules/uninorm/u32-normcmp: New file.
50773
50774         New module 'uninorm/u16-normcmp'.
50775         * lib/uninorm/u16-normcmp.c: New file.
50776         * modules/uninorm/u16-normcmp: New file.
50777
50778         New module 'uninorm/u8-normcmp'.
50779         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
50780         declarations.
50781         * lib/uninorm/u8-normcmp.c: New file.
50782         * lib/uninorm/u-normcmp.h: New file.
50783         * modules/uninorm/u8-normcmp: New file.
50784
50785 2009-03-06  Bruno Haible  <bruno@clisp.org>
50786
50787         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
50788         Reported by Eric Blake.
50789
50790 2009-03-06  Eric Blake  <ebb9@byu.net>
50791             Bruno Haible  <bruno@clisp.org>
50792
50793         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
50794         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
50795         condition.
50796         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
50797         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
50798         condition.
50799         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
50800
50801 2009-03-06  Eric Blake  <ebb9@byu.net>
50802
50803         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
50804         to avoid compiler warnings.
50805         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
50806
50807 2009-03-05  Bruno Haible  <bruno@clisp.org>
50808
50809         * tests/test-ftell.c (main): Disable test beyond end of file on
50810         FreeMiNT.
50811         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
50812
50813 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
50814
50815         * lib/filevercmp.c: Move hidden files up in ordering.
50816         * tests/test-filevercmp.c: Add tests for hidden files.
50817
50818 2009-03-04  Bruno Haible  <bruno@clisp.org>
50819
50820         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
50821         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
50822         AM_CFLAGS.
50823         Reported by Simon Josefsson.
50824
50825 2009-03-03  Bruno Haible  <bruno@clisp.org>
50826
50827         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
50828         Reported by Simon Josefsson.
50829
50830         * doc/ld-version-script.texi: Update node reference.
50831
50832 2009-03-03  Bruno Haible  <bruno@clisp.org>
50833
50834         * modules/visibility (License): Change to 'unlimited'.
50835         Suggested by Simon Josefsson.
50836
50837 2009-03-03  Jim Meyering  <meyering@redhat.com>
50838
50839         unlinkdir: cannot_unlink_dir may modify process state
50840         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
50841         it's neither thread-safe nor appropriate for use in a library.
50842
50843 2009-03-03  Eric Blake  <ebb9@byu.net>
50844
50845         test-closein: silence test under Darwin
50846         * tests/test-closein.sh: Ignore stderr from cat, since we don't
50847         care if it dies from EPIPE or EBADF.
50848
50849 2009-03-03  Bruno Haible  <bruno@clisp.org>
50850
50851         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
50852         earlier.
50853         * doc/visibility.texi: Fix @node and @section.
50854
50855 2009-03-03  Simon Josefsson  <simon@josefsson.org>
50856
50857         * doc/gnulib.texi: Link to sections for ld version script and
50858         visibility.
50859         * doc/visibility.texi: Add @node and @section.
50860         * modules/ld-version-script: New module.
50861         * m4/ld-version-script.m4: New file.
50862         * doc/ld-version-script.texi: New file.
50863
50864 2009-03-02  David Lutterkort  <lutter@redhat.com>
50865
50866         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
50867         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50868
50869 2009-03-02  Bruno Haible  <bruno@clisp.org>
50870
50871         * doc/visibility.texi: Mention libtool's -export-symbols option.
50872
50873 2009-03-02  Jim Meyering  <meyering@redhat.com>
50874
50875         announce-gen: new option: --no-print-checksums
50876         * build-aux/announce-gen (usage): Describe it.
50877         (print_checksums): Print a newline here, not in the [*] footnote.
50878         (main): Honor it.
50879
50880 2009-03-01  Bruno Haible  <bruno@clisp.org>
50881
50882         Use socklen_t in the native Windows replacements prototypes.
50883         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
50884         instead of 'int'.
50885         * lib/getsockopt.c (rpl_getsockopt): Likewise.
50886         * lib/setsockopt.c (rpl_setsockopt): Likewise.
50887         * modules/getsockopt (Depends-on): Add socklen.
50888         * modules/setsockopt (Depends-on): Add socklen.
50889
50890 2009-03-01  Bruno Haible  <bruno@clisp.org>
50891
50892         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
50893         least 4.2.
50894
50895 2009-03-01  Eric Blake  <ebb9@byu.net>
50896             Bruno Haible  <bruno@clisp.org>
50897
50898         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
50899         error messages.
50900         * lib/wait-process.c (wait_subprocess): Omit error message about
50901         deadly signal sent to the child of termsigp != NULL.
50902
50903 2009-03-01  Eric Blake  <ebb9@byu.net>
50904
50905         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
50906
50907 2009-03-01  Bruno Haible  <bruno@clisp.org>
50908
50909         Avoid a gcc warning.
50910         * tests/test-sched.c (b): Make global.
50911         Reported by Eric Blake.
50912
50913 2009-01-19  Martin Lambers  <marlam@marlam.de>
50914
50915         Provide POSIX semantics for socket timeout options on W32.
50916         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
50917         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
50918         * modules/setsockopt: Depend on sys_time module for struct timeval.
50919         * modules/getsockopt: Depend on sys_time module for struct timeval.
50920
50921 2009-03-01  Simon Josefsson  <simon@josefsson.org>
50922
50923         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
50924         __USE_GNU, for consistency with netdb.in.h.
50925         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50926
50927 2009-03-01  Bruno Haible  <bruno@clisp.org>
50928
50929         More support for FreeMiNT.
50930         * lib/fseeko.c (rpl_fseeko): Complete last commit.
50931         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50932
50933 2009-03-01  Bruno Haible  <bruno@clisp.org>
50934
50935         More support for FreeMiNT.
50936         * lib/fpurge.c (fpurge): Correct last commit.
50937         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50938
50939 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50940
50941         Fix unportable awk script in vc-list-files.
50942         * build-aux/vc-list-files: In the replacement awk script, use
50943         substr with a second argument of 1, not zero.
50944         Report by Simon Josefsson.
50945
50946 2009-02-28  Bruno Haible  <bruno@clisp.org>
50947
50948         More support for FreeMiNT.
50949         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
50950         to FreeMiNT today.
50951         * lib/fwriting.c (fwriting): Likewise.
50952         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
50953
50954 2009-02-28  Bruno Haible  <bruno@clisp.org>
50955
50956         * tests/test-freadseek.c (main): Disable test beyond end of file on
50957         FreeMiNT.
50958         * tests/test-ftello.c (main): Likewise.
50959         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
50960
50961 2009-02-28  Bruno Haible  <bruno@clisp.org>
50962
50963         Add tentative support for FreeMiNT.
50964         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
50965         * lib/fpurge.c (fpurge): Likewise.
50966         * lib/freadable.c (freadable): Likewise.
50967         * lib/freading.c (freading): Likewise.
50968         * lib/freadptr.c (freadptr): Likewise.
50969         * lib/freadseek.c (freadptrinc): Likewise.
50970         * lib/fseeko.c (rpl_fseeko): Likewise.
50971         * lib/fseterr.c (fseterr): Likewise.
50972         * lib/fwritable.c (fwritable): Likewise.
50973         * lib/fwriting.c (fwriting): Likewise.
50974         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
50975         Hourihane.
50976         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50977
50978 2009-02-28  Bruno Haible  <bruno@clisp.org>
50979
50980         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
50981         SIGCHLD.
50982         Reported by Jim Meyering.
50983
50984 2009-02-28  Bruno Haible  <bruno@clisp.org>
50985
50986         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
50987         Mention the results of these tests on various platforms.
50988         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
50989         order.
50990         * doc/posix-functions/printf.texi: Likewise.
50991         * doc/posix-functions/snprintf.texi: Likewise.
50992         * doc/posix-functions/sprintf.texi: Likewise.
50993         * doc/posix-functions/vfprintf.texi: Likewise.
50994         * doc/posix-functions/vprintf.texi: Likewise.
50995         * doc/posix-functions/vsnprintf.texi: Likewise.
50996         * doc/posix-functions/vsprintf.texi: Likewise.
50997         * doc/glibc-functions/obstack_printf.texi: Likewise.
50998         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
50999
51000 2009-02-28  Bruno Haible  <bruno@clisp.org>
51001
51002         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
51003         Reported by Loïc Minier <lool@dooz.org>.
51004
51005 2009-02-27  Bruno Haible  <bruno@clisp.org>
51006
51007         * gnulib-tool (func_import): Make the sed expression used to create the
51008         sed script for updating the .gitignore file POSIX compliant.
51009         Reported by Eric Blake.
51010
51011 2009-02-27  Bruno Haible  <bruno@clisp.org>
51012
51013         * gnulib-tool (sed): Don't alias as "sed --posix".
51014         Reported by Eric Blake.
51015
51016 2009-02-27  Bruno Haible  <bruno@clisp.org>
51017
51018         Avoid test link errors.
51019         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
51020         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
51021         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
51022         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
51023         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51024
51025 2009-02-27  Bruno Haible  <bruno@clisp.org>
51026
51027         Avoid spurious "(cached)" in configure output.
51028         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
51029         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
51030         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
51031         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
51032         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
51033         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
51034         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
51035         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
51036         Reported by Eric Blake.
51037
51038 2009-02-27  Eric Blake  <ebb9@byu.net>
51039
51040         printf: fix regression in previous patch
51041         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
51042
51043 2009-02-27  Bruno Haible  <bruno@clisp.org>
51044
51045         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
51046         value.
51047         * lib/stdint.in.h: Likewise.
51048         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
51049
51050 2009-02-27  Eric Blake  <ebb9@byu.net>
51051
51052         doc: mention more functions added in cygwin 1.7.0
51053         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
51054         addition.
51055         * doc/posix-functions/open_wmemstream.texi: Likewise.
51056         * doc/posix-functions/wcsnlen.texi: Likewise.
51057         * doc/posix-functions/wcsnrtombs.texi: Likewise.
51058         * doc/posix-functions/wcstod.texi: Likewise.
51059         * doc/posix-functions/wcstof.texi: Likewise.
51060         * doc/posix-functions/wcstoimax.texi: Likewise.
51061         * doc/posix-functions/wcstok.texi: Likewise.
51062         * doc/posix-functions/wcstoumax.texi: Likewise.
51063
51064         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
51065         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
51066         * doc/posix-functions/fprintf.texi: Update.
51067         * doc/posix-functions/printf.texi: Update.
51068         * doc/posix-functions/snprintf.texi: Update.
51069         * doc/posix-functions/sprintf.texi: Update.
51070         * doc/posix-functions/vfprintf.texi: Update.
51071         * doc/posix-functions/vprintf.texi: Update.
51072         * doc/posix-functions/vsnprintf.texi: Update.
51073         * doc/posix-functions/vsprintf.texi: Update.
51074         * doc/glibc-functions/obstack_printf.texi: Update.
51075         * doc/glibc-functions/obstack_vprintf.texi: Update.
51076
51077 2009-02-26  Eric Blake  <ebb9@byu.net>
51078
51079         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
51080         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
51081         compilation bug by using runtime conversion.
51082         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
51083         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
51084         * modules/ceill-tests (Files): Use nan.h.
51085         * modules/floorl-tests (Files): Likewise.
51086         * modules/frexpl-tests (Files): Likewise.
51087         * modules/isnanl-tests (Files): Likewise.
51088         * modules/ldexpl-tests (Files): Likewise.
51089         * modules/roundl-tests (Files): Likewise.
51090         * modules/truncl-tests (Files): Likewise.
51091         * tests/test-ceill.c (main): Use a working NaN.
51092         * tests/test-floorl.c (main): Likewise.
51093         * tests/test-frexpl.c (main): Likewise.
51094         * tests/test-isnan.c (test_long_double): Likewise.
51095         * tests/test-isnanl.h (main): Likewise.
51096         * tests/test-ldexpl.h (main): Likewise.
51097         * tests/test-roundl.h (main): Likewise.
51098         * tests/test-truncl.h (main): Likewise.
51099         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
51100
51101 2009-02-26  Eric Blake  <ebb9@byu.net>
51102             Bruno Haible  <bruno@clisp.org>
51103
51104         Work around a *printf bug with %ls on Solaris.
51105         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
51106         precision is specified, sprintf stops converting the wide string
51107         argument when the number of bytes that have been produced by this
51108         conversion equals or exceeds the precision.
51109         * doc/posix-functions/fprintf.texi: Update.
51110         * doc/posix-functions/printf.texi: Update.
51111         * doc/posix-functions/snprintf.texi: Update.
51112         * doc/posix-functions/sprintf.texi: Update.
51113         * doc/posix-functions/vfprintf.texi: Update.
51114         * doc/posix-functions/vprintf.texi: Update.
51115         * doc/posix-functions/vsnprintf.texi: Update.
51116         * doc/posix-functions/vsprintf.texi: Update.
51117         * doc/glibc-functions/obstack_printf.texi: Update.
51118         * doc/glibc-functions/obstack_vprintf.texi: Update.
51119
51120 2009-02-26  Eric Blake  <ebb9@byu.net>
51121
51122         stdlib: favor compiler check of random.h
51123         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
51124         to avoid an ObjC random.h installed by Swarm.
51125
51126 2009-02-26  Bruno Haible  <bruno@clisp.org>
51127
51128         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
51129         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
51130         Reported by Gary V. Vaughan <gary@gnu.org>.
51131
51132 2009-02-26  Bruno Haible  <bruno@clisp.org>
51133
51134         Fix *printf behaviour regarding the %ls directive.
51135         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
51136         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
51137         NEED_PRINTF_DIRECTIVE_LS.
51138         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
51139         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51140         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51141         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
51142         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
51143         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
51144         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
51145         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51146         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51147         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51148         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51149         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
51150         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51151         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51152         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51153         * doc/posix-functions/fprintf.texi: Update.
51154         * doc/posix-functions/printf.texi: Update.
51155         * doc/posix-functions/snprintf.texi: Update.
51156         * doc/posix-functions/sprintf.texi: Update.
51157         * doc/posix-functions/vfprintf.texi: Update.
51158         * doc/posix-functions/vprintf.texi: Update.
51159         * doc/posix-functions/vsnprintf.texi: Update.
51160         * doc/posix-functions/vsprintf.texi: Update.
51161         * doc/glibc-functions/obstack_printf.texi: Update.
51162         * doc/glibc-functions/obstack_vprintf.texi: Update.
51163         Reported by Eric Blake.
51164
51165 2009-02-25  Bruno Haible  <bruno@clisp.org>
51166
51167         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
51168         with known value.
51169         Reported by Gary V. Vaughan <gary@gnu.org>.
51170
51171 2009-02-25  Bruno Haible  <bruno@clisp.org>
51172
51173         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
51174         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
51175         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
51176         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
51177         Reported by Gary V. Vaughan <gary@gnu.org>.
51178
51179 2009-02-25  Bruno Haible  <bruno@clisp.org>
51180
51181         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
51182         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
51183         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
51184         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
51185         Reported by Gary V. Vaughan <gary@gnu.org>.
51186
51187 2009-02-25  Eric Blake  <ebb9@byu.net>
51188
51189         tests: skip fseek/ftell tests if ungetc is broken
51190         * m4/ungetc.m4: New file.
51191         * modules/fseek-tests: Split test, so ungetc dependency is
51192         separate from rest of test.
51193         * modules/fseeko-tests: Likewise.
51194         * modules/ftell-tests: Likewise.
51195         * modules/ftello-tests: Likewise.
51196         * tests/test-fseek.c (main): Isolate ungetc dependency.
51197         * tests/test-fseeko.c (main): Likewise.
51198         * tests/test-ftell.c (main): Likewise.
51199         * tests/test-ftello.c (main): Likewise.
51200         * tests/test-fseek2.sh: New file.
51201         * tests/test-fseeko2.sh: Likewise.
51202         * tests/test-ftell2.sh: Likewise.
51203         * tests/test-ftello2.sh: Likewise.
51204
51205 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
51206
51207         test-getaddrinfo: fix usage of skip return code 77
51208         * tests/test-gettaddrinfo.c: Return skip code 77 only
51209         for first occurrence of skip (4x77 is not 77)
51210
51211 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
51212
51213         strtod: avoid C99 decl-after-statement
51214         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
51215
51216 2009-02-24  Eric Blake  <ebb9@byu.net>
51217
51218         strtod: detect HP-UX 11.31 bug
51219         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
51220         Reported by Gary V. Vaughan.
51221
51222 2009-02-23  Bruno Haible  <bruno@clisp.org>
51223
51224         Fix invalid read past end of memory block.
51225         * lib/vasnprintf.c (DCHAR_SET): Define.
51226         (local_wcslen): Define only when needed.
51227         (local_strnlen, local_wcsnlen): New functions.
51228         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
51229         directives that involve a conversion ourselves.
51230         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
51231         wcsnlen, mbrtowc, wcrtomb.
51232         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
51233         * tests/test-vasprintf-posix.c (test_function): Likewise.
51234         * tests/test-snprintf-posix.h (test_function): Likewise.
51235         * tests/test-sprintf-posix.h (test_function): Likewise.
51236         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51237
51238 2009-02-22  Bruno Haible  <bruno@clisp.org>
51239
51240         Implement new clarified decomposition of Hangul syllables.
51241         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
51242         of type LTV, return only a pairwise decomposition.
51243         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
51244         Likewise.
51245         * tests/uninorm/test-decomposition.c (main): Updated expected result.
51246         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
51247         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
51248
51249 2009-02-22  Bruno Haible  <bruno@clisp.org>
51250
51251         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
51252         zero-length results and shrink excess allocated memory.
51253         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
51254         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
51255         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
51256         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
51257         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
51258         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
51259         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
51260         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
51261         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
51262         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
51263         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
51264         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
51265
51266 2009-02-21  Bruno Haible  <bruno@clisp.org>
51267
51268         * doc/gnulib.texi: Include safe-alloc.texi earlier.
51269         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
51270         spaces after a period. Put a space between a macro name and its
51271         argument list. Trivial rewordings.
51272         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
51273         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
51274         (main): Return 0 explicitly.
51275
51276 2009-02-21  Bruno Haible  <bruno@clisp.org>
51277
51278         Tests for module 'uninorm/filter'.
51279         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
51280         * modules/uninorm/filter-tests: New file.
51281
51282         New module 'uninorm/filter'.
51283         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
51284         uninorm_filter_flush, uninorm_filter_free): New declarations.
51285         * lib/uninorm/uninorm-filter.c: New file.
51286         * modules/uninorm/filter: New file.
51287
51288 2009-02-21  Bruno Haible  <bruno@clisp.org>
51289
51290         Tests for module 'uninorm/nfkc'.
51291         * tests/uninorm/test-nfkc.c: New file.
51292         * tests/uninorm/test-u8-nfkc.c: New file.
51293         * tests/uninorm/test-u16-nfkc.c: New file.
51294         * tests/uninorm/test-u32-nfkc.c: New file.
51295         * tests/uninorm/test-u32-nfkc-big.sh: New file.
51296         * tests/uninorm/test-u32-nfkc-big.c: New file.
51297         * modules/uninorm/nfkc-tests: New file.
51298
51299         New module 'uninorm/nfkc'.
51300         * lib/uninorm/nfkc.c: New file.
51301         * modules/uninorm/nfkc: New file.
51302
51303         Tests for module 'uninorm/nfkd'.
51304         * tests/uninorm/test-nfkd.c: New file.
51305         * tests/uninorm/test-u8-nfkd.c: New file.
51306         * tests/uninorm/test-u16-nfkd.c: New file.
51307         * tests/uninorm/test-u32-nfkd.c: New file.
51308         * tests/uninorm/test-u32-nfkd-big.sh: New file.
51309         * tests/uninorm/test-u32-nfkd-big.c: New file.
51310         * modules/uninorm/nfkd-tests: New file.
51311
51312         New module 'uninorm/nfkd'.
51313         * lib/uninorm/nfkd.c: New file.
51314         * modules/uninorm/nfkd: New file.
51315
51316         Tests for module 'uninorm/nfc'.
51317         * tests/uninorm/test-nfc.c: New file.
51318         * tests/uninorm/test-u8-nfc.c: New file.
51319         * tests/uninorm/test-u16-nfc.c: New file.
51320         * tests/uninorm/test-u32-nfc.c: New file.
51321         * tests/uninorm/test-u32-nfc-big.sh: New file.
51322         * tests/uninorm/test-u32-nfc-big.c: New file.
51323         * modules/uninorm/nfc-tests: New file.
51324
51325         New module 'uninorm/nfc'.
51326         * lib/uninorm/nfc.c: New file.
51327         * modules/uninorm/nfc: New file.
51328
51329         Tests for module 'uninorm/nfd'.
51330         * tests/uninorm/test-nfd.c: New file.
51331         * tests/uninorm/test-u8-nfd.c: New file.
51332         * tests/uninorm/test-u16-nfd.c: New file.
51333         * tests/uninorm/test-u32-nfd.c: New file.
51334         * tests/uninorm/test-u32-nfd-big.sh: New file.
51335         * tests/uninorm/test-u32-nfd-big.c: New file.
51336         * tests/uninorm/test-u32-normalize-big.h: New file.
51337         * tests/uninorm/test-u32-normalize-big.c: New file.
51338         * tests/uninorm/NormalizationTest.txt: New file, created from
51339         Unicode 5.1.0 NormalizationTest.txt.
51340         * modules/uninorm/nfd-tests: New file.
51341
51342         New module 'uninorm/nfd'.
51343         * lib/uninorm/nfd.c: New file.
51344         * modules/uninorm/nfd: New file.
51345
51346         New module 'uninorm/u32-normalize'.
51347         * lib/uninorm/u32-normalize.c: New file.
51348         * modules/uninorm/u32-normalize: New file.
51349
51350         New module 'uninorm/u16-normalize'.
51351         * lib/uninorm/u16-normalize.c: New file.
51352         * modules/uninorm/u16-normalize: New file.
51353
51354         New module 'uninorm/u8-normalize'.
51355         * lib/uninorm/u8-normalize.c: New file.
51356         * lib/uninorm/normalize-internal.h: New file.
51357         * lib/uninorm/u-normalize-internal.h: New file.
51358         * modules/uninorm/u8-normalize: New file.
51359
51360         New module 'uninorm/decompose-internal'.
51361         * lib/uninorm/decompose-internal.c: New file.
51362         * modules/uninorm/decompose-internal: New file.
51363
51364         Tests for module 'uninorm/composition'.
51365         * tests/uninorm/test-composition.c: New file.
51366         * modules/uninorm/composition-tests: New file.
51367
51368         New module 'uninorm/composition'.
51369         * lib/uninorm/composition.c: New file.
51370         * lib/uninorm/composition-table.gperf: New file, generated by
51371         gen-uni-tables.
51372         * modules/uninorm/composition: New file.
51373
51374         Tests for module 'uninorm/compat-decomposition'.
51375         * tests/uninorm/test-compat-decomposition.c: New file.
51376         * modules/uninorm/compat-decomposition-tests: New file.
51377
51378         New module 'uninorm/compat-decomposition'.
51379         * lib/uninorm/decompose-internal.h: New file.
51380         * lib/uninorm/compat-decomposition.c: New file.
51381         * modules/uninorm/compat-decomposition: New file.
51382
51383         Tests for module 'uninorm/canonical-decomposition'.
51384         * tests/uninorm/test-canonical-decomposition.c: New file.
51385         * modules/uninorm/canonical-decomposition-tests: New file.
51386
51387         New module 'uninorm/canonical-decomposition'.
51388         * lib/uninorm/canonical-decomposition.c: New file.
51389         * modules/uninorm/canonical-decomposition: New file.
51390
51391         Tests for module 'uninorm/decomposition'.
51392         * tests/uninorm/test-decomposition.c: New file.
51393         * modules/uninorm/decomposition-tests: New file.
51394
51395         New module 'uninorm/decomposition'.
51396         * lib/uninorm/decomposition.c: New file.
51397         * modules/uninorm/decomposition: New file.
51398
51399         New module 'uninorm/decomposition-table'.
51400         * lib/uninorm/decomposition-table.h: New file.
51401         * lib/uninorm/decomposition-table.c: New file.
51402         * lib/uninorm/decomposition-table1.h: New file, generated by
51403         gen-uni-tables.
51404         * lib/uninorm/decomposition-table2.h: New file, generated by
51405         gen-uni-tables.
51406         * modules/uninorm/decomposition-table: New file.
51407
51408         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
51409         (UC_DECOMP_*): New enumeration items.
51410         (get_decomposition): New function.
51411         (struct decomp_table): New type.
51412         (output_decomposition, output_decomposition_tables): New functions.
51413         (unicode_composition_exclusions): New variable.
51414         (fill_composition_exclusions, debug_output_composition_tables): New
51415         functions.
51416         (main): Accept one more argument. Invoke fill_composition_exclusions.
51417         Output decomposition and composition tables.
51418
51419         New module 'uninorm/base'.
51420         * lib/uninorm.h: New file.
51421         * lib/unictype.h: Update comment.
51422         * modules/uninorm/base: New file.
51423
51424 2009-02-21  David Lutterkort  <lutter@redhat.com>
51425
51426         Tests for module 'safe-alloc'.
51427         * tests/test-safe-alloc.c: New file.
51428         * modules/safe-alloc-tests: New file.
51429
51430         New module 'safe-alloc'.
51431         * lib/safe-alloc.h: New file.
51432         * lib/safe-alloc.c: New file.
51433         * m4/safe-alloc.m4: New file.
51434         * modules/safe-alloc: New file.
51435         * doc/safe-alloc.texi: New file.
51436         * doc/gnulib.texi: Include it.
51437         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
51438         safe-alloc.
51439
51440 2009-02-18  Bruno Haible  <bruno@clisp.org>
51441
51442         Fix link error on non-glibc systems.
51443         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
51444         variable.
51445         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51446
51447 2009-02-18  Jim Meyering  <meyering@redhat.com>
51448
51449         fts: avoid used-uninitialized error due to recent change
51450         * lib/fts.c (fts_read): Guard uses of the new member,
51451         parent->fts_n_dirs_remaining, since it's not relevant for
51452         the parent of a directory specified on the command-line.
51453
51454 2009-02-17  James Youngman  <jay@gnu.org>
51455             Bruno Haible  <bruno@clisp.org>
51456
51457         * m4/include_next.m4: Reformulate comment.
51458
51459 2009-02-16  Jim Meyering  <meyering@redhat.com>
51460
51461         fts: add #if guards so that the fts_lgpl module still builds
51462         * lib/fts.c: Guard just-added hash-table-using parts with
51463         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
51464         Reported by Simon Josefsson.
51465
51466 2009-02-15  Bruno Haible  <bruno@clisp.org>
51467
51468         * modules/array-mergesort-tests: New file.
51469         * tests/test-array-mergesort.c: New file.
51470
51471         New module 'array-mergesort'.
51472         * modules/array-mergesort: New file.
51473         * lib/array-mergesort.h: New file.
51474
51475 2009-02-15  Bruno Haible  <bruno@clisp.org>
51476
51477         Fix 2009-02-07 commit.
51478         * lib/gen-uni-tables.c (output_predicate, output_category,
51479         output_combclass, output_bidi_category, output_decimal_digit,
51480         output_digit, output_numeric, output_mirror, output_scripts,
51481         output_ident_category, output_simple_mapping): Fix format directives.
51482         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
51483
51484 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
51485
51486         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
51487         fixes are available from IBM.
51488
51489 2009-02-13  Jim Meyering  <meyering@redhat.com>
51490
51491         fts: arrange not to stat non-directories in more cases
51492         This makes GNU find (when it doesn't need to stat each file)
51493         *much* more efficient at traversing reiserfs file systems.
51494         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
51495         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
51496         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
51497         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
51498         (leaf_optimization_applies): New function.
51499         (LCO_hash, LCO_compare): New helper functions.
51500         (link_count_optimize_ok): New function.
51501         (fts_stat): Initialize new member (if dir).
51502         (fts_read): Decrement parent's fts_n_dirs_remaining count if
51503         we've just stat'ed a directory.  Skip the stat call when possible.
51504         ---
51505         Note this AFS-related exchange:
51506         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
51507         and note find's pioctl call in find/fstype.c.
51508         But that is necessary only if you want to enable the
51509         optimization for AFS, and for now, I don't.
51510
51511         fts: move a function definition "up" (no semantic change)
51512         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
51513         "up" to precede upcoming use of a related function.
51514
51515 2009-02-11  Jim Meyering  <meyering@redhat.com>
51516
51517         fts: correct internal computation of nlinks (optimization-related)
51518         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
51519         whether the current entry is a directory, so don't test it.
51520
51521 2009-02-10  Bruno Haible  <bruno@clisp.org>
51522
51523         Tests for module 'uniwbrk/ulc-wordbreaks'.
51524         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
51525         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
51526         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
51527
51528         Tests for module 'uniwbrk/u32-wordbreaks'.
51529         * modules/uniwbrk/u32-wordbreaks-tests: New file.
51530         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
51531
51532         Tests for module 'uniwbrk/u16-wordbreaks'.
51533         * modules/uniwbrk/u16-wordbreaks-tests: New file.
51534         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
51535
51536         Tests for module 'uniwbrk/u8-wordbreaks'.
51537         * modules/uniwbrk/u8-wordbreaks-tests: New file.
51538         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
51539
51540 2009-02-10  Bruno Haible  <bruno@clisp.org>
51541
51542         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
51543         property.
51544         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
51545         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
51546         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
51547
51548 2009-02-10  Simon Josefsson  <simon@josefsson.org>
51549
51550         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
51551         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
51552
51553 2009-02-10  Bruno Haible  <bruno@clisp.org>
51554
51555         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
51556         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
51557         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
51558         * lib/unilbrk/u8-possible-linebreaks.c: Update.
51559         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
51560         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
51561
51562 2009-02-09  Simon Josefsson  <simon@josefsson.org>
51563
51564         * lib/sockets.h (gl_fd_to_handle): New function.
51565
51566         * tests/test-sockets.c: Call gl_fd_to_handle.
51567
51568 2009-02-09  Bruno Haible  <bruno@clisp.org>
51569
51570         * doc/havelib.texi: Document the conventions on bi-arch systems.
51571
51572 2009-02-08  Bruno Haible  <bruno@clisp.org>
51573
51574         Document the AC_LIB_LINKFLAGS macro.
51575         * doc/havelib.texi: New file, mostly written on 2005-05-24.
51576         * doc/gnulib.texi: Include it.
51577
51578 2009-02-08  Bruno Haible  <bruno@clisp.org>
51579
51580         Fix wrong order of sections, compared to TOC.
51581         * doc/gnulib.texi: Include relocatable-maint.texi after the
51582         "Regular expressions" node, not before.
51583
51584 2009-02-08  Bruno Haible  <bruno@clisp.org>
51585
51586         Tests for module 'unicase/totitle'.
51587         * modules/unicase/totitle-tests: New file.
51588
51589         Tests for module 'unicase/tolower'.
51590         * modules/unicase/tolower-tests: New file.
51591
51592         Tests for module 'unicase/toupper'.
51593         * modules/unicase/toupper-tests: New file.
51594         * tests/unicase/test-mapping-part1.h: New file.
51595         * tests/unicase/test-mapping-part2.h: New file.
51596
51597         New module 'unicase/totitle'.
51598         * modules/unicase/totitle: New file.
51599         * lib/unicase/totitle.c: New file.
51600
51601         New module 'unicase/tolower'.
51602         * modules/unicase/tolower: New file.
51603         * lib/unicase/tolower.c: New file.
51604
51605         New module 'unicase/toupper'.
51606         * modules/unicase/toupper: New file.
51607         * lib/unicase/toupper.c: New file.
51608         * lib/unicase/simple-mapping.h: New file.
51609
51610         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
51611         (mapping_table): New structure.
51612         (output_simple_mapping): New function.
51613         (main): Invoke output_simple_mapping_test and output_simple_mapping.
51614         * modules/gen-uni-tables (Description): Update.
51615         * lib/unicase/toupper.h: New file, automatically generated by
51616         gen-uni-tables.
51617         * lib/unicase/tolower.h: New file, automatically generated by
51618         gen-uni-tables.
51619         * lib/unicase/totitle.h: New file, automatically generated by
51620         gen-uni-tables.
51621         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
51622         gen-uni-tables.
51623         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
51624         gen-uni-tables.
51625         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
51626         gen-uni-tables.
51627
51628         New module 'unicase/base'.
51629         * modules/unicase/base: New file.
51630         * lib/unicase.h: New file.
51631
51632 2009-02-08  Bruno Haible  <bruno@clisp.org>
51633
51634         New module 'uniwbrk/ulc-wordbreaks'.
51635         * modules/uniwbrk/ulc-wordbreaks: New file.
51636         * lib/uniwbrk/ulc-wordbreaks.c: New file.
51637
51638         New module 'uniwbrk/u32-wordbreaks'.
51639         * modules/uniwbrk/u32-wordbreaks: New file.
51640         * lib/uniwbrk/u32-wordbreaks.c: New file.
51641
51642         New module 'uniwbrk/u16-wordbreaks'.
51643         * modules/uniwbrk/u16-wordbreaks: New file.
51644         * lib/uniwbrk/u16-wordbreaks.c: New file.
51645
51646         New module 'uniwbrk/u8-wordbreaks'.
51647         * modules/uniwbrk/u8-wordbreaks: New file.
51648         * lib/uniwbrk/u8-wordbreaks.c: New file.
51649         * lib/uniwbrk/u-wordbreaks.h: New file.
51650
51651         New module 'uniwbrk/table'.
51652         * modules/uniwbrk/table: New file.
51653         * lib/uniwbrk/wbrktable.h: New file.
51654         * lib/uniwbrk/wbrktable.c: New file.
51655
51656         New module 'uniwbrk/wordbreak-property'.
51657         * modules/uniwbrk/wordbreak-property: New file.
51658         * lib/uniwbrk/wordbreak-property.c: New file.
51659
51660         * lib/gen-uni-tables.c (WBP_*): New enum items.
51661         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
51662         (unicode_org_wbp): New variable.
51663         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
51664         New functions.
51665         (wbp_table): New structure.
51666         (output_wbp, output_wbrk_tables): New functions.
51667         (main): Accept additional argument. Invoke fill_org_wbp,
51668         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
51669         output_wbrk_tables.
51670         * modules/gen-uni-tables (Description): Update.
51671         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
51672         gen-uni-tables.
51673
51674         New module 'uniwbrk/base'.
51675         * modules/uniwbrk/base: New file.
51676         * lib/uniwbrk.h: New file.
51677
51678 2009-02-08  Bruno Haible  <bruno@clisp.org>
51679
51680         Update to Unicode 5.1.0.
51681         * lib/gen-uni-tables.c (is_property_alphabetic): Include
51682         U+2185..U+2188.
51683         (is_property_default_ignorable_code_point): Don't include characters
51684         of category Cc or Cs and not-a-characters.
51685         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
51686         U+0D79, U+109E, U+109F, U+A60C.
51687         * lib/unictype/bidi_of.h: Regenerated.
51688         * lib/unictype/blocks.h: Regenerated.
51689         * lib/unictype/categ_C.h: Regenerated.
51690         * lib/unictype/categ_Cf.h: Regenerated.
51691         * lib/unictype/categ_Cn.h: Regenerated.
51692         * lib/unictype/categ_L.h: Regenerated.
51693         * lib/unictype/categ_Ll.h: Regenerated.
51694         * lib/unictype/categ_Lm.h: Regenerated.
51695         * lib/unictype/categ_Lo.h: Regenerated.
51696         * lib/unictype/categ_Lu.h: Regenerated.
51697         * lib/unictype/categ_M.h: Regenerated.
51698         * lib/unictype/categ_Mc.h: Regenerated.
51699         * lib/unictype/categ_Me.h: Regenerated.
51700         * lib/unictype/categ_Mn.h: Regenerated.
51701         * lib/unictype/categ_N.h: Regenerated.
51702         * lib/unictype/categ_Nd.h: Regenerated.
51703         * lib/unictype/categ_Nl.h: Regenerated.
51704         * lib/unictype/categ_No.h: Regenerated.
51705         * lib/unictype/categ_P.h: Regenerated.
51706         * lib/unictype/categ_Pd.h: Regenerated.
51707         * lib/unictype/categ_Pe.h: Regenerated.
51708         * lib/unictype/categ_Pf.h: Regenerated.
51709         * lib/unictype/categ_Pi.h: Regenerated.
51710         * lib/unictype/categ_Po.h: Regenerated.
51711         * lib/unictype/categ_Ps.h: Regenerated.
51712         * lib/unictype/categ_S.h: Regenerated.
51713         * lib/unictype/categ_Sk.h: Regenerated.
51714         * lib/unictype/categ_Sm.h: Regenerated.
51715         * lib/unictype/categ_So.h: Regenerated.
51716         * lib/unictype/categ_of.h: Regenerated.
51717         * lib/unictype/combining.h: Regenerated.
51718         * lib/unictype/ctype_alnum.h: Regenerated.
51719         * lib/unictype/ctype_alpha.h: Regenerated.
51720         * lib/unictype/ctype_graph.h: Regenerated.
51721         * lib/unictype/ctype_lower.h: Regenerated.
51722         * lib/unictype/ctype_print.h: Regenerated.
51723         * lib/unictype/ctype_punct.h: Regenerated.
51724         * lib/unictype/ctype_upper.h: Regenerated.
51725         * lib/unictype/decdigit.h: Regenerated.
51726         * lib/unictype/digit.h: Regenerated.
51727         * lib/unictype/mirror.h: Regenerated.
51728         * lib/unictype/numeric.h: Regenerated.
51729         * lib/unictype/pr_alphabetic.h: Regenerated.
51730         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
51731         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
51732         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
51733         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
51734         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
51735         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
51736         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
51737         * lib/unictype/pr_combining.h: Regenerated.
51738         * lib/unictype/pr_dash.h: Regenerated.
51739         * lib/unictype/pr_decimal_digit.h: Regenerated.
51740         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
51741         * lib/unictype/pr_deprecated.h: Regenerated.
51742         * lib/unictype/pr_diacritic.h: Regenerated.
51743         * lib/unictype/pr_extender.h: Regenerated.
51744         * lib/unictype/pr_format_control.h: Regenerated.
51745         * lib/unictype/pr_grapheme_base.h: Regenerated.
51746         * lib/unictype/pr_grapheme_extend.h: Regenerated.
51747         * lib/unictype/pr_grapheme_link.h: Regenerated.
51748         * lib/unictype/pr_id_continue.h: Regenerated.
51749         * lib/unictype/pr_id_start.h: Regenerated.
51750         * lib/unictype/pr_ideographic.h: Regenerated.
51751         * lib/unictype/pr_ignorable_control.h: Regenerated.
51752         * lib/unictype/pr_lowercase.h: Regenerated.
51753         * lib/unictype/pr_math.h: Regenerated.
51754         * lib/unictype/pr_numeric.h: Regenerated.
51755         * lib/unictype/pr_other_alphabetic.h: Regenerated.
51756         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
51757         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
51758         * lib/unictype/pr_other_id_continue.h: Regenerated.
51759         * lib/unictype/pr_other_lowercase.h: Regenerated.
51760         * lib/unictype/pr_other_math.h: Regenerated.
51761         * lib/unictype/pr_punctuation.h: Regenerated.
51762         * lib/unictype/pr_sentence_terminal.h: Regenerated.
51763         * lib/unictype/pr_soft_dotted.h: Regenerated.
51764         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
51765         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
51766         * lib/unictype/pr_unified_ideograph.h: Regenerated.
51767         * lib/unictype/pr_uppercase.h: Regenerated.
51768         * lib/unictype/pr_xid_continue.h: Regenerated.
51769         * lib/unictype/pr_xid_start.h: Regenerated.
51770         * lib/unictype/pr_zero_width.h: Regenerated.
51771         * lib/unictype/scripts.h: Regenerated.
51772         * lib/unictype/scripts_byname.gperf: Regenerated.
51773         * lib/unictype/sy_java_ident.h: Regenerated.
51774         * lib/unilbrk/lbrkprop1.h: Regenerated.
51775         * lib/unilbrk/lbrkprop2.h: Regenerated.
51776         * tests/unictype/test-categ_C.c: Regenerated.
51777         * tests/unictype/test-categ_Cf.c: Regenerated.
51778         * tests/unictype/test-categ_Cn.c: Regenerated.
51779         * tests/unictype/test-categ_L.c: Regenerated.
51780         * tests/unictype/test-categ_Ll.c: Regenerated.
51781         * tests/unictype/test-categ_Lm.c: Regenerated.
51782         * tests/unictype/test-categ_Lo.c: Regenerated.
51783         * tests/unictype/test-categ_Lu.c: Regenerated.
51784         * tests/unictype/test-categ_M.c: Regenerated.
51785         * tests/unictype/test-categ_Mc.c: Regenerated.
51786         * tests/unictype/test-categ_Me.c: Regenerated.
51787         * tests/unictype/test-categ_Mn.c: Regenerated.
51788         * tests/unictype/test-categ_N.c: Regenerated.
51789         * tests/unictype/test-categ_Nd.c: Regenerated.
51790         * tests/unictype/test-categ_Nl.c: Regenerated.
51791         * tests/unictype/test-categ_No.c: Regenerated.
51792         * tests/unictype/test-categ_P.c: Regenerated.
51793         * tests/unictype/test-categ_Pd.c: Regenerated.
51794         * tests/unictype/test-categ_Pe.c: Regenerated.
51795         * tests/unictype/test-categ_Pf.c: Regenerated.
51796         * tests/unictype/test-categ_Pi.c: Regenerated.
51797         * tests/unictype/test-categ_Po.c: Regenerated.
51798         * tests/unictype/test-categ_Ps.c: Regenerated.
51799         * tests/unictype/test-categ_S.c: Regenerated.
51800         * tests/unictype/test-categ_Sk.c: Regenerated.
51801         * tests/unictype/test-categ_Sm.c: Regenerated.
51802         * tests/unictype/test-categ_So.c: Regenerated.
51803         * tests/unictype/test-ctype_alnum.c: Regenerated.
51804         * tests/unictype/test-ctype_alpha.c: Regenerated.
51805         * tests/unictype/test-ctype_graph.c: Regenerated.
51806         * tests/unictype/test-ctype_lower.c: Regenerated.
51807         * tests/unictype/test-ctype_print.c: Regenerated.
51808         * tests/unictype/test-ctype_punct.c: Regenerated.
51809         * tests/unictype/test-ctype_upper.c: Regenerated.
51810         * tests/unictype/test-decdigit.h: Regenerated.
51811         * tests/unictype/test-digit.h: Regenerated.
51812         * tests/unictype/test-numeric.h: Regenerated.
51813         * tests/unictype/test-pr_alphabetic.c: Regenerated.
51814         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
51815         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
51816         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
51817         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
51818         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
51819         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
51820         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
51821         * tests/unictype/test-pr_combining.c: Regenerated.
51822         * tests/unictype/test-pr_dash.c: Regenerated.
51823         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
51824         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
51825         * tests/unictype/test-pr_deprecated.c: Regenerated.
51826         * tests/unictype/test-pr_diacritic.c: Regenerated.
51827         * tests/unictype/test-pr_extender.c: Regenerated.
51828         * tests/unictype/test-pr_format_control.c: Regenerated.
51829         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
51830         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
51831         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
51832         * tests/unictype/test-pr_id_continue.c: Regenerated.
51833         * tests/unictype/test-pr_id_start.c: Regenerated.
51834         * tests/unictype/test-pr_ideographic.c: Regenerated.
51835         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
51836         * tests/unictype/test-pr_lowercase.c: Regenerated.
51837         * tests/unictype/test-pr_math.c: Regenerated.
51838         * tests/unictype/test-pr_numeric.c: Regenerated.
51839         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
51840         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
51841         Regenerated.
51842         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
51843         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
51844         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
51845         * tests/unictype/test-pr_other_math.c: Regenerated.
51846         * tests/unictype/test-pr_punctuation.c: Regenerated.
51847         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
51848         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
51849         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
51850         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
51851         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
51852         * tests/unictype/test-pr_uppercase.c: Regenerated.
51853         * tests/unictype/test-pr_xid_continue.c: Regenerated.
51854         * tests/unictype/test-pr_xid_start.c: Regenerated.
51855         * tests/unictype/test-pr_zero_width.c: Regenerated.
51856
51857         Update to Unicode 5.1.0.
51858         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
51859         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
51860         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
51861         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
51862         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
51863         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
51864         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
51865         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
51866         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
51867         (nonspacing_table_ind): Update.
51868         * tests/uniwidth/test-uc_width2.sh: Update expected result.
51869
51870         Update to Unicode 5.1.0.
51871         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
51872         code transform.
51873         * lib/uniname/uniname.c (unicode_character_name,
51874         unicode_name_character): Add the range 0x1Fxxx to the code transform.
51875         * lib/uniname/uninames.h: Regenerated.
51876         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
51877
51878 2009-02-07  Bruno Haible  <bruno@clisp.org>
51879
51880         Merge gen-ctype and gen-lbrk into a single program.
51881         * lib/gen-uni-tables.c: New file, incorporating
51882         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
51883         Add directory prefixes to the names of the generated files.
51884         * lib/unictype/gen-ctype.c: Remove file.
51885         * lib/unilbrk/gen-lbrk.c: Remove file.
51886         * modules/gen-uni-tables: New file.
51887         * modules/unictype/gen-ctype: Remove file.
51888         * modules/unilbrk/gen-lbrk: Remove file.
51889
51890 2009-02-07  Bruno Haible  <bruno@clisp.org>
51891
51892         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
51893
51894         New module 'unistr/u32-strcoll'.
51895         * modules/unistr/u32-strcoll: New file.
51896         * lib/unistr/u32-strcoll.c: New file.
51897
51898         New module 'unistr/u16-strcoll'.
51899         * modules/unistr/u16-strcoll: New file.
51900         * lib/unistr/u16-strcoll.c: New file.
51901
51902         New module 'unistr/u8-strcoll'.
51903         * modules/unistr/u8-strcoll: New file.
51904         * lib/unistr/u8-strcoll.c: New file.
51905         * lib/unistr/u-strcoll.h: New file.
51906
51907 2009-02-07  Bruno Haible  <bruno@clisp.org>
51908
51909         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
51910         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
51911         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
51912         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
51913         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
51914         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
51915
51916 2009-02-07  Bruno Haible  <bruno@clisp.org>
51917
51918         Make 64-bit clean.
51919         * lib/unictype/gen-ctype.c (output_predicate, output_category,
51920         output_combclass, output_bidi_category, output_decimal_digit,
51921         output_digit, output_numeric, output_mirror, output_scripts,
51922         output_ident_category): Use proper width specifier in format strings.
51923
51924 2009-02-07  Bruno Haible  <bruno@clisp.org>
51925
51926         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
51927         failure behaviour.
51928
51929 2009-02-07  Jim Meyering  <meyering@redhat.com>
51930
51931         regex: avoid compilation failure with upcoming gcc-4.4
51932         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
51933         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
51934         "... error: integer overflow in preprocessor expression".
51935
51936 2009-02-05  Ben Pfaff  <blp@gnu.org>
51937
51938         Fix link errors on Windows when close module is used.
51939         * modules/close: Add $(LIB_CLOSE) to Link section.
51940         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
51941         $(LIB_CLOSE) on Windows.
51942
51943 2009-02-05  Jim Meyering  <meyering@redhat.com>
51944
51945         still avoid unused-parameter warnings, but do it cleanly
51946         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
51947         (get_fs_usage): Cast to void instead.
51948         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
51949         (dev_from_mount_options, read_file_system_list): Cast to void.
51950         Prompted by Bruno Haible.
51951
51952 2009-02-04  Jim Meyering  <meyering@redhat.com>
51953
51954         fsusage.c: correct copyright year
51955         * lib/fsusage.c: Reflect year in which the change is pushed into
51956
51957         avoid misc. warnings
51958         * lib/fsusage.c (UNUSED_PARAM): Define.
51959         (get_fs_usage): Mark parameter "disk" as unused.
51960         * lib/getugroups.c (getgrent): Use "void" in prototype.
51961         * lib/mountlist.c: Mark unused parameters.
51962         (read_file_system_list): Declare a local with "const".
51963         * lib/nanosleep.c (getnow): Declare static.
51964         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
51965
51966         dirfd: set errno upon failure
51967         * lib/dirfd.c: Include <errno.h>.
51968         Set errno to ENOTSUP when returning -1.
51969         * modules/dirfd (Depends-on): Add errno.
51970         Suggested by John Kodis <kodis@comcast.net>.
51971
51972 2009-02-01  Bruno Haible  <bruno@clisp.org>
51973
51974         Don't assume sizeof (long) >= sizeof (void *).
51975         * lib/memcmp.c: Include stdint.h.
51976         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
51977         srcp2 to 'const byte *'.
51978         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
51979         types to uintptr_t.
51980         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
51981         * modules/memcmp (Depends-on): Add stdint.
51982         Reported by Ozkan Sezer <sezeroz@gmail.com>.
51983
51984 2009-01-30  Eric Blake  <ebb9@byu.net>
51985
51986         fix more require-before-expand issues
51987         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
51988         expand, AC_PROG_AWK.
51989         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
51990
51991 2009-01-28  Eric Blake  <ebb9@byu.net>
51992
51993         version-etc: use consistent URL formatting
51994         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
51995         Improve formatting.  Use fputs for string without %.
51996
51997 2009-01-28  Jim Meyering  <meyering@redhat.com>
51998
51999         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
52000         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
52001         "underquoted definition of NAME" from autoconf-2.59.
52002
52003 2009-01-28  Bruno Haible  <bruno@clisp.org>
52004
52005         * doc/gnulib.texi: Add "Obsolete modules" to index.
52006
52007 2009-01-28  Jim Meyering  <meyering@redhat.com>
52008
52009         useless-if-before-free: recognize more variants
52010         * build-aux/useless-if-before-free: Also recognize e.g.,
52011         if (NULL != p) free (p);
52012
52013 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
52014
52015         test-getaddrinfo: skip (don't fail) this test when there's no network
52016         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
52017         on the presumption that it means you lack network access.
52018
52019 2009-01-26  Jim Meyering  <meyering@redhat.com>
52020
52021         fflush: avoid warnings on modern systems
52022         * lib/fflush.c (rpl_fflush): Move declarations of locals,
52023         pos and result, into scopes where they're used.
52024
52025 2009-01-26  Eric Blake  <ebb9@byu.net>
52026
52027         Silence warning reintroduced by recent extensions patch.
52028         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
52029         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
52030         autoconf.
52031
52032         Backport improved autoconf semantics of AC_DEFUN_ONCE.
52033         * m4/00gnulib.m4: New file.
52034         * gnulib-tool (func_get_filelist): Always use it.
52035         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
52036         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
52037
52038 2009-01-25  Bruno Haible  <bruno@clisp.org>
52039
52040         Make test-quotearg work on MacOS X and AIX.
52041         * tests/test-quotearg.sh: New file.
52042         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
52043         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
52044         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
52045         include <libintl.h>.
52046         (fake_locale): Remove variable.
52047         (gettext, dgettext, dcgettext): Remove functions.
52048         (main): Instead of setting a fake locale, set a real locale. Call
52049         textdomain and bindtextdomain.
52050         * modules/quotearg-tests (Files): Add the new files.
52051         (Depends-on): Add gettext, setenv, unsetenv.
52052         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
52053         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
52054         Augment TESTS_ENVIRONMENT.
52055
52056 2009-01-25  Bruno Haible  <bruno@clisp.org>
52057
52058         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
52059         fr_FR.ISO8859-1 locale on MacOS X.
52060         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
52061         ja_JP.eucJP locale on MacOS X.
52062         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
52063         zh_CN.GB18030 locale on MacOS X.
52064
52065 2009-01-25  Bruno Haible  <bruno@clisp.org>
52066
52067         Avoid link errors on MacOS X 10.3.
52068         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
52069         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
52070
52071 2009-01-25  Bruno Haible  <bruno@clisp.org>
52072
52073         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
52074         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
52075         * modules/pipe (Files): Remove m4/posix_spawn.m4.
52076         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
52077         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
52078         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
52079         posix_spawnattr_init, posix_spawnattr_setsigmask,
52080         posix_spawnattr_setflags, posix_spawnattr_destroy.
52081
52082         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
52083         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
52084         * modules/execute (Files): Remove m4/posix_spawn.m4.
52085         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
52086         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
52087         posix_spawnattr_init, posix_spawnattr_setsigmask,
52088         posix_spawnattr_setflags, posix_spawnattr_destroy.
52089
52090 2009-01-25  Bruno Haible  <bruno@clisp.org>
52091
52092         * lib/glthread/threadlib.c: Include <stdlib.h>.
52093
52094 2009-01-25  Bruno Haible  <bruno@clisp.org>
52095
52096         * lib/glthread/threadlib.c (dummy): New declaration.
52097
52098 2009-01-25  Bruno Haible  <bruno@clisp.org>
52099
52100         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
52101         multibyte characters also for the GB18030 encoding. Don't crash when
52102         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
52103
52104 2009-01-25  Bruno Haible  <bruno@clisp.org>
52105
52106         Avoid redefining 'struct random_data' on OSF/1 5.1.
52107         * lib/stdlib.in.h: Include <random.h> if it exists.
52108         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
52109         HAVE_RANDOM_H. Include <random.h> when testing whether
52110         'struct random_data' exists.
52111         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
52112
52113 2009-01-25  Bruno Haible  <bruno@clisp.org>
52114
52115         Don't install charset.alias on MacOS X >= 10.3.
52116         * lib/localcharset.c (DARWIN7): New macro.
52117         (get_charset_aliases): Hardcode the result for Darwin7.
52118         * modules/localcharset (install-exec-local): Don't install
52119         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
52120
52121 2009-01-25  Bruno Haible  <bruno@clisp.org>
52122
52123         Don't install charset.alias on mingw and Cygwin.
52124         * modules/localcharset (install-exec-local): Don't install
52125         charset.alias on mingw and Cygwin, if the file does not yet exist.
52126         The result for these platforms is hardcoded in localcharset.c.
52127
52128 2009-01-25  Bruno Haible  <bruno@clisp.org>
52129
52130         Make it possible again to use AC_GNU_SOURCE together with gnulib.
52131         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
52132         before requiring AC_USE_SYSTEM_EXTENSIONS.
52133
52134 2009-01-25  Jim Meyering  <meyering@redhat.com>
52135
52136         c-strtod: avoid warnings
52137         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
52138         "assignment discards qualifiers from pointer target type" warnings.
52139
52140 2009-01-24  Bruno Haible  <bruno@clisp.org>
52141
52142         Add support for non-UTF-8 locales on MacOS X.
52143         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
52144         canonical encodings. For Darwin 7 and newer, don't map traditional
52145         encodings to UTF-8.
52146         Reported by Vincent Lefevre <vincent@vinc17.org>
52147         at <http://savannah.gnu.org/bugs/?25235>.
52148
52149 2009-01-24  Bruno Haible  <bruno@clisp.org>
52150
52151         * doc/gnulib.texi (Obsolete modules): New section.
52152         Reported by Mike Frysinger <vapier@gentoo.org>.
52153
52154 2009-01-24  Bruno Haible  <bruno@clisp.org>
52155
52156         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
52157         (%.dvi): New rule.
52158
52159 2009-01-24  Bruno Haible  <bruno@clisp.org>
52160
52161         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
52162         Reported by Eric Blake.
52163
52164 2009-01-24  Bruno Haible  <bruno@clisp.org>
52165
52166         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
52167         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
52168         Reported by Gary V. Vaughan <gary@gnu.org>.
52169
52170 2009-01-24  Bruno Haible  <bruno@clisp.org>
52171
52172         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
52173
52174 2009-01-23  Bruno Haible  <bruno@clisp.org>
52175
52176         Make c-strtod, c-strtold usable in libraries.
52177         * lib/c-strtod.c: Include string.h instead of xalloc.h.
52178         (C_STRTOD): Call strdup instead of xstrdup.
52179         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
52180         * modules/c-strtold (Depends-on): Likewise.
52181         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
52182         * NEWS: Mention the change.
52183         Reported by Michael Gold <mgold@ncf.ca>.
52184
52185 2009-01-23  Jim Meyering  <meyering@redhat.com>
52186
52187         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
52188         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
52189         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
52190
52191 2009-01-23  Simon Josefsson  <simon@josefsson.org>
52192
52193         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
52194         GNU CoreUtils.
52195         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
52196         * modules/version-etc (Description): Update.
52197
52198 2009-01-22  Bruno Haible  <bruno@clisp.org>
52199
52200         Cache the C locale object.
52201         * lib/c-strtod.c (c_locale_cache): New variable.
52202         (c_locale): New function.
52203         (C_STRTOD): Use it, and don't call freelocale.
52204         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
52205         Suggested by Paolo Bonzini.
52206
52207 2009-01-21  Bruno Haible  <bruno@clisp.org>
52208
52209         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
52210         conditions other than overflow.
52211
52212 2009-01-21  Bruno Haible  <bruno@clisp.org>
52213
52214         * lib/c-strtod.c: Include errno.h.
52215         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
52216         value from STRTOD_L and STRTOD.
52217
52218 2009-01-21  Bruno Haible  <bruno@clisp.org>
52219         and Jim Meyering  <meyering@redhat.com>
52220
52221         nanosleep: skip configure test (fail it) for apple universal builds
52222         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
52223         universal builds, assume that nanosleep does not work.
52224         * modules/nanosleep (Depends-on): Add multiarch.
52225
52226         mktime: skip configure test (fail it) for apple universal builds
52227         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
52228         universal builds, assume that mktime does not work.
52229         * modules/mktime (Depends-on): Add multiarch.
52230
52231 2009-01-21  Eric Blake  <ebb9@byu.net>
52232
52233         multiarch: avoid expand-before-require warning
52234         * modules/multiarch (configure.ac): Require, rather than expand,
52235         gl_MULTIARCH.
52236         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
52237         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
52238         enforce that all clients require it.  Partial reversion of
52239         2008-12-29 patch.
52240
52241         error: avoid expand-before-require warning
52242         * modules/errno (configure.ac): Require, rather than expand,
52243         gl_HEADER_ERRNO_H.
52244         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
52245         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
52246         enforce that all clients require it.
52247
52248         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
52249         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
52250         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
52251         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
52252
52253 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
52254
52255         Revert:
52256         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
52257
52258         regex: do not depend on obsolete modules.
52259         * modules/regex: Remove memcmp and memmove.
52260
52261 2009-01-20  Bruno Haible  <bruno@clisp.org>
52262
52263         Make the 'link' module link on Windows NT 4.
52264         * lib/link.c (_WIN32_WINNT): Don't define.
52265         (CreateHardLinkFuncType): New type.
52266         (CreateHardLinkFunc, initialized): New variables.
52267         (initialize): New function.
52268         (link): Invoke CreateHardLink indirectly through the function pointer.
52269
52270 2009-01-20  Bruno Haible  <bruno@clisp.org>
52271
52272         Fix compilation failure on mingw.
52273         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
52274
52275 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
52276
52277         * doc/c-strtod.texi: Mention a couple of restrictions.
52278
52279 2009-01-20  Jim Meyering  <meyering@redhat.com>
52280
52281         gettimeofday: move more declarations out of functions
52282         * lib/gettimeofday.c: Move extern declarations of tzset and
52283         gmtime out of containing functions.  Prompted by Bruno Haible.
52284
52285 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
52286
52287         regex: do not depend on obsolete modules.
52288         * modules/regex: Remove memcmp and memmove.
52289
52290 2009-01-19  Bruno Haible  <bruno@clisp.org>
52291
52292         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
52293         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
52294         gl_BIGENDIAN, not AC_C_BIGENDIAN.
52295         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
52296         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
52297
52298 2009-01-19  Bruno Haible  <bruno@clisp.org>
52299
52300         * tests/test-link.c: Include <errno.h>.
52301         (main): Exit with code 77 when a hard link cannot be created due to
52302         the file system.
52303         * tests/test-link.sh: Skip test when a hard link cannot be created due
52304         to the file system.
52305         Suggested by Eric Blake.
52306
52307 2009-01-19  Martin Lambers  <marlam@marlam.de>
52308
52309         * modules/link-tests: New file.
52310         * tests/test-link.sh: New file.
52311         * tests/test-link.c: New file.
52312
52313 2009-01-19  Eric Blake  <ebb9@byu.net>
52314
52315         doc: mention another function added in cygwin 1.7.0
52316         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
52317         Another new function in cygwin 1.7.
52318
52319 2009-01-19  Bruno Haible  <bruno@clisp.org>
52320
52321         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
52322         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
52323         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
52324         gl_BIGENDIAN, not AC_C_BIGENDIAN.
52325         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
52326         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
52327         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
52328         * m4/md4.m4 (gl_MD4): Likewise.
52329         * m4/md5.m4 (gl_MD5): Likewise.
52330         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
52331         * m4/sha1.m4 (gl_SHA1): Likewise.
52332         * m4/sha256.m4 (gl_SHA256): Likewise.
52333         * m4/sha512.m4 (gl_SHA512): Likewise.
52334
52335 2009-01-19  Bruno Haible  <bruno@clisp.org>
52336
52337         * modules/uniname/uniname-tests (Depends-on): Add progname.
52338         * tests/uniname/test-uninames.c: Include progname.h.
52339         (main): Call set_program_name.
52340
52341         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
52342         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
52343         (main): Call set_program_name.
52344
52345         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
52346         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
52347         (main): Call set_program_name.
52348
52349         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
52350         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
52351         (main): Call set_program_name.
52352
52353         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
52354         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
52355         (main): Call set_program_name.
52356
52357         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
52358         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
52359         (main): Call set_program_name.
52360
52361         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
52362         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
52363         (main): Call set_program_name.
52364
52365         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
52366         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
52367         (main): Call set_program_name.
52368
52369         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
52370         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
52371         (main): Call set_program_name.
52372
52373 2009-01-19  Eric Blake  <ebb9@byu.net>
52374
52375         test-unistd: test previous patch
52376         * tests/test-unistd.c: Test *_FILENO macros.
52377
52378         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
52379         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
52380         Guarantee a definition.
52381         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
52382         * modules/unistd-safer (Depends-on): Add dependency on unistd.
52383         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
52384         * lib/dup-safer.c (STDERR_FILENO): Likewise.
52385         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
52386         Likewise.
52387         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
52388         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
52389         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
52390         Likewise.
52391         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
52392         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
52393         (STDERR_FILENO): Likewise.
52394         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
52395         (STDERR_FILENO): Likewise.
52396         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
52397         (STDERR_FILENO): Likewise.
52398         Reported by Elbert Pol.
52399
52400 2009-01-19  Eric Blake  <ebb9@byu.net>
52401
52402         doc: mention more functions added in cygwin 1.7.0
52403         * doc/posix-functions/abort.texi (abort): Update wording related
52404         to cygwin.
52405         * doc/posix-functions/daylight.texi (daylight): Likewise.
52406         * doc/posix-functions/optarg.texi (optarg): Likewise.
52407         * doc/posix-functions/optarg.texi (opterr): Likewise.
52408         * doc/posix-functions/optarg.texi (optind): Likewise.
52409         * doc/posix-functions/optarg.texi (optopt): Likewise.
52410         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
52411         worked in 1.5.x, and was withdrawn in 1.7.
52412         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
52413         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
52414         cygwin versions.
52415         * doc/posix-functions/perror.texi (perror): Likewise.
52416         * doc/posix-functions/printf.texi (printf): Likewise.
52417         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
52418         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
52419         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
52420         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
52421         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
52422         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
52423         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
52424         Likewise.
52425         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
52426         Likewise.
52427         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
52428         this function.
52429         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
52430         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
52431         Likewise.
52432         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
52433         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
52434         * doc/posix-functions/confstr.texi (confstr): Likewise.
52435         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
52436         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
52437         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
52438         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
52439         * doc/posix-functions/fputws.texi (fputws): Likewise.
52440         * doc/posix-functions/fwide.texi (fwide): Likewise.
52441         * doc/posix-functions/getwc.texi (getwc): Likewise.
52442         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
52443         * doc/posix-functions/putwc.texi (putwc): Likewise.
52444         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
52445         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
52446         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
52447         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
52448         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
52449         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
52450         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
52451         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
52452         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
52453         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
52454         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
52455
52456 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
52457
52458         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
52459         * lib/ioctl.c: Include <sys/ioctl.h>.
52460
52461 2009-01-19  Simon Josefsson  <simon@josefsson.org>
52462
52463         * modules/getdate-tests (Depends-on): Add progname.
52464         * tests/test-getdate.c: Use progname module, to avoid link errors
52465         on non-glibc systems.
52466
52467 2009-01-18  Simon Josefsson  <simon@josefsson.org>
52468
52469         * modules/filenamecat-tests (Depends-on): Add progname.
52470         * modules/fstrcmp-tests (Depends-on): Likewise.
52471
52472         * tests/test-filenamecat.c: Use progname module, to avoid link
52473         errors on non-glibc systems.
52474         * tests/test-fstrcmp.c: Likewise.
52475
52476 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
52477
52478         gettimeofday: avoid warning: nested extern declaration of 'localtime'
52479         * lib/gettimeofday.c: Move extern declaration out of function.
52480
52481 2009-01-18  Bruno Haible  <bruno@clisp.org>
52482
52483         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
52484         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
52485         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
52486
52487 2009-01-18  Bruno Haible  <bruno@clisp.org>
52488
52489         * lib/strftime.c (MEMPCPY): Remove unused macro.
52490         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
52491
52492 2009-01-18  Martin Lambers  <marlam@marlam.de>
52493
52494         New module 'link'.
52495         * lib/unistd.in.h (link): New declaration.
52496         * lib/link.c: New file.
52497         * m4/link.m4: New file.
52498         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
52499         HAVE_LINK.
52500         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
52501         * modules/link: New file.
52502         * doc/posix-functions/link.texi: Mention the new module.
52503
52504 2009-01-18  Bruno Haible  <bruno@clisp.org>
52505
52506         * tests/test-avltree_list.c (main): Call set_program_name.
52507         * tests/test-avltree_oset.c (main): Likewise.
52508         * tests/test-obstack-printf.c: Include progname.h.
52509         (main): Call set_program_name.
52510         * tests/test-quotearg.c: Include progname.h.
52511         (main): Call set_program_name.
52512         * tests/test-xmemdup0.c: Include progname.h.
52513         (main): Call set_program_name.
52514
52515 2009-01-18  Bruno Haible  <bruno@clisp.org>
52516
52517         New module 'alphasort'.
52518         * lib/dirent.in.h (alphasort): New declaration.
52519         * lib/alphasort.c: New file, from glibc with modifications.
52520         * m4/alphasort.m4: New file.
52521         * modules/alphasort: New file.
52522         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
52523         HAVE_ALPHASORT.
52524         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
52525         HAVE_ALPHASORT.
52526         * doc/posix-functions/alphasort.texi: Mention the new module and the
52527         portability problems.
52528
52529 2009-01-18  Bruno Haible  <bruno@clisp.org>
52530
52531         New module 'scandir'.
52532         * lib/dirent.in.h (scandir): New declaration.
52533         * lib/scandir.c: New file, from glibc with modifications.
52534         * m4/scandir.m4: New file.
52535         * modules/scandir: New file.
52536         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
52537         HAVE_SCANDIR.
52538         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
52539         HAVE_SCANDIR.
52540         * doc/posix-functions/scandir.texi: Mention the new module and the
52541         portability problems.
52542
52543 2009-01-17  Bruno Haible  <bruno@clisp.org>
52544
52545         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
52546         Update documentation.
52547         (func_remove_suffix): Escape all dots in the suffix. Update
52548         documentation.
52549         (func_filter_filelist): Update documentation.
52550         Reported by Ralf Wildenhues.
52551
52552 2009-01-17  Bruno Haible  <bruno@clisp.org>
52553
52554         * modules/dprintf-posix-tests: New file.
52555         * tests/test-dprintf-posix.sh: New file.
52556         * tests/test-dprintf-posix.c: New file.
52557
52558         New modules 'dprintf', 'dprintf-posix'.
52559         * lib/stdio.in.h (dprintf): New declaration.
52560         * lib/dprintf.c: New file.
52561         * m4/dprintf.m4: New file.
52562         * m4/dprintf-posix.m4: New file.
52563         * modules/dprintf: New file.
52564         * modules/dprintf-posix: New file.
52565         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
52566         HAVE_DPRINTF, REPLACE_DPRINTF.
52567         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
52568         HAVE_DPRINTF, REPLACE_DPRINTF.
52569         * doc/posix-functions/dprintf.texi: Mention the new modules.
52570
52571 2009-01-17  Bruno Haible  <bruno@clisp.org>
52572
52573         * modules/vdprintf-posix-tests: New file.
52574         * tests/test-vdprintf-posix.sh: New file.
52575         * tests/test-vdprintf-posix.c: New file.
52576
52577         New modules 'vdprintf', 'vdprintf-posix'.
52578         * lib/stdio.in.h (vdprintf): New declaration.
52579         * lib/vdprintf.c: New file.
52580         * m4/vdprintf.m4: New file.
52581         * m4/vdprintf-posix.m4: New file.
52582         * modules/vdprintf: New file.
52583         * modules/vdprintf-posix: New file.
52584         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
52585         HAVE_VDPRINTF, REPLACE_VDPRINTF.
52586         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
52587         HAVE_VDPRINTF, REPLACE_VDPRINTF.
52588         * doc/posix-functions/vdprintf.texi: Mention the new modules.
52589
52590 2009-01-17  Bruno Haible  <bruno@clisp.org>
52591
52592         Fix replacement of fopen on mingw.
52593         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
52594         mingw.
52595
52596 2009-01-17  Bruno Haible  <bruno@clisp.org>
52597
52598         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
52599         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
52600
52601 2009-01-17  Bruno Haible  <bruno@clisp.org>
52602
52603         Avoid test-fflush2.sh failure on mingw.
52604         * tests/test-fflush2.c: Include binary-io.h.
52605         (main): Put standard input into binary mode.
52606         * modules/fflush-tests (Depends-on): Add binary-io.
52607
52608 2009-01-17  Bruno Haible  <bruno@clisp.org>
52609
52610         * lib/wchar.in.h: In another particular situation, include only the
52611         system's <wchar.h> file.
52612         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
52613         Reported by Albert Chin-A-Young <china@thewrittenword.com>
52614         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
52615
52616 2009-01-17  Bruno Haible  <bruno@clisp.org>
52617
52618         Support for stripping executables in --enable-relocatable.
52619         * build-aux/install-reloc: Expect one more argument, or an environment
52620         variable RELOC_STRIP_PROG. If set, strip the destination program and
52621         its wrapper.
52622         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
52623         RELOC_STRIP_PROG.
52624         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
52625         to set RELOCATABLE_STRIP.
52626         * NEWS: Mention the new Makefile requirement.
52627
52628 2009-01-17  Bruno Haible  <bruno@clisp.org>
52629
52630         * build-aux/install-reloc: Remove debugging information left over by
52631         C compiler on MacOS X.
52632
52633 2009-01-17  Bruno Haible  <bruno@clisp.org>
52634
52635         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
52636         * lib/progreloc.c (find_executable): Fix type of pointer passed to
52637         _NSGetExecutablePath.
52638
52639 2009-01-16  Jim Meyering  <meyering@redhat.com>
52640
52641         strerror: avoid warnings about discarding "const"
52642         * lib/strerror.c (rpl_strerror): Instead of returning a const
52643         string from each and every "case", use a variable, and add a single
52644         cast after the switch.
52645
52646 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
52647
52648         * lib/arpa_inet.in.h: Add extern "C" block for C++.
52649
52650 2009-01-16  Bruno Haible  <bruno@clisp.org>
52651
52652         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
52653         array initializer syntax that also works in C++ mode.
52654         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52655
52656 2009-01-16  Jim Meyering  <meyering@redhat.com>
52657
52658         poll: suppress a warning
52659         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
52660         to ignore "...unsigned expression < 0 is always false" warnings.
52661
52662 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
52663
52664         poll: remove declarations of unused variables
52665         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
52666         sockbuf and optlen.
52667
52668 2009-01-15  Bruno Haible  <bruno@clisp.org>
52669
52670         Make fflush-after-ungetc POSIX compliant on BSD systems.
52671         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
52672         (clear_ungetc_buffer): Implement also for other systems.
52673         (rpl_fflush): On glibc systems, invoke
52674         clear_ungetc_buffer_preserving_position. Otherwise, invoke
52675         clear_ungetc_buffer after fetching the stream's position, not before.
52676
52677 2009-01-15  Bruno Haible  <bruno@clisp.org>
52678
52679         Make fflush-after-ungetc POSIX compliant on glibc systems.
52680         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
52681         after ungetc.
52682         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
52683         (rpl_fflush): On glibc systems, simply call the system's fflush
52684         function after clearing the ungetc buffer.
52685         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
52686         Instead, lseek only to the end of file, then use the system's fseeko
52687         for the rest. On glibc systems, reset the EOF indicator bit.
52688
52689 2009-01-15  Jim Meyering  <meyering@redhat.com>
52690
52691         openmp.m4: revert quote-adding change, for portability to older autoconf
52692         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
52693         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
52694         Simon Josefsson noticed the problem when using autoconf-2.61.
52695
52696 2009-01-15  Bruno Haible  <bruno@clisp.org>
52697
52698         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
52699         * tests/test-fflush2.c (ASSERT): Always fail.
52700         (main): Add two tests for fflush() after ungetc(), taking into account
52701         the Austin Group's clarification.
52702         Suggested by Eric Blake.
52703
52704 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
52705
52706         mktime.m4: remove K&R-style function prototypes
52707         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
52708         for the Sun C++ compiler.
52709
52710 2009-01-14  Bruno Haible  <bruno@clisp.org>
52711
52712         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
52713         while including <wchar.h>.
52714         * lib/wchar.in.h: In two particular situations on HP-UX, include only
52715         the system's <wchar.h> file.
52716         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52717
52718 2009-01-14  Bruno Haible  <bruno@clisp.org>
52719
52720         * m4/csharp.m4: Don't mention gettext on the serial number line.
52721         * m4/csharpexec.m4: Likewise.
52722         * m4/eaccess.m4: Likewise.
52723         * m4/javaexec.m4: Likewise.
52724         * m4/sig_atomic_t.m4: Likewise.
52725         * m4/tmpdir.m4: Likewise.
52726         * m4/intldir.m4: Bump gettext version.
52727         * m4/lib-ld.m4: Likewise.
52728
52729 2009-01-14  Bruno Haible  <bruno@clisp.org>
52730
52731         * lib/progname.c (set_program_name): Add more comments.
52732         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
52733
52734 2009-01-14  Simon Josefsson  <simon@josefsson.org>
52735
52736         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
52737         were sys/stat.h does not define it.
52738
52739 2009-01-14  Jim Meyering  <meyering@redhat.com>
52740
52741         many *.m4 files: improve m4 quoting
52742         99% of this change was performed by running the following commands:
52743         git ls-files | grep '\.m4$' | xargs perl -pi \
52744           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
52745           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
52746           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
52747           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
52748         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
52749         The remainder were to add Copyright dates, increment serial numbers,
52750         undo some changes in comments, exclude m4/intl.m4, and add quotes
52751         around the "1" in ",1" where the unusual spacing prohibited the
52752         above regexps from doing the job.  For more details, see
52753         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
52754         * m4/acl.m4: Modified.
52755         * m4/afs.m4: Likewise.
52756         * m4/alloca.m4: Likewise.
52757         * m4/argp.m4: Likewise.
52758         * m4/argz.m4: Likewise.
52759         * m4/atexit.m4: Likewise.
52760         * m4/bison-i18n.m4: Likewise.
52761         * m4/bison.m4: Likewise.
52762         * m4/byteswap.m4: Likewise.
52763         * m4/c-stack.m4: Likewise.
52764         * m4/c-strtod.m4: Likewise.
52765         * m4/calloc.m4: Likewise.
52766         * m4/canonicalize-lgpl.m4: Likewise.
52767         * m4/chown.m4: Likewise.
52768         * m4/clock_time.m4: Likewise.
52769         * m4/codeset.m4: Likewise.
52770         * m4/copy-file.m4: Likewise.
52771         * m4/csharp.m4: Likewise.
52772         * m4/csharpcomp.m4: Likewise.
52773         * m4/csharpexec.m4: Likewise.
52774         * m4/d-ino.m4: Likewise.
52775         * m4/d-type.m4: Likewise.
52776         * m4/dirfd.m4: Likewise.
52777         * m4/double-slash-root.m4: Likewise.
52778         * m4/eaccess.m4: Likewise.
52779         * m4/eealloc.m4: Likewise.
52780         * m4/environ.m4: Likewise.
52781         * m4/errno_h.m4: Likewise.
52782         * m4/euidaccess.m4: Likewise.
52783         * m4/execute.m4: Likewise.
52784         * m4/fatal-signal.m4: Likewise.
52785         * m4/fchdir.m4: Likewise.
52786         * m4/fcntl_h.m4: Likewise.
52787         * m4/fileblocks.m4: Likewise.
52788         * m4/filenamecat.m4: Likewise.
52789         * m4/findprog.m4: Likewise.
52790         * m4/flexmember.m4: Likewise.
52791         * m4/fnmatch.m4: Likewise.
52792         * m4/fopen.m4: Likewise.
52793         * m4/fpending.m4: Likewise.
52794         * m4/fprintf-posix.m4: Likewise.
52795         * m4/free.m4: Likewise.
52796         * m4/frexp.m4: Likewise.
52797         * m4/frexpl.m4: Likewise.
52798         * m4/fsusage.m4: Likewise.
52799         * m4/ftruncate.m4: Likewise.
52800         * m4/gc-camellia.m4: Likewise.
52801         * m4/gc-random.m4: Likewise.
52802         * m4/gc.m4: Likewise.
52803         * m4/getaddrinfo.m4: Likewise.
52804         * m4/getcwd-abort-bug.m4: Likewise.
52805         * m4/getcwd-path-max.m4: Likewise.
52806         * m4/getdate.m4: Likewise.
52807         * m4/getdomainname.m4: Likewise.
52808         * m4/getgroups.m4: Likewise.
52809         * m4/gethostname.m4: Likewise.
52810         * m4/gethrxtime.m4: Likewise.
52811         * m4/getline.m4: Likewise.
52812         * m4/getloadavg.m4: Likewise.
52813         * m4/getndelim2.m4: Likewise.
52814         * m4/getpass.m4: Likewise.
52815         * m4/gettext.m4: Likewise.
52816         * m4/gettime.m4: Likewise.
52817         * m4/gettimeofday.m4: Likewise.
52818         * m4/gnulib-common.m4: Likewise.
52819         * m4/group-member.m4: Likewise.
52820         * m4/host-os.m4: Likewise.
52821         * m4/iconv.m4: Likewise.
52822         * m4/iconv_open.m4: Likewise.
52823         * m4/inet_ntop.m4: Likewise.
52824         * m4/inet_pton.m4: Likewise.
52825         * m4/inline.m4: Likewise.
52826         * m4/intldir.m4: Likewise.
52827         * m4/intlmacosx.m4: Likewise.
52828         * m4/intmax.m4: Likewise.
52829         * m4/intmax_t.m4: Likewise.
52830         * m4/inttypes.m4: Likewise.
52831         * m4/inttypes_h.m4: Likewise.
52832         * m4/inttypes-pri.m4: Likewise.
52833         * m4/isapipe.m4: Likewise.
52834         * m4/isnand.m4: Likewise.
52835         * m4/isnanf.m4: Likewise.
52836         * m4/isnanl.m4: Likewise.
52837         * m4/javacomp.m4: Likewise.
52838         * m4/javaexec.m4: Likewise.
52839         * m4/jm-winsz1.m4: Likewise.
52840         * m4/jm-winsz2.m4: Likewise.
52841         * m4/lchown.m4: Likewise.
52842         * m4/lcmessage.m4: Likewise.
52843         * m4/ldexpl.m4: Likewise.
52844         * m4/lib-ld.m4: Likewise.
52845         * m4/lib-link.m4: Likewise.
52846         * m4/libsigsegv.m4: Likewise.
52847         * m4/link-follow.m4: Likewise.
52848         * m4/localcharset.m4: Likewise.
52849         * m4/locale-fr.m4: Likewise.
52850         * m4/locale-ja.m4: Likewise.
52851         * m4/locale-tr.m4: Likewise.
52852         * m4/locale-zh.m4: Likewise.
52853         * m4/lock.m4: Likewise.
52854         * m4/longlong.m4: Likewise.
52855         * m4/ls-mntd-fs.m4: Likewise.
52856         * m4/lstat.m4: Likewise.
52857         * m4/malloc.m4: Likewise.
52858         * m4/mathl.m4: Likewise.
52859         * m4/mbrtowc.m4: Likewise.
52860         * m4/mbstate_t.m4: Likewise.
52861         * m4/mbswidth.m4: Likewise.
52862         * m4/memchr.m4: Likewise.
52863         * m4/memcmp.m4: Likewise.
52864         * m4/memcpy.m4: Likewise.
52865         * m4/memmem.m4: Likewise.
52866         * m4/memmove.m4: Likewise.
52867         * m4/mempcpy.m4: Likewise.
52868         * m4/memrchr.m4: Likewise.
52869         * m4/memset.m4: Likewise.
52870         * m4/minmax.m4: Likewise.
52871         * m4/mkdir-slash.m4: Likewise.
52872         * m4/mkdtemp.m4: Likewise.
52873         * m4/mktime.m4: Likewise.
52874         * m4/mmap-anon.m4: Likewise.
52875         * m4/mountlist.m4: Likewise.
52876         * m4/nanosleep.m4: Likewise.
52877         * m4/nls.m4: Likewise.
52878         * m4/nocrash.m4: Likewise.
52879         * m4/open.m4: Likewise.
52880         * m4/openat.m4: Likewise.
52881         * m4/openmp.m4: Likewise.
52882         * m4/pathmax.m4: Likewise.
52883         * m4/perl.m4: Likewise.
52884         * m4/physmem.m4: Likewise.
52885         * m4/pipe.m4: Likewise.
52886         * m4/po.m4: Likewise.
52887         * m4/poll.m4: Likewise.
52888         * m4/posixtm.m4: Likewise.
52889         * m4/posixver.m4: Likewise.
52890         * m4/printf-frexp.m4: Likewise.
52891         * m4/printf-frexpl.m4: Likewise.
52892         * m4/printf-posix.m4: Likewise.
52893         * m4/printf-posix-rpl.m4: Likewise.
52894         * m4/printf.m4: Likewise.
52895         * m4/progtest.m4: Likewise.
52896         * m4/putenv.m4: Likewise.
52897         * m4/readline.m4: Likewise.
52898         * m4/readlink.m4: Likewise.
52899         * m4/readutmp.m4: Likewise.
52900         * m4/realloc.m4: Likewise.
52901         * m4/regex.m4: Likewise.
52902         * m4/relocatable.m4: Likewise.
52903         * m4/relocatable-lib.m4: Likewise.
52904         * m4/rename-dest-slash.m4: Likewise.
52905         * m4/rename.m4: Likewise.
52906         * m4/rmdir-errno.m4: Likewise.
52907         * m4/rmdir.m4: Likewise.
52908         * m4/roundf.m4: Likewise.
52909         * m4/roundl.m4: Likewise.
52910         * m4/rpmatch.m4: Likewise.
52911         * m4/save-cwd.m4: Likewise.
52912         * m4/selinux-selinux-h.m4: Likewise.
52913         * m4/setenv.m4: Likewise.
52914         * m4/settime.m4: Likewise.
52915         * m4/sig2str.m4: Likewise.
52916         * m4/sig_atomic_t.m4: Likewise.
52917         * m4/signalblocking.m4: Likewise.
52918         * m4/signbit.m4: Likewise.
52919         * m4/sigpipe.m4: Likewise.
52920         * m4/sockets.m4: Likewise.
52921         * m4/sockpfaf.m4: Likewise.
52922         * m4/st_dm_mode.m4: Likewise.
52923         * m4/stat-time.m4: Likewise.
52924         * m4/stdbool.m4: Likewise.
52925         * m4/stdint.m4: Likewise.
52926         * m4/stdint_h.m4: Likewise.
52927         * m4/stpcpy.m4: Likewise.
52928         * m4/stpncpy.m4: Likewise.
52929         * m4/strcase.m4: Likewise.
52930         * m4/strchrnul.m4: Likewise.
52931         * m4/strcspn.m4: Likewise.
52932         * m4/strdup.m4: Likewise.
52933         * m4/strftime.m4: Likewise.
52934         * m4/strndup.m4: Likewise.
52935         * m4/strnlen.m4: Likewise.
52936         * m4/strpbrk.m4: Likewise.
52937         * m4/strptime.m4: Likewise.
52938         * m4/strsep.m4: Likewise.
52939         * m4/strtod.m4: Likewise.
52940         * m4/strtoimax.m4: Likewise.
52941         * m4/strtok_r.m4: Likewise.
52942         * m4/strtol.m4: Likewise.
52943         * m4/strtoll.m4: Likewise.
52944         * m4/strtoul.m4: Likewise.
52945         * m4/strtoull.m4: Likewise.
52946         * m4/strtoumax.m4: Likewise.
52947         * m4/strverscmp.m4: Likewise.
52948         * m4/threadlib.m4: Likewise.
52949         * m4/timegm.m4: Likewise.
52950         * m4/tm_gmtoff.m4: Likewise.
52951         * m4/tmpdir.m4: Likewise.
52952         * m4/tmpfile.m4: Likewise.
52953         * m4/tzset.m4: Likewise.
52954         * m4/uintmax_t.m4: Likewise.
52955         * m4/unlinkdir.m4: Likewise.
52956         * m4/unlocked-io.m4: Likewise.
52957         * m4/uptime.m4: Likewise.
52958         * m4/userspec.m4: Likewise.
52959         * m4/utimbuf.m4: Likewise.
52960         * m4/utime.m4: Likewise.
52961         * m4/utimes-null.m4: Likewise.
52962         * m4/utimes.m4: Likewise.
52963         * m4/vararrays.m4: Likewise.
52964         * m4/vasnprintf.m4: Likewise.
52965         * m4/vfprintf-posix.m4: Likewise.
52966         * m4/vprintf-posix.m4: Likewise.
52967         * m4/wait-process.m4: Likewise.
52968         * m4/wchar_t.m4: Likewise.
52969         * m4/wint_t.m4: Likewise.
52970         * m4/write-any-file.m4: Likewise.
52971         * m4/yield.m4: Likewise.
52972
52973 2009-01-13  Bruno Haible  <bruno@clisp.org>
52974
52975         Avoid test-copy-file.sh failures when ACL support insufficient.
52976         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
52977         TESTS_ENVIRONMENT.
52978         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
52979         Reported by Jim Meyering.
52980
52981 2009-01-13  Bruno Haible  <bruno@clisp.org>
52982
52983         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
52984         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
52985         * modules/unistdio/u8-printf-parse (Files): Likewise.
52986         * modules/unistdio/u32-printf-parse (Files): Likewise.
52987         * modules/unistdio/ulc-printf-parse (Files): Likewise.
52988
52989 2009-01-13  Simon Josefsson  <simon@josefsson.org>
52990
52991         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
52992         and m4/inttypes_h.m4 too.
52993
52994 2009-01-12  Eric Blake  <ebb9@byu.net>
52995
52996         tests: IRIX 6.2 cc can't compile -0.0 into .data
52997         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
52998         rather than at compile-time.
52999         * tests/test-floorl.c (minus_zero): Likewise.
53000         * tests/test-frexpl.c (minus_zero): Likewise.
53001         * tests/test-isnan.c (minus_zerol): Likewise.
53002         * tests/test-isnanl.h (minus_zero): Likewise.
53003         * tests/test-ldexpl.c (minus_zero): Likewise.
53004         * tests/test-roundl.c (minus_zero): Likewise.
53005         * tests/test-signbit.c (minus_zerol): Likewise.
53006         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
53007         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
53008         * tests/test-truncl.c (minus_zero): Likewise.
53009         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
53010         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
53011         Reported by Tom G. Christensen and Nelson H. F. Beebe.
53012
53013 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
53014
53015         regex: fix glibc bug 9697
53016         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
53017         handling.
53018
53019 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
53020
53021         regex: fix glibc bug 697
53022         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
53023         being NULL also if there are no backreferences.
53024
53025 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
53026
53027         regex: merge glibc changes
53028         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
53029         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
53030         re_string_skip_chars, re_string_reconstruct): Likewise.
53031         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
53032
53033 2009-01-07  Jim Meyering  <meyering@redhat.com>
53034
53035         poll: filter through cppi
53036         * lib/poll.c: Indent cpp directives to reflect nesting.
53037
53038 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
53039
53040         poll: don't return uninitialized
53041         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
53042
53043 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
53044
53045         avoid compile failure on AIX 6.1
53046         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
53047         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
53048
53049 2009-01-04  Jim Meyering  <meyering@redhat.com>
53050
53051         remove duplicate inclusion of <stdio.h>
53052         * tests/test-fprintf-posix.c: Likewise.
53053         * tests/test-printf-posix.c: Likewise.
53054         * tests/test-snprintf-posix.c: Likewise.
53055         * tests/test-sprintf-posix.c: Likewise.
53056         * tests/test-vasprintf-posix.c: Likewise.
53057         * tests/test-vfprintf-posix.c: Likewise.
53058         * tests/test-vprintf-posix.c: Likewise.
53059         * tests/test-vsnprintf-posix.c: Likewise.
53060         * tests/test-vsprintf-posix.c: Likewise.
53061
53062 2009-01-03  Jim Meyering  <meyering@redhat.com>
53063
53064         gnulib-tool: fix sed-based filtering
53065         * gnulib-tool (func_filter_filelist): Remove extra backslash
53066         in sed_fff_filter definition.
53067
53068 2009-01-02  Jim Meyering  <meyering@redhat.com>
53069
53070         strftime: avoid compilation failure on Solaris 2.6
53071         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
53072         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
53073         Don't #define mbrlen or mbsinit, since now they're guaranteed to
53074         be available.  Reported by Tom G. Christensen.  Details in
53075         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
53076
53077 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53078             Bruno Haible  <bruno@clisp.org>
53079
53080         Speed up gnulib-tool by doing more string processing through shell
53081         built-ins.
53082         * gnulib-tool (fast_func_append): New variable.
53083         (func_remove_prefix, func_remove_suffix): New functions.
53084         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
53085         (func_filter_filelist): New function.
53086         (func_get_dependencies): Use func_remove_suffix instead of sed.
53087         (func_get_automake_snippet): Use func_filter_filelist instead of a
53088         subshell and sed invocation.
53089
53090 2009-01-01  Bruno Haible  <bruno@clisp.org>
53091
53092         Fix a security bug.
53093         * gnulib-tool (func_import, import, update): Don't allow the characters
53094         '"', '$', '`', '\' in macro arguments that become part of commands that
53095         are evaluated.
53096
53097 2009-01-01  Bruno Haible  <bruno@clisp.org>
53098
53099         * gnulib-tool (func_reset_sigpipe): Add more comments.
53100
53101 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53102
53103         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
53104         func_emit_tests_Makefile_am, func_import): Abort loops early if we
53105         already know the answer.
53106
53107 2009-01-01  Jim Meyering  <meyering@redhat.com>
53108
53109         * lib/version-etc.c (version_etc_va): Update copyright year.
53110
53111 2008-12-30  Bruno Haible  <bruno@clisp.org>
53112
53113         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
53114         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
53115         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
53116
53117 2008-12-29  Eric Blake  <ebb9@byu.net>
53118
53119         multiarch: avoid autoconf AC_REQUIRE bug
53120         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
53121         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
53122         2.63 and older.
53123         Reported by Bruno Haible, and analyzed in
53124         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
53125
53126 2008-12-29  Bruno Haible  <bruno@clisp.org>
53127
53128         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
53129         files in subdirectories correctly.
53130         Reported by Ralf Wildenhues.
53131
53132 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53133
53134         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
53135         rather than 'join FILE -', for Solaris join.
53136
53137 2008-12-29  Bruno Haible  <bruno@clisp.org>
53138
53139         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
53140         quoting.
53141         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
53142         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
53143         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
53144         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
53145         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
53146         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
53147         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
53148         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
53149         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
53150         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
53151         * m4/nls.m4 (AM_NLS): Likewise.
53152         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
53153         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
53154         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
53155         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
53156         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
53157         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
53158         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
53159         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
53160         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
53161         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
53162         * m4/xsize.m4 (gl_XSIZE): Likewise.
53163         Suggested by Jim Meyering.
53164
53165 2008-11-17  Bruce Korb  <bkorb@gnu.org>
53166
53167         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
53168         * lib/parse-duration.c: use a switch instead of cascading if's.
53169
53170 2008-12-29  Eric Blake  <ebb9@byu.net>
53171
53172         wchar.h: supply WEOF on Irix 5.3
53173         * lib/wchar.in.h (wint_t): Also supply WEOF.
53174         * lib/wctype.in.h (wint_t): Likewise.
53175         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
53176         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
53177         Reported by Tom G. Christensen.
53178
53179 2008-12-26  Bruno Haible  <bruno@clisp.org>
53180
53181         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
53182         i486, i586, i686.
53183
53184 2008-12-26  Bruno Haible  <bruno@clisp.org>
53185
53186         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
53187
53188 2008-12-26  Bruno Haible  <bruno@clisp.org>
53189
53190         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
53191         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
53192         not __STDC_CONSTANT_MACROS.
53193         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
53194
53195 2008-12-25  Bruno Haible  <bruno@clisp.org>
53196
53197         Add support for universal builds to vasnprintf.
53198         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
53199         universal builds, guess no.
53200         * modules/vasnprintf-posix (Depends-on): Add multiarch.
53201         * modules/vasprintf-posix (Depends-on): Likewise.
53202         * modules/fprintf-posix (Depends-on): Likewise.
53203         * modules/vfprintf-posix (Depends-on): Likewise.
53204         * modules/snprintf-posix (Depends-on): Likewise.
53205         * modules/vsnprintf-posix (Depends-on): Likewise.
53206         * modules/sprintf-posix (Depends-on): Likewise.
53207         * modules/vsprintf-posix (Depends-on): Likewise.
53208         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53209         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53210         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53211         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53212         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53213         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53214         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53215
53216         Add support for universal builds to <inttypes.h>.
53217         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
53218         _SCNu64_PREFIX): In Apple
53219         universal builds, define directly, using _LP64.
53220         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
53221         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
53222         * modules/inttypes (Depends-on): Add multiarch.
53223         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
53224
53225         Add support for universal builds to <stdint.h>.
53226         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
53227         universal builds, define directly, using _LP64.
53228         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
53229         Apple universal builds, don't test for the size and suffix of ptrdiff_t
53230         and size_t.
53231         * modules/stdint (Depends-on): Add multiarch.
53232         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
53233
53234         New module 'multiarch'.
53235         * modules/multiarch: New file.
53236         * m4/multiarch.m4: New file.
53237
53238 2008-12-25  Bruno Haible  <bruno@clisp.org>
53239
53240         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
53241
53242 2008-12-25  Bruno Haible  <bruno@clisp.org>
53243
53244         * modules/btowc (License): Relicense under LGPLv2+.
53245         * modules/mbsinit (License): Likewise.
53246         * modules/mbrtowc (License): Likewise.
53247         * modules/wcrtomb (License): Likewise.
53248         * modules/streq (License): Likewise.
53249         Reported by David Lutterkort <lutter@redhat.com>.
53250
53251 2008-12-23  Bruno Haible  <bruno@clisp.org>
53252
53253         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
53254
53255 2008-12-23  Bruno Haible  <bruno@clisp.org>
53256
53257         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
53258         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
53259         GETADDRINFO_LIB, not in LIBS.
53260         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
53261         * modules/canon-host (Link): Likewise.
53262         * NEWS: Mention the change.
53263         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
53264         GETADDRINFO_LIB.
53265
53266 2008-12-22  Bruno Haible  <bruno@clisp.org>
53267
53268         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
53269         * doc/posix-functions/iswalpha_l.texi: Likewise.
53270         * doc/posix-functions/iswblank_l.texi: Likewise.
53271         * doc/posix-functions/iswcntrl_l.texi: Likewise.
53272         * doc/posix-functions/iswctype_l.texi: Likewise.
53273         * doc/posix-functions/iswdigit_l.texi: Likewise.
53274         * doc/posix-functions/iswgraph_l.texi: Likewise.
53275         * doc/posix-functions/iswlower_l.texi: Likewise.
53276         * doc/posix-functions/iswprint_l.texi: Likewise.
53277         * doc/posix-functions/iswpunct_l.texi: Likewise.
53278         * doc/posix-functions/iswspace_l.texi: Likewise.
53279         * doc/posix-functions/iswupper_l.texi: Likewise.
53280         * doc/posix-functions/iswxdigit_l.texi: Likewise.
53281         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
53282         * doc/posix-functions/open_wmemstream.texi: Likewise.
53283         * doc/posix-functions/swscanf.texi: Likewise.
53284         * doc/posix-functions/towctrans_l.texi: Likewise.
53285         * doc/posix-functions/towlower.texi: Likewise.
53286         * doc/posix-functions/towlower_l.texi: Likewise.
53287         * doc/posix-functions/towupper.texi: Likewise.
53288         * doc/posix-functions/towupper_l.texi: Likewise.
53289         * doc/posix-functions/vfwprintf.texi: Likewise.
53290         * doc/posix-functions/vfwscanf.texi: Likewise.
53291         * doc/posix-functions/vswscanf.texi: Likewise.
53292         * doc/posix-functions/vwprintf.texi: Likewise.
53293         * doc/posix-functions/vwscanf.texi: Likewise.
53294         * doc/posix-functions/wcpcpy.texi: Likewise.
53295         * doc/posix-functions/wcpncpy.texi: Likewise.
53296         * doc/posix-functions/wcscasecmp.texi: Likewise.
53297         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
53298         * doc/posix-functions/wcscoll_l.texi: Likewise.
53299         * doc/posix-functions/wcsdup.texi: Likewise.
53300         * doc/posix-functions/wcsncasecmp.texi: Likewise.
53301         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
53302         * doc/posix-functions/wcsnlen.texi: Likewise.
53303         * doc/posix-functions/wcsnrtombs.texi: Likewise.
53304         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
53305         * doc/posix-functions/wctrans_l.texi: Likewise.
53306         * doc/posix-functions/wctype_l.texi: Likewise.
53307         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
53308         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
53309         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
53310         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
53311         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
53312         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
53313         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
53314         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
53315         * doc/glibc-functions/wcschrnul.texi: Likewise.
53316         * doc/glibc-functions/wcsftime_l.texi: Likewise.
53317         * doc/glibc-functions/wcstod_l.texi: Likewise.
53318         * doc/glibc-functions/wcstof_l.texi: Likewise.
53319         * doc/glibc-functions/wcstol_l.texi: Likewise.
53320         * doc/glibc-functions/wcstold_l.texi: Likewise.
53321         * doc/glibc-functions/wcstoll_l.texi: Likewise.
53322         * doc/glibc-functions/wcstoq.texi: Likewise.
53323         * doc/glibc-functions/wcstoul_l.texi: Likewise.
53324         * doc/glibc-functions/wcstoull_l.texi: Likewise.
53325         * doc/glibc-functions/wcstouq.texi: Likewise.
53326         * doc/glibc-functions/wmempcpy.texi: Likewise.
53327
53328 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
53329             Eric Blake  <ebb9@byu.net>
53330             Paolo Bonzini  <bonzini@gnu.org>
53331             Bruno Haible  <bruno@clisp.org>
53332
53333         Make c-stack work on Haiku.
53334         * lib/c-stack.c (SA_ONSTACK): Define fallback.
53335         (c_stack_action): Use SA_ONSTACK flag.
53336
53337 2008-12-22  Bruno Haible  <bruno@clisp.org>
53338
53339         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
53340
53341 2008-12-22  Bruno Haible  <bruno@clisp.org>
53342
53343         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
53344         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
53345         being overridden.
53346         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
53347         New macros.
53348         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
53349         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
53350         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
53351         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
53352
53353 2008-12-22  Bruno Haible  <bruno@clisp.org>
53354
53355         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
53356         from test code.
53357
53358 2008-12-22  Eric Blake  <ebb9@byu.net>
53359
53360         Avoid gcc warnings on cygwin.
53361         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
53362         Avoid unused variable.
53363         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
53364         Likewise.
53365
53366 2008-12-22  Bruno Haible  <bruno@clisp.org>
53367
53368         Remove HAVE_MBRTOWC conditionals.
53369         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
53370         (mbscasecmp): Assume mbrtowc function.
53371         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
53372         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
53373         * lib/mbschr.c: Include mbuiter.h unconditionally.
53374         (mbschr): Assume mbrtowc function.
53375         * lib/mbscspn.c: Include mbuiter.h unconditionally.
53376         (mbscspn): Assume mbrtowc function.
53377         * lib/mbslen.c: Include mbuiter.h unconditionally.
53378         (mbslen): Assume mbrtowc function.
53379         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
53380         (mbsncasecmp): Assume mbrtowc function.
53381         * lib/mbsnlen.c: Include mbiter.h unconditionally.
53382         (mbsnlen): Assume mbrtowc function.
53383         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
53384         (mbspbrk): Assume mbrtowc function.
53385         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
53386         (mbspcasecmp): Assume mbrtowc function.
53387         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
53388         (mbsrchr): Assume mbrtowc function.
53389         * lib/mbssep.c: Include mbuiter.h unconditionally.
53390         (mbssep): Assume mbrtowc function.
53391         * lib/mbsspn.c: Include mbuiter.h unconditionally.
53392         (mbsspn): Assume mbrtowc function.
53393         * lib/mbsstr.c: Include mbuiter.h unconditionally.
53394         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
53395         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
53396         (mbstok_r): Assume mbrtowc function.
53397         * lib/propername.c: Include mbuiter.h unconditionally.
53398         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
53399         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
53400         (trim2): Assume mbrtowc function.
53401         * lib/mbswidth.c (mbsinit): Remove fallback definition.
53402         (mbsnwidth): Assume mbrtowc function.
53403         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
53404         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
53405         fallback definitions.
53406         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
53407
53408 2008-12-22  Bruno Haible  <bruno@clisp.org>
53409
53410         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
53411
53412 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
53413
53414         * modules/regex: Request emulations for the mb*/wc* functions we need.
53415         * m4/regex.m4: Don't look for those functions here.
53416         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
53417
53418 2008-12-22  Bruno Haible  <bruno@clisp.org>
53419
53420         * modules/fnmatch (Depends-on): Remove duplicated dependency.
53421
53422 2008-12-21  Bruno Haible  <bruno@clisp.org>
53423
53424         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
53425         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
53426         (Include): Remove conditionalization.
53427         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
53428         (Include): Remove conditionalization.
53429         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
53430         (Include): Remove conditionalization.
53431         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
53432         * m4/mbfile.m4 (gl_MBFILE): Likewise.
53433         * NEWS: Mention the change.
53434         Reported by Alan Hourihane <alanh@fairlite.co.uk>
53435         via Sergey Poznyakoff <gray@gnu.org.ua>.
53436
53437 2008-12-21  Bruno Haible  <bruno@clisp.org>
53438
53439         * MODULES.html.sh (Extended multibyte and wide character utilities
53440         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
53441         wcrtomb, wcsrtombs.
53442         (Support for systems lacking POSIX:2008): Add accept, bind, close,
53443         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
53444         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
53445         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
53446
53447 2008-12-21  Bruno Haible  <bruno@clisp.org>
53448
53449         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
53450
53451 2008-12-21  Bruno Haible  <bruno@clisp.org>
53452
53453         * modules/wcsnrtombs-tests: New file.
53454         * tests/test-wcsnrtombs1.sh: New file.
53455         * tests/test-wcsnrtombs2.sh: New file.
53456         * tests/test-wcsnrtombs3.sh: New file.
53457         * tests/test-wcsnrtombs4.sh: New file.
53458         * tests/test-wcsnrtombs.c: New file.
53459
53460         New module 'wcsnrtombs'.
53461         * lib/wchar.in.h (wcsnrtombs): New declaration.
53462         * lib/wcsnrtombs.c: New file.
53463         * lib/wcsrtombs-state.c: New file.
53464         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
53465         (internal_state): Remove variable.
53466         * m4/wcsnrtombs.m4: New file.
53467         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
53468         compilation units.
53469         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
53470         HAVE_WCSNRTOMBS.
53471         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
53472         HAVE_WCSNRTOMBS.
53473         * modules/wcsnrtombs: New file.
53474         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
53475         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
53476
53477 2008-12-21  Bruno Haible  <bruno@clisp.org>
53478
53479         * modules/wcsrtombs-tests: New file.
53480         * tests/test-wcsrtombs1.sh: New file.
53481         * tests/test-wcsrtombs2.sh: New file.
53482         * tests/test-wcsrtombs3.sh: New file.
53483         * tests/test-wcsrtombs4.sh: New file.
53484         * tests/test-wcsrtombs.c: New file.
53485
53486         New module 'wcsrtombs'.
53487         * lib/wchar.in.h (wcsrtombs): New declaration.
53488         * lib/wcsrtombs.c: New file.
53489         * m4/wcsrtombs.m4: New file.
53490         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
53491         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
53492         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
53493         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
53494         * modules/wcsrtombs: New file.
53495         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
53496         bugs.
53497
53498 2008-12-21  Bruno Haible  <bruno@clisp.org>
53499
53500         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
53501         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
53502         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
53503         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
53504         if not correct.
53505         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
53506         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
53507         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
53508         m4/locale-zh.m4, m4/codeset.m4.
53509         * doc/posix-functions/wcrtomb.texi: Document the bug.
53510
53511 2008-12-21  Bruno Haible  <bruno@clisp.org>
53512
53513         Work around a btowc() bug on IRIX 6.5.
53514         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
53515         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
53516         REPLACE_WTOBC if not.
53517         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
53518         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
53519         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
53520
53521 2008-12-21  Bruno Haible  <bruno@clisp.org>
53522
53523         * modules/wcrtomb-tests: New file.
53524         * tests/test-wcrtomb.sh: New file.
53525         * tests/test-wcrtomb.c: New file.
53526
53527         New module 'wcrtomb'.
53528         * lib/wchar.in.h (wcrtomb): New declaration.
53529         * lib/wcrtomb.c: New file.
53530         * m4/wcrtomb.m4: New file.
53531         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
53532         HAVE_WCRTOMB.
53533         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
53534         HAVE_WCRTOMB.
53535         * modules/wcrtomb: New file.
53536         * doc/posix-functions/wcrtomb.texi: Mention the new module.
53537
53538 2008-12-21  Bruno Haible  <bruno@clisp.org>
53539
53540         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
53541         * modules/mbsrtowcs (Files): Likewise.
53542         * modules/wctob (Files): Likewise.
53543         * modules/c-strcase-tests (Files): Likewise.
53544         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
53545         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
53546         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
53547         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
53548         * modules/vasnprintf-posix-tests (Files): Likewise.
53549
53550 2008-12-21  William Pursell  <bill.pursell@gmail.com>
53551
53552         gitlog-to-changelog: pass all command-line arguments to git-log
53553         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
53554         it is sometimes convenient to filter the commits in various ways.
53555         gitlog-to-changelog only allows --since to specify a start date,
53556         but git-log itself supports many other filtering mechanisms.
53557         At the moment, I want to filter by branch name.  Rather than
53558         adding a --branch option to gitlog-to-changelog, it seems more
53559         flexible to simply pass all options directly to git-log and let
53560         git do the work.  Notice that this effectively makes --since a
53561         redundant option for gitlog-to-changelog, but removing it would
53562         require current usage to change since calls would then require
53563         an additional '--'.
53564
53565 2008-12-21  Bruno Haible  <bruno@clisp.org>
53566
53567         * modules/mbsnrtowcs-tests: New file.
53568         * tests/test-mbsnrtowcs1.sh: New file.
53569         * tests/test-mbsnrtowcs2.sh: New file.
53570         * tests/test-mbsnrtowcs3.sh: New file.
53571         * tests/test-mbsnrtowcs4.sh: New file.
53572         * tests/test-mbsnrtowcs.c: New file.
53573
53574         New module 'mbsnrtowcs'.
53575         * lib/wchar.in.h (mbsnrtowcs): New declaration.
53576         * lib/mbsnrtowcs.c: New file.
53577         * lib/mbsrtowcs-state.c: New file.
53578         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
53579         (internal_state): Remove variable.
53580         * m4/mbsnrtowcs.m4: New file.
53581         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
53582         compilation units.
53583         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
53584         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
53585         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
53586         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
53587         * modules/mbsnrtowcs: New file.
53588         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
53589         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
53590         portability problem.
53591
53592 2008-12-21  Bruno Haible  <bruno@clisp.org>
53593
53594         Work around mbsrtowcs bug.
53595         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
53596         (gl_FUNC_MBSRTOWCS): Invoke it.
53597         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
53598         m4/locale-zh.m4.
53599         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
53600
53601 2008-12-21  Bruno Haible  <bruno@clisp.org>
53602
53603         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
53604
53605 2008-12-21  Bruno Haible  <bruno@clisp.org>
53606
53607         Update doc for AIX.
53608         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
53609         16-bit wchar_t type.
53610         * doc/posix-functions/btowc.texi: Likewise.
53611         * doc/posix-functions/fgetwc.texi: Likewise.
53612         * doc/posix-functions/fgetws.texi: Likewise.
53613         * doc/posix-functions/fputwc.texi: Likewise.
53614         * doc/posix-functions/fputws.texi: Likewise.
53615         * doc/posix-functions/fwide.texi: Likewise.
53616         * doc/posix-functions/fwprintf.texi: Likewise.
53617         * doc/posix-functions/fwscanf.texi: Likewise.
53618         * doc/posix-functions/getwchar.texi: Likewise.
53619         * doc/posix-functions/getwc.texi: Likewise.
53620         * doc/posix-functions/iswalnum.texi: Likewise.
53621         * doc/posix-functions/iswalpha.texi: Likewise.
53622         * doc/posix-functions/iswblank.texi: Likewise.
53623         * doc/posix-functions/iswcntrl.texi: Likewise.
53624         * doc/posix-functions/iswctype.texi: Likewise.
53625         * doc/posix-functions/iswdigit.texi: Likewise.
53626         * doc/posix-functions/iswgraph.texi: Likewise.
53627         * doc/posix-functions/iswlower.texi: Likewise.
53628         * doc/posix-functions/iswprint.texi: Likewise.
53629         * doc/posix-functions/iswpunct.texi: Likewise.
53630         * doc/posix-functions/iswspace.texi: Likewise.
53631         * doc/posix-functions/iswupper.texi: Likewise.
53632         * doc/posix-functions/iswxdigit.texi: Likewise.
53633         * doc/posix-functions/mbrtowc.texi: Likewise.
53634         * doc/posix-functions/mbsrtowcs.texi: Likewise.
53635         * doc/posix-functions/mbstowcs.texi: Likewise.
53636         * doc/posix-functions/mbtowc.texi: Likewise.
53637         * doc/posix-functions/putwchar.texi: Likewise.
53638         * doc/posix-functions/putwc.texi: Likewise.
53639         * doc/posix-functions/swprintf.texi: Likewise.
53640         * doc/posix-functions/tolower.texi: Likewise.
53641         * doc/posix-functions/toupper.texi: Likewise.
53642         * doc/posix-functions/towctrans.texi: Likewise.
53643         * doc/posix-functions/ungetwc.texi: Likewise.
53644         * doc/posix-functions/vswprintf.texi: Likewise.
53645         * doc/posix-functions/wcrtomb.texi: Likewise.
53646         * doc/posix-functions/wcscat.texi: Likewise.
53647         * doc/posix-functions/wcschr.texi: Likewise.
53648         * doc/posix-functions/wcscmp.texi: Likewise.
53649         * doc/posix-functions/wcscoll.texi: Likewise.
53650         * doc/posix-functions/wcscpy.texi: Likewise.
53651         * doc/posix-functions/wcscspn.texi: Likewise.
53652         * doc/posix-functions/wcsftime.texi: Likewise.
53653         * doc/posix-functions/wcslen.texi: Likewise.
53654         * doc/posix-functions/wcsncat.texi: Likewise.
53655         * doc/posix-functions/wcsncmp.texi: Likewise.
53656         * doc/posix-functions/wcsncpy.texi: Likewise.
53657         * doc/posix-functions/wcspbrk.texi: Likewise.
53658         * doc/posix-functions/wcsrchr.texi: Likewise.
53659         * doc/posix-functions/wcsrtombs.texi: Likewise.
53660         * doc/posix-functions/wcsspn.texi: Likewise.
53661         * doc/posix-functions/wcsstr.texi: Likewise.
53662         * doc/posix-functions/wcstod.texi: Likewise.
53663         * doc/posix-functions/wcstof.texi: Likewise.
53664         * doc/posix-functions/wcstoimax.texi: Likewise.
53665         * doc/posix-functions/wcstok.texi: Likewise.
53666         * doc/posix-functions/wcstold.texi: Likewise.
53667         * doc/posix-functions/wcstoll.texi: Likewise.
53668         * doc/posix-functions/wcstol.texi: Likewise.
53669         * doc/posix-functions/wcstombs.texi: Likewise.
53670         * doc/posix-functions/wcstoull.texi: Likewise.
53671         * doc/posix-functions/wcstoul.texi: Likewise.
53672         * doc/posix-functions/wcstoumax.texi: Likewise.
53673         * doc/posix-functions/wcswidth.texi: Likewise.
53674         * doc/posix-functions/wcsxfrm.texi: Likewise.
53675         * doc/posix-functions/wctob.texi: Likewise.
53676         * doc/posix-functions/wctomb.texi: Likewise.
53677         * doc/posix-functions/wctrans.texi: Likewise.
53678         * doc/posix-functions/wctype.texi: Likewise.
53679         * doc/posix-functions/wcwidth.texi: Likewise.
53680         * doc/posix-functions/wmemchr.texi: Likewise.
53681         * doc/posix-functions/wmemcmp.texi: Likewise.
53682         * doc/posix-functions/wmemcpy.texi: Likewise.
53683         * doc/posix-functions/wmemmove.texi: Likewise.
53684         * doc/posix-functions/wmemset.texi: Likewise.
53685         * doc/posix-functions/wprintf.texi: Likewise.
53686         * doc/posix-functions/wscanf.texi: Likewise.
53687
53688 2008-12-21  Bruno Haible  <bruno@clisp.org>
53689
53690         Update doc for HP-UX 11.11.
53691         * doc/posix-functions/btowc.texi: Clarify that the function is missing
53692         in HP-UX version 11.00, not in all versions of HP-UX 11.
53693         * doc/posix-functions/fwide.texi: Likewise.
53694         * doc/posix-functions/fwprintf.texi: Likewise.
53695         * doc/posix-functions/fwscanf.texi: Likewise.
53696         * doc/posix-functions/inet_ntop.texi: Likewise.
53697         * doc/posix-functions/inet_pton.texi: Likewise.
53698         * doc/posix-functions/mbrlen.texi: Likewise.
53699         * doc/posix-functions/mbrtowc.texi: Likewise.
53700         * doc/posix-functions/mbsinit.texi: Likewise.
53701         * doc/posix-functions/mbsrtowcs.texi: Likewise.
53702         * doc/posix-functions/swprintf.texi: Likewise.
53703         * doc/posix-functions/swscanf.texi: Likewise.
53704         * doc/posix-functions/towctrans.texi: Likewise.
53705         * doc/posix-functions/vfwprintf.texi: Likewise.
53706         * doc/posix-functions/vswprintf.texi: Likewise.
53707         * doc/posix-functions/vwprintf.texi: Likewise.
53708         * doc/posix-functions/wcrtomb.texi: Likewise.
53709         * doc/posix-functions/wcsrtombs.texi: Likewise.
53710         * doc/posix-functions/wcsstr.texi: Likewise.
53711         * doc/posix-functions/wctob.texi: Likewise.
53712         * doc/posix-functions/wctrans.texi: Likewise.
53713         * doc/posix-functions/wmemchr.texi: Likewise.
53714         * doc/posix-functions/wmemcmp.texi: Likewise.
53715         * doc/posix-functions/wmemcpy.texi: Likewise.
53716         * doc/posix-functions/wmemmove.texi: Likewise.
53717         * doc/posix-functions/wmemset.texi: Likewise.
53718         * doc/posix-functions/wprintf.texi: Likewise.
53719         * doc/posix-functions/wscanf.texi: Likewise.
53720
53721 2008-12-21  Bruno Haible  <bruno@clisp.org>
53722
53723         Work around a portability problem.
53724         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
53725         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
53726
53727 2008-12-20  Bruno Haible  <bruno@clisp.org>
53728
53729         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
53730         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
53731         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
53732         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
53733         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
53734
53735         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
53736         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
53737         set.
53738         (GNULIB_defined_mbstate_t): New macro.
53739         (mbsinit): Redefine if REPLACE_MBSINIT is set.
53740         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
53741         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
53742         reuses the system's mbrtowc function but works around the bugs.
53743         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
53744         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
53745         macros.
53746         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
53747         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
53748         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
53749         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
53750         REPLACE_MBSINIT if mbsinit needs to be overridden.
53751         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
53752         REPLACE_MBSINIT, REPLACE_MBRTOWC.
53753         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
53754         REPLACE_MBSINIT, REPLACE_MBRTOWC.
53755         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
53756         m4/locale-zh.m4.
53757         (Depends): Add mbsinit.
53758         * modules/mbsinit (Depends): Add mbrtowc.
53759         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
53760
53761 2008-12-20  Bruno Haible  <bruno@clisp.org>
53762
53763         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
53764         so that there are no conversion errors on AIX.
53765         * tests/test-mbsrtowcs.c (main): LIkewise.
53766
53767 2008-12-20  Bruno Haible  <bruno@clisp.org>
53768
53769         Work around wctob bug on Solaris <= 9.
53770         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
53771         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
53772         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
53773         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
53774         * modules/wctob (Files): Add m4/locale-fr.m4.
53775         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
53776
53777 2008-12-20  Bruno Haible  <bruno@clisp.org>
53778
53779         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
53780         /dev/null.
53781         * tests/test-select-in.sh: Likewise.
53782         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
53783
53784 2008-12-20  Bruno Haible  <bruno@clisp.org>
53785
53786         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
53787         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
53788         Cygwin 1.5.x.
53789
53790 2008-12-20  Bruno Haible  <bruno@clisp.org>
53791
53792         Ensure mbstate_t is defined on HP-UX 11.11.
53793         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
53794         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
53795         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
53796         AC_USE_SYSTEM_EXTENSIONS.
53797         * modules/fnmatch (Depends-on): Add extensions.
53798         * modules/mbrlen (Depends-on): Likewise.
53799         * modules/mbrtowc (Depends-on): Likewise.
53800         * modules/mbsinit (Depends-on): Likewise.
53801         * modules/mbsrtowcs (Depends-on): Likewise.
53802         * modules/mbswidth (Depends-on): Likewise.
53803         * modules/quotearg (Depends-on): Likewise.
53804         * modules/strftime (Depends-on): Likewise.
53805
53806 2008-12-20  Bruno Haible  <bruno@clisp.org>
53807
53808         Ensure wctob is declared on IRIX 6.5.
53809         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
53810         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
53811         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
53812         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
53813         of HAVE_WCTOB.
53814         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
53815         HAVE_WCTOB.
53816         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
53817
53818 2008-12-19  Bruno Haible  <bruno@clisp.org>
53819
53820         * modules/mbsrtowcs-tests: New file.
53821         * tests/test-mbsrtowcs1.sh: New file.
53822         * tests/test-mbsrtowcs2.sh: New file.
53823         * tests/test-mbsrtowcs3.sh: New file.
53824         * tests/test-mbsrtowcs4.sh: New file.
53825         * tests/test-mbsrtowcs.c: New file.
53826
53827         New module 'mbsrtowcs'.
53828         * lib/wchar.in.h (mbsrtowcs): New declaration.
53829         * lib/mbsrtowcs.c: New file.
53830         * m4/mbsrtowcs.m4: New file.
53831         * modules/mbsrtowcs: New file.
53832         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
53833         HAVE_MBSRTOWCS.
53834         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
53835         HAVE_MBSRTOWCS.
53836         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
53837
53838 2008-12-19  Bruno Haible  <bruno@clisp.org>
53839
53840         New module 'mbrlen'.
53841         * lib/wchar.in.h (mbrlen): New declaration.
53842         * lib/mbrlen.c: New file.
53843         * m4/mbrlen.m4: New file.
53844         * modules/mbrlen: New file.
53845         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
53846         HAVE_MBRLEN.
53847         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
53848         HAVE_MBRLEN.
53849         * doc/posix-functions/mbrlen.texi: Document the new module.
53850
53851 2008-12-19  Bruno Haible  <bruno@clisp.org>
53852
53853         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
53854         * modules/mbrtowc (Depends-on): Add verify.
53855         Suggested by Paul Eggert.
53856
53857 2008-12-18  Bruno Haible  <bruno@clisp.org>
53858
53859         * modules/mbsinit-tests: New file.
53860         * tests/test-mbsinit.sh: New file.
53861         * tests/test-mbsinit.c: New file.
53862
53863 2008-12-18  Bruno Haible  <bruno@clisp.org>
53864
53865         * modules/mbrtowc-tests: New file.
53866         * tests/test-mbrtowc1.sh: New file.
53867         * tests/test-mbrtowc2.sh: New file.
53868         * tests/test-mbrtowc3.sh: New file.
53869         * tests/test-mbrtowc4.sh: New file.
53870         * tests/test-mbrtowc.c: New file.
53871
53872         New module 'mbrtowc'.
53873         * lib/wchar.in.h (mbstate_t): Override when the system does not have
53874         mbsinit and mbrtowc.
53875         (mbrtowc): New declaration.
53876         * lib/mbrtowc.c: New file.
53877         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
53878         * modules/mbrtowc: New file.
53879         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
53880         HAVE_MBRTOWC.
53881         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
53882         HAVE_MBRTOWC.
53883         * doc/posix-functions/mbrtowc.texi: Document the new module.
53884
53885 2008-12-18  Bruno Haible  <bruno@clisp.org>
53886
53887         New module 'wctob'.
53888         * lib/wchar.in.h (wctob): New declaration.
53889         * lib/wctob.c: New file.
53890         * m4/wctob.m4: New file.
53891         * modules/wctob: New file.
53892         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
53893         HAVE_WCTOB.
53894         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
53895         * doc/posix-functions/wctob.texi: Document the new module.
53896
53897 2008-12-18  Bruno Haible  <bruno@clisp.org>
53898
53899         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
53900         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
53901
53902 2008-12-18  Simon Josefsson  <simon@josefsson.org>
53903
53904         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
53905         G. Christensen" <tgc@jupiterrise.com>.
53906
53907         * lib/flock.c: Need to include errno.h.  Reported by "Tom
53908         G. Christensen" <tgc@jupiterrise.com>.
53909
53910         * lib/flock.c: Need to include string.h.  Reported by "Tom
53911         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
53912         <ebb9@byu.net>.
53913
53914 2008-12-18  Bruno Haible  <bruno@clisp.org>
53915
53916         * m4/locale-ja.m4: New file, from GNU gettext.
53917
53918 2008-12-17  Bruno Haible  <bruno@clisp.org>
53919
53920         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
53921         Suggested by Eric Blake.
53922
53923 2008-12-17  Bruno Haible  <bruno@clisp.org>
53924
53925         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
53926
53927 2008-12-17  Bruno Haible  <bruno@clisp.org>
53928
53929         * lib/mbsinit.c: Include verify.h. Verify an assumption.
53930         * modules/mbsinit (Depends-on): Add verify.
53931         Suggested by Paul Eggert.
53932
53933 2008-12-17  Bruno Haible  <bruno@clisp.org>
53934
53935         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
53936         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
53937         gl_FUNC_MBRTOWC.
53938         * m4/mbiter.m4 (gl_MBITER): LIkewise.
53939         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
53940         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
53941         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
53942         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
53943         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
53944         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
53945         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
53946         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
53947         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
53948         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
53949         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
53950         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
53951         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
53952         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
53953         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
53954         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
53955         * modules/trim (configure.ac): Likewise.
53956
53957 2008-12-17  Bruno Haible  <bruno@clisp.org>
53958
53959         * modules/btowc-tests: New file.
53960         * tests/test-btowc1.sh: New file.
53961         * tests/test-btowc2.sh: New file.
53962         * tests/test-btowc.c: New file.
53963
53964         New module 'btowc'.
53965         * lib/wchar.in.h (btowc): New declaration.
53966         * lib/btowc.c: New file.
53967         * m4/btowc.m4: New file.
53968         * modules/btowc: New file.
53969         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
53970         HAVE_BTOWC.
53971         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
53972         * doc/posix-functions/btowc.texi: Document the new module.
53973
53974 2008-12-17  Bruno Haible  <bruno@clisp.org>
53975
53976         New module 'mbsinit'.
53977         * lib/wchar.in.h (mbsinit): New declaration.
53978         * lib/mbsinit.c: New file.
53979         * m4/mbsinit.m4: New file.
53980         * modules/mbsinit: New file.
53981         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
53982         HAVE_MBSINIT.
53983         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
53984         HAVE_MBSINIT.
53985         * doc/posix-functions/mbsinit.texi: Document the new module.
53986
53987 2008-12-16  Bruno Haible  <bruno@clisp.org>
53988
53989         * lib/unistd.in.h: Add comment.
53990         * tests/test-environ.c: Don't include <stdlib.h>.
53991
53992 2008-12-16  Bruno Haible  <bruno@clisp.org>
53993
53994         * lib/parse-duration.h (parse_duration): Document return value
53995         convention.
53996         * lib/parse-duration.c: Include specification header first. Add
53997         comments.
53998         (_): Remove macro.
53999         (parse_year_month_day, parse_hour_minute_second): Move side effects
54000         outside of strchr call.
54001         (parse_non_iso8601): Move side effects outside of isspace call.
54002         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
54003         call.
54004
54005 2008-12-16  Bruno Haible  <bruno@clisp.org>
54006
54007         * tests/test-parse-duration.sh: Produce no output when the test
54008         succeeds.
54009
54010 2008-12-16  Bruno Haible  <bruno@clisp.org>
54011
54012         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
54013         expressions.
54014
54015 2008-12-15  Bruno Haible  <bruno@clisp.org>
54016
54017         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
54018         * doc/glibc-functions/flistxattr.texi: Likewise.
54019         * doc/glibc-functions/fopencookie.texi: Likewise.
54020         * doc/glibc-functions/fremovexattr.texi: Likewise.
54021         * doc/glibc-functions/fsetxattr.texi: Likewise.
54022         * doc/glibc-functions/getxattr.texi: Likewise.
54023         * doc/glibc-functions/lgetxattr.texi: Likewise.
54024         * doc/glibc-functions/listxattr.texi: Likewise.
54025         * doc/glibc-functions/llistxattr.texi: Likewise.
54026         * doc/glibc-functions/lremovexattr.texi: Likewise.
54027         * doc/glibc-functions/lsetxattr.texi: Likewise.
54028         * doc/glibc-functions/removexattr.texi: Likewise.
54029         * doc/glibc-functions/setxattr.texi: Likewise.
54030         * doc/posix-functions/open_memstream.texi: Likewise.
54031
54032 2008-12-15  Eric Blake  <ebb9@byu.net>
54033
54034         Update doc for cygwin 1.7.
54035         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
54036         functions.
54037         * doc/posix-functions/fchmodat.texi: Likewise.
54038         * doc/posix-functions/fchownat.texi: Likewise.
54039         * doc/posix-functions/fdopendir.texi: Likewise.
54040         * doc/posix-functions/fmemopen.texi: Likewise.
54041         * doc/posix-functions/freeaddrinfo.texi: Likewise.
54042         * doc/posix-functions/fstatat.texi: Likewise.
54043         * doc/posix-functions/futimens.texi: Likewise.
54044         * doc/posix-functions/gai_strerror.texi: Likewise.
54045         * doc/posix-functions/getaddrinfo.texi: Likewise.
54046         * doc/posix-functions/getnameinfo.texi: Likewise.
54047         * doc/posix-functions/if_freenameindex.texi: Likewise.
54048         * doc/posix-functions/if_indextoname.texi: Likewise.
54049         * doc/posix-functions/if_nameindex.texi: Likewise.
54050         * doc/posix-functions/if_nametoindex.texi: Likewise.
54051         * doc/posix-functions/insque.texi: Likewise.
54052         * doc/posix-functions/linkat.texi: Likewise.
54053         * doc/posix-functions/llrint.texi: Likewise.
54054         * doc/posix-functions/llrintf.texi: Likewise.
54055         * doc/posix-functions/llrintl.texi: Likewise.
54056         * doc/posix-functions/lockf.texi: Likewise.
54057         * doc/posix-functions/lrintl.texi: Likewise.
54058         * doc/posix-functions/mkdirat.texi: Likewise.
54059         * doc/posix-functions/mkfifoat.texi: Likewise.
54060         * doc/posix-functions/mknodat.texi: Likewise.
54061         * doc/posix-functions/mq_close.texi: Likewise.
54062         * doc/posix-functions/mq_getattr.texi: Likewise.
54063         * doc/posix-functions/mq_notify.texi: Likewise.
54064         * doc/posix-functions/mq_open.texi: Likewise.
54065         * doc/posix-functions/mq_receive.texi: Likewise.
54066         * doc/posix-functions/mq_send.texi: Likewise.
54067         * doc/posix-functions/mq_setattr.texi: Likewise.
54068         * doc/posix-functions/mq_timedreceive.texi: Likewise.
54069         * doc/posix-functions/mq_timedsend.texi: Likewise.
54070         * doc/posix-functions/mq_unlink.texi: Likewise.
54071         * doc/posix-functions/open_memstream.texi: Likewise.
54072         * doc/posix-functions/openat.texi: Likewise.
54073         * doc/posix-functions/posix_fadvise.texi: Likewise.
54074         * doc/posix-functions/posix_fallocate.texi: Likewise.
54075         * doc/posix-functions/posix_madvise.texi: Likewise.
54076         * doc/posix-functions/posix_memalign.texi: Likewise.
54077         * doc/posix-functions/posix_openpt.texi: Likewise.
54078         * doc/posix-functions/readlinkat.texi: Likewise.
54079         * doc/posix-functions/remque.texi: Likewise.
54080         * doc/posix-functions/renameat.texi: Likewise.
54081         * doc/posix-functions/rintl.texi: Likewise.
54082         * doc/posix-functions/sem_unlink.texi: Likewise.
54083         * doc/posix-functions/shm_open.texi: Likewise.
54084         * doc/posix-functions/shm_unlink.texi: Likewise.
54085         * doc/posix-functions/signgam.texi: Likewise.
54086         * doc/posix-functions/sigset.texi: Likewise.
54087         * doc/posix-functions/stpcpy.texi: Likewise.
54088         * doc/posix-functions/stpncpy.texi: Likewise.
54089         * doc/posix-functions/strerror.texi: Likewise.
54090         * doc/posix-functions/strtod.texi: Likewise.
54091         * doc/posix-functions/symlinkat.texi: Likewise.
54092         * doc/posix-functions/unlinkat.texi: Likewise.
54093         * doc/posix-functions/utimensat.texi: Likewise.
54094         * doc/glibc-functions/bindresvport.texi: Likewise.
54095         * doc/glibc-functions/dn_expand.texi: Likewise.
54096         * doc/glibc-functions/exp10.texi: Likewise.
54097         * doc/glibc-functions/exp10f.texi: Likewise.
54098         * doc/glibc-functions/fgetxattr.texi: Likewise.
54099         * doc/glibc-functions/flistxattr.texi: Likewise.
54100         * doc/glibc-functions/fopencookie.texi: Likewise.
54101         * doc/glibc-functions/freeifaddrs.texi: Likewise.
54102         * doc/glibc-functions/fremovexattr.texi: Likewise.
54103         * doc/glibc-functions/fsetxattr.texi: Likewise.
54104         * doc/glibc-functions/getifaddrs.texi: Likewise.
54105         * doc/glibc-functions/getxattr.texi: Likewise.
54106         * doc/glibc-functions/lgetxattr.texi: Likewise.
54107         * doc/glibc-functions/listxattr.texi: Likewise.
54108         * doc/glibc-functions/llistxattr.texi: Likewise.
54109         * doc/glibc-functions/lremovexattr.texi: Likewise.
54110         * doc/glibc-functions/lsetxattr.texi: Likewise.
54111         * doc/glibc-functions/pow10.texi: Likewise.
54112         * doc/glibc-functions/pow10f.texi: Likewise.
54113         * doc/glibc-functions/rcmd_af.texi: Likewise.
54114         * doc/glibc-functions/removexattr.texi: Likewise.
54115         * doc/glibc-functions/res_init.texi: Likewise.
54116         * doc/glibc-functions/res_mkquery.texi: Likewise.
54117         * doc/glibc-functions/res_query.texi: Likewise.
54118         * doc/glibc-functions/res_querydomain.texi: Likewise.
54119         * doc/glibc-functions/res_send.texi: Likewise.
54120         * doc/glibc-functions/rresvport_af.texi: Likewise.
54121         * doc/glibc-functions/setxattr.texi: Likewise.
54122         * doc/glibc-functions/strcasestr.texi: Likewise.
54123
54124 2008-12-15  Bruno Haible  <bruno@clisp.org>
54125
54126         Fix compilation error on OSF/1 4.0.
54127         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
54128         <sys/time.h>, simply delegate to the system header.
54129         Reported by Daniel Richard G. <oss@teragram.com>.
54130
54131 2008-12-15  Bruno Haible  <bruno@clisp.org>
54132
54133         * doc/posix-functions/openat.texi: Mention the 'openat' module.
54134         * doc/posix-functions/fchmodat.texi: Likewise.
54135         * doc/posix-functions/fchownat.texi: Likewise.
54136         * doc/posix-functions/fdopendir.texi: Likewise.
54137         * doc/posix-functions/fstatat.texi: Likewise.
54138         * doc/posix-functions/mkdirat.texi: Likewise.
54139         * doc/posix-functions/unlinkat.texi: Likewise.
54140
54141 2008-12-14  Bruno Haible  <bruno@clisp.org>
54142
54143         Update doc for POSIX:2008.
54144         * doc/posix-functions/faccessat.texi: New file.
54145         * doc/posix-functions/fchmodat.texi: New file.
54146         * doc/posix-functions/fchownat.texi: New file.
54147         * doc/posix-functions/fdopendir.texi: New file.
54148         * doc/posix-functions/fstatat.texi: New file.
54149         * doc/posix-functions/futimens.texi: New file.
54150         * doc/posix-functions/linkat.texi: New file.
54151         * doc/posix-functions/mkdirat.texi: New file.
54152         * doc/posix-functions/mkfifoat.texi: New file.
54153         * doc/posix-functions/mknodat.texi: New file.
54154         * doc/posix-functions/open_wmemstream.texi: New file.
54155         * doc/posix-functions/openat.texi: New file.
54156         * doc/posix-functions/psiginfo.texi: New file.
54157         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
54158         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
54159         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
54160         * doc/posix-functions/readlinkat.texi: New file.
54161         * doc/posix-functions/renameat.texi: New file.
54162         * doc/posix-functions/strerror_l.texi: New file.
54163         * doc/posix-functions/symlinkat.texi: New file.
54164         * doc/posix-functions/unlinkat.texi: New file.
54165         * doc/posix-functions/utimensat.texi: New file.
54166         * doc/gnulib.texi (Function Substitutes): Add these subsections.
54167
54168 2008-12-14  Bruno Haible  <bruno@clisp.org>
54169
54170         Update doc for POSIX:2008.
54171         * doc/posix-functions/alphasort.texi: Renamed from
54172         doc/glibc-functions/alphasort.texi.
54173         * doc/posix-functions/dirfd.texi: Renamed from
54174         doc/glibc-functions/dirfd.texi.
54175         * doc/posix-functions/dprintf.texi: Renamed from
54176         doc/glibc-functions/dprintf.texi.
54177         * doc/posix-functions/duplocale.texi: Renamed from
54178         doc/glibc-functions/duplocale.texi.
54179         * doc/posix-functions/fexecve.texi: Renamed from
54180         doc/glibc-functions/fexecve.texi.
54181         * doc/posix-functions/fmemopen.texi: Renamed from
54182         doc/glibc-functions/fmemopen.texi.
54183         * doc/posix-functions/freelocale.texi: Renamed from
54184         doc/glibc-functions/freelocale.texi.
54185         * doc/posix-functions/getdate_err.texi: Renamed from
54186         doc/glibc-functions/getdate_err.texi.
54187         * doc/posix-functions/isalnum_l.texi: Renamed from
54188         doc/glibc-functions/isalnum_l.texi.
54189         * doc/posix-functions/isalpha_l.texi: Renamed from
54190         doc/glibc-functions/isalpha_l.texi.
54191         * doc/posix-functions/isblank_l.texi: Renamed from
54192         doc/glibc-functions/isblank_l.texi.
54193         * doc/posix-functions/iscntrl_l.texi: Renamed from
54194         doc/glibc-functions/iscntrl_l.texi.
54195         * doc/posix-functions/isdigit_l.texi: Renamed from
54196         doc/glibc-functions/isdigit_l.texi.
54197         * doc/posix-functions/isgraph_l.texi: Renamed from
54198         doc/glibc-functions/isgraph_l.texi.
54199         * doc/posix-functions/islower_l.texi: Renamed from
54200         doc/glibc-functions/islower_l.texi.
54201         * doc/posix-functions/isprint_l.texi: Renamed from
54202         doc/glibc-functions/isprint_l.texi.
54203         * doc/posix-functions/ispunct_l.texi: Renamed from
54204         doc/glibc-functions/ispunct_l.texi.
54205         * doc/posix-functions/isspace_l.texi: Renamed from
54206         doc/glibc-functions/isspace_l.texi.
54207         * doc/posix-functions/isupper_l.texi: Renamed from
54208         doc/glibc-functions/isupper_l.texi.
54209         * doc/posix-functions/iswalnum_l.texi: Renamed from
54210         doc/glibc-functions/iswalnum_l.texi.
54211         * doc/posix-functions/iswalpha_l.texi: Renamed from
54212         doc/glibc-functions/iswalpha_l.texi.
54213         * doc/posix-functions/iswblank_l.texi: Renamed from
54214         doc/glibc-functions/iswblank_l.texi.
54215         * doc/posix-functions/iswcntrl_l.texi: Renamed from
54216         doc/glibc-functions/iswcntrl_l.texi.
54217         * doc/posix-functions/iswctype_l.texi: Renamed from
54218         doc/glibc-functions/iswctype_l.texi.
54219         * doc/posix-functions/iswdigit_l.texi: Renamed from
54220         doc/glibc-functions/iswdigit_l.texi.
54221         * doc/posix-functions/iswgraph_l.texi: Renamed from
54222         doc/glibc-functions/iswgraph_l.texi.
54223         * doc/posix-functions/iswlower_l.texi: Renamed from
54224         doc/glibc-functions/iswlower_l.texi.
54225         * doc/posix-functions/iswprint_l.texi: Renamed from
54226         doc/glibc-functions/iswprint_l.texi.
54227         * doc/posix-functions/iswpunct_l.texi: Renamed from
54228         doc/glibc-functions/iswpunct_l.texi.
54229         * doc/posix-functions/iswspace_l.texi: Renamed from
54230         doc/glibc-functions/iswspace_l.texi.
54231         * doc/posix-functions/iswupper_l.texi: Renamed from
54232         doc/glibc-functions/iswupper_l.texi.
54233         * doc/posix-functions/iswxdigit_l.texi: Renamed from
54234         doc/glibc-functions/iswxdigit_l.texi.
54235         * doc/posix-functions/isxdigit_l.texi: Renamed from
54236         doc/glibc-functions/isxdigit_l.texi.
54237         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
54238         doc/glibc-functions/mbsnrtowcs.texi.
54239         * doc/posix-functions/mkdtemp.texi: Renamed from
54240         doc/glibc-functions/mkdtemp.texi.
54241         * doc/posix-functions/newlocale.texi: Renamed from
54242         doc/glibc-functions/newlocale.texi.
54243         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
54244         doc/glibc-functions/nl_langinfo_l.texi.
54245         * doc/posix-functions/open_memstream.texi: Renamed from
54246         doc/glibc-functions/open_memstream.texi.
54247         * doc/posix-functions/opterr.texi: Renamed from
54248         doc/glibc-functions/opterr.texi.
54249         * doc/posix-functions/optind.texi: Renamed from
54250         doc/glibc-functions/optind.texi.
54251         * doc/posix-functions/optopt.texi: Renamed from
54252         doc/glibc-functions/optopt.texi.
54253         * doc/posix-functions/psignal.texi: Renamed from
54254         doc/glibc-functions/psignal.texi.
54255         * doc/posix-functions/scandir.texi: Renamed from
54256         doc/glibc-functions/scandir.texi.
54257         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
54258         doc/glibc-functions/sched_get_priority_min.texi.
54259         * doc/posix-functions/signgam.texi: Renamed from
54260         doc/glibc-functions/signgam.texi.
54261         * doc/posix-functions/stpcpy.texi: Renamed from
54262         doc/glibc-functions/stpcpy.texi.
54263         * doc/posix-functions/stpncpy.texi: Renamed from
54264         doc/glibc-functions/stpncpy.texi.
54265         * doc/posix-functions/strcasecmp_l.texi: Renamed from
54266         doc/glibc-functions/strcasecmp_l.texi.
54267         * doc/posix-functions/strcoll_l.texi: Renamed from
54268         doc/glibc-functions/strcoll_l.texi.
54269         * doc/posix-functions/strfmon_l.texi: Renamed from
54270         doc/glibc-functions/strfmon_l.texi.
54271         * doc/posix-functions/strftime_l.texi: Renamed from
54272         doc/glibc-functions/strftime_l.texi.
54273         * doc/posix-functions/strncasecmp_l.texi: Renamed from
54274         doc/glibc-functions/strncasecmp_l.texi.
54275         * doc/posix-functions/strndup.texi: Renamed from
54276         doc/glibc-functions/strndup.texi.
54277         * doc/posix-functions/strnlen.texi: Renamed from
54278         doc/glibc-functions/strnlen.texi.
54279         * doc/posix-functions/strsignal.texi: Renamed from
54280         doc/glibc-functions/strsignal.texi.
54281         * doc/posix-functions/strxfrm_l.texi: Renamed from
54282         doc/glibc-functions/strxfrm_l.texi.
54283         * doc/posix-functions/timer_gettime.texi: Renamed from
54284         doc/glibc-functions/timer_gettime.texi.
54285         * doc/posix-functions/tolower_l.texi: Renamed from
54286         doc/glibc-functions/tolower_l.texi.
54287         * doc/posix-functions/toupper_l.texi: Renamed from
54288         doc/glibc-functions/toupper_l.texi.
54289         * doc/posix-functions/towctrans_l.texi: Renamed from
54290         doc/glibc-functions/towctrans_l.texi.
54291         * doc/posix-functions/towlower_l.texi: Renamed from
54292         doc/glibc-functions/towlower_l.texi.
54293         * doc/posix-functions/towupper_l.texi: Renamed from
54294         doc/glibc-functions/towupper_l.texi.
54295         * doc/posix-functions/uselocale.texi: Renamed from
54296         doc/glibc-functions/uselocale.texi.
54297         * doc/posix-functions/vdprintf.texi: Renamed from
54298         doc/glibc-functions/vdprintf.texi.
54299         * doc/posix-functions/wcpcpy.texi:
54300         Renamed from doc/glibc-functions/wcpcpy.texi.
54301         * doc/posix-functions/wcpncpy.texi: Renamed from
54302         doc/glibc-functions/wcpncpy.texi.
54303         * doc/posix-functions/wcscasecmp.texi: Renamed from
54304         doc/glibc-functions/wcscasecmp.texi.
54305         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
54306         doc/glibc-functions/wcscasecmp_l.texi.
54307         * doc/posix-functions/wcscoll_l.texi: Renamed from
54308         doc/glibc-functions/wcscoll_l.texi.
54309         * doc/posix-functions/wcsdup.texi: Renamed from
54310         doc/glibc-functions/wcsdup.texi.
54311         * doc/posix-functions/wcsncasecmp.texi: Renamed from
54312         doc/glibc-functions/wcsncasecmp.texi.
54313         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
54314         doc/glibc-functions/wcsncasecmp_l.texi.
54315         * doc/posix-functions/wcsnlen.texi: Renamed from
54316         doc/glibc-functions/wcsnlen.texi.
54317         * doc/posix-functions/wcsnrtombs.texi: Renamed from
54318         doc/glibc-functions/wcsnrtombs.texi.
54319         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
54320         doc/glibc-functions/wcsxfrm_l.texi.
54321         * doc/posix-functions/wctrans_l.texi: Renamed from
54322         doc/glibc-functions/wctrans_l.texi.
54323         * doc/posix-functions/wctype_l.texi: Renamed from
54324         doc/glibc-functions/wctype_l.texi.
54325         * doc/gnulib.texi (Function Substitutes): Add these subsections.
54326         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
54327         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
54328         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
54329         these subsections.
54330         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
54331         Remove sections.
54332
54333 2008-12-14  Bruno Haible  <bruno@clisp.org>
54334
54335         Update doc for POSIX:2008.
54336         * doc/posix-functions/*.texi: Update URL of POSIX specification.
54337
54338 2008-12-14  Bruno Haible  <bruno@clisp.org>
54339
54340         Update doc for POSIX:2008.
54341         * doc/pastposix-functions/bcmp.texi: Renamed from
54342         doc/posix-functions/bcmp.texi.
54343         * doc/pastposix-functions/bcopy.texi: Renamed from
54344         doc/posix-functions/bcopy.texi.
54345         * doc/pastposix-functions/bsd_signal.texi: Renamed from
54346         doc/posix-functions/bsd_signal.texi.
54347         * doc/pastposix-functions/bzero.texi: Renamed from
54348         doc/posix-functions/bzero.texi.
54349         * doc/pastposix-functions/ecvt.texi: Renamed from
54350         doc/posix-functions/ecvt.texi.
54351         * doc/pastposix-functions/fcvt.texi: Renamed from
54352         doc/posix-functions/fcvt.texi.
54353         * doc/pastposix-functions/ftime.texi: Renamed from
54354         doc/posix-functions/ftime.texi.
54355         * doc/pastposix-functions/gcvt.texi: Renamed from
54356         doc/posix-functions/gcvt.texi.
54357         * doc/pastposix-functions/getcontext.texi: Renamed from
54358         doc/posix-functions/getcontext.texi.
54359         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
54360         doc/posix-functions/gethostbyaddr.texi.
54361         * doc/pastposix-functions/gethostbyname.texi: Renamed from
54362         doc/posix-functions/gethostbyname.texi.
54363         * doc/pastposix-functions/getwd.texi: Renamed from
54364         doc/posix-functions/getwd.texi.
54365         * doc/pastposix-functions/h_errno.texi: Renamed from
54366         doc/posix-functions/h_errno.texi.
54367         * doc/pastposix-functions/index.texi: Renamed from
54368         doc/posix-functions/index.texi.
54369         * doc/pastposix-functions/makecontext.texi: Renamed from
54370         doc/posix-functions/makecontext.texi.
54371         * doc/pastposix-functions/mktemp.texi: Renamed from
54372         doc/posix-functions/mktemp.texi.
54373         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
54374         doc/posix-functions/pthread_attr_getstackaddr.texi.
54375         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
54376         doc/posix-functions/pthread_attr_setstackaddr.texi.
54377         * doc/pastposix-functions/rindex.texi: Renamed from
54378         doc/posix-functions/rindex.texi.
54379         * doc/pastposix-functions/scalb.texi: Renamed from
54380         doc/posix-functions/scalb.texi.
54381         * doc/pastposix-functions/setcontext.texi: Renamed from
54382         doc/posix-functions/setcontext.texi.
54383         * doc/pastposix-functions/swapcontext.texi: Renamed from
54384         doc/posix-functions/swapcontext.texi.
54385         * doc/pastposix-functions/ualarm.texi: Renamed from
54386         doc/posix-functions/ualarm.texi.
54387         * doc/pastposix-functions/usleep.texi: Renamed from
54388         doc/posix-functions/usleep.texi.
54389         * doc/pastposix-functions/vfork.texi: Renamed from
54390         doc/posix-functions/vfork.texi.
54391         * doc/pastposix-functions/wcswcs.texi: Renamed from
54392         doc/posix-functions/wcswcs.texi.
54393         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
54394         (Function Substitutes): Update.
54395
54396 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54397
54398         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
54399         m4/strerror.m4.
54400
54401 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54402             Bruno Haible  <bruno@clisp.org>
54403
54404         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
54405
54406 2008-12-13  Bruno Haible  <bruno@clisp.org>
54407
54408         * modules/strtoull (Depends-on): Remove unistd.
54409
54410 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54411
54412         * modules/strtoull (Depends-on): Add stdlib.
54413
54414 2008-12-11  Simon Josefsson  <simon@josefsson.org>
54415
54416         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
54417
54418 2008-12-10  Jim Meyering  <meyering@redhat.com>
54419
54420         gl_ASSERT: don't say assertions are disabled when they're not
54421         * m4/assert.m4 (gl_ASSERT): Do not make configure report
54422         "checking whether to enable assertions... no", when they are in
54423         fact enabled.  This is solely a bug in the output of configure.
54424         In spite of saying "no", NDEBUG was not defined in that case.
54425         Also, as noted by Eric Blake, leave assertions enabled upon
54426         --enable-assert=INVALID.
54427
54428 2008-12-10  Bruno Haible  <bruno@clisp.org>
54429
54430         Change MODULES.html to refer to POSIX:2008 where possible.
54431         * MODULES.html.sh (POSIX2008_URL): New variable.
54432         (posix_headers): Remove sys/timeb, ucontext.
54433         (posix2001_headers): New variable.
54434         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
54435         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
54436         index, makecontext, mktemp, pthread_attr_getstackaddr,
54437         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
54438         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
54439         (posix2001_functions): New variable.
54440         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
54441         otherwise.
54442
54443 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54444
54445         add missing include to parse-duration.c
54446         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
54447         * modules/parse-duration (Depends-on): Add xalloc.
54448
54449         fix sed script reading maint.mk
54450         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
54451         (syntax-check-rules): Use it.
54452
54453 2008-12-09  Bruno Haible  <bruno@clisp.org>
54454
54455         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
54456         MacOS X 10.4/PowerPC.
54457         Reported by Simon Josefsson.
54458
54459 2008-12-08  Jim Meyering  <meyering@redhat.com>
54460
54461         work around mingw's lack of some S_IF definitions
54462         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
54463         Reported by Simon Josefsson.
54464
54465 2008-12-08  Bruno Haible  <bruno@clisp.org>
54466
54467         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
54468         applied to variables. Needed on MacOS X 10.4/PowerPC.
54469         Reported by Simon Josefsson.
54470
54471 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
54472         and Eric Blake  <ebb9@byu.net>
54473
54474         assert: honor --enable-assert
54475         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
54476         order to honor --enable-assert, rather than treating it as a
54477         synonym for --disable-assert.
54478
54479 2008-12-08  Jim Meyering  <meyering@redhat.com>
54480
54481         * lib/posixtm.c: Remove now-useless declaration of mktime.
54482
54483         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
54484
54485 2008-12-07  Bruno Haible  <bruno@clisp.org>
54486
54487         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
54488         test_once): Mark functions as static.
54489         * tests/test-tls.c (test_tls): Likewise.
54490
54491 2008-12-07  Bruno Haible  <bruno@clisp.org>
54492
54493         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
54494         iconv_register_autodetect.
54495
54496 2008-12-07  Jim Meyering  <meyering@redhat.com>
54497
54498         posixtm.c: avoid a warning
54499         * lib/posixtm.c (posixtime): Don't initialize tm0.
54500         It's no longer needed to placate gcc4's -Wuninitialized,
54501         and the attempt to placate would elicit a new warning.
54502
54503         unicodeio.c: mark unused parameters
54504         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
54505         (fallback_failure_callback): Likewise.
54506
54507 2008-12-07  Bruno Haible  <bruno@clisp.org>
54508
54509         * gnulib-tool (func_create_testdir): When building the tests
54510         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
54511         Reported by Simon Josefsson.
54512
54513 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54514
54515         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
54516
54517 2008-12-06  Bruno Haible  <bruno@clisp.org>
54518
54519         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
54520         Suggested by Eric Blake.
54521
54522 2008-12-06  Bruno Haible  <bruno@clisp.org>
54523
54524         Fix a c-stack test failure on MacOS X.
54525         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
54526         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
54527         handler for SIGBUS as well.
54528         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
54529         install a signal handler for SIGBUS as well.
54530         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
54531
54532 2008-12-06  Bruno Haible  <bruno@clisp.org>
54533
54534         Advocacy documentation.
54535         * doc/gnulib-intro.texi (Benefits): New section.
54536         * doc/gnulib.texi: Update.
54537
54538 2008-12-06  Bruno Haible  <bruno@clisp.org>
54539
54540         Document the 'manywarnings' module.
54541         * doc/manywarnings.texi: New file.
54542         * doc/gnulib.texi: Include it.
54543
54544 2008-12-05  Eric Blake  <ebb9@byu.net>
54545
54546         tests: silence some gcc warnings
54547         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
54548         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
54549         type mismatches.
54550
54551 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54552             Bruno Haible  <bruno@clisp.org>
54553
54554         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
54555
54556 2008-11-29  Jim Meyering  <meyering@redhat.com>
54557
54558         unicodeio.c: mark unused parameters
54559         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
54560         (fallback_failure_callback): Likewise.
54561
54562         fts: fix a thinko
54563         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
54564         (set_stat_type): Return S_IF*-valued "type" directly.
54565         Prompted by James Youngman's spotting a related bug.
54566         Confirmed by further testing through find.
54567
54568         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
54569         * lib/fts.c (D_TYPE): Define.
54570         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
54571         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
54572         (s_ifmt_shift_bits): New function.
54573         (set_stat_type): New function.
54574         (fts_build): When not calling fts_stat, call set_stat_type
54575         to propagate dirent.d_type info to fts_read caller.
54576         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
54577         fts_statp->st_mode type information may be valid.
54578
54579 2008-11-28  Simon Josefsson  <simon@josefsson.org>
54580
54581         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
54582         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
54583         <sds@gnu.org>.
54584
54585 2008-11-20  Bruno Haible  <bruno@clisp.org>
54586
54587         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
54588         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
54589         INCLUDE_NEXT.
54590         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
54591         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
54592         * modules/math (Makefile.am): Substitute
54593         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
54594         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54595
54596 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
54597             Bruno Haible  <bruno@clisp.org>
54598
54599         * lib/stdint.in.h: Define all type macros so that their expansion is
54600         a single typedef'ed token. Fixes a compilation failure in Boost which
54601         does "using ::int8_t;".
54602
54603 2008-11-18  Simon Josefsson  <simon@josefsson.org>
54604
54605         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
54606         gl_MANYWARN_ALL_GCC.
54607         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
54608         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
54609         * modules/manywarnings: New file.
54610         * MODULES.html.sh: Mention manywarnings module.
54611
54612 2008-11-18  Bruno Haible  <bruno@clisp.org>
54613
54614         * doc/gnulib-tool.texi (Unit tests): New section.
54615
54616 2008-11-18  Simon Josefsson  <simon@josefsson.org>
54617
54618         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
54619         paths like 'lib/po/foo.po'.
54620
54621 2008-11-17  Simon Josefsson  <simon@josefsson.org>
54622
54623         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
54624         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
54625
54626 2008-11-17  Simon Josefsson  <simon@josefsson.org>
54627
54628         * m4/warnings.m4: Use CPPFLAGS to really check whether the
54629         parameter works.
54630
54631 2008-11-17  Simon Josefsson  <simon@josefsson.org>
54632
54633         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
54634
54635 2008-11-17  Bruce Korb  <bkorb@gnu.org>
54636
54637         * modules/parse-duration-tests: New file.
54638         * tests/test-parse-duration.sh: New file.
54639         * tests/test-parse-duration.c: New file.
54640
54641         New module 'parse-duration'.
54642         * lib/parse-duration.h: New file.
54643         * lib/parse-duration.c: New file.
54644         * modules/parse-duration: New file.
54645
54646 2008-11-17  Bruno Haible  <bruno@clisp.org>
54647
54648         * tests/test-select-out.sh: Comment out the first pipe test.
54649         Reported by Simon Josefsson.
54650
54651 2008-11-17  Bruno Haible  <bruno@clisp.org>
54652
54653         * modules/getaddrinfo (Depends-on): Add servent, hostent.
54654         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
54655         gl_HOSTENT.
54656
54657 2008-11-17  Bruno Haible  <bruno@clisp.org>
54658
54659         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
54660         -lnetwork and -lnet. Needed for Haiku and BeOS.
54661
54662 2008-11-16  Bruno Haible  <bruno@clisp.org>
54663
54664         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
54665
54666 2008-11-16  Bruno Haible  <bruno@clisp.org>
54667
54668         Avoid test failure on Haiku.
54669         * tests/test-fsync.c: Include <errno.h>.
54670         (main): Don't require that fsync (0) fails.
54671
54672 2008-11-15  Bruno Haible  <bruno@clisp.org>
54673
54674         New module 'hostent'.
54675         * modules/hostent: New file.
54676         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
54677
54678 2008-11-15  Bruno Haible  <bruno@clisp.org>
54679
54680         New module 'servent'.
54681         * modules/servent: New file.
54682         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
54683
54684 2008-11-15  Bruno Haible  <bruno@clisp.org>
54685
54686         Avoid generating same test program with two different rules.
54687         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
54688         test-frexp to test-frexp-nolibm.
54689         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
54690         test-frexpl to test-frexpl-nolibm.
54691
54692 2008-11-15  Bruno Haible  <bruno@clisp.org>
54693
54694         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
54695         $(FREXPL_LIBM).
54696
54697 2008-11-15  Bruno Haible  <bruno@clisp.org>
54698
54699         * lib/netdb.in.h: Activate the definitions also when the system's
54700         <netdb.h> has 'struct addrinfo'.
54701         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
54702         EAI_OVERFLOW or AI_NUMERICSERV.
54703         * doc/posix-headers/netdb.texi: Document the problem.
54704
54705 2008-11-15  Bruno Haible  <bruno@clisp.org>
54706
54707         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
54708
54709         Make the 'sched' module work on platforms where <sched.h> exists but
54710         is incomplete (such as Haiku).
54711         * lib/sched.in.h; Include the system's <sched.h> if it exists.
54712         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
54713         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
54714         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
54715         HAVE_STRUCT_SCHED_PARAM.
54716         * modules/sched (Depends-on): Add include_next.
54717         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
54718         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
54719         * doc/posix-headers/sched.texi: Document the issue.
54720
54721 2008-11-13  Jim Meyering  <meyering@redhat.com>
54722
54723         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
54724         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
54725         test would fail due to the difference in the Report bugs to ...
54726         line.  The expected address is empty, "<>", while the actual
54727         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
54728
54729 2008-11-12  Bruno Haible  <bruno@clisp.org>
54730
54731         lstat: don't compile lstat.c on systems lacking lstat
54732         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
54733         which don't have lstat; this is handled by lib/sys_stat.in.h already.
54734         Reported by Daniel P. Berrange via Jim Meyering.
54735
54736 2008-11-12  Jim Meyering  <meyering@redhat.com>
54737
54738         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
54739
54740 2008-11-12  Simon Josefsson  <simon@josefsson.org>
54741
54742         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
54743         instead.
54744
54745 2008-11-12  Bruno Haible  <bruno@clisp.org>
54746
54747         * lib/unicodeio.c: Include unistr.h.
54748         (utf8_wctomb): Remove function.
54749         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
54750
54751 2008-11-12  Simon Josefsson  <simon@josefsson.org>
54752
54753         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
54754         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
54755         <bruno@clisp.org>.
54756         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
54757
54758 2008-11-12  Simon Josefsson  <simon@josefsson.org>
54759
54760         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
54761         * doc/gnulib.texi: Add section for warnings.
54762
54763 2008-11-11  Bruno Haible  <bruno@clisp.org>
54764
54765         * lib/sockets.h: Add a comment.
54766
54767 2008-11-11  Karl Berry  <karl@gnu.org>
54768
54769         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
54770
54771 2008-11-11  Eric Blake  <ebb9@byu.net>
54772
54773         fdl.texi: avoid git symlinks
54774         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
54775
54776 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
54777
54778         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
54779
54780 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
54781
54782         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
54783         (gl_WARN_ADD): Substitute $2 if literal.
54784
54785 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
54786
54787         * m4/warning.m4: Remove.
54788
54789 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
54790
54791         * m4/warnings.m4: Almost complete rewrite. :-)
54792
54793 2008-11-10  Simon Josefsson  <simon@josefsson.org>
54794
54795         * modules/warnings: New module.
54796         * m4/warnings.m4: New file.
54797         * MODULES.html.sh: Mention warnings module.
54798         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
54799         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54800
54801 2008-11-10  Eric Blake  <ebb9@byu.net>
54802
54803         fdl.texi: make a symlink to the latest version
54804         * doc/standards.texi: Revert today's earlier change.
54805         * doc/fdl-1.2.texi: Rename from old fdl.texi...
54806         * doc/fdl.texi: ...and replace this with a symlink to the newer
54807         fdl-1.3.texi.
54808
54809 2008-11-10  Bruno Haible  <bruno@clisp.org>
54810
54811         * tests/test-select-fd.c (main): Accept the result file name as fourth
54812         argument.
54813         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
54814         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
54815
54816 2008-11-10  Bruno Haible  <bruno@clisp.org>
54817
54818         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
54819         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
54820         as autoconf-substituted macros.
54821         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
54822         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
54823         gl_NETDB_H_DEFAULTS. Set these variables.
54824         * modules/netdb (Makefile.am): Substitute these variables.
54825
54826 2008-11-10  Eric Blake  <ebb9@byu.net>
54827
54828         standards.texi: include correct file for FDL 1.3
54829         * doc/standards.texi (GNU Free Documentation License): Change
54830         include file to pull in FDL 1.3, not 1.2.
54831
54832         fdl.texi: revert accidental change to license
54833         * doc/fdl.texi: This is FDL 1.2, not 1.3.
54834
54835 2008-11-10  Bruno Haible  <bruno@clisp.org>
54836
54837         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
54838         cross-compiling guesses also when the native compile gives no result.
54839
54840 2008-11-10  Bruno Haible  <bruno@clisp.org>
54841
54842         * lib/spawni.c (__spawni): Force variable into the stack.
54843
54844 2008-11-10  Bruno Haible  <bruno@clisp.org>
54845
54846         Add support for Haiku.
54847         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
54848         glibc and BeOS, but also on Haiku.
54849         * lib/fpurge.c (fpurge): Likewise.
54850         * lib/freadable.c (freadable): Likewise.
54851         * lib/freadahead.c (freadahead): Likewise.
54852         * lib/freading.c (freading): Likewise.
54853         * lib/freadptr.c (freadptr): Likewise.
54854         * lib/freadseek.c (freadptrinc): Likewise.
54855         * lib/fseeko.c (rpl_fseeko): Likewise.
54856         * lib/fseterr.c (fseterr): Likewise.
54857         * lib/fwritable.c (fwritable): Likewise.
54858         * lib/fwriting.c (fwriting): Likewise.
54859         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
54860
54861 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
54862
54863         * lib/config.charset: Treat Haiku like BeOS.
54864
54865 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
54866
54867         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
54868         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
54869
54870 2008-11-08  Bruno Haible  <bruno@clisp.org>
54871
54872         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
54873         AC_CACHE_CHECK.
54874
54875 2008-11-08  Bruno Haible  <bruno@clisp.org>
54876
54877         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
54878
54879 2008-11-08  Bruno Haible  <bruno@clisp.org>
54880
54881         * tests/test-select-fd.c: New file.
54882         * tests/test-select-in.sh: New file.
54883         * tests/test-select-out.sh: New file.
54884         * tests/test-select-stdin.c: New file.
54885         * modules/select-tests (Files): Add the new files.
54886         (Depends-on): Add gettimeofday.
54887         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
54888         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
54889         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
54890
54891 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
54892             Bruno Haible  <bruno@clisp.org>
54893
54894         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
54895
54896 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
54897
54898         * build-aux/pmccabe2html: Added support for C++ source files.
54899
54900 2008-11-05  Ben Pfaff  <blp@gnu.org>
54901
54902         Fix lib/close.c build on Windows.
54903         * modules/close (Files): Add lib/w32sock.h.
54904
54905 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
54906
54907         Accept Bison's NEWS format.
54908         * build-aux/announce-gen (print_news_deltas): Tweak
54909         $re_prefix.
54910
54911 2008-11-04  Bruno Haible  <bruno@clisp.org>
54912
54913         * modules/random_r (Maintainer): Add glibc.
54914
54915 2008-11-04  Simon Josefsson  <simon@josefsson.org>
54916
54917         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
54918         by karl@freefriends.org (Karl Berry).
54919         * doc/alloca.texi: Likewise.
54920         * doc/c-ctype.texi: Likewise.
54921         * doc/c-strcase.texi: Likewise.
54922         * doc/c-strcaseeq.texi: Likewise.
54923         * doc/c-strcasestr.texi: Likewise.
54924         * doc/c-strstr.texi: Likewise.
54925         * doc/c-strtod.texi: Likewise.
54926         * doc/c-strtold.texi: Likewise.
54927         * doc/ctime.texi: Likewise.
54928         * doc/error.texi: Likewise.
54929         * doc/fdl.texi: Likewise.
54930         * doc/gcd.texi: Likewise.
54931         * doc/getdate.texi: Likewise.
54932         * doc/gnulib-intro.texi: Likewise.
54933         * doc/gnulib-tool.texi: Likewise.
54934         * doc/gnulib.texi: Likewise.
54935         * doc/inet_ntoa.texi: Likewise.
54936         * doc/maintain.texi: Likewise.
54937         * doc/make-stds.texi: Likewise.
54938         * doc/quote.texi: Likewise.
54939         * doc/regexprops-generic.texi: Likewise.
54940         * doc/standards.texi: Likewise.
54941         * doc/verify.texi: Likewise.
54942         * doc/visibility.texi: Likewise.
54943         * doc/gnulib.texi (GNU Free Documentation License): Include
54944         fdl-1.3.texi instead of fdl.texi.
54945
54946 2008-11-04  Simon Josefsson  <simon@josefsson.org>
54947
54948         * doc/fdl-1.3.texi: New file, from
54949         <http://www.gnu.org/licenses/fdl-1.3.texi>.
54950         * modules/fdl-1.3: Add.
54951         * MODULES.html.sh: Add fdl-1.3.
54952
54953 2008-11-03  Bruno Haible  <bruno@clisp.org>
54954
54955         Make determination of absolute name of header file work with AIX xlc.
54956         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
54957         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
54958         preprocessing.
54959         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
54960         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
54961
54962 2008-11-03  Simon Josefsson  <simon@josefsson.org>
54963
54964         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
54965         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
54966         <ludo@gnu.org>.
54967
54968 2008-11-02  Bruno Haible  <bruno@clisp.org>
54969
54970         Mark 'strpbrk' obsolete.
54971         * modules/strpbrk (Status, Notice): New sections.
54972         * modules/strtok_r (Depends-on): Add strpbrk.
54973
54974 2008-11-02  Bruno Haible  <bruno@clisp.org>
54975
54976         Mark 'strdup' obsolete.
54977         * modules/strdup (Status, Notice): New sections.
54978         * modules/findprog (Depends-on): Add strdup.
54979         * modules/getaddrinfo (Depends-on): Likewise.
54980         * modules/localename (Depends-on): Likewise.
54981         * modules/relocatable-lib (Depends-on): Likewise.
54982         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
54983         * modules/relocatable-prog (Depends-on): Likewise.
54984         * modules/trim (Depends-on): Likewise.
54985         * modules/unictype/gen-ctype (Depends-on): Likewise.
54986         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
54987
54988 2008-11-02  Bruno Haible  <bruno@clisp.org>
54989
54990         Mark 'strcspn' obsolete.
54991         * modules/strcspn (Status, Notice): New sections.
54992
54993 2008-11-02  Bruno Haible  <bruno@clisp.org>
54994
54995         Mark 'rmdir' obsolete.
54996         * modules/rmdir (Status, Notice): New sections.
54997         * modules/clean-temp (Depends-on): Add rmdir.
54998         * modules/openat (Depends-on): Likewise.
54999
55000 2008-11-02  Bruno Haible  <bruno@clisp.org>
55001
55002         Mark 'raise' obsolete.
55003         * modules/raise (Status, Notice): New sections.
55004         (Include): Specify <signal.h>.
55005         * modules/stdio (Depends-on): Add raise.
55006         * modules/write (Depends-on): Likewise.
55007
55008 2008-11-02  Bruno Haible  <bruno@clisp.org>
55009
55010         Mark 'memset' obsolete.
55011         * modules/memset (Status, Notice): New sections.
55012
55013 2008-11-02  Bruno Haible  <bruno@clisp.org>
55014
55015         Mark 'memmove' obsolete.
55016         * modules/memmove (Status, Notice): New sections.
55017         * modules/argp (Depends-on): Add memmove.
55018         * modules/argz (Depends-on): Likewise.
55019         * modules/canonicalize (Depends-on): Likewise.
55020         * modules/canonicalize-lgpl (Depends-on): Likewise.
55021         * modules/fts (Depends-on): Likewise.
55022         * modules/getcwd (Depends-on): Likewise.
55023         * modules/human (Depends-on): Likewise.
55024         * modules/regex (Depends-on): Likewise.
55025         * modules/striconveh (Depends-on): Likewise.
55026         * modules/trim (Depends-on): Likewise.
55027         * modules/unistr/u8-move (Depends-on): Likewise.
55028         * modules/unistr/u16-move (Depends-on): Likewise.
55029         * modules/unistr/u32-move (Depends-on): Likewise.
55030
55031 2008-11-02  Bruno Haible  <bruno@clisp.org>
55032
55033         Mark 'memcpy' obsolete.
55034         * modules/memcpy (Status, Notice): New sections.
55035
55036 2008-11-02  Bruno Haible  <bruno@clisp.org>
55037
55038         Mark 'memcmp' obsolete.
55039         * modules/memcmp (Status, Notice): New sections.
55040         * modules/argmatch (Depends-on): Add memchr.
55041         * modules/backupfile (Depends-on): Likewise.
55042         * modules/c-strcasestr (Depends-on): Likewise.
55043         * modules/crypto/des (Depends-on): Likewise.
55044         * modules/csharpcomp (Depends-on): Likewise.
55045         * modules/fnmatch (Depends-on): Likewise.
55046         * modules/git-merge-changelog (Depends-on): Likewise.
55047         * modules/isnand (Depends-on): Likewise.
55048         * modules/isnand-nolibm (Depends-on): Likewise.
55049         * modules/isnanf (Depends-on): Likewise.
55050         * modules/isnanf-nolibm (Depends-on): Likewise.
55051         * modules/isnanl (Depends-on): Likewise.
55052         * modules/isnanl-nolibm (Depends-on): Likewise.
55053         * modules/mbchar (Depends-on): Likewise.
55054         * modules/memcoll (Depends-on): Likewise.
55055         * modules/quotearg (Depends-on): Likewise.
55056         * modules/regex (Depends-on): Likewise.
55057         * modules/relocatable-prog (Depends-on): Likewise.
55058         * modules/same (Depends-on): Likewise.
55059         * modules/signbit (Depends-on): Likewise.
55060         * modules/strcasestr-simple (Depends-on): Likewise.
55061         * modules/unictype/gen-ctype (Depends-on): Likewise.
55062         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
55063         * modules/uniname/uniname (Depends-on): Likewise.
55064         * modules/unistr/u8-cmp (Depends-on): Likewise.
55065
55066 2008-11-02  Bruno Haible  <bruno@clisp.org>
55067
55068         Mark 'memchr' obsolete.
55069         * modules/memchr (Status, Notice): New sections.
55070         * modules/argp (Depends-on): Add memchr.
55071         * modules/base64 (Depends-on): Likewise.
55072         * modules/c-strcasestr (Depends-on): Likewise.
55073         * modules/chdir-long (Depends-on): Likewise.
55074         * modules/fnmatch (Depends-on): Likewise.
55075         * modules/getsubopt (Depends-on): Likewise.
55076         * modules/git-merge-changelog (Depends-on): Likewise.
55077         * modules/glob (Depends-on): Likewise.
55078         * modules/strcasestr-simple (Depends-on): Likewise.
55079         * modules/strnlen (Depends-on): Likewise.
55080
55081 2008-11-02  Bruno Haible  <bruno@clisp.org>
55082
55083         Mark 'atexit' obsolete.
55084         * modules/atexit (Status, Notice): New sections.
55085         * modules/chdir-long (Depends-on): Add atexit.
55086         * modules/wait-process (Depends-on): Likewise.
55087
55088 2008-11-02  Bruno Haible  <bruno@clisp.org>
55089
55090         * gnulib-tool: New option --with-obsolete.
55091         (func_usage): Document it.
55092         (func_modules_transitive_closure): Drop obsolete dependencies if
55093         incobsolete is not true.
55094         (func_import): Read and save the incobsolete variable to the cache.
55095
55096 2008-11-02  Bruno Haible  <bruno@clisp.org>
55097
55098         * modules/TEMPLATE-EXTENDED: New field 'Status'.
55099         * gnulib-tool: New option --extract-status.
55100         (func_usage): Document it.
55101         (sed_extract_prog): Recognize it.
55102         (func_get_status): New function.
55103
55104 2008-10-30  Simon Josefsson  <simon@josefsson.org>
55105
55106         * modules/sockets (License): Change from LGPL to LGPLv2+.
55107
55108 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55109
55110         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
55111
55112 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55113
55114         * MODULES.html.sh (Support for systems lacking POSIX:2001):
55115         Mention times and sys_times.
55116         * modules/sys_times, modules/sys_times-tests: New modules.
55117         * modules/times, modules/times-tests: Likewise
55118         * m4/sys_times_h.m4: New file.
55119         * lib/sys_times.in.h: Likewise
55120         * lib/times.c: Likewise.
55121         * tests/test-sys_times.c: Likewise.
55122         * tests/test-times.c: Likewise.
55123         * doc/posix-headers/sys_times.texi: Update.
55124         * doc/posix-functions/times.texi: Update.
55125
55126 2008-10-28  Jim Meyering  <meyering@redhat.com>
55127
55128         * modules/tempname (Depends-on): Add lstat.
55129
55130         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
55131
55132 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55133
55134         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
55135         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
55136         using idiom used elsewhere in gnulib.
55137
55138 2008-10-27  Jim Meyering  <meyering@redhat.com>
55139
55140         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
55141
55142 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55143
55144         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
55145         TESTS_ENVIRONMENT, for shell scripts that needs to call built
55146         programs.
55147         * tests/test-argp-2.sh: Use $EXEEXT when needed.
55148
55149 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55150
55151         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
55152
55153 2008-10-27  Bruno Haible  <bruno@clisp.org>
55154
55155         * tests/test-lstat.c: Include <stdio.h>.
55156
55157 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55158
55159         * modules/lstat-tests: New module.
55160         * tests/test-lstat.c: New file.
55161
55162 2008-10-26  Jim Meyering  <meyering@redhat.com>
55163
55164         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
55165
55166 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55167             Bruno Haible  <bruno@clisp.org>
55168
55169         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
55170         * modules/configmake (Include): Add a note that the include must come
55171         after all system headers.
55172         * lib/javaversion.c: Include configmake.h after all other includes.
55173
55174 2008-10-26  Bruno Haible  <bruno@clisp.org>
55175
55176         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
55177         HAVE_STRUCT_RANDOM_DATA to 1.
55178         (gl_STDLIB_H): Simplify.
55179
55180 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55181
55182         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
55183         substitute HAVE_STRUCT_RANDOM_DATA.
55184         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
55185         random_data.
55186         * modules/stdlib (Makefile.am): Substitute
55187         HAVE_STRUCT_RANDOM_DATA.
55188
55189 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55190
55191         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
55192         * doc/gnulib-intro.texi (Copyright): Likewise.
55193
55194 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55195
55196         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
55197         findings.
55198
55199 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
55200             Bruno Haible  <bruno@clisp.org>
55201
55202         * lib/unistd.in.h: Include <winsock2.h>.
55203         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
55204         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
55205         Provide dummy declarations.
55206         (gethostname): Override.
55207         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
55208         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
55209         gl_PREREQ_SYS_H_WINSOCK2.
55210         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
55211         * doc/posix-functions/gethostname.texi: More details.
55212
55213 2008-10-25  Bruno Haible  <bruno@clisp.org>
55214
55215         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
55216         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
55217         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
55218
55219         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
55220         here ...
55221         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
55222         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
55223         gl_UNISTD_H_DEFAULTS.
55224
55225 2008-10-25  Eric Blake  <ebb9@byu.net>
55226
55227         signbit: avoid spurious compiler failure
55228         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
55229         declarations inside function.
55230
55231 2008-10-24  Simon Josefsson  <simon@josefsson.org>
55232             Bruno Haible  <bruno@clisp.org>
55233
55234         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
55235         * modules/random_r (Depends-on): Add stdint.
55236
55237 2008-10-24  Bruno Haible  <bruno@clisp.org>
55238
55239         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
55240         Eggert.
55241         * modules/strerror (License): Likewise.
55242
55243 2008-10-24  Jim Meyering  <meyering@redhat.com>
55244
55245         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
55246         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
55247
55248 2008-10-24  Eric Blake  <ebb9@byu.net>
55249
55250         getgroups: fix compilation when getgroups is available
55251         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
55252         but with <config.h> override of getgroups disabled.
55253
55254 2008-10-24  Simon Josefsson  <simon@josefsson.org>
55255
55256         * doc/gnulib.texi (Header files): Add note about C++ problems.
55257         Explained by Bruno Haible <bruno@clisp.org>.
55258
55259 2008-10-23  Bruno Haible  <bruno@clisp.org>
55260
55261         Define a dummy SA_NODEFER macro on Interix.
55262         * lib/signal.in.h (SA_NODEFER): Define fallback.
55263         Reported by Aleksey Cheusov <cheusov@tut.by> via
55264         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
55265
55266 2008-10-23  Bruno Haible  <bruno@clisp.org>
55267
55268         * modules/freadahead (License): Change to LGPLv2+.
55269         Suggested by Simon Josefsson.
55270
55271 2008-10-23  Jim Meyering  <meyering@redhat.com>
55272
55273         random_r: new module
55274         * modules/random_r: New file.
55275         * m4/random_r.m4: New file.
55276         * lib/random_r.c: New file, from glibc.
55277         * modules/random_r-tests: New file.
55278         * tests/test-random_r.c: New file.
55279         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
55280          Declare.
55281         (RAND_MAX): Define.
55282         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
55283         * modules/stdlib: Substitute them, too.
55284         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
55285         * doc/glibc-functions/initstate_r.texi: Mention the new module.
55286         * doc/glibc-functions/random_r.texi: Likewise.
55287         * doc/glibc-functions/setstate_r.texi: Likewise.
55288         * doc/glibc-functions/srandom_r.texi: Likewise.
55289         * config/srclist.txt: Mention it.
55290
55291 2008-10-23  David Lutterkort  <lutter@redhat.com>
55292
55293         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
55294         link requirement
55295
55296 2008-10-23  Jim Meyering  <meyering@redhat.com>
55297
55298         selinux-h: mark parameters of stub functions as intentionally unused
55299         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
55300         * lib/se-context.in.h: Likewise.
55301
55302 2008-10-22  Simon Josefsson  <simon@josefsson.org>
55303
55304         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
55305
55306 2008-10-22  Simon Josefsson  <simon@josefsson.org>
55307
55308         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
55309
55310 2008-10-22  Eric Blake  <ebb9@byu.net>
55311
55312         glthread/thread: avoid compiler warning
55313         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
55314         Add unreachable abort to silence compiler.
55315
55316 2008-10-22  Eric Blake  <ebb9@byu.net>
55317
55318         netdb: also supply struct addrinfo for cygwin 1.5.x
55319         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
55320         older cygwin.
55321         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
55322         cygwin.
55323         * doc/posix-headers/netdb.texi (netdb.h): Document this.
55324
55325 2008-10-22  Bruno Haible  <bruno@clisp.org>
55326
55327         * users.txt: Update entry about pspp.
55328
55329 2008-10-21  Bruno Haible  <bruno@clisp.org>
55330
55331         Simplification.
55332         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
55333         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
55334
55335         Simplification.
55336         * lib/ioctl.c (ioctl): Don't undefine.
55337         * lib/socket.c (socket): Don't undefine.
55338
55339         Remove unused module indicator macros.
55340         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
55341         GNULIB_$1 as a C macro.
55342
55343         * doc/posix-functions/close.texi: Undo last change.
55344         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
55345         Windows platforms.
55346
55347 2008-10-21  Bruno Haible  <bruno@clisp.org>
55348
55349         Add gethostname() declaration to <unistd.h>.
55350         * lib/unistd.in.h (gethostname): New declaration.
55351         * lib/gethostname.c: Include <unistd.h>.
55352         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
55353         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
55354         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
55355         and HAVE_GETHOSTNAME.
55356         * modules/gethostname (Depends-on): Add unistd.
55357         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55358         (Include): Specify <unistd.h>.
55359         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
55360         HAVE_GETHOSTNAME.
55361         * tests/test-gethostname.c: Include <unistd.h> first.
55362
55363 2008-10-21  Bruno Haible  <bruno@clisp.org>
55364
55365         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
55366         * modules/select-tests (Depends-on): Likewise.
55367         Reported by Simon Josefsson.
55368
55369 2008-10-21  Simon Josefsson  <simon@josefsson.org>
55370
55371         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
55372         * lib/accept.c: New file, based on winsock.c.
55373         * lib/bind.c: New file, based on winsock.c.
55374         * lib/connect.c: New file, based on winsock.c.
55375         * lib/getpeername.c: New file, based on winsock.c.
55376         * lib/getsockname.c: New file, based on winsock.c.
55377         * lib/getsockopt.c: New file, based on winsock.c.
55378         * lib/ioctl.c: New file, based on winsock.c.
55379         * lib/listen.c: New file, based on winsock.c.
55380         * lib/recv.c: New file, based on winsock.c.
55381         * lib/recvfrom.c: New file, based on winsock.c.
55382         * lib/send.c: New file, based on winsock.c.
55383         * lib/sendto.c: New file, based on winsock.c.
55384         * lib/setsockopt.c: New file, based on winsock.c.
55385         * lib/shutdown.c: New file, based on winsock.c.
55386         * lib/socket.c: New file, based on winsock.c.
55387         * lib/w32sock.h: New file, based on winsock.c.
55388         * lib/winsock.c: Remove file.
55389         * modules/accept: Likewise.
55390         * modules/bind: Likewise.
55391         * modules/connect: Likewise.
55392         * modules/getpeername: Likewise.
55393         * modules/getsockname: Likewise.
55394         * modules/getsockopt: Likewise.
55395         * modules/ioctl: Likewise.
55396         * modules/listen: Likewise.
55397         * modules/recv: Likewise.
55398         * modules/recvfrom: Likewise.
55399         * modules/send: Likewise.
55400         * modules/sendto: Likewise.
55401         * modules/setsockopt: Likewise.
55402         * modules/shutdown: Likewise.
55403         * modules/socket: Use socket.c instead of winsock.c.
55404         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
55405         * doc/posix-functions/accept.texi: Doc fix.
55406         * doc/posix-functions/bind.texi: Doc fix.
55407         * doc/posix-functions/close.texi: Doc fix.
55408         * doc/posix-functions/connect.texi: Doc fix.
55409         * doc/posix-functions/getpeername.texi: Doc fix.
55410         * doc/posix-functions/getsockname.texi: Doc fix.
55411         * doc/posix-functions/getsockopt.texi: Doc fix.
55412         * doc/posix-functions/ioctl.texi: Doc fix.
55413         * doc/posix-functions/listen.texi: Doc fix.
55414         * doc/posix-functions/recv.texi: Doc fix.
55415         * doc/posix-functions/recvfrom.texi: Doc fix.
55416         * doc/posix-functions/send.texi: Doc fix.
55417         * doc/posix-functions/sendto.texi: Doc fix.
55418         * doc/posix-functions/setsockopt.texi: Doc fix.
55419         * doc/posix-functions/shutdown.texi: Doc fix.
55420         * doc/posix-functions/socket.texi: Doc fix.
55421
55422 2008-10-20  Bruno Haible  <bruno@clisp.org>
55423
55424         Take into account the role of SIGABRT_COMPAT on Windows 2008.
55425         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
55426         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
55427         as an alias for SIGABRT.
55428         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
55429         (sigaction): Map it to SIGABRT.
55430         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
55431
55432 2008-10-20  Bruno Haible  <bruno@clisp.org>
55433
55434         * lib/fts.c: Don't include lstat.h.
55435         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
55436
55437         Move the lstat() declaration to <sys/stat.h>.
55438         * lib/lstat.h: Remove file.
55439         * lib/sys_stat.in.h: Add special invocation convention.
55440         (lstat): New declaration.
55441         * lib/lstat.c (orig_lstat): New function.
55442         (rpl_lstat): Use orig_lstat instead of lstat.
55443         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
55444         AC_C_INLINE. Set REPLACE_LSTAT.
55445         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
55446         and REPLACE_LSTAT.
55447         * modules/lstat (Files): Remove lib/lstat.h.
55448         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
55449         (Include): Specify <sys/stat.h> instead of lstat.h.
55450         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
55451         REPLACE_LSTAT.
55452         * NEWS: Mention the change.
55453
55454 2008-10-20  Bruno Haible  <bruno@clisp.org>
55455
55456         * modules/posix_spawn-tests: New file.
55457         * tests/test-posix_spawn3.c: New file.
55458
55459 2008-10-20  Bruno Haible  <bruno@clisp.org>
55460
55461         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
55462         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
55463         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
55464         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
55465         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
55466
55467 2008-10-20  Bruno Haible  <bruno@clisp.org>
55468
55469         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
55470         of posix_spawn on AIX 5.3.
55471
55472 2008-10-20  Bruno Haible  <bruno@clisp.org>
55473
55474         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
55475
55476 2008-10-20  Bruno Haible  <bruno@clisp.org>
55477
55478         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
55479         of AC_LANG_PROGRAM.
55480
55481 2008-10-20  Simon Josefsson  <simon@josefsson.org>
55482
55483         * lib/netdb.in.h: Don't define GNU specific constants until they
55484         are supported or needed.  Reported by Bruno Haible
55485         <bruno@clisp.org>.
55486
55487 2008-10-20  Simon Josefsson  <simon@josefsson.org>
55488
55489         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
55490
55491 2008-10-20  Simon Josefsson  <simon@josefsson.org>
55492
55493         * lib/getaddrinfo.h: Remove file.
55494         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
55495         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
55496         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
55497         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
55498         * modules/netdb: Substitute GNULIB_GETADDRINFO.
55499         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
55500         * tests/test-getaddrinfo.c: Likewise.
55501         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
55502         * NEWS: Mention change.
55503
55504 2008-10-19  Bruno Haible  <bruno@clisp.org>
55505
55506         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
55507
55508 2008-10-19  Bruno Haible  <bruno@clisp.org>
55509
55510         * lib/wait-process.c: Include simply <sys/wait.h>.
55511         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
55512         WIFSTOPPED): Remove fallback definitions.
55513         * modules/wait-process (Depends-on): Add sys_wait.
55514
55515         New module 'sys_wait'.
55516         * modules/sys_wait: New file.
55517         * lib/sys_wait.in.h: New file, partially copied from
55518         lib/wait-process.c.
55519         * m4/sys_wait_h.m4: New file.
55520         * doc/posix-headers/sys_wait.texi: Mention the new module.
55521
55522 2008-10-19  Bruno Haible  <bruno@clisp.org>
55523
55524         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
55525
55526 2008-10-19  Bruno Haible  <bruno@clisp.org>
55527
55528         Assume that waitpid() fills an 'int' status, not a 'union wait'.
55529         * lib/wait-process.c (WAIT_T): Remove type.
55530         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
55531         (wait_subprocess): Update.
55532
55533 2008-10-19  Bruno Haible  <bruno@clisp.org>
55534
55535         New module 'atoll'.
55536         * modules/atoll: New file.
55537         * lib/stdlib.in.h (atoll): New declaration.
55538         * lib/atoll.c: New file, from glibc with modifications.
55539         * m4/atoll.m4: New file.
55540         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
55541         HAVE_ATOLL.
55542         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
55543         * doc/posix-functions/atoll.texi: Mention the new module.
55544
55545 2008-10-19  Bruno Haible  <bruno@clisp.org>
55546
55547         Add strtoull() declaration to <stdlib.h>.
55548         * lib/stdlib.in.h (strtoull): New declaration.
55549         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
55550         Set HAVE_STRTOULL.
55551         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
55552         HAVE_STRTOULL.
55553         * modules/strtoull (Depends-on): Add stdlib.
55554         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55555         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
55556         HAVE_STRTOULL.
55557
55558 2008-10-19  Bruno Haible  <bruno@clisp.org>
55559
55560         Add strtoll() declaration to <stdlib.h>.
55561         * lib/stdlib.in.h (strtoll): New declaration.
55562         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
55563         Set HAVE_STRTOLL.
55564         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
55565         HAVE_STRTOLL.
55566         * modules/strtoll (Depends-on): Add stdlib.
55567         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55568         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
55569
55570 2008-10-19  Bruno Haible  <bruno@clisp.org>
55571
55572         * modules/bcopy (Depends-on): Add strings.
55573         (Include): Specify <strings.h>.
55574
55575 2008-10-19  Bruno Haible  <bruno@clisp.org>
55576
55577         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
55578
55579 2008-10-19  Bruno Haible  <bruno@clisp.org>
55580
55581         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
55582         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
55583         mingw.
55584
55585 2008-10-19  Bruno Haible  <bruno@clisp.org>
55586
55587         * lib/atanl.c: Don't include isnanl.h.
55588         * lib/cosl.c: Likewise.
55589         * lib/ldexpl.c: Likewise.
55590         * lib/logl.c: Likewise.
55591         * lib/sinl.c: Likewise.
55592         * lib/sqrtl.c: Likewise.
55593         * lib/tanl.c: Likewise.
55594
55595         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
55596         * lib/isnanf.h: Remove file.
55597         * lib/isnand.h: Remove file.
55598         * lib/isnanl.h: Remove file.
55599         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
55600         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
55601         macros.
55602         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
55603         HAVE_ISNANF, don't define it as a C macro.
55604         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
55605         HAVE_ISNAND, don't define it as a C macro.
55606         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
55607         HAVE_ISNANL, don't define it as a C macro.
55608         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
55609         HAVE_ISNAN[FDL].
55610         * modules/isnanf (Files): Remove lib/isnanf.h.
55611         (Depends-on): Add math.
55612         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
55613         (Include): Specify <math.h> instead of isnanf.h.
55614         * modules/isnand (Files): Remove lib/isnand.h.
55615         (Depends-on): Add math.
55616         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
55617         (Include): Specify <math.h> instead of isnand.h.
55618         * modules/isnanl (Files): Remove lib/isnanl.h.
55619         (Depends-on): Add math.
55620         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
55621         (Include): Specify <math.h> instead of isnanl.h.
55622         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
55623         HAVE_ISNAN[FDL].
55624         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
55625         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
55626         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
55627         * NEWS: Mention the change.
55628
55629 2008-10-18  Bruno Haible  <bruno@clisp.org>
55630
55631         Add getusershell(), setusershell(), endusershell() declarations to
55632         <unistd.h>.
55633         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
55634         declarations.
55635         * lib/getusershell.c: Include unistd.h.
55636         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
55637         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
55638         HAVE_GETUSERSHELL.
55639         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
55640         and HAVE_GETUSERSHELL.
55641         * modules/getusershell (Depends-on): Add unistd, extensions.
55642         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55643         (Include): Specify <unistd.h>.
55644         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
55645         HAVE_GETUSERSHELL.
55646
55647 2008-10-18  Bruno Haible  <bruno@clisp.org>
55648
55649         Add a getloadavg() declaration to <stdlib.h>.
55650         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
55651         getloadavg declaration.
55652         (getloadavg): New declaration.
55653         * lib/getloadavg.c: Include <stdlib.h> first.
55654         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
55655         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
55656         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
55657         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
55658         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
55659         * modules/getloadavg (Depends-on): Add stdlib, extensions.
55660         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55661         (Include): Specify <stdlib.h>.
55662         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
55663         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
55664
55665 2008-10-18  Bruno Haible  <bruno@clisp.org>
55666
55667         * lib/dirchownmod.c: Don't include lchmod.h.
55668
55669         Move the lchmod() declaration to <sys/stat.h>.
55670         * lib/lchmod.h: Remove file.
55671         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
55672         (lchmod): New declaration, moved here from lib/lchown.h.
55673         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
55674         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
55675         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
55676         and HAVE_LCHMOD.
55677         * modules/lchmod (Files): Remove lib/lchmod.h.
55678         (Depends-on): Add sys_stat, extensions.
55679         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
55680         (Include): Specify <sys/stat.h> instead of lchmod.h.
55681         * modules/sys_stat (Depends-on): Add link-warning.
55682         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
55683         definition of GL_LINK_WARNING.
55684         * NEWS: Mention the change.
55685
55686 2008-10-18  Bruno Haible  <bruno@clisp.org>
55687
55688         * lib/fchdir.c: Don't include dirfd.h.
55689         * lib/fts.c: Likewise.
55690         * lib/getcwd.c: Likewise.
55691         * lib/glob.c: Likewise.
55692
55693         Move the dirfd() declaration to <dirent.h>.
55694         * lib/dirfd.h: Remove file.
55695         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
55696         (dirfd): New declaration.
55697         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
55698         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
55699         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
55700         HAVE_DECL_DIRFD.
55701         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
55702         HAVE_DECL_DIRFD.
55703         * modules/dirfd (Files): Remove lib/dirfd.h.
55704         (Depends-on): Add dirent, extensions.
55705         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
55706         (Include): Specify <dirent.h> instead of dirfd.h.
55707         * modules/dirent (Depends-on): Add link-warning.
55708         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
55709         definition of GL_LINK_WARNING.
55710         * NEWS: Mention the change.
55711
55712 2008-10-18  Bruno Haible  <bruno@clisp.org>
55713
55714         Move the euidaccess() declaration to <unistd.h>.
55715         * lib/euidaccess.h: Remove file.
55716         * lib/unistd.in.h (euidaccess): New declaration.
55717         * lib/euidaccess.c: Don't include euidaccess.h.
55718         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
55719         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
55720         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
55721         and HAVE_EUIDACCESS.
55722         * modules/euidaccess (Files): Remove lib/euidaccess.h.
55723         (Depends-on): Add unistd.
55724         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55725         (Include): Specify <unistd.h> instead of euidaccess.h.
55726         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
55727         HAVE_EUIDACCESS.
55728         * NEWS: Mention the change.
55729
55730 2008-10-18  Bruno Haible  <bruno@clisp.org>
55731
55732         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
55733
55734         Move the getdomainname() declaration to <unistd.h>.
55735         * lib/getdomainname.h: Remove file.
55736         * lib/unistd.in.h (getdomainname): New declaration.
55737         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
55738         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
55739         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
55740         HAVE_GETDOMAINNAME.
55741         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55742         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
55743         * modules/getdomainname (Files): Remove lib/getdomainname.h.
55744         (Depends-on): Add unistd, extensions.
55745         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55746         (Includes): Specify <unistd.h> instead of getdomainname.h.
55747         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
55748         HAVE_GETDOMAINNAME.
55749         * NEWS: Mention the change.
55750
55751 2008-10-18  Bruno Haible  <bruno@clisp.org>
55752
55753         * modules/dirent: New file.
55754         * m4/dirent_h.m4: New file.
55755         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
55756         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
55757         * modules/fchdir (Files): Remove lib/dirent.in.h.
55758         (Depends-on): Add dirent.
55759         (Makefile.am): Move rules to modules/dirent.
55760         * doc/posix-headers/dirent.texi: Mention the new module.
55761
55762 2008-10-18  Bruno Haible  <bruno@clisp.org>
55763
55764         Avoid -Wunused-parameter warnings in public gnulib header files.
55765         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
55766         macro.
55767         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
55768
55769 2008-10-18  Bruno Haible  <bruno@clisp.org>
55770
55771         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
55772         * doc/glibc-functions/error.texi: Mention the module 'error'.
55773         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
55774         * doc/glibc-functions/getdomainname.texi: Mention the module
55775         'getdomainname'.
55776         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
55777         * doc/glibc-functions/getpagesize.texi: Mention the module
55778         'getpagesize'.
55779         * doc/glibc-functions/getusershell.texi: Mention the module
55780         'getusershell'.
55781         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
55782         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
55783         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
55784         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
55785         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
55786         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
55787         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
55788         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
55789         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
55790         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
55791         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
55792         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
55793         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
55794         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
55795
55796 2008-10-17  Bruno Haible  <bruno@clisp.org>
55797
55798         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
55799         HP-UX and IRIX, use -0.0L.
55800         * tests/test-ceill.c (minus_zero): Likewise.
55801         * tests/test-floorl.c (minus_zero): Likewise.
55802         * tests/test-frexpl.c (minus_zero): Likewise.
55803         * tests/test-isnan.c (minus_zerol): Likewise.
55804         * tests/test-isnanl.h (minus_zero): Likewise.
55805         * tests/test-ldexpl.c (minus_zero): Likewise.
55806         * tests/test-roundl.c (minus_zero): Likewise.
55807         * tests/test-signbit.c (minus_zerol): Likewise.
55808         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
55809         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
55810         * tests/test-truncl.c (minus_zero): Likewise.
55811         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
55812         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
55813         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
55814         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
55815
55816 2008-10-17  Bruno Haible  <bruno@clisp.org>
55817
55818         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
55819         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
55820         that it gets activated only for gcc >= 3.0.
55821         * lib/dirent.in.h: Likewise.
55822         * lib/errno.in.h: Likewise.
55823         * lib/fcntl.in.h: Likewise.
55824         * lib/float.in.h: Likewise.
55825         * lib/iconv.in.h: Likewise.
55826         * lib/inttypes.in.h: Likewise.
55827         * lib/locale.in.h: Likewise.
55828         * lib/math.in.h: Likewise.
55829         * lib/netdb.in.h: Likewise.
55830         * lib/netinet_in.in.h: Likewise.
55831         * lib/search.in.h: Likewise.
55832         * lib/signal.in.h: Likewise.
55833         * lib/spawn.in.h: Likewise.
55834         * lib/stdarg.in.h: Likewise.
55835         * lib/stdint.in.h: Likewise.
55836         * lib/stdio.in.h: Likewise.
55837         * lib/stdlib.in.h: Likewise.
55838         * lib/string.in.h: Likewise.
55839         * lib/strings.in.h: Likewise.
55840         * lib/sys_file.in.h: Likewise.
55841         * lib/sys_ioctl.in.h: Likewise.
55842         * lib/sys_select.in.h: Likewise.
55843         * lib/sys_socket.in.h: Likewise.
55844         * lib/sys_stat.in.h: Likewise.
55845         * lib/sys_time.in.h: Likewise.
55846         * lib/sysexits.in.h: Likewise.
55847         * lib/time.in.h: Likewise.
55848         * lib/unistd.in.h: Likewise.
55849         * lib/wchar.in.h: Likewise.
55850         * lib/wctype.in.h: Likewise.
55851         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55852
55853 2008-10-17  Jim Meyering  <meyering@redhat.com>
55854
55855         ignore-value: don't depend on inline module
55856         * modules/ignore-value (Depends-on): Remove 'inline'.
55857         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
55858         Suggestion from Bruno Haible.
55859
55860 2008-10-17  Bruno Haible  <bruno@clisp.org>
55861
55862         New implementation of condition variables for Win32.
55863         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
55864         (gl_linked_waitqueue_t): New type.
55865         (gl_cond_t): Use it.
55866         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
55867         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
55868         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
55869         (glthread_cond_init_func, glthread_cond_wait_func,
55870         glthread_cond_timedwait_func, glthread_cond_signal_func,
55871         glthread_cond_broadcast_func, glthread_cond_destroy_func):
55872         Reimplemented on the basis of gl_linked_waitqueue_t.
55873         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
55874         gl_waitqueue_t.
55875         (gl_rwlock_t): Update.
55876         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
55877
55878 2008-10-17  Simon Josefsson  <simon@josefsson.org>
55879
55880         * modules/recvfrom (Depends-on): Add dependency on getpeername.
55881         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
55882
55883 2008-10-17  Jim Meyering  <meyering@redhat.com>
55884
55885         ignore-value: new module
55886         * modules/ignore-value: New file.
55887         * lib/ignore-value.h: New file.
55888         * MODULES.html.sh (Compiler warning management): New section,
55889         just for this module.  More to come.
55890
55891 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55892
55893         open-safer.c: avoid 'signed and unsigned in conditional...' warning
55894         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
55895         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
55896
55897 2008-10-16  Jim Meyering  <meyering@redhat.com>
55898
55899         openat-die.c: avoid 'no previous prototype' warning
55900         * lib/openat-die.c: Include "openat.h".
55901         Reported by Reuben Thomas <rrt@sc3d.org>.
55902
55903 2008-10-16  Simon Josefsson  <simon@josefsson.org>
55904
55905         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
55906         * lib/netdb.in.h: Fix typo.
55907         Reported by Bruno Haible  <bruno@clisp.org>
55908
55909         * lib/netdb.in.h: Include sys/socket.h for platforms without
55910         netdb.h, to get structures like hostent on MinGW.
55911         * modules/netdb (Depends-on): Add sys_socket.
55912
55913 2008-10-15  Simon Josefsson  <simon@josefsson.org>
55914
55915         * modules/netdb, modules/netdb-tests: New file.
55916         * m4/netdb_h.m4: New file.
55917         * lib/netdb.in.h: Add, currently just an empty file pending
55918         definitions.
55919         * tests/test-netdb.c: New file.
55920         * doc/posix-headers/netdb.texi: Mention that we replace it if
55921         needed.
55922         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55923         netdb.
55924
55925 2008-10-15  Simon Josefsson  <simon@josefsson.org>
55926
55927         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
55928         with code.
55929
55930 2008-10-13  Bruno Haible  <bruno@clisp.org>
55931
55932         * lib/glthread/cond.c (glthread_cond_wait_func,
55933         glthread_cond_timedwait_func): Add a comment.
55934
55935 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55936
55937         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
55938         * tests/test-select.c: Likewise,
55939
55940 2008-10-13  Bruno Haible  <bruno@clisp.org>
55941
55942         * lib/glthread/cond.c (glthread_cond_wait_func,
55943         glthread_cond_timedwait_func): Fix variable name.
55944         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
55945
55946 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
55947
55948         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
55949         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
55950         struct sockaddr.sa_len.
55951         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
55952
55953 2008-10-13  Simon Josefsson  <simon@josefsson.org>
55954
55955         * build-aux/pmccabe2html: Add css and css_url parameters.
55956
55957 2008-10-12  Bruno Haible  <bruno@clisp.org>
55958
55959         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
55960         calling aclx_get.
55961         Reported by Rainer Tammer <tammer@tammer.net>.
55962
55963 2008-10-12  Bruno Haible  <bruno@clisp.org>
55964
55965         Use msvcrt aware primitives for creation/termination of Win32 threads.
55966         * lib/glthread/thread.c: Include <process.h>.
55967         (glthread_create_func): Use _beginthreadex instead of CreateThread.
55968         (wrapper_func): Update signature.
55969         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
55970
55971 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55972             Bruno Haible  <bruno@clisp.org>
55973
55974         Provide a Win32 implementation of the 'cond' module.
55975         * lib/glthread/cond.h [USE_WIN32]: New implementation.
55976         * lib/glthread/cond.c (glthread_cond_init_func,
55977         glthread_cond_wait_func, glthread_cond_timedwait_func,
55978         glthread_cond_signal_func, glthread_cond_broadcast_func,
55979         glthread_cond_destroy_func) [USE_WIN32]: New functions.
55980         * modules/cond (Dependencies): Add gettimeofday.
55981
55982 2008-10-11  Bruno Haible  <bruno@clisp.org>
55983
55984         Make sleep work on older versions of mingw.
55985         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
55986         only whether it exists.
55987         * doc/posix-functions/sleep.texi: Mention the problem with older
55988         versions of mingw.
55989
55990 2008-10-11  Bruno Haible  <bruno@clisp.org>
55991
55992         New module 'shutdown'.
55993         * modules/shutdown: New file.
55994         * lib/sys_socket.in.h (shutdown): New declaration.
55995         * lib/winsock.c (shutdown): New function.
55996         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
55997         GNULIB_SHUTDOWN.
55998         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
55999         * doc/posix-functions/shutdown.texi: Document the new module.
56000
56001 2008-10-11  Jim Meyering  <meyering@redhat.com>
56002
56003         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
56004
56005 2008-10-11  Bruno Haible  <bruno@clisp.org>
56006
56007         New module 'fclose'.
56008         * modules/fclose: New file.
56009         * lib/stdio.in.h (fclose): New declaration.
56010         * lib/fclose.c: New file.
56011         * m4/fclose.m4: New file.
56012         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
56013         REPLACE_FCLOSE.
56014         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
56015         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
56016         REPLACE_FCLOSE.
56017         * modules/close (Depends-on): fclose.
56018         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
56019
56020 2008-10-11  Bruno Haible  <bruno@clisp.org>
56021
56022         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
56023         set errno and don't call _close.
56024
56025 2008-10-10  Bruno Haible  <bruno@clisp.org>
56026
56027         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
56028         ACL, not afterwards. Fixes test failure on Cygwin.
56029
56030 2008-10-09  Ben Pfaff  <blp@gnu.org>
56031
56032         * build-aux/announce-gen: Fix gnulib version related part of usage
56033         message.  Die with a useful error message if no tarballs are
56034         found.
56035
56036 2008-10-10  Jim Meyering  <meyering@redhat.com>
56037
56038         bootstrap: use git's --depth=N option only if it's supported
56039         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
56040         recognize the --depth option.  Reported by Pádraig Brady.
56041
56042 2008-10-09  Bruno Haible  <bruno@clisp.org>
56043
56044         New module 'ioctl'.
56045         * modules/ioctl: New file.
56046         * lib/sys_socket.in.h (ioctl): Remove declaration.
56047         * lib/winsock.c: Include <sys/ioctl.h>.
56048         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
56049         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
56050         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
56051         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
56052         * doc/posix-functions/ioctl.texi: Mention the new module.
56053
56054 2008-10-09  Bruno Haible  <bruno@clisp.org>
56055
56056         New module 'sys_ioctl'.
56057         * lib/sys_ioctl.in.h: New file.
56058         * m4/sys_ioctl_h.m4: New file.
56059         * modules/sys_ioctl: New file.
56060         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
56061
56062 2008-10-09  Bruno Haible  <bruno@clisp.org>
56063
56064         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
56065         * lib/winsock.c: Include <stdarg.h>.
56066         (rpl_ioctl): Change to second argument 'int' and then varargs.
56067
56068 2008-10-09  Bruno Haible  <bruno@clisp.org>
56069
56070         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
56071         when the sys_socket module is present and the system has <winsock2.h>.
56072
56073 2008-10-09  Bruno Haible  <bruno@clisp.org>
56074
56075         * doc/posix-functions/close.texi: Mention module 'close' instead of
56076         module 'sys_socket'.
56077
56078 2008-10-09  Bruno Haible  <bruno@clisp.org>
56079
56080         * doc/glibc-headers/sys_ioctl.texi: New file.
56081         * doc/gnulib.texi: Include it.
56082
56083 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56084             Bruno Haible  <bruno@clisp.org>
56085
56086         Combine the two replacements of 'close'.
56087         * lib/sys_socket.in.h (close): Define to a reminder to include
56088         <unistd.h>.
56089         (_gl_close_fd_maybe_socket): New declaration.
56090         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
56091         * lib/winsock.c (close): Remove undefinition.
56092         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
56093         needed for the gnulib module 'close'.
56094         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
56095         define to an error symbol or to a warning, if suitable.
56096         * lib/close.c: Include <sys/socket.h>.
56097         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
56098         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
56099         UNISTD_H_HAVE_WINSOCK2_H.
56100         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
56101         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56102         UNISTD_H_HAVE_WINSOCK2_H.
56103         * modules/sys_socket (Files): Add m4/unistd_h.m4.
56104         (configure.ac): Set a module indicator.
56105         (Makefile.am): Substitute GNULIB_CLOSE.
56106         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
56107         * modules/poll-tests (Depends-on): Add close.
56108         * modules/select-tests (Depends-on): Likewise.
56109
56110 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56111             Bruno Haible  <bruno@clisp.org>
56112
56113         New module 'close'.
56114         * modules/close: New file.
56115         * lib/unistd.in.h (close): Move declaration out of the
56116         FCHDIR_REPLACEMENT scope.
56117         (_gl_unregister_fd): New declaration.
56118         * lib/close.c: New file.
56119         * lib/fchdir.c (rpl_close): Remove function.
56120         * m4/close.m4: New file.
56121         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
56122         close.
56123         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
56124         REPLACE_CLOSE.
56125         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
56126         REPLACE_CLOSE.
56127         * modules/fchdir (Depends-on): Add close.
56128
56129 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56130             Bruno Haible  <bruno@clisp.org>
56131
56132         * lib/fcntl.in.h (open): Simplify conditionals.
56133         (_gl_register_fd): New declaration.
56134         * lib/fchdir.c (rpl_open): Remove function.
56135         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
56136         also.
56137         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
56138         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
56139         open.
56140
56141 2008-10-09  Jim Meyering  <meyering@redhat.com>
56142
56143         GNUmakefile: use the more name-space-friendly "_version"
56144         * top/GNUmakefile (_dummy): Update.
56145         (_version): Rename from "version".
56146
56147 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56148             Bruno Haible  <bruno@clisp.org>
56149
56150         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
56151         rpl_close.
56152         (_gl_register_fd): New function, extracted from rpl_open.
56153         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
56154         (rpl_open, rpl_opendir): Use _gl_register_fd.
56155
56156 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56157
56158         Fix organization of 'open' replacement.
56159         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
56160         (gl_FUNC_OPEN): Use it.
56161         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
56162
56163 2008-10-08  Bruno Haible  <bruno@clisp.org>
56164
56165         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
56166
56167 2008-10-08  Simon Josefsson  <simon@josefsson.org>
56168
56169         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
56170         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
56171         listen).
56172
56173 2008-10-08  Eric Blake  <ebb9@byu.net>
56174
56175         GNUmakefile: add 'make version' target
56176         * top/GNUmakefile (_curr-ver): Split version update rules...
56177         (version): ...into a target.
56178
56179 2008-10-07  Bruno Haible  <bruno@clisp.org>
56180
56181         Use a more portable replacement expression for -0.0L.
56182         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
56183         instead of -0.0L. Fix m4 quotation.
56184
56185         * tests/test-signbit.c: Include <float.h>.
56186         (minus_zero): New variable.
56187         (test_signbitl): Use minus_zero instead of -zero.
56188         * modules/signbit-tests (Depends-on): Add float.
56189
56190         * tests/test-ceill.c: Include <float.h>.
56191         (zero): Remove variable.
56192         (minus_zero): New variable.
56193         (main): Use minus_zero instead of -zero.
56194         * modules/ceill-tests (Depends-on): Add float.
56195
56196         * tests/test-floorl.c: Include <float.h>.
56197         (zero): Remove variable.
56198         (minus_zero): New variable.
56199         (main): Use minus_zero instead of -zero.
56200         * modules/floorl-tests (Depends-on): Add float.
56201
56202         * tests/test-roundl.c: Include <float.h>.
56203         (zero): Remove variable.
56204         (minus_zero): New variable.
56205         (main): Use minus_zero instead of -zero.
56206         * modules/roundl-tests (Depends-on): Add float.
56207
56208         * tests/test-truncl.c: Include <float.h>.
56209         (zero): Remove variable.
56210         (minus_zero): New variable.
56211         (main): Use minus_zero instead of -zero.
56212         * modules/truncl-tests (Depends-on): Add float.
56213
56214         * tests/test-frexpl.c (zero): Remove variable.
56215         (minus_zero): New variable.
56216         (main): Use minus_zero instead of -zero.
56217         * modules/frexpl-tests (Depends-on): Add float.
56218
56219         * tests/test-isnan.c (zerol): Remove variable.
56220         (minus_zerol): New variable.
56221         (test_long_double): Use minus_zerol instead of -zerol.
56222         * modules/isnan-tests (Depends-on): Add float.
56223
56224         * tests/test-isnanl.h (zero): Remove variable.
56225         (minus_zero): New variable.
56226         (main): Use minus_zero instead of -zero.
56227         * modules/isnanl-nolibm-tests (Depends-on): Add float.
56228         * modules/isnanl-tests (Depends-on): Add float.
56229
56230         * tests/test-ldexpl.c (zero): Remove variable.
56231         (minus_zero): New variable.
56232         (main): Use minus_zero instead of -zero.
56233         * modules/ldexpl-tests (Depends-on): Add float.
56234
56235         * tests/test-snprintf-posix.h (zerol): Remove variable.
56236         (minus_zerol): New variable.
56237         (test_function): Use minus_zerol instead of -zerol.
56238         * modules/snprintf-posix-tests (Depends-on): Add float.
56239         * modules/vsnprintf-posix-tests (Depends-on): Add float.
56240
56241         * tests/test-sprintf-posix.h (zerol): Remove variable.
56242         (minus_zerol): New variable.
56243         (test_function): Use minus_zerol instead of -zerol.
56244         * modules/sprintf-posix-tests (Depends-on): Add float.
56245         * modules/vsprintf-posix-tests (Depends-on): Add float.
56246
56247         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
56248         (minus_zerol): New variable.
56249         (test_function): Use minus_zerol instead of -zerol.
56250         * modules/vasnprintf-posix-tests (Depends-on): Add float.
56251
56252         * tests/test-vasprintf-posix.c (zerol): Remove variable.
56253         (minus_zerol): New variable.
56254         (test_function): Use minus_zerol instead of -zerol.
56255         * modules/vasprintf-posix-tests (Depends-on): Add float.
56256
56257 2008-10-07  Simon Josefsson  <simon@josefsson.org>
56258
56259         * MODULES.html.sh (Support for building documentation): Mention
56260         pmccabe2html.  Sort entries.
56261
56262         Add pmccabe2html module, from gnupdf.
56263         * build-aux/pmccabe.css: New file.
56264         * build-aux/pmccabe2html: New file.
56265         * m4/pmccabe2html.m4: New file.
56266         * modules/pmccabe2html: New file.
56267
56268 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
56269
56270         flock: new module
56271         * MODULES.html.sh: Add to list of modules.
56272         * lib/flock.c: flock implementation for Windows and Unix systems
56273         which have fcntl.
56274         * doc/glibc-functions/flock.texi: Update documentation.
56275         * lib/sys_file.in.h: <sys/file.h> header file.
56276         * m4/flock.m4: M4 macros.
56277         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
56278         * modules/flock: flock module.
56279         * modules/flock-tests: flock tests module.
56280         * modules/sys_file: sys/file.h module.
56281         * tests/test-flock.c: test suite for flock.
56282
56283 2008-10-06  Jim Meyering  <meyering@redhat.com>
56284
56285         bootstrap: check for LT_INIT more portably still ;-)
56286         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
56287         Spotted by Bruno Haible.
56288
56289 2008-10-06  Eric Blake  <ebb9@byu.net>
56290
56291         test-signbit: avoid tripping Irix cc bug on -0.0L
56292         * tests/test-signbit.c (minus_zerol): Delete, and replace with
56293         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
56294         entire testsuite consistent and avoids an Irix 6.2 bug.
56295
56296 2008-10-05  Bruno Haible  <bruno@clisp.org>
56297             Jim Meyering  <jim@meyering.net>
56298
56299         Add an option for ignoring EPIPE during close_stdout.
56300         * lib/closeout.h: Include <stdbool.h>.
56301         (close_stdout_set_ignore_EPIPE): New declaration.
56302         * lib/closeout.c: Include <stdbool.h>.
56303         (ignore_EPIPE): New variable.
56304         (close_stdout_set_ignore_EPIPE): New function.
56305         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
56306         * lib/close-stream.c (close_stream): Mention the possible EPIPE
56307         failure.
56308         * modules/closeout (Depends-on): Add stdbool.
56309
56310 2008-10-05  Bruno Haible  <bruno@clisp.org>
56311
56312         * modules/accept: New file.
56313         * modules/bind: New file.
56314         * modules/connect: New file.
56315         * modules/getpeername: New file.
56316         * modules/getsockname: New file.
56317         * modules/getsockopt: New file.
56318         * modules/listen: New file.
56319         * modules/recv: New file.
56320         * modules/recvfrom: New file.
56321         * modules/send: New file.
56322         * modules/sendto: New file.
56323         * modules/setsockopt: New file.
56324         * modules/socket: New file.
56325         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
56326         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
56327         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
56328         the particular module is requested. Add a link warning when the
56329         particular module is not requested.
56330         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
56331         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
56332         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
56333         the particular module is requested.
56334         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
56335         gl_SYS_SOCKET_H_DEFAULTS): New macros.
56336         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
56337         * modules/sys_socket (Depends-on): Add link-warning.
56338         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
56339         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
56340         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
56341         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
56342         GL_LINK_WARNING.
56343         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
56344         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
56345         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
56346         * doc/posix-functions/getpeername.texi: Mention the new module
56347         'getpeername'.
56348         * doc/posix-functions/getsockname.texi: Mention the new module
56349         'getsockname'.
56350         * doc/posix-functions/getsockopt.texi: Mention the new module
56351         'getsockopt'.
56352         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
56353         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
56354         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
56355         * doc/posix-functions/send.texi: Mention the new module 'send'.
56356         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
56357         * doc/posix-functions/setsockopt.texi: Mention the new module
56358         'setsockopt'.
56359         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
56360         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
56361         listen, connect, accept.
56362         * modules/select-tests (Depends-on): Likewise.
56363
56364 2008-10-05  Bruno Haible  <bruno@clisp.org>
56365
56366         * lib/winsock.c (strerror): Remove unused #undef.
56367         (rpl_close): Remove unused local variable.
56368
56369         * modules/sys_socket (Depends-on); Add errno.
56370
56371 2008-10-05  Bruno Haible  <bruno@clisp.org>
56372
56373         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
56374         (select): Add a link warning when the 'select' module is not used.
56375         * modules/sys_select (Depends-on): Add link-warning.
56376         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
56377         Suggested by Paolo Bonzini.
56378
56379 2008-10-05  Jim Meyering  <meyering@redhat.com>
56380
56381         bootstrap: check for LT_INIT more portably
56382         * build-aux/bootstrap: Avoid using grep -E, since it's not
56383         portable enough.  Suggestion from Bruno Haible.
56384
56385 2008-10-05  Bruno Haible  <bruno@clisp.org>
56386
56387         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
56388         as being fixed by gnulib.
56389
56390 2008-10-05  Bruno Haible  <bruno@clisp.org>
56391
56392         * modules/select-tests: New file, mostly copied from
56393         modules/sys_select-tests.
56394         * tests/test-select.c: New file, mostly copied from
56395         tests/test-sys_select.c.
56396         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
56397         * modules/sys_select-tests (Depends-on): Remove all dependencies.
56398         (Makefile.am): Remove test_sys_select_LDADD.
56399
56400         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
56401         to an undefined symbol, for an error message.
56402         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
56403         (gl_SYS_SELECT_H_DEFAULTS): New macro.
56404         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
56405         winsock-select.c here.
56406         * modules/sys_select (Files): Remove lib/winsock-select.c.
56407         (Depends-on): Remove alloca.
56408         (Makefile.am): Substitute GNULIB_SELECT.
56409         * modules/select: New file.
56410         * doc/posix-functions/select.texi: Update.
56411
56412 2008-10-05  Bruno Haible  <bruno@clisp.org>
56413
56414         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
56415         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
56416         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
56417         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
56418         getdtablesize.
56419         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
56420         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
56421
56422 2008-10-05  Bruno Haible  <bruno@clisp.org>
56423
56424         * modules/getdtablesize-tests: New file.
56425         * tests/test-getdtablesize.c: New file.
56426
56427         New module 'getdtablesize'.
56428         * lib/unistd.in.h (getdtablesize): New declaration.
56429         * lib/getdtablesize.c: New file.
56430         * m4/getdtablesize.m4: New file.
56431         * modules/getdtablesize: New file.
56432         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56433         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
56434         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
56435         HAVE_GETDTABLESIZE.
56436         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
56437
56438 2008-10-05  Bruno Haible  <bruno@clisp.org>
56439
56440         * modules/sched (Makefile.am): Fix typo.
56441         Reported by Simon Josefsson.
56442
56443 2008-10-05  Jim Meyering  <meyering@redhat.com>
56444
56445         bootstrap: check for LT_INIT, too
56446         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
56447         are deprecated.  Suggestion from Ralf Wildenhues.
56448
56449 2008-10-05  Bruno Haible  <bruno@clisp.org>
56450
56451         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
56452         overriding them by ours.
56453         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
56454
56455 2008-10-05  Jim Meyering  <meyering@redhat.com>
56456
56457         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
56458         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
56459         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
56460
56461 2008-10-04  Bruno Haible  <bruno@clisp.org>
56462
56463         * modules/dup2 (License): Change to LGPLv2+.
56464         * modules/sleep (License): Likewise.
56465         * modules/perror (License): Likewise.
56466         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
56467         Blake.
56468         * modules/signal (License): Likewise.
56469         * modules/sigprocmask (License): Likewise.
56470         * modules/raise (License): Change to LGPLv2+, with approval by Jim
56471         Meyering.
56472
56473 2008-10-04  Bruno Haible  <bruno@clisp.org>
56474
56475         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
56476         Reported by Rainer Tammer <tammer@tammer.net>.
56477
56478 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
56479             Bruno Haible  <bruno@clisp.org>
56480
56481         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
56482         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
56483         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
56484
56485 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
56486
56487         filevercmp: new module
56488         * lib/filevercmp.h: New function filevercmp comparing version strings.
56489         * lib/filevercmp.c: Implementation of filevercmp function.
56490         * modules/filevercmp: Module metadata.
56491         * tests/test-filevercmp.c: Unit test for new module.
56492         * modules/filevercmp-tests: Unit test metadata.
56493         * MODULES.html.sh: Add filevercmp module.
56494
56495 2008-10-03  Bruno Haible  <bruno@clisp.org>
56496
56497         * lib/c-ctype.h: Add comment.
56498         Reported by Jim Meyering.
56499
56500 2008-10-02  Bruno Haible  <bruno@clisp.org>
56501
56502         * modules/posix_spawn-internal (Depends-on): Add 'open'.
56503
56504 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
56505
56506         * build-aux/bootstrap: Allow renaming bootstrap, and change the
56507         name of bootstrap.conf accordingly.
56508
56509 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
56510
56511         * build-aux/bootstrap: Install git-merge-changelog configuration
56512         items into .gitconfig if needed.
56513
56514 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
56515
56516         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
56517         git repository, and initialize/update it accordingly.
56518
56519 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
56520
56521         * modules/fsync-tests: New file.
56522         * tests/test-fsync.c: New file.
56523
56524         New module 'fsync'.
56525         * lib/fsync.c: New file.
56526         * m4/fsync.m4: New file.
56527         * modules/fsync: New file.
56528         * lib/unistd.in.h (fsync): New declaration.
56529         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
56530         GNULIB_FSYNC and HAVE_FSYNC.
56531         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
56532         * MODULES.html.sh (posix_functions): Add fsync.
56533         * doc/posix-functions/fsync.texi: Mention the new module.
56534
56535 2008-10-02  Jim Meyering  <meyering@redhat.com>
56536
56537         fts.c: sync with similar code from coreutils' remove.c
56538         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
56539         Guard also with "#if defined __linux__", since for now at least,
56540         this code is Linux-kernel-specific.
56541
56542 2008-10-02  Jim Meyering  <meyering@redhat.com>
56543
56544         fts: bug fixes
56545         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
56546         Include <sys/vfs.h>, not <sys/statfs.h>.
56547
56548         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
56549         Include <sys/vfs.h>, not <sys/statfs.h>.
56550
56551 2008-10-01  Bruno Haible  <bruno@clisp.org>
56552
56553         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
56554         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
56555         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
56556         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
56557         * doc/posix-functions/posix_spawnp.texi: Likewise.
56558         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
56559         whether posix_spawn actually works.
56560         * m4/pipe.m4 (gl_PIPE): Likewise.
56561         * modules/execute (Files): Add m4/posix_spawn.m4.
56562         * modules/pipe (Files): Add m4/posix_spawn.m4.
56563         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
56564
56565 2008-10-01  Jim Meyering  <meyering@redhat.com>
56566
56567         remove trailing spaces
56568         * NEWS: Likewise.
56569         * lib/poll.c (poll): Likewise.
56570         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
56571         * lib/winsock.c (rpl_close): Likewise.
56572         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
56573         * modules/yield: Likewise.
56574         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
56575         * tests/test-sys_select.c (connect_to_socket): Likewise.
56576
56577         fts.c: adjust a new interface to be more generally useful
56578         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
56579         (fts_build): Adjust caller.
56580
56581 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56582
56583         * modules/cond-tests: New file.
56584         * tests/test-cond.c: New file.
56585
56586 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56587             Bruno Haible  <bruno@clisp.org>
56588
56589         * modules/cond (Dependencies): Add errno, time.
56590         * lib/glthread/cond.h: Include <time.h>.
56591         (gl_cond_define, gl_cond_define_initialized): Use the same definition
56592         across platforms.
56593
56594 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56595             Bruno Haible  <bruno@clisp.org>
56596
56597         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
56598
56599 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56600             Bruno Haible  <bruno@clisp.org>
56601
56602         * modules/tls-tests (Depends-on): Add thread, yield.
56603         (configure.ac): Remove all checks.
56604         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
56605         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
56606         gl_thread_self): Remove definitions. Include glthread/thread.h and
56607         glthread/yield.h instead.
56608         (test_tls): Pass an additional NULL argument to gl_thread_join.
56609
56610 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56611             Bruno Haible  <bruno@clisp.org>
56612
56613         * modules/lock-tests (Depends-on): Add thread, yield.
56614         (configure.ac): Remove all checks.
56615         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
56616         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
56617         gl_thread_self): Remove definitions. Include glthread/thread.h and
56618         glthread/yield.h instead.
56619         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
56620         additional NULL argument to gl_thread_join.
56621
56622 2008-09-30  Bruno Haible  <bruno@clisp.org>
56623
56624         Fix the Win32 implementation of the 'thread' module.
56625         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
56626         pointer type.
56627         (gl_thread_self): Invoke gl_thread_self_func.
56628         (gl_thread_self_func): New declaration.
56629         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
56630         (do_init_self_key, init_self_key): New functions.
56631         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
56632         Remove some fields.
56633         (running_threads, running_lock): Remove variables.
56634         (get_current_thread_handle): New function.
56635         (gl_thread_self_func, wrapper_func, glthread_create_func,
56636         glthread_join_func, gl_thread_exit_func): Largely rewritten and
56637         simplified.
56638
56639 2008-09-30  Bruno Haible  <bruno@clisp.org>
56640
56641         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
56642         files.
56643
56644 2008-09-30  Jim Meyering  <meyering@redhat.com>
56645
56646         fts.m4: correct the test for statfs.f_type
56647         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
56648         when checking for statfs.f_type.
56649
56650 2008-09-15  Simon Josefsson  <simon@josefsson.org>
56651
56652         tests: avoid some compiler warnings
56653         * tests/test-memchr.c (main): Pass NULL indirectly.
56654         * tests/test-getdate.c (main): Remove unused variable 'ret'.
56655
56656 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
56657
56658         getdate.y: disallow countable dayshifts like "4 yesterday ago"
56659         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
56660         exactly specified dayshifts.
56661         (dayshift): New rule.
56662         (rel): Add dayshift.
56663         (relative_time_table) [tomorrow, yesterday, today, now]:
56664         Use tDAY_SHIFT in place of tDAY_UNIT.
56665         * tests/test-getdate.c: Add tests for now-disallowed countable
56666         dayshifts, e.g., "4 yesterday ago".
56667
56668 2008-09-29  Bruno Haible  <bruno@clisp.org>
56669
56670         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
56671         * tests/test-posix_spawn1.in.sh: Renamed from
56672         tests/test-posix_spawn.in.sh.
56673         * tests/test-posix_spawn2.c: New file.
56674         * tests/test-posix_spawn2.in.sh: New file.
56675         * modules/posix_spawnp-tests (Files): Update.
56676         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
56677
56678 2008-09-29  Bruno Haible  <bruno@clisp.org>
56679
56680         Propagate effects of putenv/setenv/unsetenv to child processes.
56681         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
56682         * lib/pipe.c (create_pipe): Likewise.
56683
56684 2008-09-29  Bruno Haible  <bruno@clisp.org>
56685
56686         Enable use of shell scripts as executables in mingw.
56687         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
56688         run the program as a shell script.
56689         * lib/pipe.c (create_pipe): Likewise.
56690         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
56691         resulting array.
56692
56693 2008-09-29  Eric Blake  <ebb9@byu.net>
56694
56695         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
56696
56697 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
56698
56699         * doc/posix-functions/accept.texi: Update mingw problems.
56700         * doc/posix-functions/bind.texi: Update mingw problems.
56701         * doc/posix-functions/close.texi: Update mingw problems.
56702         * doc/posix-functions/connect.texi: Update mingw problems.
56703         * doc/posix-functions/getpeername.texi: Update mingw problems.
56704         * doc/posix-functions/getsockname.texi: Update mingw problems.
56705         * doc/posix-functions/getsockopt.texi: Update mingw problems.
56706         * doc/posix-functions/ioctl.texi: Update mingw problems.
56707         * doc/posix-functions/listen.texi: Update mingw problems.
56708         * doc/posix-functions/recv.texi: Update mingw problems.
56709         * doc/posix-functions/recvfrom.texi: Update mingw problems.
56710         * doc/posix-functions/select.texi: Update mingw problems.
56711         * doc/posix-functions/send.texi: Update mingw problems.
56712         * doc/posix-functions/sendto.texi: Update mingw problems.
56713         * doc/posix-functions/setsockopt.texi: Update mingw problems.
56714         * doc/posix-functions/socket.texi: Update mingw problems.
56715
56716 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
56717             Bruno Haible  <bruno@clisp.org>
56718
56719         * lib/sys_select.in.h: Include sys/time.h.
56720         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
56721         * modules/sys_select: Depend on sys_time.
56722         * tests/test-sys_select.c: Test that sys/select.h defines struct
56723         timeval fully.
56724
56725 2008-09-29  Bruno Haible  <bruno@clisp.org>
56726
56727         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
56728         * lib/sys_select.in.h: Likewise.
56729
56730 2008-09-29  Bruno Haible  <bruno@clisp.org>
56731
56732         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
56733
56734 2008-09-29  Bruno Haible  <bruno@clisp.org>
56735
56736         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
56737         Set LIBSOCKET instead of augmenting LIBS.
56738         * modules/sockets (Link): New section.
56739         * modules/sockets-tests (test_sockets_LDADD): New variable.
56740         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
56741         * modules/poll-tests (test_poll_LDADD): New variable.
56742         * NEWS: Document the change.
56743
56744 2008-09-29  Bruno Haible  <bruno@clisp.org>
56745
56746         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
56747         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
56748         ARPA_INET_H directly.
56749         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
56750
56751 2008-09-28  Bruno Haible  <bruno@clisp.org>
56752
56753         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
56754         from gl_HEADER_SYS_SOCKET.
56755         (gl_HEADER_SYS_SOCKET): Invoke it.
56756         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56757
56758 2008-09-28  Bruno Haible  <bruno@clisp.org>
56759
56760         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
56761         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
56762         Needed on OSF/1 4.0.
56763
56764 2008-09-28  Bruno Haible  <bruno@clisp.org>
56765
56766         Override open more carefully.
56767         * lib/open.c (orig_open): New function.
56768         (rpl_open): Use orig_open instead of open.
56769         * lib/fcntl.in.h: Add special invocation convention.
56770         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
56771         (gl_FUNC_OPEN): Invoke it.
56772
56773         Override freopen more carefully.
56774         * lib/freopen.c (orig_freopen): New function.
56775         (rpl_freopen): Use orig_freopen instead of freopen.
56776         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
56777         (gl_FUNC_FREOPEN): Invoke it.
56778
56779         Override fopen more carefully.
56780         * lib/fopen.c (orig_fopen): New function.
56781         (rpl_fopen): Use orig_fopen instead of fopen.
56782         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
56783         (gl_FUNC_FOPEN): Invoke it.
56784         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
56785
56786 2008-09-28  Bruno Haible  <bruno@clisp.org>
56787
56788         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
56789         SIGPIPE.
56790
56791 2008-09-28  Bruno Haible  <bruno@clisp.org>
56792
56793         * tests/test-sigaction.c (handler, main): Disable the check whether
56794         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
56795         glibc systems with LinuxThreads.
56796
56797 2008-09-28  Bruno Haible  <bruno@clisp.org>
56798
56799         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
56800
56801         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
56802         with AIX xlc.
56803         * lib/fcntl.in.h (open): Likewise.
56804         Reported by Rainer Tammer <tammer@tammer.net>.
56805
56806 2008-09-28  Bruno Haible  <bruno@clisp.org>
56807
56808         * modules/posix_spawnp-tests: New file.
56809         * tests/test-posix_spawn.c: New file.
56810         * tests/test-posix_spawn.in.sh: New file.
56811
56812         New module 'posix_spawnp'.
56813         * modules/posix_spawnp: New file.
56814         * lib/spawnp.c: New file, from GNU libc with modifications.
56815         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
56816
56817         New module 'posix_spawn'.
56818         * modules/posix_spawn: New file.
56819         * lib/spawn.c: New file, from GNU libc with modifications.
56820         * doc/posix-functions/posix_spawn.texi: Mention the new module.
56821
56822         New module 'posix_spawnattr_destroy'.
56823         * modules/posix_spawnattr_destroy: New file.
56824         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
56825         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
56826         module.
56827
56828         New module 'posix_spawnattr_setsigmask'.
56829         * modules/posix_spawnattr_setsigmask: New file.
56830         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
56831         modifications.
56832         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
56833         new module.
56834
56835         New module 'posix_spawnattr_getsigmask'.
56836         * modules/posix_spawnattr_getsigmask: New file.
56837         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
56838         modifications.
56839         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
56840         new module.
56841
56842         New module 'posix_spawnattr_setsigdefault'.
56843         * modules/posix_spawnattr_setsigdefault: New file.
56844         * lib/spawnattr_setdefault.c: New file, from GNU libc with
56845         modifications.
56846         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
56847         new module.
56848
56849         New module 'posix_spawnattr_getsigdefault'.
56850         * modules/posix_spawnattr_getsigdefault: New file.
56851         * lib/spawnattr_getdefault.c: New file, from GNU libc with
56852         modifications.
56853         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
56854         new module.
56855
56856         New module 'posix_spawnattr_setschedpolicy'.
56857         * modules/posix_spawnattr_setschedpolicy: New file.
56858         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
56859         modifications.
56860         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
56861         new module.
56862
56863         New module 'posix_spawnattr_getschedpolicy'.
56864         * modules/posix_spawnattr_getschedpolicy: New file.
56865         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
56866         modifications.
56867         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
56868         new module.
56869
56870         New module 'posix_spawnattr_setschedparam'.
56871         * modules/posix_spawnattr_setschedparam: New file.
56872         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
56873         modifications.
56874         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
56875         new module.
56876
56877         New module 'posix_spawnattr_getschedparam'.
56878         * modules/posix_spawnattr_getschedparam: New file.
56879         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
56880         modifications.
56881         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
56882         new module.
56883
56884         New module 'posix_spawnattr_setpgroup'.
56885         * modules/posix_spawnattr_setpgroup: New file.
56886         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
56887         modifications.
56888         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
56889         module.
56890
56891         New module 'posix_spawnattr_getpgroup'.
56892         * modules/posix_spawnattr_getpgroup: New file.
56893         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
56894         modifications.
56895         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
56896         module.
56897
56898         New module 'posix_spawnattr_setflags'.
56899         * modules/posix_spawnattr_setflags: New file.
56900         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
56901         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
56902         module.
56903
56904         New module 'posix_spawnattr_getflags'.
56905         * modules/posix_spawnattr_getflags: New file.
56906         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
56907         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
56908         module.
56909
56910         New module 'posix_spawnattr_init'.
56911         * modules/posix_spawnattr_init: New file.
56912         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
56913         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
56914         module.
56915
56916         New module 'posix_spawn_file_actions_destroy'.
56917         * modules/posix_spawn_file_actions_destroy: New file.
56918         * lib/spawn_faction_destroy.c: New file, from GNU libc with
56919         modifications.
56920         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
56921         the new module.
56922
56923         New module 'posix_spawn_file_actions_addopen'.
56924         * modules/posix_spawn_file_actions_addopen: New file.
56925         * lib/spawn_faction_addopen.c: New file, from GNU libc with
56926         modifications.
56927         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
56928         the new module.
56929
56930         New module 'posix_spawn_file_actions_adddup2'.
56931         * modules/posix_spawn_file_actions_adddup2: New file.
56932         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
56933         modifications.
56934         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
56935         the new module.
56936
56937         New module 'posix_spawn_file_actions_addclose'.
56938         * modules/posix_spawn_file_actions_addclose: New file.
56939         * lib/spawn_faction_addclose.c: New file, from GNU libc with
56940         modifications.
56941         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
56942         the new module.
56943
56944         New module 'posix_spawn_file_actions_init'.
56945         * modules/posix_spawn_file_actions_init: New file.
56946         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
56947         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
56948         new module.
56949
56950         New module 'posix_spawn-internal'.
56951         * modules/posix_spawn-internal: New file.
56952         * lib/spawn_int.h: New file, from GNU libc with modifications.
56953         * lib/spawni.c: New file, from GNU libc with modifications.
56954         * m4/posix_spawn.m4: New file.
56955
56956         New module 'spawn'.
56957         * modules/spawn: New file.
56958         * lib/spawn.in.h: New file, from GNU libc with modifications.
56959         * m4/spawn_h.m4: New file.
56960         * doc/posix-headers/spawn.texi: Mention the new module.
56961
56962 2008-09-28  Bruno Haible  <bruno@clisp.org>
56963
56964         * modules/sched-tests: New file.
56965         * tests/test-sched.c: New file.
56966
56967         New module 'sched'.
56968         * modules/sched: New file.
56969         * lib/sched.in.h: New file.
56970         * m4/sched_h.m4: New file.
56971         * doc/posix-headers/sched.texi: Mention the new module.
56972
56973 2008-09-27  Eric Blake  <ebb9@byu.net>
56974
56975         Fix previous patch, and tweak references to $0.
56976         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
56977         (func_version, func_gnulib_dir): Don't call this program
56978         gnulib-tool.
56979         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
56980         with using $0 in function.
56981         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
56982         (func_fatal_error): Reuse the name the user invoked us with.
56983
56984 2008-09-27  Bruno Haible  <bruno@clisp.org>
56985
56986         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
56987         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
56988         (gl_ICONV_H): Not here.
56989         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
56990         instead of assigning ICONV_H directly.
56991
56992         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
56993         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
56994         WCHAR_H directly.
56995
56996 2008-09-27  Bruno Haible  <bruno@clisp.org>
56997
56998         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
56999         * modules/arpa_inet (Depends-on): Add link-warning.
57000         (Makefile.am): Insert the definition of GL_LINK-WARNING.
57001         * modules/unistd (Makefile.am): Likewise.
57002
57003 2008-09-26  Bruno Haible  <bruno@clisp.org>
57004
57005         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
57006         variables.
57007         (func_version): Essentially copied from gnulib-tool.
57008         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
57009         func_readlink): Copied from gnulib-tool.
57010
57011 2008-09-26  Bruno Haible  <bruno@clisp.org>
57012
57013         * gnulib-tool (func_version): Change directory to $gnulib_dir before
57014         invoking git-version-gen.
57015
57016 2008-09-26  Bruno Haible  <bruno@clisp.org>
57017
57018         * posix-modules: Update to directory names changed on 2008-01-19.
57019         Remove commas in output before splitting into words. No more need to
57020         avoid 'ftruncate' since 2007-02-19.
57021
57022 2008-09-26  Bruno Haible  <bruno@clisp.org>
57023
57024         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
57025
57026 2008-09-26  Bruno Haible  <bruno@clisp.org>
57027
57028         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
57029         * modules/fwriteerror (Depends-on): Add errno.
57030
57031 2008-09-26  Bruno Haible  <bruno@clisp.org>
57032
57033         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
57034         * tests/test-vc-list-files-cvs.sh: Likewise.
57035
57036 2008-09-26  Bruno Haible  <bruno@clisp.org>
57037
57038         * doc/posix-headers/sys_resource.texi: Reorder items.
57039
57040 2008-09-26  Jim Meyering  <meyering@redhat.com>
57041
57042         fts: tweak inode comparison function
57043         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
57044         inode numbers, as documented.
57045
57046         fts: sort dirent entries on inode number before traversing
57047         This avoids a quadratic, seek-related performance penalty when
57048         operating on a directory containing many entries (measurable at 10k;
57049         3.5 hours at 2 million entries with a cold cache) on certain types
57050         of file systems, including ext3 and ext4, but not tmpfs.
57051         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
57052         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
57053         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
57054         (fs_handles_readdir_ordered_dirents_efficiently): New function.
57055         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
57056         (fts_build): Set the stat.st_ino member from D_INO.
57057         If it is likely to be useful, sort dirent entries on inode number.
57058
57059         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
57060         and the struct statfs.f_type member.
57061         * modules/fts (Depends-on): Add d-ino.
57062
57063 2008-09-26  Bruno Haible  <bruno@clisp.org>
57064
57065         * modules/sigpipe-die (Depends-on): Add sigpipe.
57066
57067         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
57068         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
57069         and GNULIB_STDIO_H_SIGPIPE are set.
57070         * lib/stdio-write.c: New file.
57071         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
57072         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57073         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57074         REPLACE_STDIO_WRITE_FUNCS.
57075         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
57076         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57077         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57078         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
57079         * modules/stdio (Files): Add lib/stdio-write.c.
57080         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
57081         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57082         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57083         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
57084         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
57085         REPLACE_FPRINTF_POSIX.
57086         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
57087         REPLACE_PRINTF_POSIX.
57088         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
57089         REPLACE_VFPRINTF_POSIX.
57090         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
57091         REPLACE_VPRINTF_POSIX.
57092         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
57093         SIGPIPE issue.
57094         * doc/posix-functions/fputc.texi: Likewise.
57095         * doc/posix-functions/fputs.texi: Likewise.
57096         * doc/posix-functions/fwrite.texi: Likewise.
57097         * doc/posix-functions/printf.texi: Likewise.
57098         * doc/posix-functions/putc.texi: Likewise.
57099         * doc/posix-functions/putchar.texi: Likewise.
57100         * doc/posix-functions/puts.texi: Likewise.
57101         * doc/posix-functions/vfprintf.texi: Likewise.
57102         * doc/posix-functions/vprintf.texi: Likewise.
57103
57104         * modules/safe-write (Depends-on): Add write.
57105
57106         * modules/sigpipe-tests: New file.
57107         * tests/test-sigpipe.c: New file.
57108         * tests/test-sigpipe.sh: New file.
57109
57110         * modules/write: New file.
57111         * lib/unistd.in.h: Include <sys/types.h>.
57112         (write): New declaration.
57113         * lib/write.c: New file.
57114         * m4/write.m4: New file.
57115         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57116         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
57117         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
57118         GNULIB_WRITE, REPLACE_WRITE.
57119         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
57120         and the SIGPIPE issue.
57121
57122         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
57123         (raise): New declaration.
57124         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
57125         (ext_signal): New function.
57126         (rpl_raise): New function.
57127         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
57128         GNULIB_SIGNAL_H_SIGPIPE.
57129         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
57130         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
57131
57132         * modules/sigpipe: New file.
57133         * m4/sigpipe.m4: New file.
57134
57135 2008-09-25  Derek Price  <derek@ximbiot.com>
57136             Bruno Haible  <bruno@clisp.org>
57137
57138         * gnulib-tool (func_import): Report all license incompatibilities, not
57139         just the first one.
57140
57141 2008-09-25  Bruno Haible  <bruno@clisp.org>
57142
57143         * gnulib-tool (func_import): When computing the edits, consider not
57144         only the Makefile.ams that exist but also those that will be generated.
57145
57146 2008-09-25  Simon Josefsson  <simon@josefsson.org>
57147
57148         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
57149         fixes gnulib-tool --test warning about duplicate dependency.
57150
57151 2008-09-25  Bruno Haible  <bruno@clisp.org>
57152
57153         * gnulib-tool: Don't ask the user to perform edits in the generated
57154         Makefile.ams.
57155         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
57156         apply to the Makefile.am being generated.
57157         (func_emit_tests_Makefile_am): Execute edits that apply to the
57158         Makefile.am being generated.
57159         (func_import): Setup list of Makefile.am edits before emitting the
57160         Makefile.ams, not at the end.
57161         (func_create_testdir): Update.
57162         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57163
57164 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57165
57166         * gnulib-tool (func_import): Store the --tests-base option in the
57167         comment in gnulib-cache.m4.
57168
57169 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
57170
57171         * NEWS: Document increased portability that sys_select now provides.
57172
57173         * lib/sys_select.in.h: Install select wrapper.
57174         * lib/sys_socket.in.h: Use more descriptive name when there is no
57175         select wrapper.
57176         * lib/winsock-select.c: New.
57177         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
57178         Require gl_HEADER_SYS_SOCKET.
57179         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
57180         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
57181         * tests/test-sys_select.c: Add functional tests.
57182
57183 2008-09-24  Eric Blake  <ebb9@byu.net>
57184
57185         open, fopen: close fd leak in last patch
57186         * lib/open.c (rpl_open): Close fd before returning error.
57187         * lib/fopen.c (rpl_fopen): Close fd before returning error.
57188         * doc/posix-functions/open.texi (open): Document that Irix also
57189         has the bug.
57190         * doc/posix-functions/fopen.texi (fopen): Likewise.
57191         Reported by Paolo Bonzini.
57192
57193 2008-09-24  Bruno Haible  <bruno@clisp.org>
57194
57195         Ensure that a filename ending in a slash cannot be used to access a
57196         non-directory.
57197         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
57198         to check whether it's really a directory.
57199         * lib/fopen.c: Include fcntl.h, unistd.h.
57200         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
57201         and fdopen().
57202         * modules/fopen (Depends-on): Add unistd.
57203         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
57204         * tests/test-fopen.c (main): Likewise.
57205         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
57206         * doc/posix-functions/fopen.texi: Likewise.
57207         Reported by Eric Blake.
57208
57209 2008-09-23  Eric Blake  <ebb9@byu.net>
57210
57211         c-stack: avoid compiler optimizations when provoking overflow
57212         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
57213         recursion harder to optimize, to ensure a stack overflow occurs.
57214         * tests/test-c-stack.c (recurse): Likewise.
57215         Borrowed from libsigsegv.
57216
57217         c-stack: work around Irix sigaltstack bug
57218         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
57219         whether sigaltstack uses wrong end of stack_t (copied in part from
57220         libsigsegv).
57221         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
57222         Irix bug, without requiring an over-allocation.
57223         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
57224         bug.
57225
57226         fopen: document mingw bug on directories
57227         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
57228         not allowing a stream visiting a directory, even though reading
57229         from such a stream is not portable.
57230
57231 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57232
57233         * lib/poll.c: Rewrite.
57234         * modules/poll: Depend on alloca.
57235
57236 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57237
57238         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
57239         instead define prototypes for a full set of wrappers.  Ensure
57240         that Cygwin does not use the compatibility code, which is only
57241         for MinGW.
57242         * lib/winsock.c: New.
57243         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
57244         * modules/sys_socket: Add lib/winsock.c.
57245
57246         * modules/poll-tests: Add errno and perror.
57247         * tests/test-poll.c: Use ioctl, not ioctlsocket.
57248
57249 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57250
57251         * tests/test-poll.c: Downgrade minimum needed Winsock version.
57252
57253 2008-09-23  Bruno Haible  <bruno@clisp.org>
57254
57255         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
57256         * doc/glibc-functions/*: Likewise.
57257
57258 2008-09-23  Simon Josefsson  <simon@josefsson.org>
57259
57260         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
57261         success.
57262
57263 2008-09-22  Eric Blake  <ebb9@byu.net>
57264             Bruno Haible  <bruno@clisp.org>
57265
57266         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
57267         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
57268         supply %A but mishandle pseudo-NaN.
57269         Reported by Simon Josefsson.
57270
57271 2008-09-21  Bruno Haible  <bruno@clisp.org>
57272
57273         * tests/test-lock.c (main): Tweak skip message.
57274         * tests/test-tls.c (main): Likewise.
57275
57276 2008-09-21  Bruno Haible  <bruno@clisp.org>
57277
57278         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
57279         whether 'struct sigaction' has sa_sigaction here...
57280         (gl_PREREQ_SIG_HANDLER_H): ... not here.
57281         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
57282
57283 2008-09-21  Bruno Haible  <bruno@clisp.org>
57284
57285         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
57286         section.
57287         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
57288         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
57289         the new section.
57290         (Support for obsolete systems lacking POSIX:2001): New section.
57291         (String handling <string.h>): Move strdup to the new section.
57292         Suggested by Simon Josefsson and Paolo Bonzini.
57293
57294 2008-09-21  Bruno Haible  <bruno@clisp.org>
57295
57296         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
57297         exponents in %e and %g results on 'long double'. Needed for mingw's
57298         improved *printf functions.
57299         * tests/test-vasprintf-posix.c (test_function): Likewise.
57300         * tests/test-snprintf-posix.h (test_function): Likewise.
57301         * tests/test-sprintf-posix.h (test_function): Likewise.
57302         Reported by Eric Blake.
57303
57304 2008-09-21  Bruno Haible  <bruno@clisp.org>
57305
57306         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
57307         * tests/test-sprintf-posix.h (test_function): Likewise.
57308
57309 2008-09-21  Bruno Haible  <bruno@clisp.org>
57310
57311         * modules/getpass (Depends-on): Add strdup-posix.
57312
57313         New module 'strdup-posix'.
57314         * modules/strdup-posix: New file.
57315         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
57316         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
57317         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57318         REPLACE_STRDUP.
57319         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
57320         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
57321         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57322         strdup-posix.
57323
57324         * modules/strdup (Depends-on): Remove malloc-posix.
57325
57326 2008-09-20  Bruno Haible  <bruno@clisp.org>
57327
57328         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
57329         Wildenhues.
57330
57331 2008-09-20  Bruno Haible  <bruno@clisp.org>
57332
57333         Ensure that wint_t gets defined on IRIX 5.3.
57334         * lib/wchar.in.h (wint_t): Define if not defined by the system.
57335         * lib/wctype.in.h (wint_t): Likewise.
57336         (__wctype_wint_t): Remove type.
57337         (isw*): Use wint_t instead of __wctype_wint_t.
57338         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
57339         * modules/wchar (Files): Add m4/wint_t.m4.
57340         (Makefile.am): Substitute HAVE_WINT_T.
57341         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
57342         * tests/test-wctype.c: Check that wint_t is defined.
57343         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
57344         * doc/posix-headers/wctype.texi: Likewise.
57345         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
57346
57347 2008-09-18  Bruno Haible  <bruno@clisp.org>
57348
57349         * gnulib-tool (func_exit): Update comment.
57350
57351 2008-09-18  Simon Josefsson  <simon@josefsson.org>
57352
57353         * modules/getaddrinfo (Depends-on): Remove strdup, this module
57354         assumes strdup exists and does not depend on strdup to return
57355         ENOMEM on out of memory conditions.
57356
57357 2008-09-18  Bruno Haible  <bruno@clisp.org>
57358
57359         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
57360         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
57361         digits for the exponent.
57362
57363 2008-09-18  Jim Meyering  <meyering@redhat.com>
57364             Bruno Haible  <bruno@clisp.org>
57365
57366         * lib/vasnprintf.c (decimal_point_char): Define also if
57367         NEED_PRINTF_INFINITE_LONG_DOUBLE.
57368
57369 2008-09-16  Bruno Haible  <bruno@clisp.org>
57370         and Eric Blake  <ebb9@byu.net>
57371
57372         vasnprintf: support Irix 5.3
57373         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
57374         that mishandle long double infinity.
57375         Reported by Tom G. Christensen.
57376
57377 2008-09-16  Bruno Haible  <bruno@clisp.org>
57378
57379         * doc/glibc-functions/scandir.texi: Mention the function is missing on
57380         Solaris 9.
57381         * doc/glibc-functions/alphasort.texi: Likewise.
57382         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
57383
57384 2008-09-16  Jim Meyering  <meyering@redhat.com>
57385
57386         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
57387         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
57388         a umask modification leak out of a subshell.  Otherwise, the
57389         opensolaris /bin/sh would be accepted and thus cause unwarranted
57390         failures in the coreutils test suite.
57391
57392 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
57393
57394         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
57395         to succeed.
57396
57397 2008-09-16  Jim Meyering  <meyering@redhat.com>
57398
57399         avoid spurious test failure when library is built without ACL support
57400         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
57401         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
57402         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
57403         * tests/test-copy-acl.sh: Likewise.
57404
57405 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57406
57407         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
57408         based on character occurrence counts.
57409
57410 2008-09-15  Eric Blake  <ebb9@byu.net>
57411
57412         tests: avoid some compiler warnings
57413         * tests/test-memchr.c (main): Pass NULL indirectly.
57414         * tests/test-closein.c (main): Avoid unused variable.
57415
57416 2008-09-15  Bruno Haible  <bruno@clisp.org>
57417
57418         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
57419         are missing on OpenBSD 4.0 individually.
57420         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57421
57422 2008-09-15  Bruno Haible  <bruno@clisp.org>
57423
57424         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
57425         * doc/posix-functions/strerror.texi: Mention also Cygwin.
57426         * doc/posix-functions/perror.texi: Likewise.
57427         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
57428         is missing.
57429         Reported by Eric Blake.
57430
57431         * lib/errno.in.h: Use replacement values >= 2000.
57432         Reported by Eric Blake.
57433
57434 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57435
57436         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
57437         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
57438         limit.
57439         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
57440         compareseq was aborted.
57441
57442 2008-09-14  Bruno Haible  <bruno@clisp.org>
57443
57444         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
57445         yvec_edit_count.
57446         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
57447         (fstrcmp_bounded): Simplify result computation accordingly.
57448
57449 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57450
57451         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
57452         (fstrcmp): Define in terms of fstrcmp_bounded.
57453         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
57454         lower_bound argument.
57455         Return quickly if the result is certainly < lower_bound.
57456         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
57457
57458 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57459
57460         * lib/diffseq.h (EARLY_ABORT): New macro.
57461         (compareseq): Change return type to bool. Return true when EARLY_ABORT
57462         evaluates to true.
57463
57464 2008-09-14  Bruno Haible  <bruno@clisp.org>
57465
57466         * modules/perror-tests: New file.
57467         * tests/test-perror.sh: New file.
57468         * tests/test-perror.c: New file.
57469
57470         New module 'perror'.
57471         * lib/stdio.in.h (perror): New declaration.
57472         * lib/perror.c: New file.
57473         * m4/perror.m4: New file.
57474         * modules/perror: New file.
57475         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
57476         * doc/posix-functions/perror.texi: Mention the perror module.
57477         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
57478         REPLACE_PERROR.
57479         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
57480         REPLACE_PERROR.
57481
57482 2008-09-14  Bruno Haible  <bruno@clisp.org>
57483
57484         * modules/stdio (Makefile.am): Reorder to match the order in
57485         lib/stdio.in.h.
57486         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
57487
57488 2008-09-13  Bruno Haible  <bruno@clisp.org>
57489
57490         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
57491
57492 2008-09-13  Bruno Haible  <bruno@clisp.org>
57493
57494         Extend strerror to cover the added errno values.
57495         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
57496         (rpl_strerror): Provide error messages for the added errno values and
57497         for the WSA* values.
57498         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
57499         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
57500         strerror.
57501         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
57502         * modules/strerror (Depends-on): Add errno.
57503         * doc/posix-functions/strerror.texi: Document the change.
57504         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
57505         and EOVERFLOW.
57506
57507 2008-09-13  Bruno Haible  <bruno@clisp.org>
57508
57509         * modules/EOVERFLOW: Remove file.
57510         * m4/eoverflow.m4: Remove file.
57511         * modules/EOVERFLOW-tests: Remove file.
57512         * tests/test-EOVERFLOW.c: Remove file.
57513         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
57514         * modules/ftell (Depends-on): Likewise.
57515         * modules/getdelim (Depends-on): Likewise.
57516         * modules/getugroups (Depends-on): Likewise.
57517         * modules/poll (Depends-on): Likewise.
57518         * modules/snprintf (Depends-on): Likewise.
57519         * modules/sprintf-posix (Depends-on): Likewise.
57520         * modules/vasnprintf (Depends-on): Likewise.
57521         * modules/vasprintf (Depends-on): Likewise.
57522         * modules/vfprintf-posix (Depends-on): Likewise.
57523         * modules/vsnprintf (Depends-on): Likewise.
57524         * modules/vsprintf-posix (Depends-on): Likewise.
57525         * modules/xvasprintf (Depends-on): Likewise.
57526         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
57527         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
57528         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
57529         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
57530         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
57531         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
57532         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
57533         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
57534         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
57535         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
57536         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
57537         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
57538         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
57539         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
57540         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
57541         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
57542         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
57543         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
57544         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
57545         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
57546         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
57547         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
57548         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
57549         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
57550         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
57551         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
57552         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
57553         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
57554         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
57555         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
57556         * MODULES.html.sh: Remove EOVERFLOW.
57557         * NEWS: Mention the change.
57558
57559 2008-09-13  Bruno Haible  <bruno@clisp.org>
57560
57561         * modules/errno-tests: New file.
57562         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
57563
57564         * lib/errno.in.h: New file.
57565         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
57566         * modules/errno: New file.
57567         * doc/posix-headers/errno.texi: Update documentation.
57568         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
57569
57570 2008-09-13  Bruno Haible  <bruno@clisp.org>
57571
57572         * tests/test-poll.c: Use #if for native Windows, rather than testing
57573         __MSVCRT__.
57574
57575 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57576             Bruno Haible  <bruno@clisp.org>
57577
57578         * lib/glob.c: Don't include <pwd.h> on native Windows.
57579         (WINDOWS32): New macro.
57580         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
57581
57582 2008-09-13  Bruno Haible  <bruno@clisp.org>
57583
57584         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
57585         (ETIMEDOUT): Remove macro.
57586         (glthread_cond_timedwait_multithreaded): New declaration.
57587         (glthread_cond_timedwait): Use it.
57588         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
57589         (glthread_cond_timedwait_multithreaded): New function.
57590
57591 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
57592
57593         * modules/poll-tests: Do not check for io.h.
57594         * tests/test-poll.c: Check for __MSVCRT__ instead.
57595
57596 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
57597
57598         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
57599         * modules/poll-tests: Add inet_pton, stdbool, sockets.
57600         * tests/test-poll.c: Use them.  Use _pipe on Windows.
57601
57602 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
57603
57604         * modules/poll-tests: New.
57605         * tests/test-poll.c: New.
57606
57607 2008-09-12  Eric Blake  <ebb9@byu.net>
57608
57609         frexp: test for NetBSD failure on -0.0
57610         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
57611         not all, bugs from NetBSD 3.0 have been fixed.
57612         * doc/posix-functions/frexp.texi (frexp): Document bug.
57613         Reported by Thomas Klausner.
57614
57615         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
57616         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
57617         literal -0.0.
57618         Reported by Jonathan C. Patschke <jp@centtech.com>.
57619
57620 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57621
57622         * lib/glthread/cond.h: Use dummy implementation also if
57623         USE_WIN32_THREADS.
57624
57625 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57626
57627         * modules/fnmatch-posix (License): Change to LGPLv2+.
57628         * modules/fnmatch-gnu (License): Likewise.
57629
57630 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57631
57632         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
57633
57634 2008-09-11  Jim Meyering  <meyering@redhat.com>
57635
57636         * users.txt: Add gtk-vnc.
57637
57638 2008-09-08  Simon Josefsson  <simon@josefsson.org>
57639
57640         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
57641         rotate amounts.
57642
57643         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
57644         required for 16-bit and 8-bit rotates.
57645         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
57646         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
57647         UINT8_MAX instead of hard-coded constants.
57648         Suggested by Paul Eggert.
57649
57650 2008-09-07  Bruno Haible  <bruno@clisp.org>
57651
57652         * tests/test-striconveh.c (main): Check behaviour when converting from
57653         UTF-7.
57654
57655         Make striconveh work better with stateful encodings.
57656         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
57657         that iconv does not increment the inptr when returning -1/EINVAL.
57658
57659 2008-09-07  Bruno Haible  <bruno@clisp.org>
57660
57661         * build-aux/config.rpath: Update according to libtool-2.2.6.
57662         * build-aux/config.libpath: Likewise.
57663
57664 2008-09-06  Bruno Haible  <bruno@clisp.org>
57665
57666         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
57667         * lib/freadptr.c (freadptr): Likewise.
57668         * lib/freadseek.c (freadptrinc): Likewise.
57669         Reported by Simon Josefsson.
57670
57671 2008-09-06  Bruno Haible  <bruno@clisp.org>
57672
57673         * modules/freadptr (License): Change to LGPLv2+.
57674         * modules/freadseek (License): Likewise.
57675         Suggested by Eric Blake.
57676
57677         * modules/memchr2 (License): Change to LGPLv2+.
57678         Approved by Eric Blake.
57679
57680 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57681             Bruno Haible  <bruno@clisp.org>
57682
57683         Make gnulib-tool work with native 'sed' on AIX.
57684         * gnulib-tool (sed_noop): New variable.
57685         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
57686         func_add_or_update, func_create_testdir): Use it to initialize sed
57687         script variables.
57688         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
57689
57690 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
57691             Bruno Haible  <bruno@clisp.org>
57692
57693         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
57694         also works after #include directives.
57695
57696 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
57697
57698         getdate.y: reject an out-of-range timezone value
57699         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
57700         the range [-24...+24].  When specified with only one or two digits,
57701         * tests/test-getdate.c: Tests for the fix.
57702         * doc/getdate.texi: Document this change.
57703
57704 2008-09-03  Bruno Haible  <bruno@clisp.org>
57705
57706         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
57707
57708 2008-09-02  Simon Josefsson  <simon@josefsson.org>
57709
57710         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
57711         <bruce.korb@gmail.com> with ideas from Ben Pfaff
57712         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
57713         Blake <ebb9@byu.net>.
57714
57715         * tests/test-bitrotate.c: Add more test vectors.
57716
57717 2008-09-02  Eric Blake  <ebb9@byu.net>
57718
57719         vasnprintf-posix: handle large precision via %.*d
57720         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
57721         when handling it ourselves.
57722         * tests/test-vasnprintf-posix.c (test_function): Add test.
57723         * tests/test-snprintf-posix.h (test_function): Likewise.
57724         * tests/test-sprintf-posix.h (test_function): Likewise.
57725         * tests/test-vasprintf-posix.c (test_function): Likewise.
57726         Reported by Alain Guibert.
57727
57728 2008-09-01  Eric Blake  <ebb9@byu.net>
57729
57730         c-stack: make configure-time check more robust
57731         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
57732         successful sigaction call.
57733         Reported by Tom G. Christensen.
57734
57735 2008-09-01  Bruno Haible  <bruno@clisp.org>
57736
57737         New module 'findprog-lgpl'.
57738         * modules/findprog-lgpl: New file.
57739         * lib/findprog-lgpl.c: New file.
57740         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
57741         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
57742         to decide whether to use strdup or xstrdup, concatenated_filename or
57743         xconcatenated_filename.
57744
57745 2008-09-01  Bruno Haible  <bruno@clisp.org>
57746
57747         Split module 'concat-filename' into 'concat-filename' (LGPL) and
57748         'xconcat-filename' (GPL).
57749         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
57750         (License): Change to LGPLv2+.
57751         * modules/xconcat-filename: New file.
57752         * lib/concat-filename.h (concatenated_filename): Change specification.
57753         (xconcatenated_filename): New declaration.
57754         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
57755         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
57756         memory situations.
57757         * lib/xconcat-filename.c: New file.
57758         * NEWS: Mention the change.
57759         * lib/findprog.c: Include concat-filename.h, not filename.h.
57760         (find_in_path): Use xconcatenated_filename instead of
57761         concatenated_filename.
57762         * lib/javacomp.c: Include concat-filename.h, not filename.h.
57763         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
57764         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
57765         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
57766         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
57767         instead of concatenated_filename.
57768         * lib/javaexec.c: Include concat-filename.h, not filename.h.
57769         (execute_java_class): Use xconcatenated_filename instead of
57770         concatenated_filename.
57771         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
57772         * modules/javacomp (Depends-on): Likewise.
57773         * modules/javaexec (Depends-on): Likewise.
57774
57775 2008-09-01  Bruno Haible  <bruno@clisp.org>
57776
57777         Split module 'filename' into 'filename' and 'concat-filename'.
57778         * modules/filename: Keep only lib/filename.h.
57779         (License): Change to LGPLv2+.
57780         * modules/concat-filename: New file, extracted from modules/filename.
57781         * lib/filename.h (concatenated_filename): Remove declaration.
57782         * lib/concat-filename.h: New file, extracted from lib/filename.h.
57783         * lib/concat-filename.c: Include concat-filename.h.
57784         * NEWS: Mention the change.
57785
57786 2008-09-01  Simon Josefsson  <simon@josefsson.org>
57787
57788         * lib/bitrotate.h (rotl8, rotr8): Add.
57789
57790         * modules/bitrotate (configure.ac): Need
57791         AC_REQUIRE([AC_C_INLINE]).
57792         (Description): Mention stdint.h.  Reported by Bruno Haible
57793         <bruno@clisp.org>.
57794
57795         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
57796         Paolo Bonzini <bonzini@gnu.org>.
57797
57798 2008-08-31  Bruno Haible  <bruno@clisp.org>
57799
57800         Assume Solaris specific bi-arch conventions on Solaris systems.
57801         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
57802         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
57803         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
57804         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
57805         like acl_libdirstem.
57806         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
57807         acl_libdirstem.
57808         * NEWS: Mention the change.
57809         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
57810
57811 2008-08-31  Jim Meyering  <meyering@redhat.com>
57812
57813         * lib/strftime.h: Add comments describing the two added arguments.
57814
57815         remove duplicate #include directives
57816         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
57817         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
57818
57819 2008-08-31  Bruno Haible  <bruno@clisp.org>
57820
57821         New module 'sigpipe-die'.
57822         * modules/sigpipe-die: New file.
57823         * lib/sigpipe-die.h: New file.
57824         * lib/sigpipe-die.c: New file.
57825         * MODULES.html.sh (Signal handling): Add sigpipe-die.
57826
57827 2008-08-31  Bruno Haible  <bruno@clisp.org>
57828
57829         Don't override previously installed signal handlers.
57830         * lib/fatal-signal.c (saved_sigactions): New variable.
57831         (uninstall_handlers): Reset the signal to the saved handler, not
57832         to SIG_DFL (except when ignored).
57833         (install_handlers): Save the previous handlers.
57834
57835 2008-08-30  Bruno Haible  <bruno@clisp.org>
57836
57837         * gnulib-tool (func_reset_sigpipe): New function.
57838         (func_get_automake_snippet, func_modules_transitive_closure,
57839         func_import): Invoke it before a join command that reads from stdin,
57840         to avoid "echo: write error: Broken pipe" error messages on stderr.
57841         Reported by Sam Steingold <sds@gnu.org>.
57842
57843 2008-08-30  Bruno Haible  <bruno@clisp.org>
57844
57845         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
57846         Code copied from m4/open.m4.
57847         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
57848         access and the filename ends in a slash. Code copied from lib/open.c.
57849         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
57850         * tests/test-fopen.c (main): Check against bug with trailing slash.
57851
57852 2008-08-29  Bruno Haible  <bruno@clisp.org>
57853
57854         Avoid some "gcc -pedantic" warnings.
57855         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
57856         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
57857         * lib/dirent.in.h: Likewise.
57858         * lib/fcntl.in.h: Likewise.
57859         * lib/float.in.h: Likewise.
57860         * lib/iconv.in.h: Likewise.
57861         * lib/inttypes.in.h: Likewise.
57862         * lib/locale.in.h: Likewise.
57863         * lib/math.in.h: Likewise.
57864         * lib/netinet_in.in.h: Likewise.
57865         * lib/search.in.h: Likewise.
57866         * lib/signal.in.h: Likewise.
57867         * lib/stdarg.in.h: Likewise.
57868         * lib/stdint.in.h: Likewise.
57869         * lib/stdio.in.h: Likewise.
57870         * lib/stdlib.in.h: Likewise.
57871         * lib/string.in.h: Likewise.
57872         * lib/strings.in.h: Likewise.
57873         * lib/sys_select.in.h: Likewise.
57874         * lib/sys_socket.in.h: Likewise.
57875         * lib/sys_stat.in.h: Likewise.
57876         * lib/sys_time.in.h: Likewise.
57877         * lib/sysexits.in.h: Likewise.
57878         * lib/time.in.h: Likewise.
57879         * lib/unistd.in.h: Likewise.
57880         * lib/wchar.in.h: Likewise.
57881         * lib/wctype.in.h: Likewise.
57882         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
57883         * modules/fchdir (Makefile.am): Likewise.
57884         * modules/fcntl (Makefile.am): Likewise.
57885         * modules/float (Makefile.am): Likewise.
57886         * modules/iconv_open (Makefile.am): Likewise.
57887         * modules/inttypes (Makefile.am): Likewise.
57888         * modules/locale (Makefile.am): Likewise.
57889         * modules/math (Makefile.am): Likewise.
57890         * modules/netinet_in (Makefile.am): Likewise.
57891         * modules/search (Makefile.am): Likewise.
57892         * modules/signal (Makefile.am): Likewise.
57893         * modules/stdarg (Makefile.am): Likewise.
57894         * modules/stdint (Makefile.am): Likewise.
57895         * modules/stdio (Makefile.am): Likewise.
57896         * modules/stdlib (Makefile.am): Likewise.
57897         * modules/string (Makefile.am): Likewise.
57898         * modules/strings (Makefile.am): Likewise.
57899         * modules/sys_select (Makefile.am): Likewise.
57900         * modules/sys_socket (Makefile.am): Likewise.
57901         * modules/sys_stat (Makefile.am): Likewise.
57902         * modules/sys_time (Makefile.am): Likewise.
57903         * modules/sysexits (Makefile.am): Likewise.
57904         * modules/time (Makefile.am): Likewise.
57905         * modules/unistd (Makefile.am): Likewise.
57906         * modules/wchar (Makefile.am): Likewise.
57907         * modules/wctype (Makefile.am): Likewise.
57908         Reported by Reuben Thomas <rrt@sc3d.org>.
57909
57910 2008-08-29  Bruno Haible  <bruno@clisp.org>
57911
57912         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
57913         any more.
57914
57915 2008-08-29  Simon Josefsson  <simon@josefsson.org>
57916
57917         * MODULES.html.sh (Misc): Add bitrotate.
57918
57919         * modules/bitrotate: New file.
57920
57921         * lib/bitrotate.h: New file.
57922
57923         * modules/bitrotate-tests: New file.
57924
57925         * tests/test-bitrotate.c: New file.
57926
57927         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
57928         on the bitrotate module.
57929
57930         * lib/arctwo.c: Use new bitrotate module.
57931
57932 2008-08-29  Jim Meyering  <meyering@redhat.com>
57933
57934         bootstrap: merge changes from coreutils
57935         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
57936         of copied files.  Remove a kludge, now that this is fixed.
57937         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
57938         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
57939         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
57940
57941 2008-08-29  Bruno Haible  <bruno@clisp.org>
57942
57943         * MODULES.html.sh: Remove --cvs-urls option.
57944
57945 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
57946
57947         maint.mk: adjust to file name change
57948         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
57949
57950 2008-08-28  Jim Meyering  <meyering@redhat.com>
57951
57952         * modules/getndelim2 (License): Relicense to LGPLv2+.
57953         Approved by Richard Stallman for the version of 1995, and by
57954         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
57955
57956 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
57957
57958         * lib/getdelim.c (flockfile, funlockfile): Make all of them
57959         dummy if one is not available.  Do not touch them if
57960         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
57961         (getc_maybe_unlocked): New.
57962         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
57963
57964 2008-08-26  Eric Blake  <ebb9@byu.net>
57965
57966         doc/INSTALL: resync from autoconf
57967         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
57968         (INSTALL_PRELUDE): Delete; this is done more efficiently by
57969         moving...
57970         * install.texi [!autoconf]: ...here.  Resync from autoconf.
57971         * INSTALL: Regenerate.
57972         * INSTALL.ISO: New file.
57973         * INSTALL.UTF-8: Likewise.
57974
57975 2008-08-26  Jim Meyering  <meyering@redhat.com>
57976
57977         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
57978         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
57979         these definitions conditional, so that they may be overridden, too.
57980
57981 2008-08-26  Bruno Haible  <bruno@clisp.org>
57982
57983         Generate INSTALL file variants with prettier quotes.
57984         * doc/Makefile (INSTALL_PRELUDE): New macro.
57985         (INSTALL): Use it.
57986         (INSTALL.ISO, INSTALL.UTF-8): New rules.
57987
57988 2008-08-26  Bruno Haible  <bruno@clisp.org>
57989
57990         Run makeinfo in an English locale.
57991         * doc/Makefile (MAKEINFO): New variable.
57992
57993 2008-08-26  Bruno Haible  <bruno@clisp.org>
57994
57995         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
57996         Suggested by Eric Blake.
57997
57998 2008-08-25  Bruno Haible  <bruno@clisp.org>
57999
58000         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
58001
58002 2008-08-25  Eric Blake  <ebb9@byu.net>
58003
58004         c-stack: test that stack overflow can be caught
58005         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
58006         that platform allows handling stack overflow; at least OS/2 EMX
58007         has sigaltstack, but crashes before transferring control to
58008         handler on stack overflow.
58009         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
58010         check for HAVE_STACK_OVERFLOW_HANDLING.
58011         Reported by Elbert Pol.
58012
58013 2008-08-25  Bruno Haible  <bruno@clisp.org>
58014
58015         * doc/posix-functions/strftime.texi: Fix description of strftime
58016         module.
58017
58018 2008-08-24  Bruno Haible  <bruno@clisp.org>
58019
58020         * tests/uniwidth/test-uc_width2.c: New file.
58021         * tests/uniwidth/test-uc_width2.sh: New file.
58022         * modules/uniwidth/width-tests (Files): Add the new files.
58023         (TESTS): Add uniwidth/test-uc_width2.sh.
58024         (TESTS_ENVIRONMENT): New variable.
58025         (check_PROGRAMS): Add test-uc_width2.
58026         (test_uc_width2_SOURCES): New variable.
58027
58028         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
58029         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
58030         not 0x00AB.
58031         Reported by Alexander V. Lukyanov <lav@netis.ru>.
58032
58033 2008-08-22  Eric Blake  <ebb9@byu.net>
58034
58035         test-lock, test-tls: mention why a test is skipped
58036         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
58037         skipped.
58038         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
58039
58040         count-one-bits: relax license
58041         * modules/count-one-bits (License): Relicense to LGPLv2+.
58042         Suggested by Ludovic Courtès, approved by Ben Pfaff.
58043
58044 2008-08-22  Andreas Schwab  <schwab@suse.de>
58045
58046         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
58047         Remove spurious space in assignment.
58048
58049 2008-08-21  Simon Josefsson  <simon@josefsson.org>
58050
58051         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
58052         Paul Eggert <eggert@CS.UCLA.EDU>.
58053
58054 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
58055
58056         * modules/gettext: Add m4/threadlib.m4.
58057
58058 2008-08-19  Eric Blake  <ebb9@byu.net>
58059
58060         test-c-stack: fix compilation failure on FreeBSD 5.0
58061         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
58062         headers before <sys/resource.h>.
58063         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
58064         the bug.
58065         Reported by Nelson H. F. Beebe.
58066
58067         strverscmp: migrate from "strverscmp.h" to <string.h>
58068         * modules/string (Makefile.am): Add new hooks.
58069         * modules/strverscmp (Files): Remove strverscmp.h.
58070         (Depends-on): Add string.
58071         (configure.ac): Add indicator.
58072         (Include): Mention new header.
58073         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
58074         defaults.
58075         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
58076         results.
58077         * lib/strverscmp.h: Delete.
58078         * lib/string.in.h (strverscmp): Provide declaration, when needed.
58079         * tests/test-strverscmp.c (includes): Adjust client.
58080         * lib/check-version.c (includes): Likewise.
58081         * NEWS: Document the change.
58082
58083         strverscmp: add unit test
58084         * modules/strverscmp-tests: New file.
58085         * tests/test-strverscmp.c: Likewise.
58086
58087 2008-08-19  Simon Josefsson  <simon@josefsson.org>
58088
58089         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
58090         regarding Windows crypto stuff, from Mono.
58091
58092 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
58093
58094         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
58095         if present, for intel RND.  Return error on failures.
58096
58097 2008-08-18  Ben Pfaff  <blp@gnu.org>
58098
58099         gitlog-to-changelog: give better diagnostic for failed pipe-open
58100         * build-aux/gitlog-to-changelog: Improve error message: suggest
58101         that the version of Git may be too old.
58102
58103 2008-08-18  Simon Josefsson  <simon@josefsson.org>
58104
58105         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
58106         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
58107
58108 2008-08-18  Bruno Haible  <bruno@clisp.org>
58109
58110         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
58111         pthread_in_use().
58112
58113 2008-08-18  Bruno Haible  <bruno@clisp.org>
58114
58115         * lib/glthread/threadlib.c: Include <pthread.h>.
58116
58117 2008-08-18  Bruno Haible  <bruno@clisp.org>
58118
58119         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
58120         glthread_recursive_lock_* macros.
58121         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
58122         Fix syntax error.
58123
58124 2008-08-18  Bruno Haible  <bruno@clisp.org>
58125
58126         * lib/glthread/thread.c: Avoid forcing a context switch right after
58127         thread creation.
58128
58129 2008-08-17  Bruno Haible  <bruno@clisp.org>
58130
58131         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
58132         * lib/glthread/thread.h: Provide Win32 specific implementation.
58133         * modules/thread (Files): Add lib/glthread/thread.c.
58134         (Depends-on): Add lock.
58135         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
58136
58137 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58138
58139         New module 'yield'.
58140         * modules/yield: New file.
58141         * lib/glthread/yield.h: New file.
58142         * m4/yield.m4: New file.
58143         * MODULES.html.sh (Multithreading): Add yield.
58144
58145 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58146
58147         New module 'thread'.
58148         * modules/thread: New file.
58149         * lib/glthread/thread.h: New file.
58150         * m4/thread.m4: New file.
58151         * MODULES.html.sh (Multithreading): Add thread.
58152
58153 2008-08-17  Bruno Haible  <bruno@clisp.org>
58154
58155         * lib/glthread/lock.h: Include <stdlib.h> always.
58156         * lib/glthread/tls.h: Likewise.
58157         * lib/glthread/cond.h: Likewise.
58158
58159 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58160
58161         New module 'cond'.
58162         * modules/cond: New file.
58163         * lib/glthread/cond.h: New file.
58164         * lib/glthread/cond.c: New file.
58165         * m4/cond.m4: New file.
58166         * MODULES.html.sh (Multithreading): Add cond.
58167
58168 2008-08-16  Eric Blake  <ebb9@byu.net>
58169
58170         c-stack: fix regression on Irix 5.3 from 2008-06-21
58171         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
58172         sa_sigaction...
58173         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
58174         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
58175         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
58176         * modules/signal (Makefile.am): Use the value.
58177         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
58178         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
58179         * doc/posix-headers/signal.texi (signal.h): Document this
58180         portability issue.
58181         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
58182         Reported by Tom G. Christensen.
58183
58184 2008-08-17  Bruno Haible  <bruno@clisp.org>
58185
58186         New module 'threadlib'.
58187         * modules/threadlib: New file.
58188         * lib/glthread/threadlib.c: New file, extracted from
58189         lib/glthread/lock.c.
58190         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
58191         functions.
58192         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
58193         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
58194         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
58195         macros.
58196         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
58197         (gl_DISABLE_THREADS): Remove macro.
58198         * modules/lock (Files): Remove build-aux/config.rpath.
58199         (Depends-on): Remove havelib. Add threadlib.
58200         (configure.ac-early): Remove section.
58201         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
58202         * modules/tls (Depends-on): Remove lock. Add threadlib.
58203         (Link): New section, copied from threadlib.
58204         * MODULES.html.sh (Multithreading): Add threadlib.
58205
58206 2008-08-14  Bruno Haible  <bruno@clisp.org>
58207
58208         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
58209         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
58210         glthread_rwlock_unlock, glthread_rwlock_destroy,
58211         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
58212         glthread_recursive_lock_destroy): Define as macros always.
58213         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
58214         glthread_lock_lock.
58215         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
58216         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
58217         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
58218         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
58219         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
58220         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
58221         (glthread_recursive_lock_lock_func): Renamed from
58222         glthread_recursive_lock_lock.
58223         (glthread_recursive_lock_unlock_func): Renamed from
58224         glthread_recursive_lock_unlock.
58225         (glthread_recursive_lock_destroy_func): Renamed from
58226         glthread_recursive_lock_destroy.
58227
58228 2008-08-14  Bruno Haible  <bruno@clisp.org>
58229
58230         * lib/glthread/lock.h: Renamed from lib/lock.h.
58231         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
58232         * lib/glthread/tls.h: Renamed from lib/tls.h.
58233         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
58234         * lib/fstrcmp.c: Update includes.
58235         * lib/strsignal.c: Update includes.
58236         * modules/lock (Files, Makefile.am): Update.
58237         (Include): Change to "glthread/lock.h".
58238         * modules/tls (Files, Makefile.am): Update.
58239         (Include): Change to "glthread/tls.h".
58240         * tests/test-lock.c: Update includes.
58241         * tests/test-tls.c: Update includes.
58242         * NEWS: Mention the renamed header files.
58243
58244 2008-08-11  Jim Meyering  <meyering@redhat.com>
58245
58246         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
58247
58248 2008-08-11  Eric Blake  <ebb9@byu.net>
58249
58250         test-c-stack: avoid C99-ism
58251         * tests/test-c-stack.c (main): Fix whitespace, move declaration
58252         before statement.
58253         Reported by Alain Guibert.
58254
58255 2008-08-10  Jim Meyering  <meyering@redhat.com>
58256
58257         ensure that return value of uinttostr et al are not ignored
58258         * lib/inttostr.h (__GNUC_PREREQ): Define.
58259         (__attribute_warn_unused_result__): Define.
58260         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
58261
58262 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
58263
58264         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
58265         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
58266
58267 2008-08-07  Jim Meyering  <meyering@redhat.com>
58268
58269         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
58270
58271         * modules/mkstemp (License): Relicense under LGPLv2+.
58272         * modules/tempname (License): Likewise.
58273
58274 2008-08-06  Bruno Haible  <bruno@clisp.org>
58275
58276         * lib/poll.c (poll): Further micro-optimization.
58277
58278 2008-08-06  Jim Meyering  <meyering@redhat.com>
58279
58280         inet_pton.c: use locale-independent tolower
58281         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
58282         (inet_pton6): Use c_tolower rather than tolower.
58283         * modules/inet_pton (Depends-on): Add c-ctype.
58284
58285 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
58286
58287         * lib/poll.c (poll): Avoid division when timeout is 0, cache
58288         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
58289
58290 2008-08-06  Jim Meyering  <meyering@redhat.com>
58291
58292         * modules/inet_pton (License): Relicense under LGPLv2+.
58293
58294 2008-08-03  Bruno Haible  <bruno@clisp.org>
58295
58296         Additional non-aborting API for lock and tls.
58297         * lib/lock.h: Include <errno.h>.
58298         (glthread_lock_init): New macro/function.
58299         (gl_lock_init): Define as wrapper around glthread_lock_init.
58300         (glthread_lock_lock): New macro/function.
58301         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
58302         (glthread_lock_unlock): New macro/function.
58303         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
58304         (glthread_lock_destroy): New macro/function.
58305         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
58306         (glthread_rwlock_init): New macro/function.
58307         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
58308         (glthread_rwlock_rdlock): New macro/function.
58309         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
58310         (glthread_rwlock_wrlock): New macro/function.
58311         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
58312         (glthread_rwlock_unlock): New macro/function.
58313         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
58314         (glthread_rwlock_destroy): New macro/function.
58315         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
58316         (glthread_recursive_lock_init): New macro/function.
58317         (gl_recursive_lock_init): Define as wrapper around
58318         glthread_recursive_lock_init.
58319         (glthread_recursive_lock_lock): New macro/function.
58320         (gl_recursive_lock_lock): Define as wrapper around
58321         glthread_recursive_lock_lock.
58322         (glthread_recursive_lock_unlock): New macro/function.
58323         (gl_recursive_lock_unlock): Define as wrapper around
58324         glthread_recursive_lock_unlock.
58325         (glthread_recursive_lock_destroy): New macro/function.
58326         (gl_recursive_lock_destroy): Define as wrapper around
58327         glthread_recursive_lock_destroy.
58328         (glthread_once): New macro/function.
58329         (gl_once): Define as wrapper around glthread_once.
58330         Update function declarations.
58331         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
58332         glthread_rwlock_init. Return error code.
58333         (glthread_rwlock_rdlock_multithreaded): Renamed from
58334         glthread_rwlock_rdlock. Return error code.
58335         (glthread_rwlock_wrlock_multithreaded): Renamed from
58336         glthread_rwlock_wrlock. Return error code.
58337         (glthread_rwlock_unlock_multithreaded): Renamed from
58338         glthread_rwlock_unlock. Return error code.
58339         (glthread_rwlock_destroy_multithreaded): Renamed from
58340         glthread_rwlock_destroy. Return error code.
58341         (glthread_recursive_lock_init_multithreaded): Renamed from
58342         glthread_recursive_lock_init. Return error code.
58343         (glthread_recursive_lock_lock_multithreaded): Renamed from
58344         glthread_recursive_lock_lock. Return error code.
58345         (glthread_recursive_lock_unlock_multithreaded): Renamed from
58346         glthread_recursive_lock_unlock. Return error code.
58347         (glthread_recursive_lock_destroy_multithreaded): Renamed from
58348         glthread_recursive_lock_destroy. Return error code.
58349         (glthread_once_call): Make static.
58350         (glthread_once_multithreaded): Renamed from glthread_once.
58351         * lib/tls.h: Include <errno.h>.
58352         (glthread_tls_key_init): New macro/function.
58353         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
58354         (glthread_tls_set): New macro/function.
58355         (gl_tls_set): Define as wrapper around glthread_tls_set.
58356         (glthread_tls_key_destroy): New macro/function.
58357         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
58358         Update function declarations.
58359         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
58360         glthread_tls_get.
58361         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
58362
58363 2008-08-04  Eric Blake  <ebb9@byu.net>
58364
58365         gnumakefile: use space, not TAB, outside of targets
58366         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
58367
58368 2008-08-02  Jim Meyering  <meyering@redhat.com>
58369
58370         getdate.y: avoid locale-dependent date parsing failure
58371         In Turkish locales, getdate would fail to recognize keywords
58372         containing a lowercase "i".  The solution is not to rely on
58373         locale-sensitive case-conversion.
58374         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
58375         (lookup_word): Use c_toupper in place of toupper.
58376         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
58377         Reported by Vefa Bicakci <bicave@superonline.com> in
58378         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
58379         * modules/getdate (Depends-on): Add c-ctype.
58380
58381 2008-08-02  Bruno Haible  <bruno@clisp.org>
58382
58383         * gnulib-tool (func_import): When updating or creating a .gitignore
58384         file, prepend each added line with a slash, and ignore leading slashes
58385         from the existing lines.
58386         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
58387
58388 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58389
58390         Portability fix for GNU make 3.79.1.
58391         * top/GNUmakefile: Avoid 'else COND', which older GNU make
58392         versions do not understand.
58393
58394 2008-08-01  Bruno Haible  <bruno@clisp.org>
58395
58396         Work around bug of HP-UX 10.20 cc with -0.0 literal.
58397         * tests/test-isnanf.h (zero): New variable.
58398         (main): Avoid literal -0.0f.
58399         * tests/test-isnand.h (zero): New variable.
58400         (main): Avoid literal -0.0.
58401         * tests/test-isnanl.h (zero): New variable.
58402         (main): Avoid literal -0.0L.
58403         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
58404         (test_float, test_double, test_long_double): Avoid literals -0.0f,
58405         -0.0, -0.0L.
58406         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
58407         (test_signbitd): Avoid literal -0.0.
58408         (test_signbitl): Avoid literal -0.0L.
58409         * tests/test-ceilf1.c (zero): New variable.
58410         (main): Avoid literal -0.0f.
58411         * tests/test-ceill.c (zero): New variable.
58412         (main): Avoid literal -0.0L.
58413         * tests/test-floorf1.c (zero): New variable.
58414         (main): Avoid literal -0.0f.
58415         * tests/test-floorl.c (zero): New variable.
58416         (main): Avoid literal -0.0L.
58417         * tests/test-roundf1.c (zero): New variable.
58418         (main): Avoid literal -0.0f.
58419         * tests/test-round1.c (zero): New variable.
58420         (main): Avoid literal -0.0.
58421         * tests/test-roundl.c (zero): New variable.
58422         (main): Avoid literal -0.0L.
58423         * tests/test-truncf1.c (zero): New variable.
58424         (main): Avoid literal -0.0f.
58425         * tests/test-trunc1.c (zero): New variable.
58426         (main): Avoid literal -0.0.
58427         * tests/test-truncl.c (zero): New variable.
58428         (main): Avoid literal -0.0L.
58429         * tests/test-frexp.c (zero): New variable.
58430         (main): Avoid literal -0.0.
58431         * tests/test-frexpl.c (zero): New variable.
58432         (main): Avoid literal -0.0L.
58433         * tests/test-ldexpl.c (zero): New variable.
58434         (main): Avoid literal -0.0L.
58435         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
58436         (zerod, zerol): New variables.
58437         (test_function): Avoid literals -0.0, -0.0L.
58438         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
58439         (zerod, zerol): New variables.
58440         (test_function): Avoid literals -0.0, -0.0L.
58441         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
58442         (zerod, zerol): New variables.
58443         (test_function): Avoid literals -0.0, -0.0L.
58444         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
58445         (zerod, zerol): New variables.
58446         (test_function): Avoid literals -0.0, -0.0L.
58447         * tests/test-strtod.c (zero): New variable.
58448         (main): Avoid literal -0.0.
58449         Reported by Jonathan C. Patschke <jp@centtech.com>.
58450
58451 2008-07-31  Jim Meyering  <meyering@redhat.com>
58452
58453         sha256.h: correct definition of SHA224_DIGEST_SIZE
58454         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
58455         Reported by Paulie Pena IV <paulie4@gmail.com>.
58456         Define as 224 / 8, rather than as a literal.
58457         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
58458         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
58459         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
58460
58461 2008-07-31  Bruno Haible  <bruno@clisp.org>
58462
58463         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
58464         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
58465         Reported by Jonathan Patschke <jp@centtech.com>.
58466
58467 2008-07-31  Bruno Haible  <bruno@clisp.org>
58468
58469         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
58470         Reported by Paolo Bonzini <bonzini@gnu.org>.
58471
58472 2008-07-30  Eric Blake  <ebb9@byu.net>
58473
58474         test-strtod: allow compilation without -lm
58475         * tests/test-strtod.c (main): Avoid link dependence on fabs.
58476         Reported by Dennis Clarke <blastwave@gmail.com>.
58477
58478 2008-07-28  Jim Meyering  <meyering@redhat.com>
58479
58480         bootstrap: work also when there are no .po files in po/
58481         * build-aux/bootstrap (update_po_files): Complete the change
58482         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
58483
58484 2008-07-27  Jim Meyering  <meyering@redhat.com>
58485
58486         * users.txt: Add zile.
58487
58488 2008-07-26  Ben Pfaff  <blp@gnu.org>
58489
58490         Add missing dependencies on new m4/exponent[fdl].m4 files.
58491         * modules/isnanf-nolibm: Add m4/exponentf.m4.
58492         * modules/isnand-nolibm: Add m4/exponentd.m4.
58493         * modules/isnanl-nolibm: Add m4/exponentl.m4.
58494         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
58495         m4/isnan[fdl].m4, because the macros actually used moved.
58496         Reported by Jim Meyering.
58497
58498 2008-07-14  Ben Pfaff  <blp@gnu.org>
58499
58500         Add isinf module.
58501         * lib/isinf.c: New file.
58502         * lib/math.in.h: Define isinf macro if we have decided to replace
58503         it.
58504         * m4/isinf.m4: New file.
58505         * m4/math_h.m4: Initialize and substitute variables for isinf
58506         module.
58507         * modules/isinf: New file.
58508         * modules/isinf-tests: New file.
58509         * modules/math: Add substitutions for new module.
58510         * tests/test-isinf.c: New file.
58511         * doc/posix-functions/isinf.texi: Mention new module.
58512         * MODULES.html.sh: Mention new module.
58513
58514 2008-07-14  Ben Pfaff  <blp@gnu.org>
58515
58516         Factor out some macros for use by additional modules.
58517         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
58518         exponentf.m4.
58519         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
58520         exponentd.m4.
58521         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
58522         file exponentl.m4.
58523         * m4/exponentf.m4: New file.
58524         * m4/exponentd.m4: New file.
58525         * m4/exponentl.m4: New file.
58526         * modules/isnanf: Use new file m4/exponentf.m4.
58527         * modules/isnand: Use new file m4/exponentd.m4.
58528         * modules/isnanl: Use new file m4/exponentl.m4.
58529
58530 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
58531
58532         mktime.c: normalize tp->tm_isdst value to -1/0/1.
58533         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
58534         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
58535         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
58536
58537         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
58538         readlink on platforms without PATH_MAX.
58539
58540 2008-07-21  Eric Blake  <ebb9@byu.net>
58541
58542         Warn, not fail, on stale version.
58543         * top/GNUmakefile (_curr-ver): Tone down previous patch.
58544
58545         Don't allow installation with stale devel version number.
58546         * top/GNUmakefile (_is-install-target): New macro.
58547         (_curr-ver): Forbid installation with stale version number.
58548
58549 2008-07-20  Bruno Haible  <bruno@clisp.org>
58550
58551         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
58552         TESTS_ENVIRONMENT.
58553         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
58554
58555 2008-07-20  Bruno Haible  <bruno@clisp.org>
58556
58557         * lib/c-stack.h (c_stack_action): Add documentation.
58558         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
58559
58560 2008-07-20  Bruno Haible  <bruno@clisp.org>
58561
58562         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
58563         * modules/readlink (License): Likewise.
58564
58565 2008-07-17  Eric Blake  <ebb9@byu.net>
58566
58567         * modules/c-stack (Link): Fix typo.
58568
58569         Make c-stack use libsigsegv, when available.
58570         * modules/c-stack (Depends-on): Add libsigsegv.
58571         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
58572         needed.
58573         * lib/c-stack.c (SIGSTKSZ): Define fallback.
58574         (segv_handler, overflow_handler, c_stack_action)
58575         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
58576         implementation when libsigsegv is available, but only when using
58577         the library is necessary.
58578         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
58579         comment, explaining why XSI check fails on Linux.
58580         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
58581         * tests/test-c-stack2.sh: Tweak skip message.
58582         * NEWS: Document new link-time requirements.
58583
58584 2008-07-16  Eric Blake  <ebb9@byu.net>
58585
58586         c-stack: Expose false positives when not using libsigsegv.
58587         * modules/c-stack-tests (Files): Expand test.
58588         * tests/test-c-stack.c (main): Add means to conditionally trigger
58589         non-overflow SIGSEGV.
58590         * tests/test-c-stack2.sh: New file.
58591
58592 2008-07-14  Bruno Haible  <bruno@clisp.org>
58593
58594         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
58595         Reported by Eric Blake.
58596
58597 2008-07-14  Sam Steingold  <sds@gnu.org>
58598             Bruno Haible  <bruno@clisp.org>
58599
58600         New module libsigsegv.
58601         * modules/libsigsegv: New file.
58602         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
58603         modifications.
58604         * MODULES.html.sh (Signal handling): New section.
58605
58606 2008-07-14  Bruno Haible  <bruno@clisp.org>
58607
58608         * modules/unictype/ctype-* (Description): Add the word "function".
58609         Improves the resulting doc in MODULES.html.
58610
58611 2008-07-12  Ben Pfaff  <blp@gnu.org>
58612
58613         Add longlong module.
58614         * modules/longlong: New file.
58615
58616 2008-07-12  Bruno Haible  <bruno@clisp.org>
58617
58618         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
58619         to empty.
58620
58621 2008-07-10  Ben Pfaff  <blp@gnu.org>
58622
58623         Add isnan module.
58624         * doc/posix-functions/isnan.texi: Mention new module.
58625         * lib/math.in.h: Define isnan macro if we have decided to replace
58626         it.
58627         * m4/isnan.m4: New file.
58628         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
58629         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
58630         also.
58631         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
58632         redundancy.
58633         * m4/math_h.m4: Initialize and substitute variables for isnan
58634         module.
58635         * modules/isnan: New file.
58636         * modules/isnan-tests: New file.
58637         * modules/math: Add substitutions for new module.
58638         * tests/test-isnan.c: New file.
58639         * MODULES.html.sh: Mention new module.
58640
58641 2008-07-10  Ben Pfaff  <blp@gnu.org>
58642
58643         Add isnanf module.
58644         * lib/isnanf.m4: New file.
58645         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
58646         (gl_HAVE_ISNANF_IN_LIBM): New macro.
58647         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
58648         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
58649         * modules/isnanf: New file.
58650         * modules/isnanf-tests: New file.
58651         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
58652         files.
58653         * tests/test-isnanf-nolibm.c: factored most of its contents into
58654         new file tests/test-isnanf.h.
58655         * tests/test-isnanf.h: New file.
58656         * tests/test-isnanf.c: New file.
58657         * MODULES.html.sh: Mention new module.
58658         * doc/glibc-functions/isnanf.texi: Mention new module.
58659
58660 2008-07-10  Ben Pfaff  <blp@gnu.org>
58661
58662         Add isnand module.
58663         * lib/isnand.h: New file.
58664         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
58665         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
58666         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
58667         functionality also.
58668         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
58669         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
58670         (gl_HAVE_ISNAND_IN_LIBM): New macro.
58671         * modules/isnand: New file.
58672         * modules/isnand-tests: New file.
58673         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
58674         files.
58675         * tests/test-isnand-nolibm.c: factored most of its contents into
58676         new file tests/test-isnand.h.
58677         * tests/test-isnand.h: New file.
58678         * tests/test-isnand.c: New file.
58679         * MODULES.html.sh: Mention new module.
58680
58681 2008-07-10  Ben Pfaff  <blp@gnu.org>
58682
58683         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
58684         * lib/isnand.h: Rename lib/isnand-nolibm.h.
58685         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
58686         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
58687         * modules/isnanf-nolibm: Update references to renamed files.
58688         * modules/isnand-nolibm: Likewise.
58689         * modules/isnanf-nolibm-tests: Likewise.
58690         * modules/isnand-nolibm-tests: Likewise.
58691         * lib/frexp.c: Likewise.
58692         * lib/isfinite.c: Likewise.
58693         * lib/signbitd.c: Likewise.
58694         * lib/signbitf.c: Likewise.
58695         * lib/vasnprintf.c: Likewise.
58696         * tests/test-ceilf1.c: Likewise.
58697         * tests/test-ceilf2.c: Likewise.
58698         * tests/test-floorf1.c: Likewise.
58699         * tests/test-floorf2.c: Likewise.
58700         * tests/test-frexp.c: Likewise.
58701         * tests/test-round1.c: Likewise.
58702         * tests/test-round2.c: Likewise.
58703         * tests/test-roundf1.c: Likewise.
58704         * tests/test-strtod.c: Likewise.
58705         * tests/test-trunc1.c: Likewise.
58706         * tests/test-trunc2.c: Likewise.
58707         * tests/test-truncf1.c: Likewise.
58708         * tests/test-truncf2.c: Likewise.
58709         * NEWS: Mention the renamed header files.
58710
58711 2008-07-11  Jim Meyering  <meyering@redhat.com>
58712
58713         vc-list-files: make the last-resort awk code more portable
58714         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
58715         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
58716         does not support it.
58717
58718 2008-07-10  Eric Blake  <ebb9@byu.net>
58719
58720         Work with tar's bootstrap.
58721         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
58722         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
58723         an m4 comment.
58724
58725 2008-07-09  Jim Meyering  <meyering@redhat.com>
58726
58727         posix-shell.m4: fix typo that made this test malfunction
58728         * m4/posix-shell.m4: Remove capitalization in variable name.
58729
58730 2008-07-08  Bruno Haible  <bruno@clisp.org>
58731
58732         * m4/onceonly.m4: Update comments.
58733         Reported by Ben Pfaff <blp@cs.stanford.edu>.
58734
58735 2008-07-04  Jim Meyering  <meyering@redhat.com>
58736
58737         * users.txt: Add vc-dwim.
58738         (bison, coreutils): Use the gitweb URL.
58739
58740 2008-07-03  Jim Meyering  <meyering@redhat.com>
58741
58742         * users.txt: Add libffcall.  From Sam Steingold.
58743
58744 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
58745
58746         getdate.y: do not ignore TZ with relative day, month or year offset
58747         * lib/getdate.y (get_date): Move the tz-handling block to follow the
58748         relative-date-handling, since otherwise, the latter would clobber the
58749         sole output (an updated Start value) of the tz-handling block.
58750         * tests/test-getdate.c: Tests for the fix
58751
58752 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58753
58754         Recognize 'foo_LIBRARIES += libgnu.a'.
58755         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
58756         makefile snippet has already specified an installation location,
58757         also using '+='.
58758
58759 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
58760
58761         getdate.y: factor out common actions
58762         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
58763         Use them in place of open-coded actions.
58764
58765 2008-07-01  Simon Josefsson  <simon@josefsson.org>
58766
58767         Add self-test for getdate module.
58768         * modules/getdate-tests: New file.
58769         * tests/test-getdate.c: New file.
58770
58771 2008-06-29  Bruno Haible  <bruno@clisp.org>
58772
58773         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
58774         .gitignore.
58775         Reported by Sylvain Beucler <beuc@beuc.net>.
58776
58777 2008-06-29  Bruno Haible  <bruno@clisp.org>
58778
58779         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
58780         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
58781
58782 2008-06-29  Bruno Haible  <bruno@clisp.org>
58783
58784         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
58785         EXTRA_DIST.
58786         Reported by Sylvain Beucler <beuc@beuc.net>.
58787
58788 2008-06-26  Jim Meyering  <meyering@redhat.com>
58789
58790         make several modules depend on the "open" module
58791         This provides slightly increased consistency when opening-for-write
58792         the name of a non-directory spelled with a trailing slash.
58793         * modules/chdir-safer: Likewise.
58794         * modules/chown: Likewise.
58795         * modules/clean-temp: Likewise.
58796         * modules/copy-file: Likewise.
58797         * modules/fchdir: Likewise.
58798         * modules/fcntl-safer: Likewise.
58799         * modules/pipe: Likewise.
58800         * modules/utime: Likewise.
58801         Prompted by Eric Blake and Bruno Haible.
58802
58803 2008-06-24  Andreas Schwab  <schwab@suse.de>
58804
58805         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
58806         literals can be used as initializers for global variables.
58807
58808 2008-06-23  Eric Blake  <ebb9@byu.net>
58809
58810         Make gnulib-cache.m4 easier to diff.
58811         * gnulib-tool (func_import): Allow newlines when reading cached
58812         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
58813
58814 2008-06-23  Bruno Haible  <bruno@clisp.org>
58815
58816         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
58817         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
58818         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
58819         m4/signalblocking.m4.
58820         (gl_PREREQ_SIGACTION): Don't invoke it.
58821         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
58822         gl_PREREQ_SIG_HANDLER_H.
58823         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
58824         Don't check for sigaction here.
58825
58826 2008-06-23  Bruno Haible  <bruno@clisp.org>
58827
58828         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
58829         (install_handlers): Don't set the SA_RESETHAND flag.
58830
58831 2008-06-23  Bruno Haible  <bruno@clisp.org>
58832
58833         * m4/sigaction.m4: Comment fixes.
58834         * lib/signal.in.h: Likewise.
58835
58836 2008-06-23  Eric Blake  <ebb9@byu.net>
58837
58838         Fix typo.
58839         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
58840
58841         Avoid SA_ namespace.
58842         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
58843         Reported by Ralf Wildenhues.
58844
58845         Avoid test failure due to SA_RESTORER.
58846         * tests/test-sigaction.c (SA_MASK): New macro.
58847         (main): Avoid failing due to extension flags being set.
58848         Reported by Jim Meyering.
58849
58850         Revert use of sig-handler.h in sigprocmask.c.
58851         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
58852         it requires the existence of struct sigaction.
58853         * lib/sigprocmask.c (handler_t): Restore typedef.
58854         (rpl_signal, old_handlers): Use local type.
58855
58856 2008-06-22  Bruno Haible  <bruno@clisp.org>
58857
58858         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
58859         conditionally.
58860         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58861
58862 2008-06-22  Bruno Haible  <bruno@clisp.org>
58863
58864         * doc/posix-functions/siginterrupt.texi: Move note.
58865
58866         * lib/signal.in.h (SA_RESTART): New macro.
58867         * lib/sigaction.c: Update comment.
58868
58869         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
58870
58871         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
58872         (gl_PREREQ_SIGPROCMASK): Invoke it.
58873         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
58874
58875         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
58876
58877         * lib/sigprocmask.c: Update a comment.
58878
58879 2008-06-21  Eric Blake  <ebb9@byu.net>
58880
58881         Use sigaction module rather than signal().
58882         * modules/c-stack (Depends-on): Add sigaction.
58883         * modules/fatal-signal (Depends-on): Likewise.
58884         * modules/nanosleep (Depends-on): Likewise.
58885         * modules/sigprocmask (Files): Add sig-handler.h.
58886         * modules/sigaction (Files): Likewise.
58887         * lib/sig-handler.h (get_handler): New file, suggested by Paul
58888         Eggert.
58889         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
58890         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
58891         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
58892         (init_fatal_signals): Likewise.
58893         * lib/nanosleep.c (rpl_nanosleep): Likewise.
58894         (siginterrupt): Delete fallback.
58895         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
58896         instead.
58897         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
58898         siginterrupt.
58899
58900         New module sigaction, for mingw.
58901         * modules/sigaction: New module...
58902         * modules/sigaction-tests: ...and its test.
58903         * m4/sigaction.m4: New file.
58904         * lib/sigaction.c: Likewise.
58905         * tests/test-sigaction.c: Likewise.
58906         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
58907         * modules/signal (Makefile.am): Likewise.
58908         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
58909         needed.
58910         * doc/posix-headers/signal.texi (signal.h): Mention provided
58911         types.
58912         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
58913         that sigaction is preferable.
58914         * doc/posix-functions/sigaction.texi (sigaction): Mention new
58915         module.
58916         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58917         sigaction.
58918
58919         Improve robustness of sigprocmask by overriding signal.
58920         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
58921         is in use.
58922         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
58923         (SIGKILL, SIGSTOP): Provide fallbacks.
58924         (rpl_signal): Implement.
58925         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
58926         signal can be called inside handlers.
58927
58928         Fix nanosleep module on mingw.
58929         * modules/nanosleep (Depends-on): Add sys_select.
58930         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
58931
58932         Fix licensing of sigprocmask.
58933         * modules/raise (License): Relicense as LGPL.
58934
58935 2008-06-21  Bruno Haible  <bruno@clisp.org>
58936
58937         * lib/propername.c (proper_name_utf8): Don't use the transliterated
58938         result if it contains question marks.
58939         Reported by Michael Geng <linux@michaelgeng.de>.
58940
58941 2008-06-19  Bruno Haible  <bruno@clisp.org>
58942
58943         Fix CVS-ism.
58944         * doc/gnulib.texi: Include updated-stamp.texi.
58945         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
58946         (updated-stamp.texi): New rule.
58947         (gnulib.info): Depend on it.
58948         * doc/.gitignore: Add updated-stamp.texi.
58949         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
58950
58951 2008-06-19  Bruno Haible  <bruno@clisp.org>
58952
58953         * doc/Makefile (gnulib.info): Update and simplify dependencies.
58954         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
58955
58956 2008-06-19  Eric Blake  <ebb9@byu.net>
58957
58958         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
58959         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
58960         Reported by Stepan Kasal.
58961
58962 2008-06-18  Bruno Haible  <bruno@clisp.org>
58963
58964         * lib/fatal-signal.c (init_fatal_signals): Add comment.
58965         Reported by Eric Blake.
58966
58967 2008-06-18  Eric Blake  <ebb9@byu.net>
58968
58969         Work around cygwin 1.5.25 strsignal bug.
58970         * tests/test-strsignal.c: Allow for const char *.
58971         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
58972
58973 2008-06-18  Simon Josefsson  <simon@josefsson.org>
58974
58975         * users.txt: Update URL to article and add author/date
58976         information.
58977
58978 2008-06-17  Bruno Haible  <bruno@clisp.org>
58979
58980         New macro gl_DISABLE_THREADS.
58981         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
58982         if the user did not pass --enable-threads or --disable-threads option.
58983         (gl_DISABLE_THREADS): New macro.
58984         Reported by Eric Blake <ebb9@byu.net>.
58985
58986 2008-06-17  Bruno Haible  <bruno@clisp.org>
58987
58988         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
58989         when the macro ignores it.
58990         Based on a patch by Eric Blake <ebb9@byu.net>.
58991
58992 2008-06-17  Bruno Haible  <bruno@clisp.org>
58993
58994         * modules/tls (License): Change to LGPLv2+.
58995         Reported by Eric Blake.
58996
58997 2008-06-17  Eric Blake  <ebb9@byu.net>
58998
58999         Simplify c-stack prerequisites.
59000         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
59001         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
59002         no longer requires <ucontext.h> to exist.  Optimize setrlimit
59003         check.
59004         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
59005         <sys/resource.h>.
59006
59007         Move c-stack test into testsuite.
59008         * modules/c-stack-tests: New file.
59009         * lib/c-stack.c [DEBUG]: Move test program...
59010         * tests/test-c-stack.c: ...into this new file.  Skip rather than
59011         fail test if sigaltstack is lacking.
59012         * tests/test-c-stack.sh: New driver file.
59013
59014 2008-06-16  Eric Blake  <ebb9@byu.net>
59015
59016         Use raise module consistently.
59017         * modules/fatal-signal (Depends-on): Add raise.
59018         * modules/sigprocmask (Depends-on): Likewise.
59019         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
59020         * lib/sigprocmask.c (sigprocmask): Likewise.
59021         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
59022         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
59023
59024         Fix compliance bug in sigpending.
59025         * lib/sigprocmask.c (sigpending): Return pending array via
59026         parameter, not return value.
59027
59028 2008-06-14  Eric Blake  <ebb9@byu.net>
59029
59030         Improve obstack-printf test code.
59031         * tests/test-obstack-printf.c (test_function): Fix comment, and
59032         simplify usage of obstack_* in macros.  Add a test for coverage.
59033         Reported by Bruno Haible.
59034
59035 2008-06-14  Bruno Haible  <bruno@clisp.org>
59036
59037         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
59038         array size as a constant, not as a const variable.
59039         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
59040         AC_USE_SYSTEM_EXTENSIONS.
59041         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
59042         Test whether the obstack_printf function actually exists.
59043         * modules/obstack-printf (Depends-on): Add extensions.
59044         (Include): Remove obstack.h.
59045         * modules/obstack-printf-posix (Depends-on): Add extensions.
59046         (Include): Remove obstack.h.
59047
59048 2008-06-13  Eric Blake  <ebb9@byu.net>
59049
59050         Add obstack-printf and obstack-printf-posix modules.
59051         * modules/obstack-printf: New file.
59052         * modules/obstack-printf-posix: Likewise.
59053         * MODULES.html.sh (Misc): Mention them.
59054         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
59055         Likewise.
59056         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
59057         Likewise.
59058         * modules/stdio (Makefile.am): Accomodate new modules.
59059         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
59060         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
59061         Declare.
59062         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
59063         functions.
59064         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
59065         (gl_REPLACE_OBSTACK_PRINTF): New macros
59066         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
59067         * tests/test-obstack-printf.c: New file.
59068         * modules/obstack-printf-tests: Likewise.
59069         * modules/obstack-printf-posix-tests: Likewise.
59070
59071 2008-06-11  Bruno Haible  <bruno@clisp.org>
59072
59073         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
59074         * lib/open.c: Include errno.h.
59075         (open): Fail when attempting to write to a file that has a trailing
59076         slash.
59077         * tests/test-open.c (main): Test against trailing slash bug.
59078         * doc/posix-functions/open.texi: Mention the trailing slash bug.
59079
59080 2008-06-10  Bruno Haible  <bruno@clisp.org>
59081
59082         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
59083         for $? to work inside the trap command, with various /bin/sh-s.
59084         * tests/test-vc-list-files-cvs.sh: Likewise.
59085
59086 2008-06-10  Bruno Haible  <bruno@clisp.org>
59087
59088         * lib/acl-internal.h: Don't include gettext.h here.
59089         * lib/set-mode-acl.c: Include gettext.h here.
59090         * lib/copy-acl.c: Likewise.
59091
59092 2008-06-10  Bruno Haible  <bruno@clisp.org>
59093
59094         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
59095         * lib/wait-process.c (wait_subprocess): Likewise.
59096         * lib/execute.h (execute): Add termsigp argument.
59097         * lib/execute.c (execute): Likewise.
59098         * lib/csharpcomp.c (compile_csharp_using_pnet,
59099         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
59100         * lib/csharpexec.c (execute_csharp_using_pnet,
59101         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
59102         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
59103         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
59104         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
59105         is_jikes_present): Update.
59106         * lib/javaexec.c (execute_java_class): Update.
59107         * lib/javaversion.c (execute_and_read_line): Update.
59108         * NEWS: Document the changes.
59109         Reported by Eric Blake.
59110
59111 2008-06-10  Eric Blake  <ebb9@byu.net>
59112
59113         Add missing include.
59114         * tests/test-strstr.c (includes): Add <signal.h>.
59115         * tests/test-strcasestr.c (includes): Likewise.
59116         * tests/test-memmem.c (includes): Likewise.
59117
59118 2008-06-10  Bruno Haible  <bruno@clisp.org>
59119
59120         * lib/wait-process.c (wait_subprocess): Add an assertion.
59121
59122 2008-06-10  Bruno Haible  <bruno@clisp.org>
59123
59124         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
59125
59126 2008-06-10  Bruno Haible  <bruno@clisp.org>
59127
59128         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
59129         using alarm().
59130         * tests/test-strcasestr.c (main): Likewise.
59131         * tests/test-strstr.c (main): Likewise.
59132
59133 2008-06-09  Bruno Haible  <bruno@clisp.org>
59134
59135         Work around the Solaris 10 ACE ACLs ABI change.
59136         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
59137         declare if ACL_NO_TRIVIAL is present.
59138         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
59139         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
59140         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
59141         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
59142         define if ACL_NO_TRIVIAL is present.
59143         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
59144         and use the current ABI.
59145         (file_has_acl): Use same #if condition as elsewhere.
59146         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
59147         in use, and use the current ABI.
59148         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
59149         Reported by Jim Meyering.
59150
59151 2008-06-09  Eric Blake  <ebb9@byu.net>
59152
59153         Work around environments that (stupidly) ignore SIGALRM.
59154         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
59155         before using alarm().
59156         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59157         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59158         Reported by Ian Beckwith <ianb@erislabs.net>.
59159
59160         Produce autobuild blurb earlier in log.
59161         * modules/autobuild (configure.ac-early): Move AB_INIT here.
59162
59163 2008-06-09  Jim Meyering  <meyering@redhat.com>
59164         and Ondřej Vašík  <ovasik@redhat.com>
59165
59166         utimens.c: correct kernel bug work-around
59167         Ondřej Vašík found that the invalid return value of 280 indicates
59168         failure, not success, and the kernel bug we're trying to work
59169         around affects not just the utimensat call, but also the fallback
59170         futimens call.
59171         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
59172         not success.
59173         [HAVE_FUTIMENS]: Use the same work-around, here.
59174
59175 2008-06-09  Jim Meyering  <meyering@redhat.com>
59176
59177         add more guards around definition of ACE_-related code
59178         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
59179         ALLOW and ACE_OWNER are also defined.
59180
59181 2008-06-08  Bruno Haible  <bruno@clisp.org>
59182
59183         * lib/acl-internal.h: Add me as co-author.
59184         * lib/file-has-acl.c: Likewise.
59185         * lib/set-mode-acl.c: Likewise.
59186         * lib/copy-acl.c: Likewise.
59187
59188 2008-06-08  Bruno Haible  <bruno@clisp.org>
59189
59190         Add support for AIX ACLs.
59191         * lib/acl-internal.h (acl_nontrivial): New declaration.
59192         * lib/file-has-acl.c (acl_nontrivial): New function.
59193         (file_has_acl): Add implementation using AIX 4 ACL API.
59194         * lib/set-mode-acl.c (qset_acl): Likewise.
59195         * lib/copy-acl.c (qcopy_acl): Likewise.
59196
59197 2008-06-08  Bruno Haible  <bruno@clisp.org>
59198
59199         Add support for HP-UX ACLs.
59200         * lib/acl-internal.h (acl_nontrivial): New declaration.
59201         * lib/file-has-acl.c (acl_nontrivial): New function.
59202         (file_has_acl): Add implementation using HP-UX 11 ACL API.
59203         * lib/set-mode-acl.c (qset_acl): Likewise.
59204         * lib/copy-acl.c (qcopy_acl): Likewise.
59205
59206 2008-06-08  Bruno Haible  <bruno@clisp.org>
59207
59208         Add support for Cygwin ACLs.
59209         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
59210         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
59211         the chmod_or_fchmod call.
59212         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
59213
59214 2008-06-08  Bruno Haible  <bruno@clisp.org>
59215
59216         Fix bug with setuid modes in Solaris 10+ code.
59217         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
59218         succeeded, when the mode contains some special bits.
59219
59220 2008-06-08  Bruno Haible  <bruno@clisp.org>
59221
59222         Add support for Solaris 7..10 ACLs.
59223         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
59224         declarations.
59225         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
59226         functions.
59227         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
59228         * lib/set-mode-acl.c (qset_acl): Likewise.
59229         * lib/copy-acl.c (qcopy_acl): Likewise.
59230
59231 2008-06-08  Bruno Haible  <bruno@clisp.org>
59232
59233         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
59234         declaration.
59235         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
59236         (acl_access_nontrivial): Remove MacOS X case.
59237         (file_has_acl): Use acl_extended_nontrivial.
59238         * lib/copy-acl.c (qcopy_acl): Likewise.
59239
59240 2008-06-08  Bruno Haible  <bruno@clisp.org>
59241
59242         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
59243
59244 2008-06-08  Jim Meyering  <meyering@redhat.com>
59245
59246         * modules/acl (Maintainer): Add Bruno Haible.
59247
59248 2008-06-07  Bruno Haible  <bruno@clisp.org>
59249
59250         Improve support for Tru64 ACLs.
59251         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
59252         ACL on OSF/1.
59253
59254 2008-06-07  Bruno Haible  <bruno@clisp.org>
59255
59256         Add support for MacOS X ACLs.
59257         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
59258         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
59259         * lib/set-mode-acl.c (qset_acl): Likewise.
59260         * lib/copy-acl.c (qcopy_acl): Likewise.
59261
59262 2008-06-07  Bruno Haible  <bruno@clisp.org>
59263
59264         Fix memory leak introduced on 2008-05-22.
59265         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
59266         use.
59267
59268 2008-06-07  Bruno Haible  <bruno@clisp.org>
59269
59270         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
59271         to construct an empty ACL.
59272
59273 2008-06-07  Bruno Haible  <bruno@clisp.org>
59274
59275         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
59276         precisely.
59277         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
59278
59279 2008-06-07  Bruno Haible  <bruno@clisp.org>
59280
59281         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
59282         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
59283
59284 2008-06-07  Bruno Haible  <bruno@clisp.org>
59285
59286         * doc/posix-functions/_setjmp.texi: Explain the use of this function
59287         regardless of POSIX.
59288         * doc/posix-functions/_longjmp.texi: Likewise.
59289         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
59290         SystemV platform in this case.
59291
59292 2008-06-06  Eric Blake  <ebb9@byu.net>
59293
59294         Document abort() bugs.
59295         * doc/posix-functions/abort.texi (abort): Mention anomalies.
59296
59297         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
59298         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
59299         sigsetjmp.
59300         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
59301         siglongjmp, but only as a macro.
59302         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
59303         is obsolete.
59304         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
59305
59306         Tweak documentation to cover cygwin argz bugs.
59307         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
59308         argz bug fix; no code change needed since no cygwin releases
59309         occurred between the last fix and the bug being tested.
59310         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
59311         module and recently fixed cygwin bugs.
59312         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
59313         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
59314         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
59315         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
59316         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
59317         Likewise.
59318         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
59319         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
59320         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
59321         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
59322         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
59323         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
59324         Likewise.
59325
59326         Avoid gcc warning on cygwin.
59327         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
59328         !ACL_NO_TRIVIAL]: Avoid unused variable.
59329
59330 2008-06-05  Eric Blake  <ebb9@byu.net>
59331
59332         Be tolerant of UNKNOWN version in gnulib-tool test dir.
59333         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
59334         git-version-gen fails to come up with a version.
59335         Reported by Simon Josefsson.
59336
59337 2008-06-05  Jim Meyering  <meyering@redhat.com>
59338             Paul Eggert  <eggert@cs.ucla.edu>
59339
59340         utimens.c: work around a probable Linux kernel bug
59341         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
59342         appears to be a kernel bug that causes utimensat to return 280
59343         instead of 0, indicating success.
59344
59345 2008-06-04  Bruno Haible  <bruno@clisp.org>
59346
59347         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
59348         2008-06-01 commit.
59349
59350 2008-06-04  Bruno Haible  <bruno@clisp.org>
59351
59352         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
59353         * lib/file-has-acl.c (acl_access_nontrivial): New function.
59354         (file_has_acl): Use it. Save errno afterwards.
59355         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
59356
59357 2008-06-03  Bruno Haible  <bruno@clisp.org>
59358
59359         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
59360         draft code. Simplify #ifs.
59361         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
59362         Put Solaris code after POSIX-draft code. Fix comments regarding
59363         Solaris 10, HP-UX. Mention Cygwin.
59364         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
59365
59366 2008-06-03  Eric Blake  <ebb9@byu.net>
59367
59368         Provide fallback for older kernels.
59369         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
59370         Provide runtime fallback if kernel lacks support.
59371         Reported by Mike Frysinger.
59372
59373 2008-06-02  Bruno Haible  <bruno@clisp.org>
59374
59375         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
59376         it exists.
59377
59378 2008-06-02  Bruno Haible  <bruno@clisp.org>
59379
59380         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
59381         * lib/copy-acl.c (qcopy_acl): Update comment.
59382
59383 2008-06-02  Bruno Haible  <bruno@clisp.org>
59384
59385         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
59386         like ACL APIs.
59387
59388 2008-06-02  Bruno Haible  <bruno@clisp.org>
59389
59390         * tests/test-file-has-acl.sh: Use different code for Cygwin.
59391         * tests/test-set-mode-acl.sh: Likewise.
59392         * tests/test-copy-acl.sh: Likewise.
59393         * tests/test-copy-file.sh: Likewise.
59394
59395 2008-06-02  Bruno Haible  <bruno@clisp.org>
59396
59397         * tests/test-file-has-acl.sh: Remove unused code.
59398
59399 2008-06-01  Bruno Haible  <bruno@clisp.org>
59400
59401         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
59402         (copy_acl): Just a wrapper around qcopy_acl that emits the error
59403         messages.
59404         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
59405
59406 2008-06-01  Bruno Haible  <bruno@clisp.org>
59407
59408         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
59409         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
59410         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
59411         APIs.
59412         * modules/acl-tests (configure.ac): Remove tests now contained in
59413         m4/acl.m4.
59414
59415 2008-06-02  Jim Meyering  <meyering@redhat.com>
59416
59417         announce-gen: use a better key-server host name
59418         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
59419         it may be more consistently reliable.  Suggested by Werner Koch
59420         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
59421
59422 2008-06-01  Bruno Haible  <bruno@clisp.org>
59423
59424         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
59425         Reported by Voroskoi Andras <voroskoi@gmail.com>.
59426
59427 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
59428
59429         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
59430
59431 2008-06-01  Bruno Haible  <bruno@clisp.org>
59432
59433         New ACL tests.
59434         * tests/test-file-has-acl.sh: New file.
59435         * tests/test-file-has-acl.c: New file.
59436         * tests/test-set-mode-acl.sh: New file.
59437         * tests/test-set-mode-acl.c: New file.
59438         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
59439         * tests/test-copy-acl.c: New file.
59440         * modules/acl-tests: New file, based on modules/copy-file-tests.
59441         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
59442         (Depends-on): Add acl-tests.
59443         (configure.ac): Remove checks.
59444         (Makefile.am): Don't create test-sameacls program here any more.
59445
59446 2008-06-01  Bruno Haible  <bruno@clisp.org>
59447
59448         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
59449         * tests/test-sameacls.c: Include progname.h.
59450         (main): Invoke set_program_name. Portability fixes for MacOS X,
59451         Solaris, HP-UX.
59452
59453 2008-06-01  Bruno Haible  <bruno@clisp.org>
59454
59455         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
59456         function.
59457         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
59458
59459 2008-06-01  Bruno Haible  <bruno@clisp.org>
59460
59461         * modules/rpmatch (Depends-on): Add strdup.
59462
59463 2008-06-01  Bruno Haible  <bruno@clisp.org>
59464
59465         * lib/pipe.c: Include unistd-safer.h.
59466         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
59467         * modules/pipe (Depends-on): Add unistd-safer.
59468
59469 2008-05-30  Simon Josefsson  <simon@josefsson.org>
59470
59471         * modules/autobuild (configure.ac): Call AB_INIT.
59472
59473 2008-05-30  Simon Josefsson  <simon@josefsson.org>
59474
59475         * tests/test-getaddrinfo.c: Don't print debug messages by default.
59476         Suggested by Bruno Haible <bruno@clisp.org>.
59477
59478 2008-05-30  Simon Josefsson  <simon@josefsson.org>
59479
59480         * tests/test-base64.c: Cast size_t to unsigned long when invoking
59481         printf.  Use %lu instead of %d.  Reported by Bruno Haible
59482         <bruno@clisp.org>.
59483
59484 2008-05-29  Eric Blake  <ebb9@byu.net>
59485
59486         Prefer new POSIX 200x interfaces over futimesat.
59487         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
59488         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
59489         when available.
59490         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
59491
59492 2008-05-28  Bruno Haible  <bruno@clisp.org>
59493
59494         * modules/stpcpy (License): Change to LGPLv2+.
59495         Requested by David Lutterkort <dlutter@redhat.com>.
59496
59497 2008-05-27  Bruno Haible  <bruno@clisp.org>
59498
59499         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
59500         current mingw.
59501         Reported by Jose E. Marchesi <jemarch@gnu.org>.
59502
59503 2008-05-27  Bruno Haible  <bruno@clisp.org>
59504
59505         * modules/iconv_open (Link): New section, from module 'iconv'.
59506         * modules/striconv (Link): Likewise.
59507         * modules/striconveh (Link): Likewise.
59508         * modules/xstriconv (Link): Likewise.
59509         * modules/unicodeio (Link): Likewise.
59510         * modules/propername (Link): Likewise.
59511         Reported by Jim Meyering.
59512
59513 2008-05-26  Jim Meyering  <meyering@redhat.com>
59514
59515         sha256: do not artificially restrict buffer length to be < 2^32
59516         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
59517         uint32_t to size_t.
59518         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
59519         to match.
59520
59521         avoid unaligned access errors, e.g., on sparc
59522         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
59523         direct access through a possibly-unaligned uint64* pointer.
59524         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
59525         direct access through a possibly-unaligned uint32* pointer.
59526         Prompted by this patch from Tom "spot" Callaway:
59527         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
59528
59529         sha512.c: fix typo in comment
59530         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
59531
59532 2008-05-25  Bruno Haible  <bruno@clisp.org>
59533
59534         * lib/set-mode-acl.c: Renamed from lib/acl.c.
59535         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
59536         (Makefile.am): Update lib_SOURCES.
59537
59538 2008-05-25  Bruno Haible  <bruno@clisp.org>
59539
59540         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
59541
59542 2008-05-25  Jim Meyering  <meyering@redhat.com>
59543
59544         useless-if-before-free: freed expr may have white-space differences
59545         * build-aux/useless-if-before-free: Recognize cases in which the
59546         freed expression differs from the tested one in embedded white
59547         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
59548         $1 was used, so we can't make any regexp shy.  Improved tests now
59549         detect this.
59550
59551         useless-if-before-free: accept white space in the expression.
59552         * build-aux/useless-if-before-free: For now, any white space
59553         in the expression must be identical in the free argument.
59554
59555         useless-if-before-free: efficiency tweak
59556         * build-aux/useless-if-before-free: Make the expression-matching
59557         regexp "shy".
59558         Make the *outer* regexp shy, not the expr-matching one.
59559
59560         update code-in-comment to accept cast of free arg
59561         * build-aux/useless-if-before-free: Update regexp.
59562
59563 2008-05-25  Bruno Haible  <bruno@clisp.org>
59564
59565         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
59566         * modules/copy-file-tests (Files, Makefile.am): Update.
59567         * tests/test-copy-file.c (func_test_copy): Update.
59568
59569 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
59570
59571         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
59572
59573 2008-05-23  Bruno Haible  <bruno@clisp.org>
59574
59575         Improve support for ACLs on OSF/1.
59576         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
59577         Remove fallback for unknown flavors of ACLs.
59578
59579 2008-05-22  Bruno Haible  <bruno@clisp.org>
59580
59581         Add support for ACLs on OSF/1.
59582         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
59583         replacements.
59584         (acl_free_text): New macro fallback.
59585         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
59586         acl_free.
59587         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
59588         acl_free_text function. Require AC_C_INLINE.
59589
59590 2008-05-22  Bruno Haible  <bruno@clisp.org>
59591
59592         Make copy_acl work on MacOS X 10.5.
59593         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
59594         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
59595         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
59596         If MODE_INSIDE_ACL, don't assume that every system has the same text
59597         representation for ACLs as FreeBSD.
59598         * lib/copy-acl.c (copy_acl): Add support for platforms with
59599         !MODE_INSIDE_ACL.
59600         * lib/file-has-acl.c (file_has_acl): Likewise.
59601         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
59602         FreeBSD, MacOS X, or IRIX, respectively.
59603
59604 2008-05-22  Bruno Haible  <bruno@clisp.org>
59605
59606         * lib/acl.h: Don't include <sys/acl.h>.
59607         (GETACLCNT): Move fallback to lib/acl-internal.h.
59608         * lib/acl-internal.h: Include <sys/acl.h> here.
59609         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
59610
59611 2008-05-22  Bruno Haible  <bruno@clisp.org>
59612
59613         Split off copy_acl function to separate file.
59614         * lib/copy-acl.c: New file, extracted from lib/acl.c.
59615         * lib/acl.c (copy_acl): Moved function to separate file.
59616         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
59617         * modules/acl (Files): Add lib/copy-acl.c.
59618         (Makefiles.am): Augment lib_SOURCES.
59619
59620 2008-05-22  Bruno Haible  <bruno@clisp.org>
59621
59622         * modules/copy-file-tests: New file.
59623         * tests/test-copy-file.sh: New file.
59624         * tests/test-copy-file.c: New file.
59625         * tests/test-copy-file-sameacls.c: New file.
59626
59627 2008-05-22  Eric Blake  <ebb9@byu.net>
59628
59629         Avoid gcc warning.
59630         * tests/test-memcmp.c (main): Pass NULL indirectly.
59631
59632 2008-05-21  Bruno Haible  <bruno@clisp.org>
59633
59634         Add reference doc about ACLs.
59635         * doc/acl-resources.txt: New file.
59636         * doc/acl-cygwin.txt: New file.
59637
59638 2008-05-21  Bruno Haible  <bruno@clisp.org>
59639
59640         Avoid one more warning from gcc.
59641         * lib/vasnprintf.c (IF_LINT): Update comments.
59642         (VASNPRINTF): Use it also for the 'prefix' array initializer.
59643
59644 2008-05-21  Jim Meyering  <meyering@redhat.com>
59645
59646         avoid a warning from gcc
59647         * lib/vasnprintf.c (IF_LINT): Define.
59648         (scale10_round_decimal_long_double):
59649         Use it to avoid a "may be used uninitialized" warning.
59650         (scale10_round_decimal_double): Likewise.
59651
59652 2008-05-21  Simon Josefsson  <simon@josefsson.org>
59653
59654         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
59655         declared.
59656
59657 2008-05-20  Bruno Haible  <bruno@clisp.org>
59658
59659         * tests/test-memcmp.c (main): Test also the sign of the result. Test
59660         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
59661
59662 2008-05-20  Simon Josefsson  <simon@josefsson.org>
59663
59664         * modules/memcmp-tests: New file.
59665         * tests/test-memcmp.c: New file.
59666
59667 2008-05-19  Bruno Haible  <bruno@clisp.org>
59668
59669         * modules/propername (Notice, configure.ac): Put quoted "..." into
59670         --keyword option.
59671         * lib/propername.h: Update comments accordingly.
59672         Reported by Eric Blake.
59673
59674 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
59675
59676         * modules/getpass-gnu (Depends-on): Add fseeko.
59677
59678 2008-05-19  Simon Josefsson  <simon@josefsson.org>
59679
59680         * modules/base64-tests: New file.
59681
59682 2008-05-19  Bo Borgerson <gigabo@gmail.com>
59683
59684         * lib/base64.c (base64_decode_ctx): If a decode context structure
59685         was passed in use it to ignore newlines.  If a context structure
59686         was _not_ passed in, continue to treat newlines as garbage (this
59687         is the historical behavior).  Formerly base64_decode.
59688         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
59689         takes a decode context structure.
59690         * lib/base64.h (base64_decode): Macro for four-argument calls.
59691         (base64_decode_alloc): Likewise.
59692         * lib/base64.c (base64_decode_ctx): If a decode context structure
59693         was passed in use it to ignore newlines.  If a context structure
59694         was _not_ passed in, continue to treat newlines as garbage (this
59695         is the historical behavior).  Formerly base64_decode.
59696         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
59697         takes a decode context structure.
59698         * lib/base64.h (base64_decode): Macro for four-argument calls.
59699         (base64_decode_alloc): Likewise.
59700
59701 2008-05-19  Jim Meyering  <meyering@redhat.com>
59702
59703         avoid a warning from gcc
59704         * lib/trim.c (IF_LINT): Define.
59705         (trim2): Use it to avoid a "may be used uninitialized" warning.
59706
59707         Fix doc typo.
59708         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
59709
59710 2008-05-19  Bruno Haible  <bruno@clisp.org>
59711
59712         * doc/glibc-functions/getpass.texi: Document limits of other
59713         implementations.
59714
59715 2008-05-19  Simon Josefsson  <simon@josefsson.org>
59716             Bruno Haible <bruno@clisp.org>
59717
59718         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
59719
59720 2008-05-18  Bruno Haible  <bruno@clisp.org>
59721
59722         * modules/propername: New file, from GNU gettext.
59723         * lib/propername.h: New file, from GNU gettext.
59724         * lib/propername.c: New file, from GNU gettext.
59725         * MODULES.html.sh (Internationalization functions): Add propername.
59726
59727 2008-05-16  Jim Meyering  <meyering@redhat.com>
59728             Bruno Haible  <bruno@clisp.org>
59729
59730         Avoid some warnings from "gcc -Wshadow".
59731         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
59732
59733 2008-05-15  Eric Blake  <ebb9@byu.net>
59734
59735         Extend previous patch to cygwin 1.7.0.
59736         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
59737         fast implementation in cygwin >= 1.7.0.
59738         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59739         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59740
59741 2008-05-15  Bruno Haible  <bruno@clisp.org>
59742
59743         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
59744         implementation in glibc >= 2.9.
59745         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59746         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59747
59748 2008-05-15  Bruno Haible  <bruno@clisp.org>
59749
59750         * MODULES.html.sh (Internationalization functions): Remove linebreak.
59751         (Unicode string functions): Add unilbrk/*.
59752         Reported by Karl Berry.
59753
59754 2008-05-15  Eric Blake  <ebb9@byu.net>
59755
59756         Fix violation of <stdbool.h> replacement in regex.
59757         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
59758         * lib/regexec.c (re_search_internal): Likewise.
59759         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
59760
59761 2008-05-15  Jim Meyering  <meyering@redhat.com>
59762
59763         avoid distracting test output when git or cvs is not found
59764         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
59765         * tests/test-vc-list-files-git.sh: Likewise.
59766
59767 2008-05-15  Eric Blake  <ebb9@byu.net>
59768
59769         Glibc finally accepted the memmem speedup code, bugzilla #5514.
59770         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
59771         glibc version.
59772         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
59773         * doc/posix-functions/strstr.texi (strstr): Likewise.
59774         * lib/str-two-way.h (MAX): Sychronize with glibc.
59775
59776 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
59777
59778         * lib/regcomp.c (optimize_utf8): Add a note on why we test
59779         opr.ctx_type.
59780         (calc_first): Initialize constraint field.
59781         (duplicate_node_closure): Use it instead of special casing ANCHORS.
59782         Fix grammar.
59783         (duplicate_node): Merge constraint field for all node types.
59784         (calc_eclosure_iter): Look at constraint field for all node types.
59785         * lib/regex_internal.c (create_cd_newstate): Don't look at
59786         opr.ctx_type.
59787
59788 2008-05-14  Bruno Haible  <bruno@clisp.org>
59789
59790         Help GCC to do better code generation.
59791         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
59792         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
59793         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
59794         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
59795         Declare with attribute 'malloc' if supported.
59796
59797 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
59798
59799         use "echo STR|wc -c" rather than unportable "expr length STR"
59800         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
59801         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
59802
59803 2008-05-14  Jim Meyering  <meyering@redhat.com>
59804
59805         use dd ibs=$n count=1 ... rather than less-portable head -c$n
59806         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
59807         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
59808         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
59809         via Collin Lasse.
59810
59811 2008-05-14  Eric Blake  <ebb9@byu.net>
59812
59813         Avoid quadratic growth in gl_LIBSOURCES.
59814         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
59815         Suggested by Bruno Haible.
59816
59817         Test xmemdup0.
59818         * modules/xmemdup0-tests: New file.
59819         * tests/test-xmemdup0.c: Likewise.
59820
59821 2008-05-13  Eric Blake  <ebb9@byu.net>
59822
59823         Split xmemdup0 into its own module.
59824         * modules/xmemdup0: New file.
59825         * lib/xmemdup0.h: Likewise.
59826         * lib/xmemdup0.c: Likewise.
59827         * MODULES.html.sh (Memory management functions): Add xmemdup0.
59828         * lib/xalloc.h (xmemdup0): Remove.
59829         * lib/xmalloc.c (xmemdup0): Likewise.
59830
59831 2008-05-13  Eric Blake  <ebb9@byu.net>
59832             Bruno Haible  <bruno@clisp.org>
59833
59834         Reduce number of forks required during autoconf.
59835         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
59836         and gl_LIBSOURCES_DIR.
59837         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
59838         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
59839         m4_syscmd per file.
59840         <m4_foreach_w>: Move...
59841         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
59842
59843 2008-05-13  Eric Blake  <ebb9@byu.net>
59844
59845         * gnulib-tool: Fix various comment typos.
59846
59847 2008-05-12  Bruno Haible  <bruno@clisp.org>
59848
59849         Tailor the linebreaking algorithm.
59850         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
59851
59852 2008-05-12  Bruno Haible  <bruno@clisp.org>
59853
59854         Update to Unicode 5.0.0.
59855         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
59856         LBP_JV, LBP_JT. Redistribute values.
59857         (unilbrk_table): Change size.
59858         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
59859         Unicode TR#14 rev. 22.
59860         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
59861         LBP_JV, LBP_JT. Redistribute values.
59862         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
59863         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
59864         Update.
59865         * lib/unilbrk/lbrkprop1.h: Regenerated.
59866         * lib/unilbrk/lbrkprop2.h: Regenerated.
59867         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
59868         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
59869         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
59870         Likewise.
59871         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
59872         Likewise.
59873         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
59874         result.
59875         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
59876         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
59877         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
59878         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
59879         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
59880         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
59881
59882 2008-05-11  Bruno Haible  <bruno@clisp.org>
59883
59884         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
59885
59886 2008-05-11  Bruno Haible  <bruno@clisp.org>
59887
59888         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
59889         * modules/unilbrk/gen-lbrk: New file.
59890
59891 2008-05-11  Bruno Haible  <bruno@clisp.org>
59892
59893         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
59894         * m4/sha512.m4 (gl_SHA512): Likewise.
59895
59896 2008-05-11  Jim Meyering  <meyering@redhat.com>
59897
59898         New modules: crypto/sha256, crypto/sha512 (from coreutils)
59899         * modules/crypto/sha256: New file.
59900         * modules/crypto/sha512: Likewise.
59901         * lib/sha256.c: Likewise.
59902         * lib/sha256.h: Likewise.
59903         * lib/sha512.c: Likewise.
59904         * lib/sha512.h: Likewise.
59905         * lib/u64.h: Likewise.
59906         * m4/sha256.m4: Likewise.
59907         * m4/sha512.m4: Likewise.
59908         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
59909
59910 2008-05-10  Bruno Haible  <bruno@clisp.org>
59911
59912         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
59913         (Input/Output <stdio.h>): Add xprintf.
59914         (Signal handling <signal.h>): Add strsignal.
59915         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
59916         (Core language properties): Add func.
59917         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
59918         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
59919         strings.
59920         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
59921         (Input/output): New section.
59922         (File system functions): Add openat-die, stat-macros.
59923         (Networking functions): Add sockets.
59924         (Unicode string functions): Add unictype/*.
59925         (Support for building libraries and executables): Add gperf.
59926         (Support for building documentation): Add agpl-3.0.
59927         (Misc): Add nocrash.
59928
59929 2008-05-10  Bruno Haible  <bruno@clisp.org>
59930
59931         * modules/unictype/gen-ctype: New file.
59932
59933 2008-05-10  Jim Meyering  <meyering@redhat.com>
59934
59935         Make chdir-safer.c more efficient on a system with no symlinks.
59936         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
59937         also if ELOOP is zero.  Suggested by Bruno Haible.
59938
59939         Make chdir-safer.c slightly safer.
59940         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
59941         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
59942
59943         Avoid compile failure on systems without ELOOP (like mingw).
59944         * lib/chdir-safer.c (ELOOP): Define if not already defined.
59945         Reported by Bruno Haible.
59946
59947 2008-05-10  Bruno Haible  <bruno@clisp.org>
59948
59949         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
59950         (is_utf8_encoding): Use a case-insensitive comparison.
59951         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
59952         streq.
59953
59954 2008-05-10  Bruno Haible  <bruno@clisp.org>
59955
59956         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
59957         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
59958         * lib/unilbrk/ulc-common.h (iconv_string_length,
59959         iconv_string_keeping_offsets): Remove declarations.
59960         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
59961         Don't include <iconv.h>, streq.h, xsize.h.
59962         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
59963         conversion.
59964         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
59965         <iconv.h>, streq.h, xsize.h.
59966         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
59967         conversion.
59968         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
59969         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
59970         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
59971         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
59972
59973 2008-05-10  Bruno Haible  <bruno@clisp.org>
59974
59975         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
59976         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
59977
59978         * modules/unilbrk/u32-width-linebreaks-tests: New file.
59979         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
59980
59981         * modules/unilbrk/u16-width-linebreaks-tests: New file.
59982         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
59983
59984         * modules/unilbrk/u8-width-linebreaks-tests: New file.
59985         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
59986
59987         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
59988         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
59989
59990         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
59991         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
59992
59993         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
59994         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
59995
59996         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
59997         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
59998
59999 2008-05-10  Bruno Haible  <bruno@clisp.org>
60000
60001         Split up 'linebreak' module.
60002         * lib/unilbrk.h: New file, based on lib/linebreak.h.
60003         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
60004         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
60005         modifications.
60006         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
60007         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
60008         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
60009         lib/linebreak.c.
60010         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
60011         lib/linebreak.c.
60012         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
60013         lib/linebreak.c.
60014         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
60015         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
60016         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
60017         lib/linebreak.c.
60018         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
60019         lib/linebreak.c.
60020         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
60021         lib/linebreak.c.
60022         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
60023         lib/linebreak.c.
60024         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
60025         lib/linebreak.c.
60026         * modules/unilbrk/base: New file.
60027         * modules/unilbrk/tables: New file.
60028         * modules/unilbrk/u8-possible-linebreaks: New file.
60029         * modules/unilbrk/u16-possible-linebreaks: New file.
60030         * modules/unilbrk/u32-possible-linebreaks: New file.
60031         * modules/unilbrk/ulc-common: New file.
60032         * modules/unilbrk/ulc-possible-linebreaks: New file.
60033         * modules/unilbrk/u8-width-linebreaks: New file.
60034         * modules/unilbrk/u16-width-linebreaks: New file.
60035         * modules/unilbrk/u32-width-linebreaks: New file.
60036         * modules/unilbrk/ulc-width-linebreaks: New file.
60037         * lib/linebreak.h: Remove file.
60038         * lib/linebreak.c: Remove file.
60039         * m4/linebreak.m4: Remove file.
60040         * modules/linebreak: Remove file.
60041         * NEWS: Mention the changes.
60042
60043 2008-05-09  Eric Blake  <ebb9@byu.net>
60044
60045         Add xmemdup0.
60046         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
60047         implementation.
60048         * lib/xmalloc.c (xmemdup0): New C implementation.
60049
60050 2008-05-08  Bruno Haible  <bruno@clisp.org>
60051
60052         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
60053
60054 2008-05-07  Eric Blake  <ebb9@byu.net>
60055
60056         Support cross-compilation of <wctype.h>.
60057         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
60058         AC_CACHE_CHECK.
60059
60060 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
60061
60062         * build-aux/vc-list-files: Add support for bzr.
60063
60064 2008-05-03  Jim Meyering  <meyering@redhat.com>
60065
60066         avoid failed assertion with tight malloc
60067         * tests/test-getndelim2.c: Correct an off-by-one assertion.
60068
60069 2008-05-03  Simon Josefsson  <simon@josefsson.org>
60070
60071         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
60072         are needed from arpa/inet.h.
60073         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
60074         Reported by Bruno Haible.
60075
60076 2008-05-02  Jim Meyering  <meyering@redhat.com>
60077
60078         avoid compilation error on FreeBSD 6
60079         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
60080
60081 2008-05-01  Jim Meyering  <meyering@redhat.com>
60082
60083         useless-if-before-free: correct --help's exit status description
60084         * build-aux/useless-if-before-free (usage): Like grep, exit 0
60085         for one or more matches, etc.  Reported by Bruno Haible.
60086
60087         vc-list-files: make the stand-alone gnulib test work
60088         * modules/vc-list-files-tests (configure.ac):
60089         Define and AC_SUBST abs_aux_dir.
60090         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
60091         $(abs_top_srcdir) to each script and having each of them
60092         duplicate the work of setting PATH, set PATH here, using
60093         the new variable, abs_aux_dir instead.
60094         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
60095         * tests/test-vc-list-files-git.sh: Likewise.
60096         Reported by Bruno Haible.
60097
60098 2008-05-01  Bruno Haible  <bruno@clisp.org>
60099
60100         * lib/getndelim2.c (getndelim2): Fix newsize computation during
60101         reallocation. Rename 'done' to 'found_delimiter'.
60102
60103 2008-05-01  Jim Meyering  <meyering@redhat.com>
60104
60105         vc-list-files: accommodate /bin/sh like the one from Solaris 10
60106         * build-aux/vc-list-files: Use `...`, not $(...).
60107
60108 2008-04-30  Jim Meyering  <meyering@redhat.com>
60109
60110         add tests for vc-list-files
60111         * modules/vc-list-files-tests: New module.
60112         * tests/test-vc-list-files-cvs.sh: New file.
60113         * tests/test-vc-list-files-git.sh: New file.
60114
60115         avoid a warning from gcc
60116         * lib/getndelim2.c (IF_LINT): Define.
60117         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
60118
60119         vc-list-files: work properly with build-aux/cvsu, too
60120         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
60121         to all cvs-based clauses.
60122
60123         vc-list-files: work properly in the CVS+awk case, too
60124         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
60125
60126         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
60127         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
60128         take more than one file argument, so .  Add quotes, just in case $dir
60129         ever contains a shell meta-character.  Prompted by Soren Hansen in
60130         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
60131
60132 2008-04-29  Eric Blake  <ebb9@byu.net>
60133
60134         Optimize getndelim2 to use block operations when possible.
60135         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
60136         freadseek, and memchr2.
60137         * lib/getndelim2.c (getndelim2): Use them for block reads.
60138
60139 2008-04-29  Bruno Haible  <bruno@clisp.org>
60140
60141         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
60142         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
60143         * modules/inet_ntop (Depends-on): Add extensions.
60144         * modules/inet_pton (Depends-on): Likewise.
60145         Reported by Simon Josefsson.
60146
60147 2008-04-29  Jim Meyering  <meyering@redhat.com>
60148
60149         When the is more than one match in a block, match all of them.
60150         * build-aux/useless-if-before-free: Iterate through each block
60151         until there are no more matches.
60152
60153         Fix broken useless-if-before-free script.
60154         * build-aux/useless-if-before-free: Fix typo: missing "?" after
60155         the expression to match cast of argument to free-like function.
60156
60157 2008-04-29  Eric Blake  <ebb9@byu.net>
60158
60159         Use new header.
60160         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
60161
60162 2008-04-29  Jim Meyering  <meyering@redhat.com>
60163
60164         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
60165         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
60166         by gnulib to exist and to declare e.g., inet_ntop.
60167         Don't include "inet_ntop.h", now removed.
60168
60169         * m4/arpa_inet_h.m4: Remove trailing blanks.
60170
60171 2008-04-29  Eric Blake  <ebb9@byu.net>
60172
60173         Silence valgrind on safe reads beyond potential array bounds.
60174         * lib/rawmemchr.valgrind: New file.
60175         * lib/strchrnul.valgrind: Likewise.
60176         * modules/rawmemchr (Files): Distribute new file.
60177         * modules/strchrnul (Files): Likewise.
60178         Suggested by Bruno Haible.
60179
60180 2008-04-29  Bruno Haible  <bruno@clisp.org>
60181
60182         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
60183         (inet_ntop, inet_pton): Change portability warning's wording.
60184         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
60185         Invoke gl_CHECK_NEXT_HEADERS.
60186         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
60187         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
60188         set ARPA_INET_H.
60189         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
60190         * modules/arpa_inet (Description): No longer only for systems that
60191         lack it.
60192         (Depends-on): Add include_next.
60193         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
60194         HAVE_ARPA_INET_H.
60195
60196 2008-04-29  Jim Meyering  <meyering@redhat.com>
60197
60198         * modules/mkdir (License): Re-license as LGPLv2+.
60199
60200 2008-04-29  Bruno Haible  <bruno@clisp.org>
60201
60202         * modules/rawmemchr (Maintainer): Set to Eric.
60203         * modules/strchrnul (Maintainer): Likewise.
60204
60205 2008-04-29  Simon Josefsson  <simon@josefsson.org>
60206
60207         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
60208         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
60209
60210         * modules/arpa_inet (arpa/inet.h): Use them.
60211
60212 2008-04-28  Eric Blake  <ebb9@byu.net>
60213
60214         Test getndelim2.
60215         * modules/getndelim2-tests: New file.
60216         * tests/test-getndelim2.c: Likewise.
60217         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
60218         stream.
60219         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
60220
60221         * MODULES.html.sh: Document new module.
60222
60223 2008-04-20  Bruno Haible  <bruno@clisp.org>
60224
60225         * lib/c-stack.c (die): Use raise.
60226         * modules/c-stack (Depends-on): Add raise.
60227
60228 2008-04-28  Bruno Haible  <bruno@clisp.org>
60229
60230         Expect rpmatch to be declared.
60231         * lib/yesno.c (rpmatch): Remove declaration.
60232
60233         Declare rpmatch.
60234         * lib/stdlib.in.h (rpmatch): New declaration.
60235         * lib/rpmatch.c: Include <stdlib.h> first.
60236         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
60237         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
60238         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
60239         HAVE_RPMATCH.
60240         * modules/rpmatch (Depends-on): Add stdlib, extensions.
60241         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60242         (Include): Set to <stdlib.h>.
60243         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
60244         HAVE_RPMATCH.
60245         * NEWS: Document the change.
60246
60247 2008-04-28  Bruno Haible  <bruno@clisp.org>
60248
60249         Change rpmatch to use nl_langinfo when appropriate.
60250         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
60251         (N_): New macro.
60252         (localized_pattern): New function/macro.
60253         (try): Remove match, nomatch arguments. Copy the pattern into safe
60254         memory before caching it.
60255         (rpmatch): Use localized_pattern. Add translator comments.
60256         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
60257         Suggested by Eric Blake.
60258         * modules/rpmatch (Depends-on): Add stdbool.
60259
60260 2008-04-28  Eric Blake  <ebb9@byu.net>
60261
60262         Add rawmemchr module, matching glibc.
60263         * modules/string (Makefile.am): New indicator.
60264         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
60265         * lib/string.in.h (rawmemchr): Declare when appropriate.
60266         * modules/rawmemchr: New file.
60267         * m4/rawmemchr.m4: Likewise.
60268         * lib/rawmemchr.c: Likewise.
60269         * modules/rawmemchr-tests: Likewise.
60270         * tests/test-rawmemchr.c: Likewise.
60271         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
60272         module.
60273         * modules/strchrnul (Depends-on): Add rawmemchr.
60274         * lib/strchrnul.c (strchrnul): Optimize a corner case.
60275
60276         Whitespace cleanup.
60277         * tests/test-strchrnul.c: Reindent.
60278         * lib/strchrnul.c: Likewise.
60279
60280         Optimize and test strchrnul.
60281         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
60282         * modules/strchrnul-tests: New file.
60283         * tests/test-strchrnul.c: Likewise.
60284
60285         Remove intprops dependency.
60286         * modules/memchr (Depends-on): Remove intprops.
60287         * modules/memrchr (Depends-on): Likewise.
60288         * modules/memchr2 (Depends-on): Likewise.
60289         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
60290         * lib/memrchr.c (__memrchr): Likewise.
60291         * lib/memrchr2.c (memchr2): Likewise.
60292         Reported by Simon Josefsson.
60293
60294 2008-04-28  Simon Josefsson  <simon@josefsson.org>
60295
60296         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
60297         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60298
60299 2008-04-28  Simon Josefsson  <simon@josefsson.org>
60300
60301         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
60302
60303         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
60304
60305         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
60306
60307         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
60308         declarations.
60309         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
60310
60311         * m4/inet_pton.m4: Don't check for header files.
60312
60313         * m4/inet_ntop.m4: Don't check for header files.
60314
60315 2008-04-28  Simon Josefsson  <simon@josefsson.org>
60316
60317         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
60318         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
60319         trigger for cygwin).
60320         Reported by Bruno Haible  <bruno@clisp.org>.
60321
60322 2008-04-28  Bruno Haible  <bruno@clisp.org>
60323
60324         * doc/posix-functions/strdup.texi: Mention mingw problem.
60325
60326 2008-04-27  Bruno Haible  <bruno@clisp.org>
60327
60328         * modules/stat-time-tests (Depends-on): Add sleep.
60329         * tests/test-stat-time.c (force_unlink): New function.
60330         (cleanup): Use it.
60331         (test_mtime): Remove the ctime related tests.
60332         (test_ctime): New function, containing the ctime related tests.
60333         (main): Call test_ctime, except on native Windows platforms.
60334
60335 2008-04-27  Bruno Haible  <bruno@clisp.org>
60336
60337         * lib/rpmatch.c (rpmatch): Add some comments.
60338         Reported by James Youngman <jay@gnu.org>.
60339
60340 2008-04-27  Bruno Haible  <bruno@clisp.org>
60341
60342         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
60343         quiet NaNs.
60344
60345 2008-04-27  Bruno Haible  <bruno@clisp.org>
60346
60347         Make test-yesno.sh work on mingw.
60348         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
60349         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
60350         (main): Set stdin to binary mode.
60351         * modules/yesno-tests (Depends-on): Add binary-io.
60352
60353 2008-04-27  Bruno Haible  <bruno@clisp.org>
60354
60355         Fix 'isfinite' on x86, x86_64, ia64 platforms.
60356         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
60357         argument that lie outside the IEEE 854 domain.
60358         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
60359         (gl_ISFINITE): Use it.
60360         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
60361
60362 2008-04-27  Bruno Haible  <bruno@clisp.org>
60363
60364         Allow local renaming in config.h.
60365         * lib/memrchr.c (memrchr): Don't undefine outside libc.
60366
60367 2008-04-27  Bruno Haible  <bruno@clisp.org>
60368
60369         * lib/memchr.c (__memchr): Change type of 'i'.
60370         * lib/memchr2.c (memchr2): Likewise.
60371
60372 2008-04-26  Eric Blake  <ebb9@byu.net>
60373         and Bruno Haible  <bruno@clisp.org>
60374
60375         Optimize and test memrchr.
60376         * modules/memrchr (Depends-on): Add intprops.
60377         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
60378         * modules/memrchr-tests: New file.
60379         * tests/test-memrchr.c: New file.
60380
60381 2008-04-26  Bruno Haible  <bruno@clisp.org>
60382
60383         Add tentative support for DragonFly BSD.
60384         * lib/stdio-impl.h: Add macros for DragonFly BSD.
60385         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
60386         fp.
60387         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
60388         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
60389         * lib/fpurge.c (fpurge): Likewise.
60390         * lib/freadable.c (freaadable): Likewise.
60391         * lib/freadahead.c (freadahead): Likewise.
60392         * lib/freading.c (freading): Likewise.
60393         * lib/freadptr.c (freadptr): Likewise.
60394         * lib/freadseek.c (freadptrinc): Likewise.
60395         * lib/fseeko.c (fseeko): Likewise.
60396         * lib/fseterr.c (fseterr): Likewise.
60397         * lib/fwritable.c (fwritable): Likewise.
60398         * lib/fwriting.c (fwriting): Likewise.
60399
60400 2008-04-26  Bruno Haible  <bruno@clisp.org>
60401
60402         * lib/stdio-impl.h: New file.
60403         * lib/fbufmode.c: Include stdio-impl.h.
60404         (fbufmode): Use fp_, remove redundant #defines.
60405         * lib/fflush.c: Include stdio-impl.h.
60406         (clear_ungetc_buffer): Remove redundant #defines.
60407         * lib/fpurge.c: Include stdio-impl.h.
60408         (fpurge): Remove redundant #defines.
60409         * lib/freadable.c: Include stdio-impl.h.
60410         (freadable): Remove redundant #defines.
60411         * lib/freadahead.c: Include stdio-impl.h.
60412         (freadahead): Remove redundant #defines.
60413         * lib/freading.c: Include stdio-impl.h.
60414         (freading): Remove redundant #defines.
60415         * lib/freadptr.c: Include stdio-impl.h.
60416         (freadptr): Remove redundant #defines.
60417         * lib/freadseek.c: Include stdio-impl.h.
60418         (freadptrinc): Remove redundant #defines.
60419         * lib/fseeko.c: Include stdio-impl.h.
60420         (rpl_fseeko): Remove redundant #defines.
60421         * lib/fseterr.c: Include stdio-impl.h.
60422         (fseterr): Remove redundant #defines.
60423         * lib/fwritable.c: Include stdio-impl.h.
60424         (fwritable: Remove redundant #defines.
60425         * lib/fwriting.c: Include stdio-impl.h.
60426         (fwriting): Remove redundant #defines.
60427         * modules/fbufmode (Files): Add lib/stdio-impl.h.
60428         * modules/fflush (Files): Likewise.
60429         * modules/fpurge (Files): Likewise.
60430         * modules/freadable (Files): Likewise.
60431         * modules/freadahead (Files): Likewise.
60432         * modules/freading (Files): Likewise.
60433         * modules/freadptr (Files): Likewise.
60434         * modules/freadseek (Files): Likewise.
60435         * modules/fseeko (Files): Likewise.
60436         * modules/fseterr (Files): Likewise.
60437         * modules/fwritable (Files): Likewise.
60438         * modules/fwriting (Files): Likewise.
60439
60440 2008-04-26  Bruno Haible  <bruno@clisp.org>
60441
60442         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
60443         restore_seek_optimization, update_fpos_cache): New functions, extracted
60444         from rpl_fflush.
60445         (rpl_fflush): Use them.
60446         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
60447         (gl_REPLACE_FFLUSH): Use it.
60448
60449 2008-04-26  Bruno Haible  <bruno@clisp.org>
60450
60451         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
60452         on Solaris.
60453         * tests/test-xstrtoimax.sh: Likewise.
60454         * tests/test-xstrtoumax.sh: Likewise.
60455         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60456
60457 2008-04-26  Bruno Haible  <bruno@clisp.org>
60458
60459         * modules/memchr-tests: New file.
60460         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
60461
60462 2008-04-26  Eric Blake  <ebb9@byu.net>
60463             Bruno Haible  <bruno@clisp.org>
60464
60465         * lib/memchr.c: Include intprops.h.
60466         (__memchr): Optimize parallel detection of matching bytes. Rename local
60467         variables. Add explanatory comments.
60468
60469 2008-04-26  Bruno Haible  <bruno@clisp.org>
60470
60471         Fix module 'memchr', broken since 2000-10-28.
60472         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
60473
60474 2008-04-26  Bruno Haible  <bruno@clisp.org>
60475
60476         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
60477         comments.
60478
60479 2008-04-25  Eric Blake  <ebb9@byu.net>
60480
60481         Use native fstatat on cygwin 1.7.0.
60482         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
60483         first.
60484
60485 2008-04-23  Eric Blake  <ebb9@byu.net>
60486
60487         Improve memchr2 performance.
60488         * lib/memchr2.c (memchr2): Further optimize parallel detection of
60489         NUL bytes.
60490         * modules/memchr2 (Depends-on): Use intprops.h.
60491
60492 2008-04-23  Simon Josefsson  <simon@josefsson.org>
60493
60494         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
60495         an inline function instead of a CPP macro.  Patch by Ben Pfaff
60496         <blp@cs.stanford.edu>.
60497
60498 2008-04-23  Simon Josefsson  <simon@josefsson.org>
60499
60500         * lib/arpa_inet.in.h: New file.
60501
60502         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
60503         (Makefile.am): Sed in substitute header file.
60504
60505         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
60506         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
60507
60508         * modules/inet_ntop (configure.ac): Use
60509         gl_ARPA_INET_MODULE_INDICATOR.
60510
60511         * modules/inet_pton (configure.ac): Use
60512         gl_ARPA_INET_MODULE_INDICATOR.
60513
60514 2008-04-22  Jim Meyering  <meyering@redhat.com>
60515
60516         * modules/verify (License): Re-license as LGPLv2+.
60517
60518 2008-04-22  Simon Josefsson  <simon@josefsson.org>
60519
60520         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
60521         parameter to void* as per POSIX standard (MinGW uses char*).
60522
60523 2008-04-21  Bruno Haible  <bruno@clisp.org>
60524
60525         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
60526         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
60527         Define to replacements if REPLACE_ISWCNTRL is 1.
60528         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
60529         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
60530         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
60531         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
60532         what it fixes.
60533         * doc/posix-functions/iswalpha.texi: Likewise.
60534         * doc/posix-functions/iswblank.texi: Likewise.
60535         * doc/posix-functions/iswcntrl.texi: Likewise.
60536         * doc/posix-functions/iswdigit.texi: Likewise.
60537         * doc/posix-functions/iswgraph.texi: Likewise.
60538         * doc/posix-functions/iswlower.texi: Likewise.
60539         * doc/posix-functions/iswprint.texi: Likewise.
60540         * doc/posix-functions/iswpunct.texi: Likewise.
60541         * doc/posix-functions/iswspace.texi: Likewise.
60542         * doc/posix-functions/iswupper.texi: Likewise.
60543         * doc/posix-functions/iswxdigit.texi: Likewise.
60544         Reported by Alain Guibert.
60545
60546 2008-04-21  Bruno Haible  <bruno@clisp.org>
60547
60548         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
60549         Patch by Alain Guibert.
60550
60551 2008-04-21  Bruno Haible  <bruno@clisp.org>
60552
60553         Fix test failures on mingw.
60554         * tests/test-xstrtol.c (print_no_progname): New function.
60555         (main): Install it in error_print_progname hook.
60556         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
60557         * tests/test-xstrtoimax.sh: Likewise.
60558         * tests/test-xstrtoumax.sh: Likewise.
60559
60560 2008-04-21  Bruno Haible  <bruno@clisp.org>
60561
60562         Fix test failure on mingw.
60563         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
60564
60565 2008-04-21  Bruno Haible  <bruno@clisp.org>
60566
60567         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
60568         Actually assign a value.
60569
60570 2008-04-20  Bruno Haible  <bruno@clisp.org>
60571
60572         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
60573         take 2.
60574         * lib/canonicalize.c (canonicalize_file_name): Elide if the
60575         'canonicalize-lgpl' module is also used.
60576         * lib/canonicalize-lgpl.c: Undo last change.
60577         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
60578
60579 2008-04-20  Bruno Haible  <bruno@clisp.org>
60580
60581         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
60582         config.h. Provide _mkdir based fallback for mingw.
60583         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
60584         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
60585         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
60586         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
60587         rather than defining mkdir in config.h.
60588         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
60589         (gl_SYS_STAT_H_DEFAULTS): New macro.
60590         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
60591         HAVE_IO_H any more.
60592         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
60593         HAVE_DECL_MKDIR and HAVE_IO_H.
60594
60595 2008-04-20  Bruno Haible  <bruno@clisp.org>
60596
60597         * lib/isapipe.c: Port to native Windows platforms.
60598
60599 2008-04-20  Bruno Haible  <bruno@clisp.org>
60600
60601         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
60602
60603 2008-04-21  Eric Blake  <ebb9@byu.net>
60604
60605         Work around preprocessors that don't handle UINTMAX_MAX.
60606         * lib/memchr2.c (memchr2): Avoid embedded #if.
60607         Reported by Alain Guibert, fix suggested by Bruno Haible.
60608
60609 2008-04-21  Simon Josefsson  <simon@josefsson.org>
60610
60611         * doc/posix-functions/strftime.texi (strftime): Explain better
60612         Windows incompatibility.  Suggested by Micah Cowan
60613         <micah@cowan.name>.
60614
60615 2008-04-20  Bruno Haible  <bruno@clisp.org>
60616
60617         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
60618         unistr/u8-mblen.
60619
60620 2008-04-20  Bruno Haible  <bruno@clisp.org>
60621
60622         Fix test failure on platforms with non-GNU iconv.
60623         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
60624         (U_TO_U8): Use it, rather than u16_to_u8.
60625         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
60626         units at the end of the input string.
60627         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
60628
60629 2008-04-20  Bruno Haible  <bruno@clisp.org>
60630
60631         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
60632         when the resulting length is 0.
60633         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
60634
60635 2008-04-20  Bruno Haible  <bruno@clisp.org>
60636
60637         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
60638         works.
60639         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
60640
60641 2008-04-20  Bruno Haible  <bruno@clisp.org>
60642
60643         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
60644         * modules/tsearch-tests (configure.ac): Test for initstate function.
60645
60646 2008-04-20  Bruno Haible  <bruno@clisp.org>
60647
60648         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
60649         for nlink_t if missing.
60650         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
60651
60652 2008-04-19  Bruno Haible  <bruno@clisp.org>
60653
60654         Work around snprintf bug on Linux libc5.
60655         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
60656         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60657         gl_SNPRINTF_SIZE1.
60658         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60659         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
60660         that test failed.
60661         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
60662         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
60663         * modules/snprintf (Files): Add m4/printf.m4.
60664         * modules/vsnprintf (Files): Likewise.
60665         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
60666         * doc/posix-functions/vsnprintf.texi: Likewise.
60667
60668 2008-04-19  Bruno Haible  <bruno@clisp.org>
60669
60670         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
60671         from 0.0058 to less than 10^-7.
60672
60673 2008-04-19  Bruno Haible  <bruno@clisp.org>
60674
60675         Fix rounding when a precision is given.
60676         * lib/vasnprintf.c (is_borderline): New function.
60677         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
60678         9...9x.
60679         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
60680         %e, %g.
60681         * tests/test-vasprintf-posix.c (test_function): Likewise.
60682         * tests/test-snprintf-posix.h (test_function): Likewise.
60683         * tests/test-sprintf-posix.h (test_function): Likewise.
60684         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
60685         * tests/test-printf-posix.h (test_function): Likewise.
60686         * tests/test-printf-posix.output: Update.
60687         Reported by John Darrington <john@darrington.wattle.id.au> via
60688         Ben Pfaff <blp@cs.stanford.edu>.
60689
60690 2008-04-18  Simon Josefsson  <simon@josefsson.org>
60691
60692         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
60693         Suggested by Bruno Haible <bruno@clisp.org>.
60694
60695 2008-04-17  Bruno Haible  <bruno@clisp.org>
60696
60697         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
60698         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
60699         implementation.
60700         Patch by Bruce Merry <bmerry@gmail.com>.
60701
60702 2008-04-17  Simon Josefsson  <simon@josefsson.org>
60703
60704         * doc/posix-functions/strftime.texi (strftime): Mention that %e
60705         doesn't work under Windows.
60706
60707 2008-04-16  Bruno Haible  <bruno@clisp.org>
60708
60709         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
60710         New macros.
60711         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
60712         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
60713         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
60714         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
60715         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
60716         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
60717         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
60718         macros.
60719         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
60720         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
60721         Northern Sotho, Uighur.
60722
60723 2008-04-16  Bruno Haible  <bruno@clisp.org>
60724
60725         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
60726         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
60727         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
60728         Reported by Daniel Bergström <daniel@octocode.com>.
60729
60730 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
60731             Bruno Haible  <bruno@clisp.org>
60732
60733         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
60734         function.
60735         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
60736         New functions, mostly extracted from gl_locale_name_default.
60737         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
60738
60739 2008-04-16  Eric Blake  <ebb9@byu.net>
60740
60741         Adjust strtod detection to catch glibc 2.7 bug.
60742         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
60743         Reported by John Gatewood Ham.
60744
60745 2008-04-16  Bruno Haible  <bruno@clisp.org>
60746
60747         Add tentative support for Linux libc5.
60748         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
60749         * lib/fpurge.c (fpurge): Likewise.
60750         * lib/freadable.c (freadable): Likewise.
60751         * lib/freadahead.c (freadahead): Likewise.
60752         * lib/freading.c (freading): Likewise.
60753         * lib/freadptr.c (freadptr): Likewise.
60754         * lib/freadseek.c (freadptrinc): Likewise.
60755         * lib/fseeko.c (rpl_fseeko): Likewise.
60756         * lib/fseterr.c (fseterr): Likewise.
60757         * lib/fwritable.c (fwritable): Likewise.
60758         * lib/fwriting.c (fwriting): Likewise.
60759         Reported by Alain Guibert <alguibert+bts@free.fr>.
60760
60761 2008-04-15  Bruno Haible  <bruno@clisp.org>
60762
60763         * modules/mathl (configure.ac): Define module indicator.
60764
60765 2008-04-15  Bruno Haible  <bruno@clisp.org>
60766
60767         * lib/logl.c (logl): Remove unused variables.
60768
60769 2008-04-15  Bruno Haible  <bruno@clisp.org>
60770
60771         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
60772         fails.
60773
60774 2008-04-15  Bruno Haible  <bruno@clisp.org>
60775
60776         * lib/trim.c (trim2): Fix argument of isspace() macro.
60777
60778 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
60779
60780         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
60781         to 0.
60782         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
60783
60784 2008-04-14  Bruno Haible  <bruno@clisp.org>
60785
60786         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
60787         AC_LANG_PROGRAM argument.
60788         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
60789         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
60790         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
60791         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
60792         * m4/math_h.m4 (gl_MATH_H): Likewise.
60793         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
60794         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
60795         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
60796         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
60797         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
60798         * m4/regex.m4 (gl_REGEX): Likewise.
60799         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
60800         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
60801         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60802         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
60803         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
60804         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60805         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
60806         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
60807
60808 2008-04-14  Jim Meyering  <meyering@redhat.com>
60809
60810         test-strtod: fix typos: s/abs/fabs/
60811         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
60812
60813 2008-04-13  Bruno Haible  <bruno@clisp.org>
60814
60815         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
60816         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
60817         module is also used and while not building the reloc-wrapper.
60818
60819 2008-04-13  Bruno Haible  <bruno@clisp.org>
60820
60821         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
60822
60823 2008-04-13  Bruno Haible  <bruno@clisp.org>
60824
60825         Fix AIX compilation failure introduced on 2008-04-02.
60826         * tests/test-frexp.c (exp): Undefine before redefining.
60827         * tests/test-frexpl.c (exp): Likewise.
60828
60829 2008-04-13  Bruno Haible  <bruno@clisp.org>
60830
60831         Work around a HP-UX stdio bug.
60832         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
60833         * tests/test-ftello.c (main): Likewise.
60834         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
60835         * doc/posix-functions/ftello.texi: Likewise.
60836
60837 2008-04-13  Bruno Haible  <bruno@clisp.org>
60838
60839         Make test-signbit pass on HP-UX/hppa.
60840         * tests/test-signbit.c (minus_zerol): New variable.
60841         (test_signbitl): Use it.
60842
60843 2008-04-13  Bruno Haible  <bruno@clisp.org>
60844
60845         Make truncl work on OSF/1 4.0.
60846         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
60847         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
60848         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
60849         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
60850         HAVE_DECL_TRUNCL.
60851         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
60852         HAVE_DECL_TRUNCL.
60853         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
60854
60855 2008-04-13  Bruno Haible  <bruno@clisp.org>
60856
60857         * lib/unictype.h: Remove trailing comma from enumeration definitions.
60858
60859 2008-04-13  Bruno Haible  <bruno@clisp.org>
60860
60861         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
60862         expression, so as to avoid HP-UX 11 cc compiler bug.
60863
60864 2008-04-13  Bruno Haible  <bruno@clisp.org>
60865
60866         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
60867
60868 2008-04-13  Bruno Haible  <bruno@clisp.org>
60869
60870         * lib/git-merge-changelog.c: Remove empty declaration outside of
60871         functions.
60872
60873 2008-04-13  Bruno Haible  <bruno@clisp.org>
60874
60875         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
60876
60877 2008-04-13  Bruno Haible  <bruno@clisp.org>
60878
60879         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
60880         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
60881         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
60882         also if it exists but lacks definitions of the SHUT_* macros.
60883         * modules/sys_socket (Description): Update.
60884         Reported by Elbert Pol <e.pol@chello.nl>.
60885
60886 2008-04-13  Bruno Haible  <bruno@clisp.org>
60887
60888         * lib/localcharset.c (OS2): Don't redefine if already defined.
60889         Reported by Elbert Pol <e.pol@chello.nl>.
60890
60891 2008-04-13  Bruno Haible  <bruno@clisp.org>
60892
60893         * lib/binary-io.h [__EMX__]: Include <io.h>.
60894         Reported by Elbert Pol <e.pol@chello.nl>.
60895
60896 2008-04-12  Bruno Haible  <bruno@clisp.org>
60897
60898         * lib/fpucw.h: Enable the definitions also for x86_64.
60899         Needed for NetBSD/x86_64.
60900         Reported by Thomas Klausner <tk@giga.or.at>.
60901
60902 2008-04-12  Bruno Haible  <bruno@clisp.org>
60903
60904         * tests/test-strtod.c: Include isnand.h.
60905         (main): Use isnand instead of isnan.
60906         Reported by Jim Meyering.
60907
60908 2008-04-12  Bruno Haible  <bruno@clisp.org>
60909
60910         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
60911         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
60912
60913 2008-04-12  Jim Meyering  <meyering@redhat.com>
60914
60915         * m4/math_h.m4 (gl_MATH_H): Fix typos.
60916
60917 2008-04-12  Bruno Haible  <bruno@clisp.org>
60918
60919         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
60920         Reported by Elbert Pol <e.pol@chello.nl>.
60921
60922 2008-04-12  Eric Blake  <ebb9@byu.net>
60923
60924         Work around Solaris 10 math.h bug.
60925         * m4/math_h.m4 (gl_MATH_H): Check for bug.
60926         (gl_MATH_H_DEFAULTS): Set up default.
60927         * modules/math (Makefile.am): Replace new indicators.
60928         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
60929         * tests/test-math.c (main): Test this.
60930         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
60931         * doc/posix-headers/math.texi (math.h): Mention bug.
60932         Reported by Nelson H. F. Beebe and Jim Meyering.
60933
60934 2008-04-11  Bruno Haible  <bruno@clisp.org>
60935
60936         Adapt to future versions of Apple GCC.
60937         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
60938         Reported by Peter O'Gorman <peter@pogma.com>.
60939
60940 2008-04-11  Bruno Haible  <bruno@clisp.org>
60941
60942         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
60943
60944 2008-04-11  Bruno Haible  <bruno@clisp.org>
60945
60946         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
60947
60948         * modules/getaddrinfo-tests (Makefile.am): Define
60949         test_getaddrinfo_LDADD.
60950
60951 2008-04-11  Bruno Haible  <bruno@clisp.org>
60952
60953         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
60954         (init): Fix syntax error.
60955         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
60956         is declared.
60957
60958 2008-04-11  Bruno Haible  <bruno@clisp.org>
60959
60960         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
60961         * modules/glob (Depends-on): Add stdbool.
60962
60963 2008-04-11  Bruno Haible  <bruno@clisp.org>
60964
60965         * lib/trim.c: Include <string.h>.
60966
60967 2008-04-11  Eric Blake  <ebb9@byu.net>
60968
60969         Avoid compile failure on OS/2.
60970         * lib/regex_internal.h (internal_function): Disable optimization
60971         on OS/2 (__EMX__), where it caused compiler error.
60972         Reported by Elbert Pol.
60973
60974 2008-04-11  Bruno Haible  <bruno@clisp.org>
60975
60976         Flush the standard error stream before aborting. Needed on mingw.
60977         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
60978         * tests/test-array_list.c (ASSERT): Likewise.
60979         * tests/test-array_oset.c (ASSERT): Likewise.
60980         * tests/test-avltree_list.c (ASSERT): Likewise.
60981         * tests/test-avltree_oset.c (ASSERT): Likewise.
60982         * tests/test-avltreehash_list.c (ASSERT): Likewise.
60983         * tests/test-binary-io.c (ASSERT): Likewise.
60984         * tests/test-byteswap.c (ASSERT): Likewise.
60985         * tests/test-c-ctype.c (ASSERT): Likewise.
60986         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
60987         * tests/test-c-strcasestr.c (ASSERT): Likewise.
60988         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
60989         * tests/test-c-strstr.c (ASSERT): Likewise.
60990         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
60991         * tests/test-canonicalize.c (ASSERT): Likewise.
60992         * tests/test-carray_list.c (ASSERT): Likewise.
60993         * tests/test-ceilf1.c (ASSERT): Likewise.
60994         * tests/test-ceilf2.c (ASSERT): Likewise.
60995         * tests/test-ceill.c (ASSERT): Likewise.
60996         * tests/test-count-one-bits.c (ASSERT): Likewise.
60997         * tests/test-fbufmode.c (ASSERT): Likewise.
60998         * tests/test-fflush2.c (ASSERT): Likewise.
60999         * tests/test-floorf1.c (ASSERT): Likewise.
61000         * tests/test-floorf2.c (ASSERT): Likewise.
61001         * tests/test-floorl.c (ASSERT): Likewise.
61002         * tests/test-fopen.c (ASSERT): Likewise.
61003         * tests/test-fpending.c (ASSERT): Likewise.
61004         * tests/test-fprintf-posix.c (ASSERT): Likewise.
61005         * tests/test-fpurge.c (ASSERT): Likewise.
61006         * tests/test-freadable.c (ASSERT): Likewise.
61007         * tests/test-freadahead.c (ASSERT): Likewise.
61008         * tests/test-freading.c (ASSERT): Likewise.
61009         * tests/test-freadptr.c (ASSERT): Likewise.
61010         * tests/test-freadptr2.c (ASSERT): Likewise.
61011         * tests/test-freadseek.c (ASSERT): Likewise.
61012         * tests/test-freopen.c (ASSERT): Likewise.
61013         * tests/test-frexp.c (ASSERT): Likewise.
61014         * tests/test-frexpl.c (ASSERT): Likewise.
61015         * tests/test-fseek.c (ASSERT): Likewise.
61016         * tests/test-fseeko.c (ASSERT): Likewise.
61017         * tests/test-fstrcmp.c (ASSERT): Likewise.
61018         * tests/test-ftell.c (ASSERT): Likewise.
61019         * tests/test-ftello.c (ASSERT): Likewise.
61020         * tests/test-func.c (ASSERT): Likewise.
61021         * tests/test-fwritable.c (ASSERT): Likewise.
61022         * tests/test-fwriting.c (ASSERT): Likewise.
61023         * tests/test-getdelim.c (ASSERT): Likewise.
61024         * tests/test-getline.c (ASSERT): Likewise.
61025         * tests/test-i-ring.c (ASSERT): Likewise.
61026         * tests/test-iconv-utf.c (ASSERT): Likewise.
61027         * tests/test-iconv.c (ASSERT): Likewise.
61028         * tests/test-isfinite.c (ASSERT): Likewise.
61029         * tests/test-isnand.c (ASSERT): Likewise.
61030         * tests/test-isnanf.c (ASSERT): Likewise.
61031         * tests/test-isnanl.h (ASSERT): Likewise.
61032         * tests/test-ldexpl.c (ASSERT): Likewise.
61033         * tests/test-linked_list.c (ASSERT): Likewise.
61034         * tests/test-linkedhash_list.c (ASSERT): Likewise.
61035         * tests/test-localename.c (ASSERT): Likewise.
61036         * tests/test-lseek.c (ASSERT): Likewise.
61037         * tests/test-mbscasecmp.c (ASSERT): Likewise.
61038         * tests/test-mbscasestr1.c (ASSERT): Likewise.
61039         * tests/test-mbscasestr2.c (ASSERT): Likewise.
61040         * tests/test-mbscasestr3.c (ASSERT): Likewise.
61041         * tests/test-mbscasestr4.c (ASSERT): Likewise.
61042         * tests/test-mbschr.c (ASSERT): Likewise.
61043         * tests/test-mbscspn.c (ASSERT): Likewise.
61044         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
61045         * tests/test-mbspbrk.c (ASSERT): Likewise.
61046         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
61047         * tests/test-mbsrchr.c (ASSERT): Likewise.
61048         * tests/test-mbsspn.c (ASSERT): Likewise.
61049         * tests/test-mbsstr1.c (ASSERT): Likewise.
61050         * tests/test-mbsstr2.c (ASSERT): Likewise.
61051         * tests/test-mbsstr3.c (ASSERT): Likewise.
61052         * tests/test-memchr2.c (ASSERT): Likewise.
61053         * tests/test-memmem.c (ASSERT): Likewise.
61054         * tests/test-open.c (ASSERT): Likewise.
61055         * tests/test-printf-frexp.c (ASSERT): Likewise.
61056         * tests/test-printf-frexpl.c (ASSERT): Likewise.
61057         * tests/test-printf-posix.c (ASSERT): Likewise.
61058         * tests/test-quotearg.c (ASSERT): Likewise.
61059         * tests/test-rbtree_list.c (ASSERT): Likewise.
61060         * tests/test-rbtree_oset.c (ASSERT): Likewise.
61061         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
61062         * tests/test-round1.c (ASSERT): Likewise.
61063         * tests/test-roundf1.c (ASSERT): Likewise.
61064         * tests/test-roundl.c (ASSERT): Likewise.
61065         * tests/test-signbit.c (ASSERT): Likewise.
61066         * tests/test-sleep.c (ASSERT): Likewise.
61067         * tests/test-snprintf-posix.c (ASSERT): Likewise.
61068         * tests/test-snprintf.c (ASSERT): Likewise.
61069         * tests/test-sprintf-posix.c (ASSERT): Likewise.
61070         * tests/test-stat-time.c (ASSERT): Likewise.
61071         * tests/test-strcasestr.c (ASSERT): Likewise.
61072         * tests/test-strerror.c (ASSERT): Likewise.
61073         * tests/test-striconv.c (ASSERT): Likewise.
61074         * tests/test-striconveh.c (ASSERT): Likewise.
61075         * tests/test-striconveha.c (ASSERT): Likewise.
61076         * tests/test-strsignal.c (ASSERT): Likewise.
61077         * tests/test-strstr.c (ASSERT): Likewise.
61078         * tests/test-strtod.c (ASSERT): Likewise.
61079         * tests/test-trunc1.c (ASSERT): Likewise.
61080         * tests/test-trunc2.c (ASSERT): Likewise.
61081         * tests/test-truncf1.c (ASSERT): Likewise.
61082         * tests/test-truncf2.c (ASSERT): Likewise.
61083         * tests/test-truncl.c (ASSERT): Likewise.
61084         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
61085         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
61086         * tests/test-vasnprintf.c (ASSERT): Likewise.
61087         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
61088         * tests/test-vasprintf.c (ASSERT): Likewise.
61089         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
61090         * tests/test-vprintf-posix.c (ASSERT): Likewise.
61091         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
61092         * tests/test-vsnprintf.c (ASSERT): Likewise.
61093         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
61094         * tests/test-wcwidth.c (ASSERT): Likewise.
61095         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
61096         * tests/test-xprintf-posix.c (ASSERT): Likewise.
61097         * tests/test-xvasprintf.c (ASSERT): Likewise.
61098         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
61099         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
61100         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
61101         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
61102         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
61103         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
61104         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
61105         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
61106         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
61107         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
61108         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
61109         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
61110         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
61111         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
61112         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
61113         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
61114         * tests/unictype/test-block_list.c (ASSERT): Likewise.
61115         * tests/unictype/test-block_of.c (ASSERT): Likewise.
61116         * tests/unictype/test-block_test.c (ASSERT): Likewise.
61117         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
61118         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
61119         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
61120         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
61121         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
61122         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
61123         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
61124         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
61125         * tests/unictype/test-combining.c (ASSERT): Likewise.
61126         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
61127         * tests/unictype/test-digit.c (ASSERT): Likewise.
61128         * tests/unictype/test-mirror.c (ASSERT): Likewise.
61129         * tests/unictype/test-numeric.c (ASSERT): Likewise.
61130         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
61131         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
61132         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
61133         * tests/unictype/test-scripts.c (ASSERT): Likewise.
61134         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
61135         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
61136         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
61137         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
61138         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
61139         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
61140         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
61141         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
61142         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
61143         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
61144         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
61145         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
61146         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
61147         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
61148         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
61149         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
61150         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
61151         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
61152         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
61153         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
61154         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
61155         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
61156         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
61157         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
61158         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
61159         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
61160         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
61161         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
61162         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
61163         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
61164         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
61165         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
61166         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
61167         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
61168         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
61169         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
61170         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
61171         Reported by Eric Blake.
61172
61173 2008-04-11  Bruno Haible  <bruno@clisp.org>
61174
61175         * lib/wchar.in.h: Tweak comment.
61176
61177 2008-04-11  Bruno Haible  <bruno@clisp.org>
61178
61179         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
61180         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
61181         gl_COMMON.
61182         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
61183
61184 2008-04-11  Bruno Haible  <bruno@clisp.org>
61185
61186         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
61187
61188 2008-04-11  Simon Josefsson  <simon@josefsson.org>
61189
61190         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
61191         of attempting to use non-existing /dev/*random.  Based on patch
61192         from Adam Strzelecki <ono@java.pl> in
61193         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
61194
61195 2008-04-08  Bruno Haible  <bruno@clisp.org>
61196
61197         Add tentative support for emx+gcc.
61198         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
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         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
61210
61211 2008-04-09  Eric Blake  <ebb9@byu.net>
61212
61213         Avoid some autoconf warnings.
61214         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
61215         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
61216         * m4/afs.m4 (gl_AFS): Likewise.
61217         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
61218         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
61219         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
61220         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
61221         (gl_INTEGER_TYPE_SUFFIX): Likewise.
61222         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
61223         (AC_CHECK_DECLS_ONCE): Likewise.
61224         Rename file...
61225         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
61226         gnulib-tool requires autoconf 2.59 or better.
61227         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
61228
61229 2008-04-08  Eric Blake  <ebb9@byu.net>
61230
61231         Use 'git describe --match' if present (added in git 1.5.5).
61232         * build-aux/git-version-gen: Limit result to tags that match 'v*'
61233         if possible.
61234
61235 2008-04-08  Bruno Haible  <bruno@clisp.org>
61236
61237         Add tentative support for OpenServer.
61238         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
61239         _ptr, _cnt.
61240         * lib/fpurge.c (fpurge): Likewise.
61241         * lib/freadable.c (freadable): Likewise.
61242         * lib/freadahead.c (freadahead): Likewise.
61243         * lib/freading.c (freading): Likewise.
61244         * lib/freadptr.c (freadptr): Likewise.
61245         * lib/freadseek.c (freadptrinc): Likewise.
61246         * lib/fseeko.c (rpl_fseeko): Likewise.
61247         * lib/fseterr.c (fseterr): Likewise.
61248         * lib/fwritable.c (fwritable): Likewise.
61249         * lib/fwriting.c (fwriting): Likewise.
61250         Reported by Roger Cornelius <rac@tenzing.org> and
61251         Brian K. White <brian@aljex.com>.
61252
61253 2008-04-06  Jim Meyering  <meyering@redhat.com>
61254
61255         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
61256
61257 2008-04-06  Bruno Haible  <bruno@clisp.org>
61258
61259         Avoid possible error with non-ASCII bytes in UTF-8 locales.
61260         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
61261         * tests/test-printf-posix.sh: Likewise.
61262         * tests/test-vfprintf-posix.sh: Likewise.
61263         * tests/test-vprintf-posix.sh: Likewise.
61264         * tests/test-xprintf-posix.sh: Likewise.
61265
61266 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61267
61268         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
61269         hide error from 'ls', needed on OS/2.
61270         Report by Elbert Pol <elbert.pol@gmail.com>.
61271
61272 2008-04-04  Eric Blake  <ebb9@byu.net>
61273
61274         Make test-fseeko.c failures meaningful.
61275         * tests/test-fseeko.c: Print line number on failure.
61276         * tests/test-fseek.c: Likewise.
61277         Reported by Nelson H. F. Beebe.
61278
61279         Improve strtod bug detection check.
61280         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
61281         required for Solaris 10.
61282         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
61283
61284 2008-04-04  Bruno Haible  <bruno@clisp.org>
61285
61286         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
61287         by m4/setenv.m4.
61288
61289 2008-04-03  Eric Blake  <ebb9@byu.net>
61290
61291         Ensure sane .version contents.
61292         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
61293         version string.
61294         * build-aux/git-version-gen: Improve documentation.
61295
61296         Make GNU make output nicer.
61297         * top/GNUmakefile [!_have-Makefile]: Add dependency on
61298         MAKECMDGOALS to enforce message for all command line targets.  Set
61299         srcdir for use in maint.mk.
61300
61301         Another maintainer tweak.
61302         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
61303         a target that regenerates version.
61304
61305 2008-04-03  Jim Meyering  <meyering@redhat.com>
61306
61307         vc-list-files: don't cause coreutils "make po-check" failure
61308         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
61309
61310 2008-04-03  Eric Blake  <ebb9@byu.net>
61311
61312         Allow VPATH usage of vc-list-files.
61313         * build-aux/vc-list-files (scriptversion): Add timestamp.
61314         (options): Add --help, --version, -C.
61315         (CVS): Support installed cvsu.
61316
61317 2008-04-02  Bruno Haible  <bruno@clisp.org>
61318
61319         Avoid some "statement with no effect" warnings from gcc.
61320         * tests/test-wctype.c (main): Explicitly ignore unused values.
61321         Reported by Jim Meyering.
61322
61323 2008-04-02  Jim Meyering  <meyering@redhat.com>
61324
61325         Avoid some warnings from "gcc -Wshadow".
61326         * tests/test-frexp.c (exp): Define to a different identifier.
61327         * tests/test-frexpl.c (exp): Likewise.
61328
61329 2008-04-03  Jim Meyering  <meyering@redhat.com>
61330
61331         bootstrap: remove dangling *.[ch] symlinks from lib
61332         * build-aux/bootstrap [dangling symlink removal]: Move find's
61333         -depth option to precede all others, to avoid a warning.
61334         Remove *.[ch] files too, and from "$source_base" (usually lib/).
61335
61336 2008-04-02  Bruno Haible  <bruno@clisp.org>
61337
61338         Avoid some warnings from "gcc -Wshadow".
61339         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
61340         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
61341         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
61342         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
61343         Reported by Jim Meyering.
61344
61345 2008-04-01  Bruno Haible  <bruno@clisp.org>
61346
61347         Fix test to work on IRIX 6.5 with cc.
61348         * tests/test-math.c (numeric_equal): New function.
61349         (main): Use it.
61350
61351 2008-04-01  Bruno Haible  <bruno@clisp.org>
61352
61353         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
61354
61355 2008-04-01  Bruno Haible  <bruno@clisp.org>
61356
61357         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
61358         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61359         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
61360         (Depends-on): Remove math.
61361
61362         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
61363         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61364         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
61365         (Depends-on): Remove math.
61366
61367         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
61368         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61369         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
61370         (Depends-on): Remove math.
61371         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
61372         (Depends-on): Remove math.
61373
61374         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
61375         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61376         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
61377         (Depends-on): Remove math.
61378         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
61379         (Depends-on): Remove math.
61380
61381         * tests/test-round1.c: Include nan.h.
61382         (main): Use NaNd instead of NAN.
61383         * modules/round-tests (Files): Add tests/nan.h.
61384
61385         * tests/test-trunc1.c: Include nan.h.
61386         (main): Use NaNd instead of NAN.
61387         * modules/trunc-tests (Files): Add tests/nan.h.
61388
61389         * tests/test-roundf1.c: Include nan.h.
61390         (main): Use NaNf instead of NAN.
61391         * modules/roundf-tests (Files): Add tests/nan.h.
61392
61393         * tests/test-truncf1.c: Include nan.h.
61394         (main): Use NaNf instead of NAN.
61395         * modules/truncf-tests (Files): Add tests/nan.h.
61396
61397         * tests/test-ceilf1.c: Include nan.h.
61398         (main): Use NaNf instead of NAN.
61399         * modules/ceilf-tests (Files): Add tests/nan.h.
61400
61401         * tests/test-floorf1.c: Include nan.h.
61402         (main): Use NaNf instead of NAN.
61403         * modules/floorf-tests (Files): Add tests/nan.h.
61404
61405         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
61406         (main): Use NaNf instead of NAN.
61407         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
61408
61409         * tests/test-isnand.c: Include nan.h instead of <math.h>.
61410         (main): Use NaNd instead of NAN.
61411         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
61412
61413         * tests/test-frexp.c: Include nan.h.
61414         (main): Use NaNd instead of NAN.
61415         * modules/frexp-tests (Files): Add tests/nan.h.
61416
61417         * lib/isnan.c: Don't include <math.h>.
61418         (FUNC): Don't use NAN macro.
61419         * modules/isnand-nolibm (Depends-on): Remove math.
61420         * modules/isnanf-nolibm (Depends-on): Remove math.
61421         * modules/isnanl (Depends-on): Remove math.
61422         * modules/isnanl-nolibm (Depends-on): Remove math.
61423
61424         * tests/nan.h: New file.
61425
61426 2008-04-01  Eric Blake  <ebb9@byu.net>
61427
61428         Fix typos.
61429         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
61430         values to be the right type.
61431
61432         For now, cater to gnulib strtod inaccuracies.
61433         * tests/test-strtod.c (main): Allow 1-ulp error on expected
61434         fractional results.  While not as nice from a QoI perspective, it
61435         is a quicker patch than correctly implementing decimal to binary
61436         rounding.
61437
61438 2008-03-31  Eric Blake  <ebb9@byu.net>
61439
61440         Guarantee a definition of NAN.
61441         * lib/math.in.h (NAN): Define if missing.
61442         * tests/test-math.c (main): Test it.
61443         * doc/posix-headers/math.texi (math.h): Document this.
61444         * lib/isnan.c (rpl_isnand): Use it.
61445         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
61446         * tests/test-floorf1.c (NaN): Likewise.
61447         * tests/test-frexp.c (NaN): Likewise.
61448         * tests/test-isnand.c (NaN): Likewise.
61449         * tests/test-isnanf.c (NaN): Likewise.
61450         * tests/test-round1.c (NaN): Likewise.
61451         * tests/test-roundf1.c (NaN): Likewise.
61452         * tests/test-snprintf-posix.h (NaN): Likewise.
61453         * tests/test-sprintf-posix.h (NaN): Likewise.
61454         * tests/test-trunc1.c (NaN): Likewise.
61455         * tests/test-truncf1.c (NaN): Likewise.
61456         * tests/test-vasnprintf-posix.c (NaN): Likewise.
61457         * tests/test-vasprintf-posix.c (NaN): Likewise.
61458         * modules/isnand-nolibm (Depends-on): Add math.
61459         * modules/isnanf-nolibm (Depends-on): Likewise.
61460         * modules/isnanl (Depends-on): Likewise.
61461         * modules/isnanl-nolibm (Depends-on): Likewise.
61462         * modules/snprintf-posix-tests (Depends-on): Likewise.
61463         * modules/sprintf-posix-tests (Depends-on): Likewise.
61464         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
61465         * modules/vsprintf-posix-tests (Depends-on): Likewise.
61466         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
61467         * modules/vasprintf-posix-tests (Depends-on): Likewise.
61468
61469 2008-03-31  Bruno Haible  <bruno@clisp.org>
61470
61471         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
61472         * doc/posix-functions/strtod.texi: Likewise.
61473
61474 2008-03-31  Bruno Haible  <bruno@clisp.org>
61475
61476         * tests/test-strtod.c (main): Don't use C99 syntax.
61477
61478 2008-03-31  Bruno Haible  <bruno@clisp.org>
61479
61480         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
61481         Reported by Eric Blake.
61482
61483 2008-03-31  Jim Meyering  <meyering@redhat.com>
61484
61485         Don't compare actual signbit return values.
61486         * tests/test-strtod.c (main): Rather, compare only their
61487         zero/non-zero nature.
61488
61489 2008-03-31  Eric Blake  <ebb9@byu.net>
61490
61491         More strtod documentation.
61492         * doc/posix-functions/strtod.texi (strtod): Interpret more test
61493         failures as distinct bugs.
61494
61495 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
61496
61497         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
61498         Problem reported by Erik Benada in
61499         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
61500
61501 2008-03-30  Bruno Haible  <bruno@clisp.org>
61502
61503         * tests/test-strtod.c: Add comments about which assertion fails on which
61504         platform.
61505         * doc/posix-functions/strtod.texi: Add info about many more platforms.
61506
61507 2008-03-30  Eric Blake  <ebb9@byu.net>
61508
61509         Test signbit behavior on zeros.
61510         * tests/test-signbit.c (test_signbitf): Add tests for zero.
61511         (test_signbitd, test_signbitl): Likewise.
61512
61513         More strtod touchups.
61514         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
61515         sign of negative underflow, for now.  Use .5, not .1.
61516         * doc/posix-functions/strtod.texi (strtod): Mention these
61517         limitations.
61518         Reported by Jim Meyering.
61519
61520 2008-03-30  Bruno Haible  <bruno@clisp.org>
61521
61522         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
61523         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
61524
61525 2008-03-30  Bruno Haible  <bruno@clisp.org>
61526
61527         Avoid failure when attempting to return empty iconv results on some
61528         platforms.
61529         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
61530         allocation, don't report ENOMEM when the resulting string is empty.
61531
61532 2008-03-30  Bruno Haible  <bruno@clisp.org>
61533
61534         Fix buffer overrun.
61535         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
61536         Don't consider the width for tmp_length. Check count against tmp_length
61537         before doing the padding. Ensure enough allocation during padding.
61538
61539 2008-03-30  Eric Blake  <ebb9@byu.net>
61540
61541         strtod touchups.
61542         * lib/strtod.c (strtod): Avoid compiler warnings.
61543         Reported by Jim Meyering.
61544
61545 2008-03-30  Bruno Haible  <bruno@clisp.org>
61546
61547         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
61548         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
61549         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
61550         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
61551         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
61552         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
61553         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
61554         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
61555
61556         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
61557         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
61558         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
61559         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
61560         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
61561         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
61562         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
61563         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
61564
61565         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
61566         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
61567         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
61568         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
61569         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
61570         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
61571         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
61572         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
61573
61574         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
61575         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
61576
61577         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
61578         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
61579
61580         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
61581         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
61582
61583         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
61584         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
61585         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
61586
61587         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
61588         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
61589         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
61590
61591         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
61592         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
61593         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
61594
61595         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
61596         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
61597         * modules/vasprintf (Depends-on): Add EOVERFLOW.
61598
61599         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
61600         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
61601         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
61602         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
61603         (Depends-on): Add EOVERFLOW.
61604         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
61605         (Depends-on): Add EOVERFLOW.
61606         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
61607         (Depends-on): Add EOVERFLOW.
61608         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
61609         (Depends-on): Add EOVERFLOW.
61610         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
61611         (Depends-on): Add EOVERFLOW.
61612         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
61613         (Depends-on): Add EOVERFLOW.
61614         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
61615         (Depends-on): Add EOVERFLOW.
61616         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
61617         (Depends-on): Add EOVERFLOW.
61618
61619         * lib/sprintf.c (EOVERFLOW): Remove fallback.
61620         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
61621         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
61622
61623         * lib/snprintf.c (EOVERFLOW): Remove fallback.
61624         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
61625         * modules/snprintf (Depends-on): Add EOVERFLOW.
61626
61627         * lib/poll.c (EOVERFLOW): Remove fallback.
61628         * modules/poll (Depends-on): Add EOVERFLOW.
61629
61630         * lib/getugroups.c (EOVERFLOW): Remove fallback.
61631         * modules/getugroups (Depends-on): Add EOVERFLOW.
61632
61633         * lib/getdelim.c (EOVERFLOW): Remove fallback.
61634         * modules/getdelim (Depends-on): Add EOVERFLOW.
61635
61636         * lib/ftell.c (EOVERFLOW): Remove fallback.
61637         * modules/ftell (Depends-on): Add EOVERFLOW.
61638
61639         * lib/fprintf.c (EOVERFLOW): Remove fallback.
61640         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
61641         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
61642
61643         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
61644
61645         * modules/EOVERFLOW-tests: New file.
61646         * tests/test-EOVERFLOW.c: New file.
61647
61648         * modules/EOVERFLOW: New file.
61649         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
61650
61651 2008-03-30  Bruno Haible  <bruno@clisp.org>
61652
61653         Fix bug introduced on 2007-06-10.
61654         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
61655         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
61656
61657 2008-03-30  Bruno Haible  <bruno@clisp.org>
61658
61659         Improve freadseek's efficiency after ungetc.
61660         * lib/freadseek.c: Include freadahead.h.
61661         (freadptrinc): New function, extracted from freadseek.
61662         (freadseek): Use it in a loop. Use freadahead to determine the number
61663         of loop iterations.
61664         * modules/freadseek (Depends-on): Add freadahead.
61665         (configure.ac): Require AC_C_INLINE.
61666
61667 2008-03-30  Bruno Haible  <bruno@clisp.org>
61668
61669         * lib/freadseek.c (freadseek): Don't ignore the return value of
61670         freadptr.
61671
61672 2008-03-29  Eric Blake  <ebb9@byu.net>
61673
61674         Add hex float support.
61675         * modules/strtod (Depends-on): Add c-ctype.
61676         (Link): Mention POW_LIB.
61677         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
61678         whitespace between 'e' and exponent.
61679         * tests/test-strtod.c (main): Enable hex float tests.
61680         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
61681         now provides.
61682
61683         Document various strtod bugs, with some fixes.
61684         * doc/posix-functions/strtod.texi (strtod): Document bugs with
61685         "-0x", "inf", "nan", and hex constants.
61686         * doc/posix-functions/atof.texi (atof): Likewise.
61687         * modules/stdlib (Makefile.am): Support strtod.
61688         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
61689         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
61690         detect additional strtod bugs.
61691         * lib/stdlib.in.h (rpl_strtod): Add declarations.
61692         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
61693         bool where appropriate.  Parse 'inf' and 'nan'.
61694         * tests/test-strtod.c: New file.
61695         * modules/strtod (Depends-on): Add stdbool, stdlib.
61696         (configure.ac): Turn on module indicator.
61697         * modules/strtod-tests: New module.
61698
61699 2008-03-29  Eric Blake  <ebb9@byu.net>
61700
61701         Fix ftell on mingw.
61702         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
61703         * modules/ftell-tests (Depends-on): Add binary-io.
61704         * modules/ftello-tests (Depends-on): Likewise.
61705         * tests/test-ftell.c (main): Enhance test to cover behavior after
61706         ungetc.  Enforce binary mode.
61707         * tests/test-ftello.c (main): Likewise.
61708
61709         Pass test-freadseek on cygwin.
61710         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
61711         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
61712         ungetc buffer.
61713
61714         * tests/test-fflush2.c (main): Fix typo.
61715
61716 2008-03-29  Bruno Haible  <bruno@clisp.org>
61717
61718         * tests/test-fflush2.c (main): Temporarily disable the contents of
61719         this test.
61720         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
61721         Reported by Eric Blake.
61722
61723 2008-03-28  Simon Josefsson  <simon@josefsson.org>
61724
61725         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
61726         (GC_SHA224_DIGEST_SIZE): Add.
61727
61728         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
61729         (gc_hash_digest_length): Likewise.
61730         (gc_hash_buffer): Likewise.
61731
61732 2008-03-25  Bruno Haible  <bruno@clisp.org>
61733
61734         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
61735         detail which gettext release to use.
61736         Reported by Simon Josefsson.
61737
61738 2008-03-26  Jim Meyering  <meyering@redhat.com>
61739
61740         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
61741         * modules/gnumakefile (clean-GNUmakefile): Also, use
61742         test ... && ... || : syntax rather than if-then ... fi.
61743
61744         gnumakefile: Don't double-quote-expand $(VPATH) value.
61745         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
61746
61747 2008-03-24  Eric Blake  <ebb9@byu.net>
61748
61749         Alter GNUmakefile to install into top directory.
61750         * modules/maintainer-makefile: Split, and add dependency...
61751         * modules/gnumakefile: to this new module.
61752         * build-aux/GNUmakefile: Move...
61753         * top/GNUmakefile: ...here.
61754         * build-aux/maint.mk: Move...
61755         * top/maint.mk: ...here.
61756         * MODULES.html.sh (Support for maintaining...): Document new
61757         module.
61758
61759 2008-03-23  Bruno Haible  <bruno@clisp.org>
61760
61761         * gnulib-tool: New options --vc-files, --no-vc-files.
61762         (func_usage): Document them.
61763         (vc_files): New variable.
61764         (func_import): Consider vc_files.
61765         (func_create_testdir): Set vc_files to empty.
61766         Suggested by Jim Meyering and Karl Berry.
61767
61768 2008-03-23  Bruno Haible  <bruno@clisp.org>
61769
61770         Fix regex compilation error on HP-UX 11.
61771         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
61772         * modules/regex (Files): Add m4/mbstate_t.m4.
61773         Reported by Ton Voon <ton.voon@altinity.com>.
61774
61775 2008-03-23  Bruno Haible  <bruno@clisp.org>
61776
61777         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
61778
61779 2008-03-23  Eric Blake  <ebb9@byu.net>
61780             Bruno Haible  <bruno@clisp.org>
61781
61782         Install files from top/ in the destination directory.
61783         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
61784         augmentation also for the files from top/.
61785         (func_import, func_create_testdir): Rewrite file names:
61786         top/filename -> filename.
61787
61788 2008-03-23  Bruno Haible  <bruno@clisp.org>
61789
61790         Tweak "gnulib --version" output.
61791         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
61792
61793 2008-03-23  Bruno Haible  <bruno@clisp.org>
61794
61795         Tweak "gnulib --version" output.
61796         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
61797         rather than contents of ChangeLog, when possible.
61798
61799 2008-03-21  Eric Blake  <ebb9@byu.net>
61800
61801         More --version tweaks.
61802         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
61803         date of last ChangeLog entry.
61804
61805 2008-03-21  Jim Meyering  <meyering@redhat.com>
61806
61807         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
61808
61809 2008-03-20  Eric Blake  <ebb9@byu.net>
61810
61811         VPATH fix.
61812         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
61813
61814 2008-03-20  Simon Josefsson  <simon@josefsson.org>
61815
61816         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
61817         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
61818
61819 2008-03-20  Eric Blake  <ebb9@byu.net>
61820
61821         Sync GNUmakefile with coreutils.
61822         * build-aux/GNUmakefile (have-Makefile): Rename...
61823         (_have-Makefile): ...to this, for namespace consideration.
61824         (GNUmakefile.cfg): Include, if present.
61825         (_autoreconf): Define a default.
61826         (_is-dist-target): New rule for rebuilds to pick up intra-release
61827         version.
61828         (maint-cfg.mk): Rename...
61829         (cfg.mk): ...to this.
61830
61831 2008-03-18  Jim Meyering  <meyering@redhat.com>
61832
61833         New script and module: mktempd
61834         * MODULES.html.sh (maint+release support): Add mktempd.
61835         * build-aux/mktempd: New file.
61836         * modules/mktempd: New file.
61837
61838 2008-03-15  Jim Meyering  <meyering@redhat.com>
61839
61840         Undo last change.
61841         * lib/sha1.c, lib/md5.c: 63 != ~63.
61842         Reported by Andreas Schwab.
61843
61844         sha1.c, md5.c: Hoist a redundant expression.
61845         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
61846         "ctx->buflen" only once, before calling *_process_block.
61847         * lib/md5.c (md5_process_bytes): Likewise.
61848
61849 2008-03-14  Eric Blake  <ebb9@byu.net>
61850
61851         Bump copyright year in files generated by gnulib-tool.
61852         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
61853         gnulib-tool, rather than hard-coding it.
61854
61855         Fix 'gnulib-tool --version' output to work with git.
61856         * gnulib-tool (func_gnulib_dir): New function, extracted from...
61857         (startup): ...here.
61858         (func_version): Use it to invoke git-version-gen, rather than
61859         relying on CVS keyword expansion.  Modernize wording.
61860         (cvsdatestamp, last_checkin_date, version): Kill unused
61861         variables.
61862
61863 2008-03-12  Jim Meyering  <meyering@redhat.com>
61864
61865         Recognize optional cast of the argument to free.
61866         * build-aux/useless-if-before-free: Update regexps.
61867
61868         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
61869
61870 2008-03-11  Bruno Haible  <bruno@clisp.org>
61871
61872         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
61873         by a single package.
61874         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
61875         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
61876         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
61877         Reported by Sam Steingold <sds@gnu.org>.
61878
61879 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
61880
61881         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
61882         repositories.
61883
61884 2008-03-11  Bruno Haible  <bruno@clisp.org>
61885
61886         Avoid conflicts between local macro definitions.
61887         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
61888         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
61889
61890 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
61891             Bruno Haible  <bruno@clisp.org>
61892
61893         Make va_copy work with some version of xlc on AIX 5.1.
61894         * lib/stdarg.in.h: New file.
61895         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
61896         On AIX, use a <stdarg.h> file substitute.
61897         * modules/stdarg (Files): Add lib/stdarg.in.h.
61898         (Depends-on): Add include_next.
61899         (Makefile.am): Build a stdarg.h substitute if requested.
61900         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
61901
61902 2008-03-10  Bruno Haible  <bruno@clisp.org>
61903
61904         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
61905         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
61906         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
61907
61908 2008-03-10  Bruno Haible  <bruno@clisp.org>
61909
61910         * modules/stdlib (Depends-on): Add include_next, remove
61911         absolute-header.
61912
61913 2008-03-09  Bruno Haible  <bruno@clisp.org>
61914
61915         * lib/freadahead.h (freadahead): Document more precisely.
61916         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
61917         the sum of both buffer sizes.
61918         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
61919         * NEWS: Document the change.
61920
61921 2008-03-09  Bruno Haible  <bruno@clisp.org>
61922
61923         Extend freadptr to return also the buffer size.
61924         * lib/freadptr.h (freadptr): Add sizep argument.
61925         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
61926         (freadptr): Add sizep argument. Determine buffer size like freadahead
61927         does.
61928         * tests/test-freadptr.c: Don't include freadahead.h.
61929         (main): Adapt for new calling convention of freadptr.
61930         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
61931         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
61932         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
61933         tests/test-freadptr2.sh.
61934         (Depends): Remove freadahead.
61935         (TESTS): Add test-freadptr2.sh.
61936         (check_PROGRAMS): Add test-freadptr2.
61937
61938 2008-03-09  Bruno Haible  <bruno@clisp.org>
61939
61940         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
61941         Report and solution by Simon Josefsson.
61942
61943 2008-03-06  Bruno Haible  <bruno@clisp.org>
61944
61945         Make fflush after ungetc work on BSD platforms.
61946         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
61947         * tests/test-fflush2.c: New file.
61948         * tests/test-fflush2.sh: New file.
61949         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
61950         tests/test-fflush2.c.
61951         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
61952         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
61953
61954 2008-03-06  Eric Blake  <ebb9@byu.net>
61955
61956         Likewise for ftello.
61957         * modules/ftello (Dependencies): Add extensions.
61958         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
61959
61960 2008-03-06  Bruno Haible  <bruno@clisp.org>
61961
61962         * modules/fseeko (Dependencies): Add extensions.
61963         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
61964         Needed on glibc systems.
61965
61966 2008-03-06  Bruno Haible  <bruno@clisp.org>
61967
61968         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
61969         email address.
61970         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
61971
61972 2008-03-06  Bruno Haible  <bruno@clisp.org>
61973
61974         * users.txt: Add libgnupdf.
61975
61976 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
61977
61978         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
61979         (Header File Substitutes, Function Substitutes,
61980         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
61981         (Build robot for gnulib): Fix typo.
61982
61983 2008-03-06  Bruno Haible  <bruno@clisp.org>
61984
61985         * doc/gnulib-tool.texi (VCS Issues): Small updates.
61986         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
61987
61988 2008-03-06  Bruno Haible  <bruno@clisp.org>
61989
61990         * doc/func.texi: New file, extracted from doc/gnulib.texi.
61991         * doc/gnulib.texi: Include it.
61992
61993 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61994
61995         * modules/func (License): Change license to unlimited; there was
61996         no LGPL parts in the module anyway.
61997
61998 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61999
62000         * modules/__func__: Renamed to modules/func.
62001         * modules/__func__-tests: Renamed to modules/func-tests.
62002         * tests/test-__func__.c: Renamed to tests/test-func.c.
62003         * m4/__func__.m4: Renamed to m4/func.m4.
62004         * doc/gnulib.texi (__func__): Section renamed to func.
62005         Suggested by Eric Blake <ebb9@byu.net>.
62006
62007 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62008
62009         * doc/gnulib.texi (__func__): Use C99 terminology when talking
62010         about __func__.  Make example self-contained.  Suggested by Eric
62011         Blake <ebb9@byu.net>.
62012
62013         * tests/test-__func__.c (main): Avoid extraneous () around __func.
62014         Suggested by Eric Blake <ebb9@byu.net>.
62015
62016 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62017
62018         * modules/__func__: New file.
62019         * modules/__func__-tests: New file.
62020         * tests/test-__func__.c: New file.
62021         * m4/__func__.m4: New file.
62022         * doc/gnulib.texi (__func__): Document __func__ module.
62023
62024 2008-03-05  Simon Josefsson  <simon@josefsson.org>
62025
62026         * modules/byteswap (License): Re-license as LGPLv2+.
62027
62028 2008-03-05  Simon Josefsson  <simon@josefsson.org>
62029
62030         * doc/Makefile: Add pdf target.
62031
62032 2008-03-05  Simon Josefsson  <simon@josefsson.org>
62033
62034         * modules/inline (License): Use 'unlimited', since there are only
62035         *.m4 files in this module.
62036
62037 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
62038             Bruno Haible  <bruno@clisp.org>
62039
62040         Add support for HP C 7.1 on OpenVMS 8.3.
62041         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
62042
62043 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
62044
62045         Update VMS specifics.
62046         * lib/getopt.c [VMS]: Remove include of unixlib.h.
62047
62048 2008-03-02  Jim Meyering  <meyering@redhat.com>
62049
62050         Remove the last dependency on the "free" module.
62051         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
62052         Reported by Bob Proulx.
62053
62054         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
62055
62056         Remove useless "if" tests before free.  Deprecate "free" module.
62057         * doc/posix-functions/free.texi: Mention that this
62058         module is no longer useful.
62059         * modules/free (Notice): Say this module is obsolete.
62060         * modules/readutmp (Depends-on): Remove free.
62061         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
62062         * lib/putenv.c (putenv): Likewise.
62063         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
62064         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
62065         * tests/test-c-strcasestr.c (main): Likewise.
62066         * tests/test-c-strstr.c (main): Likewise.
62067         * tests/test-mbscasestr1.c (main): Likewise.
62068         * tests/test-mbscasestr2.c (main): Likewise.
62069         * tests/test-mbsstr1.c (main): Likewise.
62070         * tests/test-mbsstr2.c (main): Likewise.
62071         * tests/test-memmem.c (main): Likewise.
62072         * tests/test-strcasestr.c (main): Likewise.
62073         * tests/test-striconv.c (main): Likewise.
62074         * tests/test-striconveh.c (main): Likewise.
62075         * tests/test-striconveha.c (main): Likewise.
62076         * tests/test-strstr.c (main): Likewise.
62077
62078         * build-aux/git-version-gen: Adjust a comment and the Usage string.
62079
62080         bootstrap: sync from coreutils again
62081         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
62082
62083 2008-03-01  Jim Meyering  <meyering@redhat.com>
62084
62085         bootstrap: sync from coreutils
62086         * build-aux/bootstrap (update_po_files): Copy a .po file into place
62087         also when the target doesn't exist.
62088
62089 2008-03-01  Eric Blake  <ebb9@byu.net>
62090
62091         Fix bugs in last patch.
62092         * lib/memchr2.c (memchr2): Fix typo.
62093         * tests/test-memchr2.c: Test previous bug, and don't use GNU
62094         extension.
62095         Reported by Bruce Korb.
62096
62097         New module 'memchr2'.
62098         * modules/memchr2: New file.
62099         * modules/memchr2-tests: Likewise.
62100         * lib/memchr2.h: Likewise.
62101         * lib/memchr2.c: Likewise, based on memchr.c.
62102         * tests/test-memchr2.c: New test.
62103         * MODULES.html.sh (String handling): Add memchr2.
62104
62105 2008-02-29  Bruno Haible  <bruno@clisp.org>
62106
62107         * modules/freadseek-tests: New file.
62108         * tests/test-freadseek.sh: New file.
62109         * tests/test-freadseek.c: New file.
62110
62111         New module 'freadseek'.
62112         * modules/freadseek: New file.
62113         * lib/freadseek.h: New file.
62114         * lib/freadseek.c: New file.
62115         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
62116
62117 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
62118
62119         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
62120         wydawca.
62121
62122         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
62123         program_invocation_name and program_invocation_short_name are
62124         present.
62125
62126 2008-02-28  Bruno Haible  <bruno@clisp.org>
62127
62128         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
62129         * tests/test-freadptr.sh: Also test non-seekable stdin.
62130
62131 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
62132
62133         * build-aux/bootstrap (source_base, m4_base)
62134         (doc_base, tests_base): New variables.
62135         (gnulib_tool_options): Do not hardcode base directories, use
62136         the above variables instead.
62137
62138 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
62139
62140         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
62141
62142 2008-02-28  Bruno Haible  <bruno@clisp.org>
62143
62144         * modules/freadptr-tests: New file.
62145         * tests/test-freadptr.sh: New file.
62146         * tests/test-freadptr.c: New file.
62147
62148         New module 'freadptr'.
62149         * modules/freadptr: New file.
62150         * lib/freadptr.h: New file.
62151         * lib/freadptr.c: New file.
62152         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
62153
62154 2008-02-26  Karl Berry  <karl@freefriends.org>
62155
62156         Sync from Libtool:
62157         * libltdl/argz.c (argz_add, argz_count): New functions.
62158         * libltdl/argz.in.h: Declare them.
62159         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
62160
62161 2008-02-22  Bruno Haible  <bruno@clisp.org>
62162
62163         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
62164         is a pointer type.  Needed for HP-UX 10.
62165         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
62166         * doc/posix-functions/gmtime_r.texi: Likewise.
62167         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
62168
62169 2008-02-24  Bruno Haible  <bruno@clisp.org>
62170
62171         * modules/environ-tests: New file.
62172         * tests/test-environ.c: New file.
62173
62174         New module 'environ'.
62175         * modules/environ: New file.
62176         * lib/unistd.in.h (environ): New declaration.
62177         * m4/environ.m4: New file.
62178         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
62179         after use.
62180         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
62181         HAVE_DECL_ENVIRON.
62182         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
62183         HAVE_DECL_ENVIRON.
62184         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
62185         wrong claim that 'environ' is missing on some systems.
62186         * modules/execute (Depends-on): Add environ.
62187         * lib/execute.c (environ): Remove fallback declaration.
62188         * modules/pipe (Depends-on): Add environ.
62189         * lib/pipe.c (environ): Remove fallback declaration.
62190         * modules/setenv (Depends-on): Add environ.
62191         * lib/setenv.c (environ): Remove fallback declaration.
62192         * modules/unsetenv (Depends-on): Add environ.
62193         * lib/unsetenv.c (environ): Remove fallback declaration.
62194         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
62195         m4/environ.m4.
62196         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
62197         (gl_PREREQ_UNSETENV): Likewise.
62198
62199 2008-02-24  Bruno Haible  <bruno@clisp.org>
62200
62201         * doc/posix-functions/environ.texi: Document the MacOS X problem.
62202
62203 2008-02-20  Bob Proulx  <bob@proulx.com>
62204
62205         Enable use of older two part flavor 'git describe'.
62206         * build-aux/git-version-gen: If using the older two part flavor of
62207         git version then recreate the third part now present in the
62208         newer three part flavor of git describe.
62209
62210 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
62211
62212         * lib/fts.c (fts_build): Typo correction to comment.
62213
62214 2008-02-17  Bruno Haible  <bruno@clisp.org>
62215
62216         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
62217         generating no-op conflicts.
62218
62219 2008-02-17  Bruno Haible  <bruno@clisp.org>
62220
62221         Speed up by 10%.
62222         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
62223         result_entries, rather than an index-based loop.
62224
62225 2008-02-17  Bruno Haible  <bruno@clisp.org>
62226
62227         Speed up by 25%.
62228         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
62229         'hashcode_cached'.
62230         (entry_create): New function.
62231         (entry_hashcode): Use the cached hashcode if possible.
62232         (read_changelog_file, try_split_merged_entry): Use entry_create.
62233
62234 2008-02-17  Bruno Haible  <bruno@clisp.org>
62235
62236         Speed up from O(n^2) to O(n) for long ChangeLog files.
62237         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
62238         (read_changelog_file): Change implementation of entries_reversed list
62239         to rbtreehash.
62240         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
62241
62242 2008-02-17  Bruno Haible  <bruno@clisp.org>
62243
62244         New option --split-merged-entry.
62245         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
62246         (find_paragraph_end, try_split_merged_entry): New functions.
62247         (long_options): Add option --split-merged-entry.
62248         (usage): Document option --split-merged-entry.
62249         (main): Implement option --split-merged-entry.
62250         Reported by Eric Blake.
62251
62252 2008-02-17  Bruno Haible  <bruno@clisp.org>
62253
62254         * lib/git-merge-changelog.c: Include c-strstr.h.
62255         (main): Support the "git pull --rebase" situation.
62256         * modules/git-merge-changelog (Depends-on): Add c-strstr.
62257         Reported by Eric Blake.
62258
62259 2008-02-16  Eric Blake  <ebb9@byu.net>
62260
62261         Avoid doubling \ in common case of "c-maybe" quoting style.
62262         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
62263         eliding outer quotes.
62264         * lib/quotearg.h: Document this.
62265         * tests/test-quotearg.c (result_strings, inputs, results_g)
62266         (flag_results, locale_results): Test it by adding a new string to
62267         each test group.
62268         (compare_strings): Test new string.
62269
62270 2008-02-13  Eric Blake  <ebb9@byu.net>
62271
62272         Avoid trigraph quoting in default output.
62273         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
62274         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
62275         unless explicitly requested.
62276         * tests/test-quotearg.c (flag_results, main): Add additional tests.
62277
62278 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
62279
62280         Don't rely on signed integer overflowing to negative value.
62281         * lib/getugroups.c (getugroups): Include <limits.h>.
62282         Instead, compare against INT_MAX, and increment only if the test passes.
62283
62284 2008-02-13  Jim Meyering  <meyering@redhat.com>
62285         and Eric Blake  <ebb9@byu.net>
62286
62287         Avoid shadowing warning and compile errors on Linux.
62288         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
62289         forwarding macros on Linux.
62290         (dcgettext): Define a stub, for Linux.
62291         (results_g, main): Avoid warnings.
62292
62293 2008-02-12  Eric Blake  <ebb9@byu.net>
62294
62295         Silence warning in last patch.
62296         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
62297
62298         Quotearg part 4: add tests, fix c-maybe colon quoting.
62299         * lib/quotearg.h: Improve documentation.
62300         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
62301         escapes when adding outer quotes.  When quoting trigraphs, use
62302         valid C notation.  When quoting NUL, omit extra characters if next
62303         character is not digit.  Alter prototype.
62304         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
62305         callers.
62306         * modules/quotearg-tests: New module.
62307         * tests/test-quotearg.c: New test.
62308
62309 2008-02-07  Eric Blake  <ebb9@byu.net>
62310
62311         Quotearg part 3: add flag to control outer quote elision.
62312         * lib/quotearg.h (c_maybe_quoting_style): New style.
62313         (enum quoting_flags): Better documentation of flags.
62314         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
62315         c-maybe style.
62316         (quotearg_buffer_restyled): Handle new flag to elide outer
62317         quotes.
62318
62319         Quotearg part 2: add flag that can control NUL elision.
62320         * lib/quotearg.h (set_quoting_flags): New prototype.
62321         * lib/quotearg.c (struct quoting_options): Add flag field.
62322         (set_quoting_flags): New function.
62323         (quotearg_buffer_restyled): Add flags parameter.
62324         (quotearg_alloc_mem): Set the flag if length cannot be returned.
62325         (quotearg_n_options): Set the flag, since length cannot be
62326         returned.
62327         (quoting_options_from_style): Default flags correctly.
62328
62329         Quotearg part 1: more wrappers, restore quotearg_char state.
62330         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
62331         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
62332         (quotearg_colon_mem): New wrappers.
62333         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
62334         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
62335         functions.
62336         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
62337         (quotearg_colon_mem): New functions.
62338
62339 2008-02-11  Bruno Haible  <bruno@clisp.org>
62340
62341         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
62342         library in the current directory: it does not work with parallel make.
62343         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62344
62345 2008-02-11  Bruno Haible  <bruno@clisp.org>
62346
62347         * .gitattributes: New file.
62348
62349 2008-02-11  Jim Meyering  <meyering@redhat.com>
62350
62351         useless-if-before-free: Fix reversed exit values.
62352         * build-aux/useless-if-before-free: Use correct values
62353         for EXIT_MATCH and EXIT_NO_MATCH.
62354
62355         * build-aux/useless-if-before-free: Close stdout carefully.
62356
62357 2008-02-10  Bruno Haible  <bruno@clisp.org>
62358
62359         New module 'git-merge-changelog'.
62360         * modules/git-merge-changelog: New file.
62361         * lib/git-merge-changelog.c: New file.
62362
62363 2008-02-10  Jim Meyering  <meyering@redhat.com>
62364
62365         useless-if-before-free: New option: --list (-l).
62366
62367         useless-if-before-free: Don't exit immediately upon open failure.
62368         * build-aux/useless-if-before-free: Exit 2 for errors.
62369         Upon failure to open a file, don't exit immediately.
62370         Rather, just warn and continue with any remaining files.
62371
62372 2008-02-10  Bruno Haible  <bruno@clisp.org>
62373
62374         New abstract list operation 'node_set_value'.
62375         * lib/gl_list.h (gl_list_node_set_value): New function.
62376         (struct gl_list_implementation): New field node_set_value.
62377         * lib/gl_list.c (gl_list_node_set_value): New function.
62378         * lib/gl_array_list.c (gl_array_node_set_value): New function.
62379         (gl_array_list_implementation): Update.
62380         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
62381         (gl_carray_list_implementation): Update.
62382         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
62383         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
62384         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
62385         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
62386         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
62387         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
62388         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
62389         Update.
62390         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
62391         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
62392         (gl_sublist_list_implementation): Update.
62393
62394 2008-02-10  Bruno Haible  <bruno@clisp.org>
62395
62396         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
62397         Needed when ELEMENT is #defined to 'some_type *'.
62398
62399 2008-02-10  Jim Meyering  <meyering@redhat.com>
62400
62401         New script and module: useless-if-before-free
62402         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
62403         * build-aux/useless-if-before-free: New file.
62404         * modules/useless-if-before-free: New file.
62405
62406         * build-aux/gitlog-to-changelog: Use committer date, not author date.
62407
62408         xstrtol_error: Fix typo.
62409         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
62410         s/exit_failure/exit_status/.
62411
62412 2008-02-09  Jim Meyering  <meyering@redhat.com>
62413
62414         New script and module: gitlog-to-changelog
62415         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
62416         * modules/gitlog-to-changelog: New file.
62417         * build-aux/gitlog-to-changelog: New file.
62418
62419 2008-02-08  Jim Meyering  <meyering@redhat.com>
62420
62421         Avoid two "parameter unused" warnings.
62422         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
62423         Mark "st" as used.
62424
62425         Use "git COMMAND", not "git-COMMAND".
62426         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
62427         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
62428         * build-aux/git-version-gen: Use "git status", not "git-status".
62429
62430 2008-02-07  Bruno Haible  <bruno@clisp.org>
62431
62432         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
62433         Avoids a crash on Windows Vista.
62434         Reported by Adam Strzelecki <ono@java.pl> via
62435         Simon Josefsson <simon@josefsson.org>.
62436
62437 2008-02-06  Bruno Haible  <bruno@clisp.org>
62438
62439         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
62440         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
62441         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
62442         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
62443         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
62444         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62445         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
62446         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
62447         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62448         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62449         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62450         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62451         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62452         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62453         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62454         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
62455         left-adjust flag.
62456         * tests/test-snprintf-posix.h (test_function): Likewise.
62457         * tests/test-sprintf-posix.h (test_function): Likewise.
62458         * tests/test-vasprintf-posix.c (test_function): Likewise.
62459         * doc/posix-functions/fprintf.texi: Update.
62460         * doc/posix-functions/printf.texi: Update.
62461         * doc/posix-functions/snprintf.texi: Update.
62462         * doc/posix-functions/sprintf.texi: Update.
62463         * doc/posix-functions/vfprintf.texi: Update.
62464         * doc/posix-functions/vprintf.texi: Update.
62465         * doc/posix-functions/vsnprintf.texi: Update.
62466         * doc/posix-functions/vsprintf.texi: Update.
62467         Reported by Peter Fales <psfales@alcatel-lucent.com>.
62468
62469 2008-02-06  Bruno Haible  <bruno@clisp.org>
62470
62471         Fix bug introduced on 2008-01-26.
62472         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
62473
62474 2008-02-06  Bruno Haible  <bruno@clisp.org>
62475
62476         Fix bug introduced on 2007-06-10.
62477         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
62478         !NEED_PRINTF_FLAG_ZERO.
62479
62480 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
62481
62482         getloadavg: use libperfstat on AIX5
62483         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
62484
62485 2008-02-03  Bruno Haible  <bruno@clisp.org>
62486
62487         * lib/diffseq.h: Add comments about required #includes.
62488         Reported by Michael Biggs <gnulib@doubleplum.net>.
62489
62490 2008-02-01  Bruno Haible  <bruno@clisp.org>
62491
62492         * users.txt: Add gnuit.
62493
62494 2008-01-31  Bruno Haible  <bruno@clisp.org>
62495
62496         * lib/md4.c (set_uint32): Mark as inline.
62497         * lib/md5.c (set_uint32): Likewise.
62498         * lib/sha1.c (set_uint32): Likewise.
62499         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
62500         * m4/md5.m4 (gl_MD5): Likewise.
62501         * m4/sha1.m4 (gl_SHA1): Likewise.
62502
62503 2008-01-31  Jim Meyering  <meyering@redhat.com>
62504
62505         Use "sizeof VAR", rather than a literal "4".
62506         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
62507         * lib/md4.c (md4_read_ctx): Likewise.
62508         * lib/sha1.c (sha1_read_ctx): Likewise.
62509
62510 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62511
62512         * tests/test-sha1.c: New file, based on test-md5.c.
62513
62514         * modules/crypto/sha1-tests: New file.
62515
62516 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62517
62518         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
62519
62520 2008-01-31  Jim Meyering  <meyering@redhat.com>
62521
62522         Prefer "sizeof v" over the equivalent "4".
62523         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
62524         * lib/md5.c (set_uint32): Likewise.
62525         * lib/sha1.c (set_uint32): Likewise.
62526
62527 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62528
62529         * lib/sha1.c (set_uint32): Mark function as static.
62530
62531 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62532
62533         md2: clarify comments to say that alignment is not required.
62534         * lib/md2.h: Remove warning about alignment in comment.
62535         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
62536         never been required.
62537
62538 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62539
62540         md4: adapt alignment constraint fix from sha1.
62541         * lib/md4.c (set_uint32): New function, from sha1.c
62542         (md4_read_ctx): Use it.
62543         (md4_finish_ctx): Doc fix.
62544         * lib/md4.h: Doc fix.
62545
62546 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62547
62548         md5: adapt alignment constraint fix from sha1.
62549         * lib/md5.c (set_uint32): New function, from sha1.c
62550         (md5_read_ctx): Use it.
62551         (md5_finish_ctx): Doc fix.
62552         * lib/md5.h: Doc fix.
62553
62554 2008-01-30  Peter Palfrader  <weasel@debian.org>
62555
62556         sha1: remove the result buffer alignment constraint
62557         * lib/sha1.c (set_uint32): New function.
62558         (sha1_read_ctx): Rewrite to remove the result buffer alignment
62559         constraint.
62560         (sha1_finish_ctx): Remove comment warning about alignment constraint.
62561         * lib/sha1.h: Likewise.
62562
62563 2008-01-30  Andreas Schwab  <schwab@suse.de>
62564             Bruno Haible  <bruno@clisp.org>
62565
62566         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
62567         correct definition of LDBL_MIN_EXP.
62568
62569 2008-01-30  Karl Berry  <karl@gnu.org>
62570
62571         * config/srclist-update: try to preserve x bit on updates.
62572         * config/srclistvars.sh: update for karl.
62573
62574 2008-01-29  Jim Meyering  <meyering@redhat.com>
62575
62576         vasnprintf.c: Avoid warning about unused label
62577         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
62578         "overflow" label definition and associated code with the
62579         same cpp condition that guards the sole use of that label.
62580
62581 2008-01-26  Bruno Haible  <bruno@clisp.org>
62582
62583         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
62584         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
62585         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
62586         * lib/isnanl-nolibm.h (isnanl): Likewise.
62587         Reported by Paul Eggert <eggert@cs.ucla.edu>.
62588
62589 2008-01-26  Bruno Haible  <bruno@clisp.org>
62590
62591         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
62592         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
62593
62594 2008-01-26  Bruno Haible  <bruno@clisp.org>
62595
62596         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
62597         GCC >= 4.0 built-in.
62598         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
62599
62600 2008-01-26  Bruno Haible  <bruno@clisp.org>
62601
62602         Rename isnan, applicable to 'double' only, to isnand.
62603         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
62604         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
62605         (configure.ac): Update.
62606         (Include): Replace "isnan.h" with "isnand.h".
62607         * m4/isnand.m4: Renamed from m4/isnan.m4.
62608         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
62609         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
62610         instead of isnan.c.
62611         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
62612         instead of HAVE_ISNAN_IN_LIBC.
62613         (isnand): Renamed from isnan.
62614         * lib/isnand.c: New file.
62615         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
62616         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
62617         (Makefile.am): Update.
62618         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
62619         Include isnand.h instead of isnan.h.
62620         (main): Test isnand instead of isnan.
62621         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
62622         isnan-nolibm.
62623         * modules/frexp (Depends-on): Likewise.
62624         * modules/frexp-tests (Depends-on): Likewise.
62625         * modules/frexp-nolibm (Depends-on): Likewise.
62626         * modules/frexp-nolibm-tests (Depends-on): Likewise.
62627         * modules/isfinite (Depends-on): Likewise.
62628         * modules/round-tests (Depends-on): Likewise.
62629         * modules/signbit (Depends-on): Likewise.
62630         * modules/signbit-tests (Depends-on): Likewise.
62631         * modules/snprintf-posix (Depends-on): Likewise.
62632         * modules/sprintf-posix (Depends-on): Likewise.
62633         * modules/trunc-tests (Depends-on): Likewise.
62634         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
62635         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
62636         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
62637         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
62638         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
62639         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
62640         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
62641         * modules/vasnprintf-posix (Depends-on): Likewise.
62642         * modules/vasprintf-posix (Depends-on): Likewise.
62643         * modules/vfprintf-posix (Depends-on): Likewise.
62644         * modules/vsnprintf-posix (Depends-on): Likewise.
62645         * modules/vsprintf-posix (Depends-on): Likewise.
62646         * lib/frexp.c: Include isnand.h instead of isnan.h.
62647         (ISNAN): Set to isnand instead of isnan.
62648         * lib/isfinite.c: Include isnand.h instead of isnan.h.
62649         (gl_isfinited): Use isnand instead of isnan.
62650         * lib/signbitd.c: Include isnand.h instead of isnan.h.
62651         (gl_signbitd): Use isnand instead of isnan.
62652         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
62653         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
62654         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
62655         (main): Use isnand instead of isnan.
62656         * tests/test-round1.c: Include isnand.h.
62657         (main): Use isnand instead of isnan.
62658         * tests/test-round2.c: Include isnand.h instead of isnan.h.
62659         (ISNAN): Set to isnand instead of isnan.
62660         * tests/test-trunc1.c: Include isnand.h.
62661         (main): Use isnand instead of isnan.
62662         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
62663         (equal): Use isnand instead of isnan.
62664         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
62665         isnand-nolibm.
62666         * NEWS: Mention the change.
62667
62668 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
62669             Bruno Haible  <bruno@clisp.org>
62670
62671         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
62672         the GCC builtins for signbits are present and set
62673         REPLACE_SIGNBIT_USING_GCC if so.
62674         * lib/math.in.h (signbit): Define using GCC builtins if
62675         REPLACE_SIGNBIT_USING_GCC is set.
62676         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
62677         REPLACE_SIGNBIT_USING_GCC.
62678         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
62679
62680 2008-01-25  Jim Meyering  <meyering@redhat.com>
62681
62682         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
62683         * lib/poll.c: Include <config.h>, not "config.h".
62684         * tests/test-getaddrinfo.c: Likewise.
62685
62686 2008-01-25  Simon Josefsson  <simon@josefsson.org>
62687
62688         * modules/sockets-tests: New file.
62689
62690 2008-01-24  Simon Josefsson  <simon@josefsson.org>
62691
62692         * modules/sockets: New module, can be used to call WSA_Startup and
62693         WSA_Cleanup when needed.
62694
62695         * lib/sockets.h, lib/sockets.c: New files.
62696
62697         * m4/sockets.m4: New file.
62698
62699         * tests/test-sockets.c: New file.
62700
62701 2008-01-19  Bruno Haible  <bruno@clisp.org>
62702
62703         * doc/posix-headers: Renamed from doc/headers.
62704         * doc/posix-functions: Renamed from doc/functions.
62705         * doc/gnulib.texi: Update.
62706
62707 2008-01-19  Bruno Haible  <bruno@clisp.org>
62708
62709         * doc/glibc-functions/strcasestr.texi: Include contents of
62710         doc/functions/strcasestr.texi, fixing the list of platforms.
62711         * doc/functions/strcasestr.texi: Remove file.
62712
62713 2008-01-19  Bruno Haible  <bruno@clisp.org>
62714
62715         * doc/glibc-functions/memmem.texi: Include contents of
62716         doc/functions/memmem.texi.
62717         * doc/functions/memmem.texi: Remove file.
62718
62719 2008-01-18  Bruno Haible  <bruno@clisp.org>
62720
62721         * doc/glibc-functions/*.texi: New files.
62722         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
62723         to use the new files.
62724
62725 2008-01-17  Bruno Haible  <bruno@clisp.org>
62726
62727         * tests/test-gethostname.c (main): Fix printf statement.
62728
62729 2008-01-17  Simon Josefsson  <simon@josefsson.org>
62730
62731         * modules/gethostname-tests: New file.
62732
62733         * tests/test-gethostname.c: New file.
62734
62735 2008-01-17  Simon Josefsson  <simon@josefsson.org>
62736
62737         * lib/gethostname.c: Include string.h unconditionally, strncpy is
62738         used by the UNAME case.  Reported by Bruno Haible
62739         <bruno@clisp.org>.
62740
62741 2008-01-17  Eric Blake  <ebb9@byu.net>
62742
62743         Convert c-strcasestr to be more efficient.
62744         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
62745         (Depends-on): Add c-strcase, remove malloca, strnlen.
62746         * tests/test-c-strcasestr.c (main): Enhance test.
62747         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
62748
62749 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
62750
62751         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
62752         Use it in creating po/Makevars.
62753
62754 2008-01-15  Simon Josefsson  <simon@josefsson.org>
62755
62756         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
62757         Applications that requires it should initialize libgcrypt
62758         manually.
62759
62760 2008-01-16  Simon Josefsson  <simon@josefsson.org>
62761
62762         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
62763
62764 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
62765
62766         Fix problem with getdate on mingw32 reported by Simon Josefsson
62767         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
62768         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
62769         tzname", when deciding whether to declare tzname.
62770         * lib/strftime.c (tzname): Likewise.
62771
62772 2008-01-15  Bruno Haible  <bruno@clisp.org>
62773
62774         Work around a MacOS X 10.5 bug in frexpl().
62775         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
62776         * doc/functions/frexpl.texi: Document the bug.
62777         Reported by Elias Pipping <pipping@gentoo.org>.
62778
62779 2008-01-14  Eric Blake  <ebb9@byu.net>
62780
62781         Touch up previous patch.
62782         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
62783         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
62784
62785         Convert strcasestr module to use Two-Way algorithm.
62786         * modules/strcasestr-simple: New module, based on the old
62787         strcasestr, but with Two-Way rather than KMP.
62788         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
62789         * lib/string.in.h (rpl_strcasestr): Declare.
62790         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
62791         performance.
62792         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
62793         * modules/string (Makefile.am): Support strcasestr.
62794         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
62795         * modules/strcasestr-tests (Depends-on): Check for alarm.
62796         * tests/test-strcasestr.c: Augment test.
62797         * lib/str-two-way.h: Clean up stray macro.
62798         * NEWS: Document new module.
62799         * MODULES.html.sh (string handling): Likewise.
62800         * doc/functions/strcasestr.texi: New file.
62801         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
62802         here, since it is not a POSIX function.
62803
62804 2008-01-14  Colin Watson  <cjwatson@debian.org>
62805             Bruno Haible  <bruno@clisp.org>
62806
62807         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
62808         works fine; if not, set REPLACE_STRSIGNAL.
62809         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
62810         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62811         REPLACE_STRSIGNAL.
62812         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
62813         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
62814         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
62815
62816 2008-01-14  Bruno Haible  <bruno@clisp.org>
62817
62818         * modules/strsignal (Include): Change to <string.h>.
62819
62820 2008-01-14  Colin Watson  <cjwatson@debian.org>
62821
62822         * modules/argp (Notice): Add a notice recommending to change
62823         XGETTEXT_OPTIONS.
62824         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
62825
62826 2008-01-13  Colin Watson  <cjwatson@debian.org>
62827
62828         * modules/strsignal-tests: New file.
62829         * tests/test-strsignal.c: New file.
62830
62831         * lib/strsignal.c: New file, from glibc with modifications.
62832         * lib/siglist.h: New file, from glibc with modifications.
62833         * lib/string.in.h (strsignal): New declaration.
62834         * m4/strsignal.m4: New file.
62835         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62836         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
62837         * modules/strsignal: New file.
62838         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
62839         HAVE_DECL_STRSIGNAL.
62840
62841 2008-01-13  Bruno Haible  <bruno@clisp.org>
62842
62843         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
62844         locale encoding is not ASCII. Needed for OpenBSD 4.0.
62845         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
62846         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
62847
62848 2008-01-13  Bruno Haible  <bruno@clisp.org>
62849
62850         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
62851         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
62852         * lib/argp.h (__attribute__): Likewise.
62853         * lib/c-stack.c (__attribute__): Likewise.
62854         * lib/error.h (__attribute__): Likewise.
62855         * lib/fts.c (__attribute__): Likewise.
62856         * lib/openat.h (__attribute__): Likewise.
62857         * lib/stdio.in.h (__attribute__): Likewise.
62858         * lib/string.in.h (__attribute__): Likewise.
62859         * lib/utimens.c (__attribute__): Likewise.
62860         * lib/vasnprintf.h (__attribute__): Likewise.
62861         * lib/xalloc.h (__attribute__): Likewise.
62862         * lib/xprintf.h (__attribute__): Likewise.
62863         * lib/xstrtol.h (__attribute__): Likewise.
62864         * lib/xvasprintf.h (__attribute__): Likewise.
62865
62866 2008-01-12  Bruno Haible  <bruno@clisp.org>
62867
62868         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
62869         * doc/glibc-headers/a.out.texi: New file.
62870         * doc/glibc-headers/aliases.texi: New file.
62871         * doc/glibc-headers/alloca.texi: New file.
62872         * doc/glibc-headers/ar.texi: New file.
62873         * doc/glibc-headers/argp.texi: New file.
62874         * doc/glibc-headers/argz.texi: New file.
62875         * doc/glibc-headers/byteswap.texi: New file.
62876         * doc/glibc-headers/crypt.texi: New file.
62877         * doc/glibc-headers/endian.texi: New file.
62878         * doc/glibc-headers/envz.texi: New file.
62879         * doc/glibc-headers/err.texi: New file.
62880         * doc/glibc-headers/error.texi: New file.
62881         * doc/glibc-headers/execinfo.texi: New file.
62882         * doc/glibc-headers/fpu_control.texi: New file.
62883         * doc/glibc-headers/fstab.texi: New file.
62884         * doc/glibc-headers/fts.texi: New file.
62885         * doc/glibc-headers/getopt.texi: New file.
62886         * doc/glibc-headers/ieee754.texi: New file.
62887         * doc/glibc-headers/ifaddrs.texi: New file.
62888         * doc/glibc-headers/libintl.texi: New file.
62889         * doc/glibc-headers/mcheck.texi: New file.
62890         * doc/glibc-headers/mntent.texi: New file.
62891         * doc/glibc-headers/obstack.texi: New file.
62892         * doc/glibc-headers/paths.texi: New file.
62893         * doc/glibc-headers/printf.texi: New file.
62894         * doc/glibc-headers/pty.texi: New file.
62895         * doc/glibc-headers/resolv.texi: New file.
62896         * doc/glibc-headers/shadow.texi: New file.
62897         * doc/glibc-headers/sysexits.texi: New file.
62898         * doc/glibc-headers/ttyent.texi: New file.
62899
62900 2008-01-12  Jim Meyering  <meyering@redhat.com>
62901
62902         announce-gen: emit Gnulib's git-based version string.
62903         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
62904         New option --gnulib-version=V, where V is expected to be
62905         the output of running git describe in the gnulib directory.
62906         (get_tool_versions): Request feedback on xdelta.  I suspect it's
62907         not useful, and plan to stop publishing an xdelta file with each
62908         coreutils release.
62909
62910         * build-aux/announce-gen: Also check for lzma-compressed files.
62911
62912 2008-01-11  Bruno Haible  <bruno@clisp.org>
62913
62914         * tests/test-memmem.c (main): Increase maximum allowed time.
62915         * tests/test-strstr.c (main): Likewise.
62916
62917 2008-01-11  Bruno Haible  <bruno@clisp.org>
62918
62919         * doc/functions/memmem.texi: Add more precisions about platforms.
62920         * doc/functions/strstr.texi: Likewise.
62921
62922 2008-01-10  Eric Blake  <ebb9@byu.net>
62923
62924         * m4/strstr.m4: Delete cruft from copy-n-paste.
62925         Reported by Bruno Haible.
62926
62927 2008-01-10  Bruno Haible  <bruno@clisp.org>
62928
62929         Make c-strstr rely on strstr.
62930         * lib/c-strstr.c: Don't include str-kmp.h.
62931         (c_strstr): Define in terms of strstr.
62932         * modules/c-strstr (Files): Remove lib/str-kmp.h.
62933         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
62934
62935 2008-01-10  Bruno Haible  <bruno@clisp.org>
62936
62937         * doc/gnulib.texi (String Functions in C Locale): New section.
62938         * doc/c-ctype.texi: New file.
62939         * doc/c-strcase.texi: New file.
62940         * doc/c-strcaseeq.texi: New file.
62941         * doc/c-strcasestr.texi: New file.
62942         * doc/c-strstr.texi: New file.
62943         * doc/c-strtod.texi: New file.
62944         * doc/c-strtold.texi: New file.
62945
62946 2008-01-10  Eric Blake  <ebb9@byu.net>
62947
62948         * lib/relocatable.h: Fix a comment.
62949
62950 2008-01-10  Eric Blake  <ebb9@byu.net>
62951
62952         Share two-way algorithm.
62953         * lib/str-two-way.h: New file, merged from...
62954         * lib/memmem.c: ...here...
62955         * lib/strstr.c: ...and here.
62956         * modules/memmem (Files): Use it.
62957         * modules/strstr (Files): Likewise.
62958
62959         Avoid quadratic strstr implementations.
62960         * lib/strstr.c: New file.
62961         * m4/strstr.m4: Likewise.
62962         * modules/strstr: Likewise.
62963         * modules/strstr-tests: Likewise.
62964         * tests/test-strstr.c: Likewise.
62965         * lib/string.in.h (rpl_strstr): Declare.
62966         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
62967         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
62968         * modules/string (Makefile.am): Likewise.
62969         * MODULES.html.sh (string handling): Mention new module.
62970         * doc/functions/strstr.texi (strstr): Document the bug.
62971
62972 2008-01-10  Bruno Haible  <bruno@clisp.org>
62973
62974         * lib/relocatable.h (relocate): State whether result is freshly
62975         allocated or not.
62976         * lib/relocatable.c (relocate): Return a freshly allocated string
62977         instead of a pointer to a privately held string.
62978         Reported by Sylvain Beucler <beuc@gnu.org>.
62979
62980 2008-01-10  Colin Watson  <cjwatson@debian.org>
62981
62982         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
62983         s/S_ISNLK/S_ISLNK/.
62984
62985 2008-01-09  Bruno Haible  <bruno@clisp.org>
62986
62987         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
62988         and other files.
62989         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
62990         if it's only a guess.
62991         * modules/memmem: Simplify by depending on memmem-simple.
62992
62993 2008-01-09  Bruno Haible  <bruno@clisp.org>
62994
62995         Work around OpenBSD 4.0 tdelete() bug.
62996         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
62997         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
62998         macros and don't redefine the enum values.
62999         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
63000         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
63001         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
63002
63003 2008-01-09  Bruno Haible  <bruno@clisp.org>
63004
63005         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
63006         (main): Don't perform the tests if setlocale did not install a UTF-8
63007         locale. Needed on OpenBSD 4.0.
63008         * modules/wcwidth-tests (Depends-on): Add localcharset.
63009
63010 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63011
63012         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
63013         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
63014         * NEWS: announce this.
63015         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
63016
63017 2008-01-09  Simon Josefsson  <simon@josefsson.org>
63018         and Eric Blake  <ebb9@byu.net>
63019
63020         Add memmem-simple module.
63021         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
63022         (gl_FUNC_MEMMEM): Separate performance from presence checks.
63023         * modules/memmem-simple: New file.
63024         * modules/memmem (Description): Tweak.
63025         * MODULES.html.sh (string handling): Mention new module.
63026         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
63027         addressed by memmem-simple.
63028         * NEWS: Document the difference.
63029
63030 2008-01-09  Eric Blake  <ebb9@byu.net>
63031
63032         Give gcc some memmem optimization hints.
63033         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
63034         (strcasestr): Declare as pure.
63035         * modules/memmem (Maintainer): Claim my implementation.
63036
63037 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63038
63039         Support AIX 6.1 and higher.
63040         * build-aux/config.libpath: Likewise.
63041         * build-aux/config.rpath: Likewise.
63042
63043 2008-01-08  Jim Meyering  <meyering@redhat.com>
63044             Bruno Haible  <bruno@clisp.org>
63045
63046         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
63047         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
63048         Reported by Peter Fales in
63049         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
63050
63051 2008-01-08  Bruno Haible  <bruno@clisp.org>
63052
63053         * modules/unictype/category-of (Depends-on): Add
63054         unictype/category-none.
63055         * modules/unictype/category-and-tests (Depends-on): Add
63056         unictype/category-{L,N,Lu,Nd}.
63057         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
63058         * modules/unictype/category-or-tests (Depends-on): Add
63059         unictype/category-{L,N}.
63060         * modules/unictype/category-name-tests (Depends-on): Add
63061         unictype/category-{Z,Nl}.
63062         Reported by Simon Josefsson.
63063
63064 2008-01-08  Bruno Haible  <bruno@clisp.org>
63065
63066         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
63067         convention better.
63068         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
63069         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
63070         Reported by Peter Miller <millerp@canb.auug.org.au>.
63071
63072 2008-01-08  Eric Blake  <ebb9@byu.net>
63073
63074         Rewrite memmem to guarantee linear complexity without malloc.
63075         * lib/memmem.c (memmem): Use Two-Way rather than
63076         Knuth-Morris-Pratt, to allow O(1) space usage.
63077         (critical_factorization, two_way_short_needle)
63078         (two_way_long_needle): New functions.
63079         (knuth_morris_pratt): Delete.
63080         * modules/memmem (Depends-on): No longer need malloca or stdbool.
63081         Add stdint.
63082         * tests/test-memmem.c (main): Add tests for periodic needle and
63083         sublinear performance.
63084         * doc/functions/memmem.texi (memmem): Document other deficiencies
63085         in cygwin and older glibc.
63086
63087 2008-01-08  Bruno Haible  <bruno@clisp.org>
63088
63089         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
63090         augmentation.
63091
63092 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
63093
63094         Add a configure time option: --disable-acl.
63095         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
63096         AC_ARG_ENABLE(acl).
63097
63098 2008-01-06  Simon Josefsson  <simon@josefsson.org>
63099
63100         * tests/test-localename.c: Don't include obsolete "setenv.h".
63101
63102         * modules/localename-tests (Depends-on): Need unsetenv.
63103
63104 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63105
63106         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
63107
63108 2008-01-06  Colin Watson  <cjwatson@debian.org>
63109
63110         * users.txt: Add man-db.
63111
63112 2008-01-07  Bruno Haible  <bruno@clisp.org>
63113
63114         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
63115         previous section name.
63116
63117 2008-01-07  Bruno Haible  <bruno@clisp.org>
63118
63119         * lib/progname.c (set_program_name): Don't strip off a leading
63120         "lt-" prefix outside a .libs directory.
63121         Suggested by Paul Eggert.
63122
63123 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
63124             Bruno Haible  <bruno@clisp.org>
63125
63126         Improve memory cleanup in 'relocatable' module.
63127         * lib/relocatable.h (compute_curr_prefix): Change return type to
63128         'char *'.
63129         * lib/relocatable.c (compute_curr_prefix): Change return type to
63130         'char *'. Free curr_installdir after use.
63131         (relocate): Free curr_prefix_better after use.
63132         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
63133
63134 2008-01-01  Bruno Haible  <bruno@clisp.org>
63135
63136         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
63137         failure on older glibc systems.
63138         Reported by Peter Fales <psfales@alcatel-lucent.com>.
63139
63140 2008-01-05  Eric Blake  <ebb9@byu.net>
63141
63142         Avoid quadratic system memmem.
63143         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
63144         Reported by Ralf Wildenhues.
63145
63146         Fix memmem test for mingw.
63147         * modules/memmem-tests (configure.ac): Check for alarm.
63148         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
63149         it.
63150         * doc/functions/memmem.texi: New file.
63151         * doc/gnulib.texi (Function Substitutes): Add memmem.
63152         Reported by Bruno Haible.
63153
63154 2008-01-04  Bruno Haible  <bruno@clisp.org>
63155
63156         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
63157         Require gl_HEADER_STRINGS_H_DEFAULTS, not
63158         gl_HEADER_STRING_H_DEFAULTS.
63159
63160 2008-01-04  Eric Blake  <ebb9@byu.net>
63161
63162         Shorten duration of memmem test.
63163         * tests/test-memmem.c (main): Use alarm to declare failure if test
63164         is taking too long.
63165         Reported by Ralf Wildenhues.
63166
63167 2007-12-21  Simon Josefsson  <simon@josefsson.org>
63168
63169         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
63170         string, needed by strerror.
63171
63172 2008-01-03  Colin Watson  <cjwatson@debian.org>
63173             Bruno Haible  <bruno@clisp.org>
63174
63175         * doc/gnulib-tool.texi (Localization): New section.
63176
63177 2008-01-02  Bruno Haible  <bruno@clisp.org>
63178
63179         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
63180         variables to 'unsigned char *' type.
63181         Reported by Paul Eggert.
63182
63183 2008-01-02  Jim Meyering  <jim@meyering.net>
63184
63185         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
63186
63187 2007-12-31  Jim Meyering  <jim@meyering.net>
63188
63189         Avoid use of private FTS type name.
63190         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
63191
63192 2007-12-30  Karl Berry  <karl@gnu.org>
63193
63194         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
63195         work around defect in Texinfo and/or the standalone Info browser.
63196
63197 2007-12-30  Bruno Haible  <bruno@clisp.org>
63198
63199         Unify 5 copies of the KMP code.
63200         * lib/str-kmp.h: New file.
63201         * lib/c-strcasestr.c: Include str-kmp.h.
63202         (knuth_morris_pratt): Remove function.
63203         (c_strcasestr): Update.
63204         * lib/c-strstr.c: Include str-kmp.h.
63205         (knuth_morris_pratt): Remove function.
63206         (c_strcasestr): Update.
63207         * lib/mbscasestr.c: Include str-kmp.h.
63208         (knuth_morris_pratt_unibyte): Remove function.
63209         * lib/mbsstr.c: Include str-kmp.h.
63210         (knuth_morris_pratt_unibyte): Remove function.
63211         * lib/strcasestr.c: Include str-kmp.h.
63212         (knuth_morris_pratt): Remove function.
63213         (strcasestr): Update.
63214         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
63215         * modules/c-strstr (Files): Likewise.
63216         * modules/mbscasestr (Files): Likewise.
63217         * modules/mbsstr (Files): Likewise.
63218         * modules/strcasestr (Files): Likewise.
63219         Suggested by Paul Eggert.
63220
63221 2007-12-30  Bruno Haible  <bruno@clisp.org>
63222
63223         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
63224         defined.
63225
63226 2007-12-30  Bruno Haible  <bruno@clisp.org>
63227
63228         * lib/xmalloca.h: Include xalloc.h.
63229         (xnmalloca): New macro.
63230
63231 2007-12-30  Bruno Haible  <bruno@clisp.org>
63232
63233         * lib/malloca.h (nmalloca): New macro.
63234         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
63235         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
63236         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
63237         knuth_morris_pratt_multibyte): Likewise.
63238         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
63239         knuth_morris_pratt_multibyte): Likewise.
63240         * lib/memmem.c (knuth_morris_pratt): Likewise.
63241         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
63242
63243 2007-12-25  Bruno Haible  <bruno@clisp.org>
63244
63245         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
63246         * lib/glob.c: Don't include openat.h.
63247         (link_exists2_p): Add back the code that deals with the
63248         !GLOB_ALTDIRFUNC case.
63249         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
63250         let it do the filename concatenation.
63251         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
63252         * modules/glob (Depends-on): Remove openat.
63253
63254 2007-12-31  Bruno Haible  <bruno@clisp.org>
63255
63256         * modules/dirfd (License): Change to LGPLv2+.
63257         Approved by Jim Meyering.
63258
63259 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
63260
63261         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
63262         when multiplying M by sizeof (size_t).
63263
63264 2007-12-10  Martin Lambers  <marlam@marlam.de>
63265
63266         Override getpagesize on mingw.
63267         * lib/getpagesize.c: New file.
63268         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
63269         * modules/getpagesize (Files): Add lib/getpagesize.c.
63270         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
63271         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
63272         REPLACE_GETPAGESIZE.
63273         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
63274
63275 2007-12-25  Bruno Haible  <bruno@clisp.org>
63276
63277         * modules/localcharset (Notice): New field.
63278         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
63279         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
63280
63281 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
63282             Bruno Haible  <bruno@clisp.org>
63283
63284         Avoid using the syntax symbol() in formatted documentation.
63285         * MODULES.html.sh (func_module): When replacing symbol() with a
63286         hyperlink, remove the parentheses. Show an error if some remain.
63287         Recognize and render the '...' syntax.
63288         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
63289         Rework. Add paragraph about GCC's inlining.
63290         * doc/alloca.texi: Likewise.
63291         * doc/error.texi: Remove parentheses from symbol reference.
63292         * doc/gnulib-intro.texi: Likewise.
63293         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
63294         * modules/fnmatch (Description): Reword to say "the ... function".
63295         * modules/full-read (Description): Likewise.
63296         * modules/full-write (Description): Likewise.
63297         * modules/safe-read (Description): Likewise.
63298         * modules/safe-write (Description): Likewise.
63299         * modules/strchrnul (Description): Likewise.
63300         * modules/trim (Description): Likewise.
63301         * modules/error (Description): Remove parentheses from symbol
63302         references.
63303         * modules/verror (Description): Likewise.
63304         Reported by Karl Berry.
63305
63306 2007-12-25  Bruno Haible  <bruno@clisp.org>
63307
63308         Fixup after 2007-10-16 commit.
63309         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
63310
63311 2007-12-24  Bruno Haible  <bruno@clisp.org>
63312
63313         Make --enable-relocatable work with DESTDIR.
63314         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
63315         to compute installdir from destprog.
63316         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
63317         also set the RELOC_DESTDIR variable.
63318         Reported by Левашев Иван <octagram@bluebottle.com>.
63319
63320 2007-12-24  Bruno Haible  <bruno@clisp.org>
63321
63322         Fix link error due to xalloc_die().
63323         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
63324         of xreadlink.
63325         * lib/relocwrapper.c: Update comments.
63326         * build-aux/install-reloc: Remove xreadlink.c from file list.
63327         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
63328         xreadlink.c.
63329         Reported by Левашев Иван <octagram@bluebottle.com>.
63330
63331 2007-12-24  Bruno Haible  <bruno@clisp.org>
63332
63333         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
63334         * lib/setenv.h: Remove file.
63335         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
63336         lib/setenv.h.
63337         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
63338         (Depends-on): Add stdlib.
63339         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
63340         gl_FUNC_UNSETENV.
63341         (Include): Replace setenv.h with <stdlib.h>.
63342         * modules/unsetenv: New file.
63343         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
63344         * lib/unsetenv.c: Include <stdlib.h> first.
63345         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
63346         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
63347         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
63348         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
63349         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
63350         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
63351         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
63352         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
63353         * doc/functions/unsetenv.texi: Update.
63354         * modules/xsetenv (Depends-on): Add unsetenv.
63355         * modules/getdate (Depends-on): Likewise.
63356         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
63357         * lib/xsetenv.c: Don't include setenv.h.
63358         * lib/getdate.y: Likewise.
63359         * lib/relocwrapper.c: Likewise.
63360         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
63361         (Depends-on): Add stdlib.
63362         * NEWS: Mention the changes.
63363         Reported by Левашев Иван <octagram@bluebottle.com>.
63364
63365 2007-12-23  Bruno Haible  <bruno@clisp.org>
63366
63367         * lib/memmem.c (memmem): Use lowercase variable names. Tab
63368         indentation.
63369
63370 2007-12-23  Bruno Haible  <bruno@clisp.org>
63371
63372         * lib/c-strcasestr.c: Add more comments.
63373         * lib/c-strstr.c: Likewise.
63374         * lib/mbscasestr.c: Likewise.
63375         * lib/mbsstr.c: Likewise.
63376         * lib/strcasestr.c: Likewise.
63377         * lib/memmem.c: Likewise.
63378
63379 2007-12-23  Bruno Haible  <bruno@clisp.org>
63380
63381         * tests/test-memmem.c: Include <string.h> first.
63382
63383 2007-12-22  Bruno Haible  <bruno@clisp.org>
63384
63385         * gnulib-tool (func_create_testdir): Change $auxdir while generating
63386         the contents of $testsbase.
63387         Reported by Ralf Wildenhues.
63388
63389 2007-12-22  Bruno Haible  <bruno@clisp.org>
63390
63391         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
63392         two variables local_ldadd_before, local_ldadd_last.
63393
63394 2007-12-20  Eric Blake  <ebb9@byu.net>
63395
63396         Work around circular library issue when cross-compiling.
63397         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
63398         that progname.o does not need to pull in rpl_memcmp.
63399
63400 2007-12-19  Eric Blake  <ebb9@byu.net>
63401
63402         Fix memmem to avoid O(n^2) worst-case complexity.
63403         * lib/memmem.c (knuth_morris_pratt): New function.
63404         (memmem): Use it if first few naive iterations fail.
63405         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
63406         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
63407         * modules/memchr (License): Likewise.
63408         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
63409         malloca.
63410         * tests/test-memmem.c: Rewrite, borrowing ideas from
63411         test-mbsstr1.c; the old version wouldn't even compile!
63412         * modules/memmem-tests: New file.
63413         * lib/string.in.h (rpl_memmem): Add declaration.
63414         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
63415         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
63416         REPLACE_MEMMEM.
63417
63418 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
63419
63420         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
63421         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
63422         before any system include files, and undef after them all.  This
63423         should fix a problem on VMS reported by John E. Malmberg in
63424         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
63425
63426 2007-12-17  Eric Blake  <ebb9@byu.net>
63427
63428         Revert addition of verify, for BSD/OS.
63429         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
63430         can't handle large files, for the sake of obsolete platforms.
63431         * modules/fseeko (Depends-on): Remove verify.
63432         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
63433         * doc/functions/ftello.texi (ftello): Likewise.
63434         * doc/functions/fgetpos.texi (fgetpos): Likewise.
63435         Reported by Larry Jones.
63436
63437 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
63438
63439         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
63440         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
63441
63442 2007-12-17  Jim Meyering  <meyering@redhat.com>
63443
63444         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
63445         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
63446         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
63447         * modules/getcwd (Depends-on): Add openat.
63448         Reported by Petr Salinger.
63449
63450 2007-12-17  Bruno Haible  <bruno@clisp.org>
63451
63452         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
63453         avoid a segmentation fault of the configure test on x86_64 systems.
63454
63455 2007-12-15  Jim Meyering  <meyering@redhat.com>
63456
63457         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
63458
63459 2007-12-13  Eric Blake  <ebb9@byu.net>
63460
63461         Another fseek test.
63462         * tests/test-fseek.c (main): Also test ungetc handling.
63463         * tests/test-fseeko.c (main): Likewise.
63464         * modules/fseeko (Depends-on): Add verify.
63465         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
63466         large.
63467         Reported by Larry Jones.
63468
63469         Fix fseeko on mingw.
63470         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
63471         seek.
63472
63473         Beef up fseek tests.
63474         * tests/test-fseek.c (main): Also test eof handling.
63475         * tests/test-fseeko.c (main): Likewise.
63476         Reported by Larry Jones.
63477
63478 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
63479
63480         Fix fseeko on BSD-based platforms.
63481         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
63482         successful seek.
63483
63484 2007-12-12  Eric Blake  <ebb9@byu.net>
63485
63486         Allow circular dependency of separate libtests.a
63487         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
63488         when use_libtests.
63489
63490 2007-12-11  Eric Blake  <ebb9@byu.net>
63491
63492         Fix bug with -0.0L in previous patch.
63493         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
63494         * tests/test-isnan.c (main): Also test on zeroes.
63495         * tests/test-isnanf.c (main): Likewise.
63496         * tests/test-isnanl.h (main): Likewise.
63497
63498         Detect pseudo-denormals on x86 even when cross-compiling.
63499         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
63500         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
63501         invalid bit patterns that happen to satisfy ==.
63502
63503         Avoid link failures with separate libtests.a.
63504         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
63505         last, to satisfy circular dependencies.
63506
63507 2007-12-11  Eric Blake  <ebb9@byu.net>
63508         and Bruno Haible  <bruno@clisp.org>
63509
63510         Fix OpenBSD 4.0 <float.h> handling of long double.
63511         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
63512         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
63513         * doc/headers/float.texi (float.h): Document OpenBSD bug.
63514
63515 2007-12-11  Jim Meyering  <meyering@redhat.com>
63516
63517         * users.txt: Add libvirt.
63518
63519         Support versions of autoconf prior to 2.59c.
63520         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
63521         if it is not already defined.
63522
63523 2007-12-09  Bruno Haible  <bruno@clisp.org>
63524
63525         Let 'gnulib-tool --import' collect sources needed for the tests in
63526         tests/ rather than in lib/.
63527         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
63528         argument. If true, add rules to generate libtests.a, and put libtests.a
63529         into $(LDADD). Consider source files in subdirectories and set
63530         uses_subdirs.
63531         (func_emit_initmacro_start, func_emit_initmacro_end,
63532         func_emit_initmacro_done): Pass all arguments explicitly.
63533         (func_import): Determine two module lists main_modules,
63534         testsrelated_modules. Determine use_libtests. Determine two variables
63535         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
63536         instead of just sed_transform_lib_file. Determine two variables
63537         main_files and testsrelated_files. Compute 'files' as the union of
63538         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
63539         func_add_or_update. In the generated gnulib-comp.m4, collect the
63540         object files for tests/ in different variables than those for lib/.
63541         Substitute LIBTESTS_LIBDEPS.
63542         (func_create_testdir): Combine the uses_subdirs results from
63543         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
63544
63545 2007-12-09  Bruno Haible  <bruno@clisp.org>
63546
63547         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
63548         the build-aux directory.
63549
63550 2007-12-09  Bruno Haible  <bruno@clisp.org>
63551
63552         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
63553         introduced on 2006-09-09.
63554
63555 2007-12-07  Jim Meyering  <meyering@redhat.com>
63556
63557         Let these macros work also with autoconf-2.59.
63558         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
63559         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
63560         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
63561
63562 2007-12-06  Jim Meyering  <meyering@redhat.com>
63563
63564         Avoid a configure-time syntax error in gl_FUNC_ACL.
63565         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
63566         function in each branch, before testing the cache variable.
63567
63568 2007-12-04  Eric Blake  <ebb9@byu.net>
63569
63570         Make scripts executable.
63571         * build-aux/config.guess: Add execute permissions.
63572         * build-aux/config.sub: Likewise.
63573         * build-aux/gendocs.sh: Likewise.
63574
63575         Fix frexp on mingw.
63576         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
63577         cross-compiling.
63578         * doc/functions/frexp.texi (frexp): Document the bug.
63579
63580         Make cygwin fseeko check more reliable.
63581         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
63582         version numbers, rather than unrelated feature check.
63583         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
63584         * doc/functions/ftello.texi (ftello): Likewise.
63585         Reported by Bruno Haible.
63586
63587         * m4/strerror.m4: Bump version number.
63588
63589 2007-12-03  Bruno Haible  <bruno@clisp.org>
63590
63591         * doc/functions/mprotect.texi: Mention the mingw problem.
63592
63593 2007-12-03  Eric Blake  <ebb9@byu.net>
63594
63595         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
63596         REPLACE_STRERROR is initialized before this macro.
63597
63598 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
63599
63600         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
63601         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
63602         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
63603         put -lsec in even for programs other than 'ls'.  This fixes a problem
63604         for gettext reported by Bruno Haible in
63605         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
63606         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
63607         Add support for Solaris 10.  This isn't efficient, but should get the
63608         job done for now.
63609
63610 2007-12-03  James Youngman  <jay@gnu.org>
63611
63612         * doc/regexprops-generic.texi: change "an close-group" to "a
63613         close-group" and "illegal" to "not allowed".
63614
63615 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63616
63617         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
63618         pr_byname.h. Needed for the rare case when the maintainer has done
63619         "make maintainer-clean" in the source directory and then attempts a
63620         build outside the source directory.
63621         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
63622         scripts_byname.h.
63623
63624 2007-12-02  Martin Lambers <marlam@marlam.de>
63625             Bruno Haible  <bruno@clisp.org>
63626
63627         * lib/getpagesize.h: Remove file.
63628         * lib/unistd.in.h: Include declaration of getpagesize here.
63629         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
63630         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
63631         HAVE_SYS_PARAM_H.
63632         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
63633         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
63634         * modules/getpagesize (Files): Remove lib/getpagesize.h.
63635         (Depends-on): Add unistd.
63636         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63637         (Include): Use <unistd.h> instead of getpagesize.h.
63638         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
63639         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
63640         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
63641         gl_GETPAGESIZE invocation, already handled by module dependency.
63642         * lib/pagealign_alloc.c: Don't include getpagesize.h.
63643
63644 2007-12-02  Bruno Haible  <bruno@clisp.org>
63645
63646         * modules/strings-tests: New file.
63647         * tests/test-strings.c: New file.
63648
63649         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
63650         * lib/strings.in.h: New file.
63651         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
63652         * m4/strings_h.m4: New file.
63653         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
63654         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
63655         * modules/strings: New file.
63656         * modules/string (Makefile.am): Update.
63657         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
63658         Reported by Karl Berry.
63659
63660 2007-12-01  Eric Blake  <ebb9@byu.net>
63661
63662         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
63663         accommodate fix in cygwin 1.5.25.
63664
63665 2007-12-01  Jim Meyering  <meyering@redhat.com>
63666
63667         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
63668         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
63669         that would inhibit utf8-optimization of a regexp containing line-
63670         or buffer-anchors, e.g., `^', `$'.
63671
63672 2007-11-30  Bruno Haible  <bruno@clisp.org>
63673
63674         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
63675         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
63676         glthread_recursive_lock_init.
63677         * lib/lock.c (glthread_recursive_lock_init)
63678         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
63679         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
63680
63681 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
63682
63683         New function qset_acl, like set_acl but with syscall semantics.
63684         * lib/acl.h (qset_acl): New decl.
63685         * lib/acl.c (qset_acl): New function.
63686         (set_acl): Use new function.  Use more-consistent diagnostics.
63687
63688 2007-11-28  Jim Meyering  <meyering@redhat.com>
63689
63690         * modules/physmem (License): Change from GPL to LGPLv2+.
63691
63692 2007-11-26  Bruno Haible  <bruno@clisp.org>
63693
63694         * lib/vasnprintf.c (decode_long_double): Don't abort if the
63695         'long double' type has excess precision.
63696         Reported by Jim Meyering in
63697         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
63698
63699 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63700
63701         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
63702         Sync from <http://gnu.org/licenses>.
63703         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
63704         with license text from same location.
63705         * doc/maintain.texi, doc/standards.texi:  Sync from
63706         <http://savannah.gnu.org/projects/gnustandards>.
63707
63708 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
63709         and Jim Meyering  <meyering@redhat.com>
63710
63711         Adjust getdate' grammar to accept a slightly more regular language.
63712         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
63713         Before, the former was rejected.
63714         * lib/getdate.y (digits_to_date_time): New function, factored
63715         out of ...
63716         (number): ...here.  Just call digits_to_date_time.
63717         (hybrid): New non-terminal to handle an <unsigned number,
63718         signed relative offset> sequence consistently.
63719
63720 2007-11-18  Jim Meyering  <meyering@redhat.com>
63721
63722         Pull my changes from coreutils:
63723         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
63724         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
63725         use of $gnulib_tool_option_extras, so that it's separated from the
63726         preceding argument.
63727
63728         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
63729         * build-aux/bootstrap (cp_mark_as_generated): Create any required
63730         parent destination directories before copying a file into place.
63731
63732 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
63733
63734         bootstrap: work also with 4-argument variant of AC_INIT
63735         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
63736
63737 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63738
63739         Port test-getaddrinfo to Solaris.
63740         Problem reported by Bruno Haible in
63741         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
63742         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
63743         explanation of setting 'hints'.
63744         Don't reject an implementation merely because it returns EAI_SERVICE.
63745         (EAI_SERVICE): Define to 0 if not defined.
63746
63747 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
63748
63749         The license of gnu-make and posix-shell is now "GPLed build tool".
63750         * modules/gnu-make (License): Likewise.
63751         * modules/posix-shell (License): Likewise.
63752
63753         New module posix-shell, for determining a POSIX shell
63754         or perhaps something that is close enough to a POSIX shell.
63755         * m4/posix-shell.m4: New file.
63756         * modules/posix-shell: New file.
63757
63758         * MODULES.html.sh: Mention new module.
63759
63760         New module gnu-make, for determining whether we're using GNU Make.
63761         * m4/gnu-make.m4: New file.
63762         * modules/gnu-make: New file.
63763         * MODULES.html.sh: Mention new module.
63764
63765 2007-11-14  Jim Meyering  <meyering@redhat.com>
63766
63767         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
63768         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
63769         use this macro to create a function _definition_.
63770         Remove useless "#undef ARGMATCH_DIE".
63771
63772 2007-11-14  Bruno Haible  <bruno@clisp.org>
63773
63774         * lib/config.charset: Update for OpenBSD 4.1.
63775         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
63776
63777 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
63778
63779         Document 64-bit #if problems in stdint.texi.
63780         * doc/headers/stdint.texi (stdint.h): Mention problems with
63781         64-bit-#if, and how to work around them.
63782
63783         Don't insist on 'long long int' support in the preprocessor.  It
63784         breaks too many things.  For example, PRIdMAX still uses a 'long
63785         long int' format with the latest Sun compiler, even though
63786         HAVE_LONG_LONG_INT isn't defined due to that compiler's
63787         preprocessor problem.  This causes the latest coreutils to dump
63788         core on Solaris 10 sparc with the Sun C compiler.
63789         Instead, fix the 2007-10-16 problem in a different way, by evaluating
63790         the troublesome expressions at configure-time, not at #if-time.
63791         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
63792         preprocessor.
63793         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
63794         compile-time C checks, done at 'configure'-time.
63795         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
63796         * modules/inttypes (Makefile): Substitute the new symbols that
63797         gl_INTTYPES_H now generates.
63798         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
63799
63800 2007-11-12  Bruno Haible  <bruno@clisp.org>
63801
63802         Tests for Unicode character classification functions.
63803
63804         * modules/unictype/bidicategory-byname-tests: New file.
63805         * modules/unictype/bidicategory-name-tests: New file.
63806         * modules/unictype/bidicategory-of-tests: New file.
63807         * modules/unictype/bidicategory-test-tests: New file.
63808         * modules/unictype/block-list-tests: New file.
63809         * modules/unictype/block-of-tests: New file.
63810         * modules/unictype/block-test-tests: New file.
63811         * modules/unictype/category-C-tests: New file.
63812         * modules/unictype/category-Cc-tests: New file.
63813         * modules/unictype/category-Cf-tests: New file.
63814         * modules/unictype/category-Cn-tests: New file.
63815         * modules/unictype/category-Co-tests: New file.
63816         * modules/unictype/category-Cs-tests: New file.
63817         * modules/unictype/category-L-tests: New file.
63818         * modules/unictype/category-Ll-tests: New file.
63819         * modules/unictype/category-Lm-tests: New file.
63820         * modules/unictype/category-Lo-tests: New file.
63821         * modules/unictype/category-Lt-tests: New file.
63822         * modules/unictype/category-Lu-tests: New file.
63823         * modules/unictype/category-M-tests: New file.
63824         * modules/unictype/category-Mc-tests: New file.
63825         * modules/unictype/category-Me-tests: New file.
63826         * modules/unictype/category-Mn-tests: New file.
63827         * modules/unictype/category-N-tests: New file.
63828         * modules/unictype/category-Nd-tests: New file.
63829         * modules/unictype/category-Nl-tests: New file.
63830         * modules/unictype/category-No-tests: New file.
63831         * modules/unictype/category-P-tests: New file.
63832         * modules/unictype/category-Pc-tests: New file.
63833         * modules/unictype/category-Pd-tests: New file.
63834         * modules/unictype/category-Pe-tests: New file.
63835         * modules/unictype/category-Pf-tests: New file.
63836         * modules/unictype/category-Pi-tests: New file.
63837         * modules/unictype/category-Po-tests: New file.
63838         * modules/unictype/category-Ps-tests: New file.
63839         * modules/unictype/category-S-tests: New file.
63840         * modules/unictype/category-Sc-tests: New file.
63841         * modules/unictype/category-Sk-tests: New file.
63842         * modules/unictype/category-Sm-tests: New file.
63843         * modules/unictype/category-So-tests: New file.
63844         * modules/unictype/category-Z-tests: New file.
63845         * modules/unictype/category-Zl-tests: New file.
63846         * modules/unictype/category-Zp-tests: New file.
63847         * modules/unictype/category-Zs-tests: New file.
63848         * modules/unictype/category-and-not-tests: New file.
63849         * modules/unictype/category-and-tests: New file.
63850         * modules/unictype/category-byname-tests: New file.
63851         * modules/unictype/category-name-tests: New file.
63852         * modules/unictype/category-none-tests: New file.
63853         * modules/unictype/category-of-tests: New file.
63854         * modules/unictype/category-or-tests: New file.
63855         * modules/unictype/category-test-withtable-tests: New file.
63856         * modules/unictype/combining-class-tests: New file.
63857         * modules/unictype/ctype-alnum-tests: New file.
63858         * modules/unictype/ctype-alpha-tests: New file.
63859         * modules/unictype/ctype-blank-tests: New file.
63860         * modules/unictype/ctype-cntrl-tests: New file.
63861         * modules/unictype/ctype-digit-tests: New file.
63862         * modules/unictype/ctype-graph-tests: New file.
63863         * modules/unictype/ctype-lower-tests: New file.
63864         * modules/unictype/ctype-print-tests: New file.
63865         * modules/unictype/ctype-punct-tests: New file.
63866         * modules/unictype/ctype-space-tests: New file.
63867         * modules/unictype/ctype-upper-tests: New file.
63868         * modules/unictype/ctype-xdigit-tests: New file.
63869         * modules/unictype/decimal-digit-tests: New file.
63870         * modules/unictype/digit-tests: New file.
63871         * modules/unictype/mirror-tests: New file.
63872         * modules/unictype/numeric-tests: New file.
63873         * modules/unictype/property-alphabetic-tests: New file.
63874         * modules/unictype/property-ascii-hex-digit-tests: New file.
63875         * modules/unictype/property-bidi-arabic-digit-tests: New file.
63876         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
63877         * modules/unictype/property-bidi-block-separator-tests: New file.
63878         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
63879         * modules/unictype/property-bidi-common-separator-tests: New file.
63880         * modules/unictype/property-bidi-control-tests: New file.
63881         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
63882         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
63883         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
63884         * modules/unictype/property-bidi-european-digit-tests: New file.
63885         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
63886         * modules/unictype/property-bidi-left-to-right-tests: New file.
63887         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
63888         * modules/unictype/property-bidi-other-neutral-tests: New file.
63889         * modules/unictype/property-bidi-pdf-tests: New file.
63890         * modules/unictype/property-bidi-segment-separator-tests: New file.
63891         * modules/unictype/property-bidi-whitespace-tests: New file.
63892         * modules/unictype/property-byname-tests: New file.
63893         * modules/unictype/property-combining-tests: New file.
63894         * modules/unictype/property-composite-tests: New file.
63895         * modules/unictype/property-currency-symbol-tests: New file.
63896         * modules/unictype/property-dash-tests: New file.
63897         * modules/unictype/property-decimal-digit-tests: New file.
63898         * modules/unictype/property-default-ignorable-code-point-tests: New file.
63899         * modules/unictype/property-deprecated-tests: New file.
63900         * modules/unictype/property-diacritic-tests: New file.
63901         * modules/unictype/property-extender-tests: New file.
63902         * modules/unictype/property-format-control-tests: New file.
63903         * modules/unictype/property-grapheme-base-tests: New file.
63904         * modules/unictype/property-grapheme-extend-tests: New file.
63905         * modules/unictype/property-grapheme-link-tests: New file.
63906         * modules/unictype/property-hex-digit-tests: New file.
63907         * modules/unictype/property-hyphen-tests: New file.
63908         * modules/unictype/property-id-continue-tests: New file.
63909         * modules/unictype/property-id-start-tests: New file.
63910         * modules/unictype/property-ideographic-tests: New file.
63911         * modules/unictype/property-ids-binary-operator-tests: New file.
63912         * modules/unictype/property-ids-trinary-operator-tests: New file.
63913         * modules/unictype/property-ignorable-control-tests: New file.
63914         * modules/unictype/property-iso-control-tests: New file.
63915         * modules/unictype/property-join-control-tests: New file.
63916         * modules/unictype/property-left-of-pair-tests: New file.
63917         * modules/unictype/property-line-separator-tests: New file.
63918         * modules/unictype/property-logical-order-exception-tests: New file.
63919         * modules/unictype/property-lowercase-tests: New file.
63920         * modules/unictype/property-math-tests: New file.
63921         * modules/unictype/property-non-break-tests: New file.
63922         * modules/unictype/property-not-a-character-tests: New file.
63923         * modules/unictype/property-numeric-tests: New file.
63924         * modules/unictype/property-other-alphabetic-tests: New file.
63925         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
63926         * modules/unictype/property-other-grapheme-extend-tests: New file.
63927         * modules/unictype/property-other-id-continue-tests: New file.
63928         * modules/unictype/property-other-id-start-tests: New file.
63929         * modules/unictype/property-other-lowercase-tests: New file.
63930         * modules/unictype/property-other-math-tests: New file.
63931         * modules/unictype/property-other-uppercase-tests: New file.
63932         * modules/unictype/property-paired-punctuation-tests: New file.
63933         * modules/unictype/property-paragraph-separator-tests: New file.
63934         * modules/unictype/property-pattern-syntax-tests: New file.
63935         * modules/unictype/property-pattern-white-space-tests: New file.
63936         * modules/unictype/property-private-use-tests: New file.
63937         * modules/unictype/property-punctuation-tests: New file.
63938         * modules/unictype/property-quotation-mark-tests: New file.
63939         * modules/unictype/property-radical-tests: New file.
63940         * modules/unictype/property-sentence-terminal-tests: New file.
63941         * modules/unictype/property-soft-dotted-tests: New file.
63942         * modules/unictype/property-space-tests: New file.
63943         * modules/unictype/property-terminal-punctuation-tests: New file.
63944         * modules/unictype/property-test-tests: New file.
63945         * modules/unictype/property-titlecase-tests: New file.
63946         * modules/unictype/property-unassigned-code-value-tests: New file.
63947         * modules/unictype/property-unified-ideograph-tests: New file.
63948         * modules/unictype/property-uppercase-tests: New file.
63949         * modules/unictype/property-variation-selector-tests: New file.
63950         * modules/unictype/property-white-space-tests: New file.
63951         * modules/unictype/property-xid-continue-tests: New file.
63952         * modules/unictype/property-xid-start-tests: New file.
63953         * modules/unictype/property-zero-width-tests: New file.
63954         * modules/unictype/scripts-tests: New file.
63955         * modules/unictype/syntax-c-ident-tests: New file.
63956         * modules/unictype/syntax-c-whitespace-tests: New file.
63957         * modules/unictype/syntax-java-ident-tests: New file.
63958         * modules/unictype/syntax-java-whitespace-tests: New file.
63959         * tests/unictype/test-bidi_byname.c: New file.
63960         * tests/unictype/test-bidi_name.c: New file.
63961         * tests/unictype/test-bidi_of.c: New file.
63962         * tests/unictype/test-bidi_test.c: New file.
63963         * tests/unictype/test-block_list.c: New file.
63964         * tests/unictype/test-block_of.c: New file.
63965         * tests/unictype/test-block_test.c: New file.
63966         * tests/unictype/test-categ_and.c: New file.
63967         * tests/unictype/test-categ_and_not.c: New file.
63968         * tests/unictype/test-categ_byname.c: New file.
63969         * tests/unictype/test-categ_name.c: New file.
63970         * tests/unictype/test-categ_none.c: New file.
63971         * tests/unictype/test-categ_of.c: New file.
63972         * tests/unictype/test-categ_or.c: New file.
63973         * tests/unictype/test-categ_test_withtable.c: New file.
63974         * tests/unictype/test-combining.c: New file.
63975         * tests/unictype/test-decdigit.c: New file.
63976         * tests/unictype/test-digit.c: New file.
63977         * tests/unictype/test-mirror.c: New file.
63978         * tests/unictype/test-numeric.c: New file.
63979         * tests/unictype/test-pr_byname.c: New file.
63980         * tests/unictype/test-pr_test.c: New file.
63981         * tests/unictype/test-predicate-part1.h: New file.
63982         * tests/unictype/test-predicate-part2.h: New file.
63983         * tests/unictype/test-scripts.c: New file.
63984         * tests/unictype/test-sy_c_ident.c: New file.
63985         * tests/unictype/test-sy_java_ident.c: New file.
63986
63987         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
63988         for Unicode 5.0.0.
63989         * tests/unictype/test-categ_Cc.c: Likewise.
63990         * tests/unictype/test-categ_Cf.c: Likewise.
63991         * tests/unictype/test-categ_Cn.c: Likewise.
63992         * tests/unictype/test-categ_Co.c: Likewise.
63993         * tests/unictype/test-categ_Cs.c: Likewise.
63994         * tests/unictype/test-categ_L.c: Likewise.
63995         * tests/unictype/test-categ_Ll.c: Likewise.
63996         * tests/unictype/test-categ_Lm.c: Likewise.
63997         * tests/unictype/test-categ_Lo.c: Likewise.
63998         * tests/unictype/test-categ_Lt.c: Likewise.
63999         * tests/unictype/test-categ_Lu.c: Likewise.
64000         * tests/unictype/test-categ_M.c: Likewise.
64001         * tests/unictype/test-categ_Mc.c: Likewise.
64002         * tests/unictype/test-categ_Me.c: Likewise.
64003         * tests/unictype/test-categ_Mn.c: Likewise.
64004         * tests/unictype/test-categ_N.c: Likewise.
64005         * tests/unictype/test-categ_Nd.c: Likewise.
64006         * tests/unictype/test-categ_Nl.c: Likewise.
64007         * tests/unictype/test-categ_No.c: Likewise.
64008         * tests/unictype/test-categ_P.c: Likewise.
64009         * tests/unictype/test-categ_Pc.c: Likewise.
64010         * tests/unictype/test-categ_Pd.c: Likewise.
64011         * tests/unictype/test-categ_Pe.c: Likewise.
64012         * tests/unictype/test-categ_Pf.c: Likewise.
64013         * tests/unictype/test-categ_Pi.c: Likewise.
64014         * tests/unictype/test-categ_Po.c: Likewise.
64015         * tests/unictype/test-categ_Ps.c: Likewise.
64016         * tests/unictype/test-categ_S.c: Likewise.
64017         * tests/unictype/test-categ_Sc.c: Likewise.
64018         * tests/unictype/test-categ_Sk.c: Likewise.
64019         * tests/unictype/test-categ_Sm.c: Likewise.
64020         * tests/unictype/test-categ_So.c: Likewise.
64021         * tests/unictype/test-categ_Z.c: Likewise.
64022         * tests/unictype/test-categ_Zl.c: Likewise.
64023         * tests/unictype/test-categ_Zp.c: Likewise.
64024         * tests/unictype/test-categ_Zs.c: Likewise.
64025         * tests/unictype/test-ctype_alnum.c: Likewise.
64026         * tests/unictype/test-ctype_alpha.c: Likewise.
64027         * tests/unictype/test-ctype_blank.c: Likewise.
64028         * tests/unictype/test-ctype_cntrl.c: Likewise.
64029         * tests/unictype/test-ctype_digit.c: Likewise.
64030         * tests/unictype/test-ctype_graph.c: Likewise.
64031         * tests/unictype/test-ctype_lower.c: Likewise.
64032         * tests/unictype/test-ctype_print.c: Likewise.
64033         * tests/unictype/test-ctype_punct.c: Likewise.
64034         * tests/unictype/test-ctype_space.c: Likewise.
64035         * tests/unictype/test-ctype_upper.c: Likewise.
64036         * tests/unictype/test-ctype_xdigit.c: Likewise.
64037         * tests/unictype/test-decdigit.h: Likewise.
64038         * tests/unictype/test-digit.h: Likewise.
64039         * tests/unictype/test-numeric.h: Likewise.
64040         * tests/unictype/test-pr_alphabetic.c: Likewise.
64041         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
64042         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
64043         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
64044         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
64045         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
64046         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
64047         * tests/unictype/test-pr_bidi_control.c: Likewise.
64048         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
64049         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
64050         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
64051         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
64052         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
64053         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
64054         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
64055         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
64056         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
64057         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
64058         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
64059         * tests/unictype/test-pr_combining.c: Likewise.
64060         * tests/unictype/test-pr_composite.c: Likewise.
64061         * tests/unictype/test-pr_currency_symbol.c: Likewise.
64062         * tests/unictype/test-pr_dash.c: Likewise.
64063         * tests/unictype/test-pr_decimal_digit.c: Likewise.
64064         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
64065         * tests/unictype/test-pr_deprecated.c: Likewise.
64066         * tests/unictype/test-pr_diacritic.c: Likewise.
64067         * tests/unictype/test-pr_extender.c: Likewise.
64068         * tests/unictype/test-pr_format_control.c: Likewise.
64069         * tests/unictype/test-pr_grapheme_base.c: Likewise.
64070         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
64071         * tests/unictype/test-pr_grapheme_link.c: Likewise.
64072         * tests/unictype/test-pr_hex_digit.c: Likewise.
64073         * tests/unictype/test-pr_hyphen.c: Likewise.
64074         * tests/unictype/test-pr_id_continue.c: Likewise.
64075         * tests/unictype/test-pr_id_start.c: Likewise.
64076         * tests/unictype/test-pr_ideographic.c: Likewise.
64077         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
64078         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
64079         * tests/unictype/test-pr_ignorable_control.c: Likewise.
64080         * tests/unictype/test-pr_iso_control.c: Likewise.
64081         * tests/unictype/test-pr_join_control.c: Likewise.
64082         * tests/unictype/test-pr_left_of_pair.c: Likewise.
64083         * tests/unictype/test-pr_line_separator.c: Likewise.
64084         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
64085         * tests/unictype/test-pr_lowercase.c: Likewise.
64086         * tests/unictype/test-pr_math.c: Likewise.
64087         * tests/unictype/test-pr_non_break.c: Likewise.
64088         * tests/unictype/test-pr_not_a_character.c: Likewise.
64089         * tests/unictype/test-pr_numeric.c: Likewise.
64090         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
64091         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
64092         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
64093         * tests/unictype/test-pr_other_id_continue.c: Likewise.
64094         * tests/unictype/test-pr_other_id_start.c: Likewise.
64095         * tests/unictype/test-pr_other_lowercase.c: Likewise.
64096         * tests/unictype/test-pr_other_math.c: Likewise.
64097         * tests/unictype/test-pr_other_uppercase.c: Likewise.
64098         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
64099         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
64100         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
64101         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
64102         * tests/unictype/test-pr_private_use.c: Likewise.
64103         * tests/unictype/test-pr_punctuation.c: Likewise.
64104         * tests/unictype/test-pr_quotation_mark.c: Likewise.
64105         * tests/unictype/test-pr_radical.c: Likewise.
64106         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
64107         * tests/unictype/test-pr_soft_dotted.c: Likewise.
64108         * tests/unictype/test-pr_space.c: Likewise.
64109         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
64110         * tests/unictype/test-pr_titlecase.c: Likewise.
64111         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
64112         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
64113         * tests/unictype/test-pr_uppercase.c: Likewise.
64114         * tests/unictype/test-pr_variation_selector.c: Likewise.
64115         * tests/unictype/test-pr_white_space.c: Likewise.
64116         * tests/unictype/test-pr_xid_continue.c: Likewise.
64117         * tests/unictype/test-pr_xid_start.c: Likewise.
64118         * tests/unictype/test-pr_zero_width.c: Likewise.
64119         * tests/unictype/test-sy_c_whitespace.c: Likewise.
64120         * tests/unictype/test-sy_java_whitespace.c: Likewise.
64121
64122 2007-11-12  Bruno Haible  <bruno@clisp.org>
64123
64124         Unicode character classification functions.
64125         * lib/unictype.h: New file.
64126         * modules/unictype/base: New file.
64127         * modules/unictype/category-L: New file.
64128         * modules/unictype/category-Lu: New file.
64129         * modules/unictype/category-Ll: New file.
64130         * modules/unictype/category-Lt: New file.
64131         * modules/unictype/category-Lm: New file.
64132         * modules/unictype/category-Lo: New file.
64133         * modules/unictype/category-M: New file.
64134         * modules/unictype/category-Mn: New file.
64135         * modules/unictype/category-Mc: New file.
64136         * modules/unictype/category-Me: New file.
64137         * modules/unictype/category-N: New file.
64138         * modules/unictype/category-Nd: New file.
64139         * modules/unictype/category-Nl: New file.
64140         * modules/unictype/category-No: New file.
64141         * modules/unictype/category-P: New file.
64142         * modules/unictype/category-Pc: New file.
64143         * modules/unictype/category-Pd: New file.
64144         * modules/unictype/category-Ps: New file.
64145         * modules/unictype/category-Pe: New file.
64146         * modules/unictype/category-Pi: New file.
64147         * modules/unictype/category-Pf: New file.
64148         * modules/unictype/category-Po: New file.
64149         * modules/unictype/category-S: New file.
64150         * modules/unictype/category-Sm: New file.
64151         * modules/unictype/category-Sc: New file.
64152         * modules/unictype/category-Sk: New file.
64153         * modules/unictype/category-So: New file.
64154         * modules/unictype/category-Z: New file.
64155         * modules/unictype/category-Zs: New file.
64156         * modules/unictype/category-Zl: New file.
64157         * modules/unictype/category-Zp: New file.
64158         * modules/unictype/category-C: New file.
64159         * modules/unictype/category-Cc: New file.
64160         * modules/unictype/category-Cf: New file.
64161         * modules/unictype/category-Cs: New file.
64162         * modules/unictype/category-Co: New file.
64163         * modules/unictype/category-Cn: New file.
64164         * modules/unictype/category-or: New file.
64165         * modules/unictype/category-of: New file.
64166         * modules/unictype/category-test: New file.
64167         * modules/unictype/category-test-withtable: New file.
64168         * modules/unictype/category-byname: New file.
64169         * modules/unictype/category-none: New file.
64170         * modules/unictype/category-and: New file.
64171         * modules/unictype/category-and-not: New file.
64172         * modules/unictype/category-name: New file.
64173         * modules/unictype/combining-class: New file.
64174         * modules/unictype/category-all: New file.
64175         * modules/unictype/bidicategory-all: New file.
64176         * modules/unictype/bidicategory-byname: New file.
64177         * modules/unictype/bidicategory-name: New file.
64178         * modules/unictype/bidicategory-of: New file.
64179         * modules/unictype/bidicategory-test: New file.
64180         * modules/unictype/decimal-digit: New file.
64181         * modules/unictype/digit: New file.
64182         * modules/unictype/numeric: New file.
64183         * modules/unictype/mirror: New file.
64184         * modules/unictype/property-white-space: New file.
64185         * modules/unictype/property-alphabetic: New file.
64186         * modules/unictype/property-other-alphabetic: New file.
64187         * modules/unictype/property-not-a-character: New file.
64188         * modules/unictype/property-default-ignorable-code-point: New file.
64189         * modules/unictype/property-other-default-ignorable-code-point: New
64190         file.
64191         * modules/unictype/property-deprecated: New file.
64192         * modules/unictype/property-logical-order-exception: New file.
64193         * modules/unictype/property-variation-selector: New file.
64194         * modules/unictype/property-private-use: New file.
64195         * modules/unictype/property-unassigned-code-value: New file.
64196         * modules/unictype/property-uppercase: New file.
64197         * modules/unictype/property-other-uppercase: New file.
64198         * modules/unictype/property-lowercase: New file.
64199         * modules/unictype/property-other-lowercase: New file.
64200         * modules/unictype/property-titlecase: New file.
64201         * modules/unictype/property-soft-dotted: New file.
64202         * modules/unictype/property-id-start: New file.
64203         * modules/unictype/property-other-id-start: New file.
64204         * modules/unictype/property-id-continue: New file.
64205         * modules/unictype/property-other-id-continue: New file.
64206         * modules/unictype/property-xid-start: New file.
64207         * modules/unictype/property-xid-continue: New file.
64208         * modules/unictype/property-pattern-white-space: New file.
64209         * modules/unictype/property-pattern-syntax: New file.
64210         * modules/unictype/property-join-control: New file.
64211         * modules/unictype/property-grapheme-base: New file.
64212         * modules/unictype/property-grapheme-extend: New file.
64213         * modules/unictype/property-other-grapheme-extend: New file.
64214         * modules/unictype/property-grapheme-link: New file.
64215         * modules/unictype/property-bidi-control: New file.
64216         * modules/unictype/property-bidi-left-to-right: New file.
64217         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
64218         * modules/unictype/property-bidi-arabic-right-to-left: New file.
64219         * modules/unictype/property-bidi-european-digit: New file.
64220         * modules/unictype/property-bidi-eur-num-separator: New file.
64221         * modules/unictype/property-bidi-eur-num-terminator: New file.
64222         * modules/unictype/property-bidi-arabic-digit: New file.
64223         * modules/unictype/property-bidi-common-separator: New file.
64224         * modules/unictype/property-bidi-block-separator: New file.
64225         * modules/unictype/property-bidi-segment-separator: New file.
64226         * modules/unictype/property-bidi-whitespace: New file.
64227         * modules/unictype/property-bidi-non-spacing-mark: New file.
64228         * modules/unictype/property-bidi-boundary-neutral: New file.
64229         * modules/unictype/property-bidi-pdf: New file.
64230         * modules/unictype/property-bidi-embedding-or-override: New file.
64231         * modules/unictype/property-bidi-other-neutral: New file.
64232         * modules/unictype/property-hex-digit: New file.
64233         * modules/unictype/property-ascii-hex-digit: New file.
64234         * modules/unictype/property-ideographic: New file.
64235         * modules/unictype/property-unified-ideograph: New file.
64236         * modules/unictype/property-radical: New file.
64237         * modules/unictype/property-ids-binary-operator: New file.
64238         * modules/unictype/property-ids-trinary-operator: New file.
64239         * modules/unictype/property-zero-width: New file.
64240         * modules/unictype/property-space: New file.
64241         * modules/unictype/property-non-break: New file.
64242         * modules/unictype/property-iso-control: New file.
64243         * modules/unictype/property-format-control: New file.
64244         * modules/unictype/property-dash: New file.
64245         * modules/unictype/property-hyphen: New file.
64246         * modules/unictype/property-punctuation: New file.
64247         * modules/unictype/property-line-separator: New file.
64248         * modules/unictype/property-paragraph-separator: New file.
64249         * modules/unictype/property-quotation-mark: New file.
64250         * modules/unictype/property-sentence-terminal: New file.
64251         * modules/unictype/property-terminal-punctuation: New file.
64252         * modules/unictype/property-currency-symbol: New file.
64253         * modules/unictype/property-math: New file.
64254         * modules/unictype/property-other-math: New file.
64255         * modules/unictype/property-paired-punctuation: New file.
64256         * modules/unictype/property-left-of-pair: New file.
64257         * modules/unictype/property-combining: New file.
64258         * modules/unictype/property-composite: New file.
64259         * modules/unictype/property-decimal-digit: New file.
64260         * modules/unictype/property-numeric: New file.
64261         * modules/unictype/property-diacritic: New file.
64262         * modules/unictype/property-extender: New file.
64263         * modules/unictype/property-ignorable-control: New file.
64264         * modules/unictype/property-test: New file.
64265         * modules/unictype/property-byname: New file.
64266         * modules/unictype/property-all: New file.
64267         * modules/unictype/scripts: New file.
64268         * modules/unictype/scripts-all: New file.
64269         * modules/unictype/block-of: New file.
64270         * modules/unictype/block-test: New file.
64271         * modules/unictype/block-list: New file.
64272         * modules/unictype/block-all: New file.
64273         * modules/unictype/syntax-c-whitespace: New file.
64274         * modules/unictype/syntax-java-whitespace: New file.
64275         * modules/unictype/syntax-c-ident: New file.
64276         * modules/unictype/syntax-java-ident: New file.
64277         * modules/unictype/ctype-alnum: New file.
64278         * modules/unictype/ctype-alpha: New file.
64279         * modules/unictype/ctype-cntrl: New file.
64280         * modules/unictype/ctype-digit: New file.
64281         * modules/unictype/ctype-graph: New file.
64282         * modules/unictype/ctype-lower: New file.
64283         * modules/unictype/ctype-print: New file.
64284         * modules/unictype/ctype-punct: New file.
64285         * modules/unictype/ctype-space: New file.
64286         * modules/unictype/ctype-upper: New file.
64287         * modules/unictype/ctype-xdigit: New file.
64288         * modules/unictype/ctype-blank: New file.
64289         * lib/unictype/bidi_byname.c: New file.
64290         * lib/unictype/bidi_name.c: New file.
64291         * lib/unictype/bidi_of.c: New file.
64292         * lib/unictype/bidi_test.c: New file.
64293         * lib/unictype/bitmap.h: New file.
64294         * lib/unictype/block_test.c: New file.
64295         * lib/unictype/blocks.c: New file.
64296         * lib/unictype/categ_C.c: New file.
64297         * lib/unictype/categ_Cc.c: New file.
64298         * lib/unictype/categ_Cf.c: New file.
64299         * lib/unictype/categ_Cn.c: New file.
64300         * lib/unictype/categ_Co.c: New file.
64301         * lib/unictype/categ_Cs.c: New file.
64302         * lib/unictype/categ_L.c: New file.
64303         * lib/unictype/categ_Ll.c: New file.
64304         * lib/unictype/categ_Lm.c: New file.
64305         * lib/unictype/categ_Lo.c: New file.
64306         * lib/unictype/categ_Lt.c: New file.
64307         * lib/unictype/categ_Lu.c: New file.
64308         * lib/unictype/categ_M.c: New file.
64309         * lib/unictype/categ_Mc.c: New file.
64310         * lib/unictype/categ_Me.c: New file.
64311         * lib/unictype/categ_Mn.c: New file.
64312         * lib/unictype/categ_N.c: New file.
64313         * lib/unictype/categ_Nd.c: New file.
64314         * lib/unictype/categ_Nl.c: New file.
64315         * lib/unictype/categ_No.c: New file.
64316         * lib/unictype/categ_P.c: New file.
64317         * lib/unictype/categ_Pc.c: New file.
64318         * lib/unictype/categ_Pd.c: New file.
64319         * lib/unictype/categ_Pe.c: New file.
64320         * lib/unictype/categ_Pf.c: New file.
64321         * lib/unictype/categ_Pi.c: New file.
64322         * lib/unictype/categ_Po.c: New file.
64323         * lib/unictype/categ_Ps.c: New file.
64324         * lib/unictype/categ_S.c: New file.
64325         * lib/unictype/categ_Sc.c: New file.
64326         * lib/unictype/categ_Sk.c: New file.
64327         * lib/unictype/categ_Sm.c: New file.
64328         * lib/unictype/categ_So.c: New file.
64329         * lib/unictype/categ_Z.c: New file.
64330         * lib/unictype/categ_Zl.c: New file.
64331         * lib/unictype/categ_Zp.c: New file.
64332         * lib/unictype/categ_Zs.c: New file.
64333         * lib/unictype/categ_and.c: New file.
64334         * lib/unictype/categ_and_not.c: New file.
64335         * lib/unictype/categ_byname.c: New file.
64336         * lib/unictype/categ_name.c: New file.
64337         * lib/unictype/categ_none.c: New file.
64338         * lib/unictype/categ_of.c: New file.
64339         * lib/unictype/categ_or.c: New file.
64340         * lib/unictype/categ_test.c: New file.
64341         * lib/unictype/combining.c: New file.
64342         * lib/unictype/ctype_alnum.c: New file.
64343         * lib/unictype/ctype_alpha.c: New file.
64344         * lib/unictype/ctype_blank.c: New file.
64345         * lib/unictype/ctype_cntrl.c: New file.
64346         * lib/unictype/ctype_digit.c: New file.
64347         * lib/unictype/ctype_graph.c: New file.
64348         * lib/unictype/ctype_lower.c: New file.
64349         * lib/unictype/ctype_print.c: New file.
64350         * lib/unictype/ctype_punct.c: New file.
64351         * lib/unictype/ctype_space.c: New file.
64352         * lib/unictype/ctype_upper.c: New file.
64353         * lib/unictype/ctype_xdigit.c: New file.
64354         * lib/unictype/decdigit.c: New file.
64355         * lib/unictype/digit.c: New file.
64356         * lib/unictype/identsyntaxmap.h: New file.
64357         * lib/unictype/mirror.c: New file.
64358         * lib/unictype/numeric.c: New file.
64359         * lib/unictype/pr_alphabetic.c: New file.
64360         * lib/unictype/pr_ascii_hex_digit.c: New file.
64361         * lib/unictype/pr_bidi_arabic_digit.c: New file.
64362         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
64363         * lib/unictype/pr_bidi_block_separator.c: New file.
64364         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
64365         * lib/unictype/pr_bidi_common_separator.c: New file.
64366         * lib/unictype/pr_bidi_control.c: New file.
64367         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
64368         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
64369         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
64370         * lib/unictype/pr_bidi_european_digit.c: New file.
64371         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
64372         * lib/unictype/pr_bidi_left_to_right.c: New file.
64373         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
64374         * lib/unictype/pr_bidi_other_neutral.c: New file.
64375         * lib/unictype/pr_bidi_pdf.c: New file.
64376         * lib/unictype/pr_bidi_segment_separator.c: New file.
64377         * lib/unictype/pr_bidi_whitespace.c: New file.
64378         * lib/unictype/pr_byname.c: New file.
64379         * lib/unictype/pr_byname.gperf: New file.
64380         * lib/unictype/pr_combining.c: New file.
64381         * lib/unictype/pr_composite.c: New file.
64382         * lib/unictype/pr_currency_symbol.c: New file.
64383         * lib/unictype/pr_dash.c: New file.
64384         * lib/unictype/pr_decimal_digit.c: New file.
64385         * lib/unictype/pr_default_ignorable_code_point.c: New file.
64386         * lib/unictype/pr_deprecated.c: New file.
64387         * lib/unictype/pr_diacritic.c: New file.
64388         * lib/unictype/pr_extender.c: New file.
64389         * lib/unictype/pr_format_control.c: New file.
64390         * lib/unictype/pr_grapheme_base.c: New file.
64391         * lib/unictype/pr_grapheme_extend.c: New file.
64392         * lib/unictype/pr_grapheme_link.c: New file.
64393         * lib/unictype/pr_hex_digit.c: New file.
64394         * lib/unictype/pr_hyphen.c: New file.
64395         * lib/unictype/pr_id_continue.c: New file.
64396         * lib/unictype/pr_id_start.c: New file.
64397         * lib/unictype/pr_ideographic.c: New file.
64398         * lib/unictype/pr_ids_binary_operator.c: New file.
64399         * lib/unictype/pr_ids_trinary_operator.c: New file.
64400         * lib/unictype/pr_ignorable_control.c: New file.
64401         * lib/unictype/pr_iso_control.c: New file.
64402         * lib/unictype/pr_join_control.c: New file.
64403         * lib/unictype/pr_left_of_pair.c: New file.
64404         * lib/unictype/pr_line_separator.c: New file.
64405         * lib/unictype/pr_logical_order_exception.c: New file.
64406         * lib/unictype/pr_lowercase.c: New file.
64407         * lib/unictype/pr_math.c: New file.
64408         * lib/unictype/pr_non_break.c: New file.
64409         * lib/unictype/pr_not_a_character.c: New file.
64410         * lib/unictype/pr_numeric.c: New file.
64411         * lib/unictype/pr_other_alphabetic.c: New file.
64412         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
64413         * lib/unictype/pr_other_grapheme_extend.c: New file.
64414         * lib/unictype/pr_other_id_continue.c: New file.
64415         * lib/unictype/pr_other_id_start.c: New file.
64416         * lib/unictype/pr_other_lowercase.c: New file.
64417         * lib/unictype/pr_other_math.c: New file.
64418         * lib/unictype/pr_other_uppercase.c: New file.
64419         * lib/unictype/pr_paired_punctuation.c: New file.
64420         * lib/unictype/pr_paragraph_separator.c: New file.
64421         * lib/unictype/pr_pattern_syntax.c: New file.
64422         * lib/unictype/pr_pattern_white_space.c: New file.
64423         * lib/unictype/pr_private_use.c: New file.
64424         * lib/unictype/pr_punctuation.c: New file.
64425         * lib/unictype/pr_quotation_mark.c: New file.
64426         * lib/unictype/pr_radical.c: New file.
64427         * lib/unictype/pr_sentence_terminal.c: New file.
64428         * lib/unictype/pr_soft_dotted.c: New file.
64429         * lib/unictype/pr_space.c: New file.
64430         * lib/unictype/pr_terminal_punctuation.c: New file.
64431         * lib/unictype/pr_test.c: New file.
64432         * lib/unictype/pr_titlecase.c: New file.
64433         * lib/unictype/pr_unassigned_code_value.c: New file.
64434         * lib/unictype/pr_unified_ideograph.c: New file.
64435         * lib/unictype/pr_uppercase.c: New file.
64436         * lib/unictype/pr_variation_selector.c: New file.
64437         * lib/unictype/pr_white_space.c: New file.
64438         * lib/unictype/pr_xid_continue.c: New file.
64439         * lib/unictype/pr_xid_start.c: New file.
64440         * lib/unictype/pr_zero_width.c: New file.
64441         * lib/unictype/scripts.c: New file.
64442         * lib/unictype/sy_c_ident.c: New file.
64443         * lib/unictype/sy_c_whitespace.c: New file.
64444         * lib/unictype/sy_java_ident.c: New file.
64445         * lib/unictype/sy_java_whitespace.c: New file.
64446
64447         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
64448         Unicode 5.0.0.
64449         * lib/unictype/blocks.h: Likewise.
64450         * lib/unictype/categ_C.h: Likewise.
64451         * lib/unictype/categ_Cc.h: Likewise.
64452         * lib/unictype/categ_Cf.h: Likewise.
64453         * lib/unictype/categ_Cn.h: Likewise.
64454         * lib/unictype/categ_Co.h: Likewise.
64455         * lib/unictype/categ_Cs.h: Likewise.
64456         * lib/unictype/categ_L.h: Likewise.
64457         * lib/unictype/categ_Ll.h: Likewise.
64458         * lib/unictype/categ_Lm.h: Likewise.
64459         * lib/unictype/categ_Lo.h: Likewise.
64460         * lib/unictype/categ_Lt.h: Likewise.
64461         * lib/unictype/categ_Lu.h: Likewise.
64462         * lib/unictype/categ_M.h: Likewise.
64463         * lib/unictype/categ_Mc.h: Likewise.
64464         * lib/unictype/categ_Me.h: Likewise.
64465         * lib/unictype/categ_Mn.h: Likewise.
64466         * lib/unictype/categ_N.h: Likewise.
64467         * lib/unictype/categ_Nd.h: Likewise.
64468         * lib/unictype/categ_Nl.h: Likewise.
64469         * lib/unictype/categ_No.h: Likewise.
64470         * lib/unictype/categ_P.h: Likewise.
64471         * lib/unictype/categ_Pc.h: Likewise.
64472         * lib/unictype/categ_Pd.h: Likewise.
64473         * lib/unictype/categ_Pe.h: Likewise.
64474         * lib/unictype/categ_Pf.h: Likewise.
64475         * lib/unictype/categ_Pi.h: Likewise.
64476         * lib/unictype/categ_Po.h: Likewise.
64477         * lib/unictype/categ_Ps.h: Likewise.
64478         * lib/unictype/categ_S.h: Likewise.
64479         * lib/unictype/categ_Sc.h: Likewise.
64480         * lib/unictype/categ_Sk.h: Likewise.
64481         * lib/unictype/categ_Sm.h: Likewise.
64482         * lib/unictype/categ_So.h: Likewise.
64483         * lib/unictype/categ_Z.h: Likewise.
64484         * lib/unictype/categ_Zl.h: Likewise.
64485         * lib/unictype/categ_Zp.h: Likewise.
64486         * lib/unictype/categ_Zs.h: Likewise.
64487         * lib/unictype/categ_of.h: Likewise.
64488         * lib/unictype/combining.h: Likewise.
64489         * lib/unictype/ctype_alnum.h: Likewise.
64490         * lib/unictype/ctype_alpha.h: Likewise.
64491         * lib/unictype/ctype_blank.h: Likewise.
64492         * lib/unictype/ctype_cntrl.h: Likewise.
64493         * lib/unictype/ctype_digit.h: Likewise.
64494         * lib/unictype/ctype_graph.h: Likewise.
64495         * lib/unictype/ctype_lower.h: Likewise.
64496         * lib/unictype/ctype_print.h: Likewise.
64497         * lib/unictype/ctype_punct.h: Likewise.
64498         * lib/unictype/ctype_space.h: Likewise.
64499         * lib/unictype/ctype_upper.h: Likewise.
64500         * lib/unictype/ctype_xdigit.h: Likewise.
64501         * lib/unictype/decdigit.h: Likewise.
64502         * lib/unictype/digit.h: Likewise.
64503         * lib/unictype/mirror.h: Likewise.
64504         * lib/unictype/numeric.h: Likewise.
64505         * lib/unictype/pr_alphabetic.h: Likewise.
64506         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
64507         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
64508         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
64509         * lib/unictype/pr_bidi_block_separator.h: Likewise.
64510         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
64511         * lib/unictype/pr_bidi_common_separator.h: Likewise.
64512         * lib/unictype/pr_bidi_control.h: Likewise.
64513         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
64514         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
64515         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
64516         * lib/unictype/pr_bidi_european_digit.h: Likewise.
64517         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
64518         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
64519         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
64520         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
64521         * lib/unictype/pr_bidi_pdf.h: Likewise.
64522         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
64523         * lib/unictype/pr_bidi_whitespace.h: Likewise.
64524         * lib/unictype/pr_combining.h: Likewise.
64525         * lib/unictype/pr_composite.h: Likewise.
64526         * lib/unictype/pr_currency_symbol.h: Likewise.
64527         * lib/unictype/pr_dash.h: Likewise.
64528         * lib/unictype/pr_decimal_digit.h: Likewise.
64529         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
64530         * lib/unictype/pr_deprecated.h: Likewise.
64531         * lib/unictype/pr_diacritic.h: Likewise.
64532         * lib/unictype/pr_extender.h: Likewise.
64533         * lib/unictype/pr_format_control.h: Likewise.
64534         * lib/unictype/pr_grapheme_base.h: Likewise.
64535         * lib/unictype/pr_grapheme_extend.h: Likewise.
64536         * lib/unictype/pr_grapheme_link.h: Likewise.
64537         * lib/unictype/pr_hex_digit.h: Likewise.
64538         * lib/unictype/pr_hyphen.h: Likewise.
64539         * lib/unictype/pr_id_continue.h: Likewise.
64540         * lib/unictype/pr_id_start.h: Likewise.
64541         * lib/unictype/pr_ideographic.h: Likewise.
64542         * lib/unictype/pr_ids_binary_operator.h: Likewise.
64543         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
64544         * lib/unictype/pr_ignorable_control.h: Likewise.
64545         * lib/unictype/pr_iso_control.h: Likewise.
64546         * lib/unictype/pr_join_control.h: Likewise.
64547         * lib/unictype/pr_left_of_pair.h: Likewise.
64548         * lib/unictype/pr_line_separator.h: Likewise.
64549         * lib/unictype/pr_logical_order_exception.h: Likewise.
64550         * lib/unictype/pr_lowercase.h: Likewise.
64551         * lib/unictype/pr_math.h: Likewise.
64552         * lib/unictype/pr_non_break.h: Likewise.
64553         * lib/unictype/pr_not_a_character.h: Likewise.
64554         * lib/unictype/pr_numeric.h: Likewise.
64555         * lib/unictype/pr_other_alphabetic.h: Likewise.
64556         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
64557         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
64558         * lib/unictype/pr_other_id_continue.h: Likewise.
64559         * lib/unictype/pr_other_id_start.h: Likewise.
64560         * lib/unictype/pr_other_lowercase.h: Likewise.
64561         * lib/unictype/pr_other_math.h: Likewise.
64562         * lib/unictype/pr_other_uppercase.h: Likewise.
64563         * lib/unictype/pr_paired_punctuation.h: Likewise.
64564         * lib/unictype/pr_paragraph_separator.h: Likewise.
64565         * lib/unictype/pr_pattern_syntax.h: Likewise.
64566         * lib/unictype/pr_pattern_white_space.h: Likewise.
64567         * lib/unictype/pr_private_use.h: Likewise.
64568         * lib/unictype/pr_punctuation.h: Likewise.
64569         * lib/unictype/pr_quotation_mark.h: Likewise.
64570         * lib/unictype/pr_radical.h: Likewise.
64571         * lib/unictype/pr_sentence_terminal.h: Likewise.
64572         * lib/unictype/pr_soft_dotted.h: Likewise.
64573         * lib/unictype/pr_space.h: Likewise.
64574         * lib/unictype/pr_terminal_punctuation.h: Likewise.
64575         * lib/unictype/pr_titlecase.h: Likewise.
64576         * lib/unictype/pr_unassigned_code_value.h: Likewise.
64577         * lib/unictype/pr_unified_ideograph.h: Likewise.
64578         * lib/unictype/pr_uppercase.h: Likewise.
64579         * lib/unictype/pr_variation_selector.h: Likewise.
64580         * lib/unictype/pr_white_space.h: Likewise.
64581         * lib/unictype/pr_xid_continue.h: Likewise.
64582         * lib/unictype/pr_xid_start.h: Likewise.
64583         * lib/unictype/pr_zero_width.h: Likewise.
64584         * lib/unictype/scripts.h: Likewise.
64585         * lib/unictype/scripts_byname.gperf: Likewise.
64586         * lib/unictype/sy_c_ident.h: Likewise.
64587         * lib/unictype/sy_c_whitespace.h: Likewise.
64588         * lib/unictype/sy_java_ident.h: Likewise.
64589         * lib/unictype/sy_java_whitespace.h: Likewise.
64590
64591         * lib/unictype/Makefile: New file.
64592         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
64593         glibc.
64594         * lib/unictype/3level.h: New file, copied from glibc.
64595         * lib/unictype/3levelbit.h: New file.
64596
64597 2007-11-11  Bruno Haible  <bruno@clisp.org>
64598
64599         * modules/gperf: New file.
64600         * modules/iconv_open (Depends-on): Add it.
64601         (Makefile.am): Remove the GPERF definition.
64602
64603 2007-11-11  Bruno Haible  <bruno@clisp.org>
64604
64605         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
64606         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
64607
64608 2007-11-11  Bruno Haible  <bruno@clisp.org>
64609
64610         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
64611         (usage): Remove function.
64612
64613 2007-11-11  Bruno Haible  <bruno@clisp.org>
64614
64615         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
64616         gl_FUNC_CEILF_LIBS.
64617         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
64618         gl_FUNC_CEIL_LIBS.
64619         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
64620         gl_FUNC_CEILL_LIBS.
64621         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
64622         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
64623         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
64624
64625 2007-11-11  Bruno Haible  <bruno@clisp.org>
64626
64627         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
64628         roundf were declared but do not exist on functions.
64629         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
64630         roundl were declared but do not exist on functions.
64631         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
64632         HAVE_FLOORL_AND_CEILL, respectively.
64633         Needed for Sun C on Solaris 10.
64634
64635 2007-11-11  Bruno Haible  <bruno@clisp.org>
64636
64637         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
64638         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
64639         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
64640         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
64641         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
64642         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
64643         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
64644         HAVE_DECL_ROUNDF.
64645         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
64646         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
64647         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
64648         of HAVE_DECL_ROUND*.
64649         * modules/math (Makefile.am): Update.
64650
64651 2007-11-10  Bruno Haible  <bruno@clisp.org>
64652
64653         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
64654         ptrdiff_t as m4/intl.m4.
64655
64656 2007-11-10  Jim Meyering  <meyering@redhat.com>
64657
64658         Avoid link failure for the argmatch test.
64659         * tests/test-argmatch.c (usage): Define function to avoid a link
64660         failure: argmatch_die requires a usage function.
64661
64662 2007-11-09  Bruno Haible  <bruno@clisp.org>
64663
64664         * doc/functions/snprintf.texi: Mention BeOS deficiency.
64665         * doc/functions/vsnprintf.texi: Likewise.
64666         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
64667         with a size argument < 2.
64668
64669 2007-11-09  Bruno Haible  <bruno@clisp.org>
64670
64671         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
64672         buffer. Fixes an inefficiency introduced on 2007-11-03.
64673
64674 2007-11-09  Bruno Haible  <bruno@clisp.org>
64675
64676         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
64677         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
64678
64679 2007-11-08  Jim Meyering  <meyering@redhat.com>
64680
64681         Change cache variable name prefix "jm_" to "gl_" everywhere.
64682         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
64683         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
64684         * m4/uptime.m4: s/gl_/jm_/
64685
64686 2007-11-07  Bruno Haible  <bruno@clisp.org>
64687
64688         Update to GNU gettext 0.17.
64689         * m4/intl.m4: Update to GNU gettext 0.17.
64690         * m4/po.m4: Likewise.
64691         * modules/gettext (Files): Remove m4/ulonglong.m4.
64692         (configure.ac): Require gettext infrastructure from version 0.17.
64693
64694 2007-11-06  Bruno Haible  <bruno@clisp.org>
64695
64696         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
64697         symbolic values are not defined in a public header.
64698         * lib/freadable.c (freadable) [QNX]: Likewise.
64699         * lib/freadahead.c (freadahead) [QNX]: Likewise.
64700         * lib/freading.c (freading) [QNX]: Likewise.
64701         * lib/fseterr.c (fseterr) [QNX]: Likewise.
64702         * lib/fwritable.c (fwritable) [QNX]: Likewise.
64703         * lib/fwriting.c (fwriting) [QNX]: Likewise.
64704         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
64705         Reported by Alain Magloire.
64706
64707         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
64708
64709 2007-11-05  Bruno Haible  <bruno@clisp.org>
64710
64711         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
64712         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
64713         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
64714         Reported by Eric Blake.
64715
64716 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64717             Bruno Haible  <bruno@clisp.org>
64718
64719         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
64720         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
64721         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
64722         (malloc): Undefine also before including <stdlib.h>.
64723         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
64724         Needed on OSF/1 4.0.
64725
64726 2007-11-05  Jim Meyering  <meyering@redhat.com>
64727
64728         git-version-gen: sync from coreutils.
64729         * build-aux/git-version-gen: Add comments.
64730         Change the first '-' to '.' in the snapshot version string,
64731         e.g., 6.9-377-08144 -> 6.9.377-08144
64732         Remove first parameter.
64733         Don't declare a version "-dirty" merely because a time
64734         stamp has changed.
64735
64736 2007-11-04  Bruno Haible  <bruno@clisp.org>
64737
64738         * lib/lock.h: Protect all macro definitions containing an 'if'
64739         statement through a "do { ... } while (0)".
64740         * lib/tls.h: Likewise.
64741
64742 2007-11-04  Bruno Haible  <bruno@clisp.org>
64743
64744         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
64745
64746 2007-11-04  Bruno Haible  <bruno@clisp.org>
64747
64748         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
64749         * modules/fprintf-posix (Depends-on): Add nocrash.
64750         * modules/snprintf-posix (Depends-on): Likewise.
64751         * modules/sprintf-posix (Depends-on): Likewise.
64752         * modules/vasnprintf-posix (Depends-on): Likewise.
64753         * modules/vasprintf-posix (Depends-on): Likewise.
64754         * modules/vfprintf-posix (Depends-on): Likewise.
64755         * modules/vsnprintf-posix (Depends-on): Likewise.
64756         * modules/vsprintf-posix (Depends-on): Likewise.
64757         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
64758         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
64759         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
64760         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
64761         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
64762         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
64763         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
64764
64765 2007-11-04  Bruno Haible  <bruno@clisp.org>
64766
64767         * modules/nocrash: New file.
64768         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
64769         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
64770
64771 2007-11-04  Bruno Haible  <bruno@clisp.org>
64772
64773         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
64774         precision handling.
64775         * tests/test-vasprintf-posix.c (test_function): Likewise.
64776         * tests/test-snprintf-posix.h (test_function): Likewise.
64777         * tests/test-sprintf-posix.h (test_function): Likewise.
64778
64779         Fix *printf behaviour for large precisions on mingw and BeOS.
64780         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
64781         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
64782         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
64783         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
64784         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64785         gl_PRINTF_PRECISION and test its result. Invoke
64786         gl_PREREQ_VASNPRINTF_PRECISION.
64787         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64788         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64789         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64790         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64791         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64792         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64793         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64794         * doc/functions/fprintf.texi: Update.
64795         * doc/functions/printf.texi: Update.
64796         * doc/functions/snprintf.texi: Update.
64797         * doc/functions/sprintf.texi: Update.
64798         * doc/functions/vfprintf.texi: Update.
64799         * doc/functions/vprintf.texi: Update.
64800         * doc/functions/vsnprintf.texi: Update.
64801         * doc/functions/vsprintf.texi: Update.
64802
64803 2007-11-04  Bruno Haible  <bruno@clisp.org>
64804
64805         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
64806
64807 2007-11-04  Bruno Haible  <bruno@clisp.org>
64808
64809         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
64810         Reported by Sylvain Beucler <beuc@gnu.org>.
64811
64812 2007-11-03  Bruno Haible  <bruno@clisp.org>
64813
64814         * tests/test-fprintf-posix2.sh: New file.
64815         * tests/test-fprintf-posix2.c: New file.
64816         * modules/fprintf-posix-tests (Files): Add them.
64817         (TESTS): Add test-fprintf-posix2.sh.
64818         (configure.ac): Check for getrlimit and setrlimit.
64819         (check_PROGRAMS): Add test-fprintf-posix2.
64820
64821         * tests/test-printf-posix2.sh: New file.
64822         * tests/test-printf-posix2.c: New file.
64823         * modules/printf-posix-tests (Files): Add them.
64824         (TESTS): Add test-printf-posix2.sh.
64825         (configure.ac): Check for getrlimit and setrlimit.
64826         (check_PROGRAMS): Add test-printf-posix2.
64827
64828         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
64829         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
64830         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
64831         (decode_double): New function, copied from decode_long_double.
64832         (scale10_round_decimal_decoded): New function, extracted from
64833         scale10_round_decimal_long_double.
64834         (scale10_round_decimal_long_double): Use it.
64835         (scale10_round_decimal_double): New function.
64836         (floorlog10): New function.
64837         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
64838         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
64839         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
64840         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64841         gl_PRINTF_ENOMEM and test its result. Invoke
64842         gl_PREREQ_VASNPRINTF_ENOMEM.
64843         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64844         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64845         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64846         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64847         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64848         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64849         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64850         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
64851         * modules/snprintf-posix (Depends-on): Likewise.
64852         * modules/sprintf-posix (Depends-on): Likewise.
64853         * modules/vasnprintf-posix (Depends-on): Likewise.
64854         * modules/vasprintf-posix (Depends-on): Likewise.
64855         * modules/vfprintf-posix (Depends-on): Likewise.
64856         * modules/vsnprintf-posix (Depends-on): Likewise.
64857         * modules/vsprintf-posix (Depends-on): Likewise.
64858         * doc/functions/fprintf.texi: Update.
64859         * doc/functions/printf.texi: Update.
64860         * doc/functions/snprintf.texi: Update.
64861         * doc/functions/sprintf.texi: Update.
64862         * doc/functions/vfprintf.texi: Update.
64863         * doc/functions/vprintf.texi: Update.
64864         * doc/functions/vsnprintf.texi: Update.
64865         * doc/functions/vsprintf.texi: Update.
64866
64867 2007-11-03  Bruno Haible  <bruno@clisp.org>
64868
64869         * modules/frexp-nolibm-tests: New file.
64870
64871         * modules/frexp-nolibm: New file.
64872         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
64873
64874 2007-11-03  Bruno Haible  <bruno@clisp.org>
64875
64876         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
64877         value is C99 compliant.
64878         Needed for OSF/1 5.1.
64879
64880 2007-11-03  Bruno Haible  <bruno@clisp.org>
64881
64882         Fix out-of-memory handling of vasnprintf.
64883         * lib/printf-parse.c: Include <errno.h>.
64884         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
64885         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
64886         is already set.
64887
64888 2007-11-02  Eric Blake  <ebb9@byu.net>
64889
64890         Fix tests on cygwin.
64891         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
64892
64893 2007-11-01  Bruno Haible  <bruno@clisp.org>
64894
64895         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
64896         warning.
64897         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
64898         needed for POSIX compatibility.
64899
64900 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
64901
64902         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
64903         for compatibility with GNU.
64904
64905 2007-11-01  Bruno Haible  <bruno@clisp.org>
64906
64907         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
64908         (putenv): Renamed from rpl_putenv. Change argument type from
64909         'const char *' to 'char *'.
64910         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
64911         of defining putenv in config.h, just set REPLACE_PUTENV.
64912         * modules/putenv (Depends-on): Add stdlib.
64913         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64914         (Include): Use <stdlib.h>.
64915         * lib/stdlib.in.h (putenv): New declaration.
64916         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
64917         REPLACE_PUTENV.
64918         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
64919         REPLACE_PUTENV.
64920         Needed for MacOS X 10.5.0.
64921         Reported by Peter O'Gorman <peter@pogma.com>.
64922
64923 2007-11-01  Jim Meyering  <meyering@redhat.com>
64924
64925         Treat an empty date string exactly like "0".
64926         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
64927         if the remaining date string (to be parsed) is empty, use "0".
64928         Reported by Mischa Molhoek and discussed in this thread:
64929         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
64930
64931 2007-10-31  Bruno Haible  <bruno@clisp.org>
64932
64933         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
64934         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
64935         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
64936         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
64937         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
64938         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
64939
64940 2007-10-31  Bruno Haible  <bruno@clisp.org>
64941
64942         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
64943         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
64944         (AC_TYPE_LONG_LONG_INT): Use it.
64945         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
64946         it as well.
64947         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
64948         to m4/longlong.m4.
64949         * modules/stdint (Files): Remove m4/ulonglong.m4.
64950         * modules/strtoull (Files): Use m4/longlong.m4 instead of
64951         m4/ulonglong.m4.
64952         * modules/strtoumax (Files): Likewise.
64953
64954 2007-10-30  Bruno Haible  <bruno@clisp.org>
64955
64956         * modules/xvasprintf-posix: New file.
64957         Suggested by Eric Blake.
64958
64959 2007-10-30  Bruno Haible  <bruno@clisp.org>
64960
64961         * modules/xprintf-posix-tests: New file.
64962         * tests/test-xprintf-posix.sh: New file.
64963         * tests/test-xprintf-posix.c: New file.
64964         * tests/test-xfprintf-posix.c: New file.
64965
64966         * modules/xprintf-posix: New file.
64967
64968 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64969
64970         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
64971         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
64972         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
64973
64974 2007-10-29  Bruno Haible  <bruno@clisp.org>
64975
64976         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
64977         contain the special marker '_cv_'.
64978         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
64979         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
64980         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
64981         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
64982         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
64983         Reported by Ralf Wildenhues.
64984
64985 2007-10-29  Bruno Haible  <bruno@clisp.org>
64986
64987         * gnulib-tool (func_import): When --lgpl is not specified, set
64988         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
64989         GPLv3.
64990         Reported by Simon Josefsson.
64991
64992 2007-10-28  Bruno Haible  <bruno@clisp.org>
64993
64994         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
64995         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
64996         HAVE_DECL_ISFINITE.
64997         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
64998         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
64999         HAVE_DECL_ISFINITE.
65000
65001 2007-10-28  Bruno Haible  <bruno@clisp.org>
65002
65003         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
65004         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
65005
65006 2007-10-28  Bruno Haible  <bruno@clisp.org>
65007
65008         Fix link errors with Sun C 5.0 on Solaris 10.
65009         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
65010         function is declared but not present in the compiler's libm.
65011         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
65012         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
65013         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
65014         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
65015         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
65016         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
65017         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
65018         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
65019         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
65020         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
65021         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
65022         HAVE_DECL_FLOORL.
65023
65024 2007-10-28  Bruno Haible  <bruno@clisp.org>
65025
65026         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
65027         gl_FUNC_FLOORL. Cache the result.
65028         (gl_FUNC_FLOORL): Use it.
65029         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
65030         gl_FUNC_CEILL. Cache the result.
65031         (gl_FUNC_CEILL): Use it.
65032
65033         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
65034         gl_FUNC_FLOOR. Cache the result.
65035         (gl_FUNC_FLOOR): Use it.
65036         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
65037         gl_FUNC_CEIL. Cache the result.
65038         (gl_FUNC_CEIL): Use it.
65039
65040         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
65041         gl_FUNC_FLOORF. Cache the result.
65042         (gl_FUNC_FLOORF): Use it.
65043         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
65044         gl_FUNC_CEILF. Cache the result.
65045         (gl_FUNC_CEILF): Use it.
65046
65047 2007-10-28  Bruno Haible  <bruno@clisp.org>
65048
65049         * gnulib-tool: Allow specifying the LGPL version number through
65050         --lgpl=2 or --lgpl=3.
65051         (func_usage): Document --lgpl with argument.
65052         Handle --lgpl=... arguments.
65053         (func_import): Recognize also gl_LGPL calls with an argument. When
65054         --lgpl=2 is used and the module's license is just LGPL, report an
65055         error. Set sed_transform_lib_file according to the lgpl variable. In
65056         the generated files, use --lgpl or gl_LGPL invocations with argument,
65057         if necessary.
65058         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
65059         an LGPv2+ license.
65060         * doc/gnulib-tool.texi (Modified imports): Update explanation of
65061         gl_LGPL macro.
65062
65063 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65064             Bruno Haible  <bruno@clisp.org>
65065
65066         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
65067         (u16_uctomb_aux): Likewise.
65068         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
65069         !HAVE_INLINE.
65070         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
65071
65072 2007-10-28  Bruno Haible  <bruno@clisp.org>
65073
65074         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
65075         Invoke AM_GETTEXT_OPTION if it exists.
65076         * modules/vasprintf: Likewise.
65077         * modules/verror: Likewise.
65078         * modules/xprintf: Likewise.
65079         * modules/xvasprintf: Likewise.
65080
65081 2007-10-27  Ben Pfaff  <blp@gnu.org>
65082
65083         * lib/math.in.h: Define isfinite macro and prototypes for
65084         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
65085         implementations.
65086         * m4/math_h.m4: New substitutions for isfinite module.
65087         * lib/isfinite.c: New file.
65088         * m4/isfinite.m4: New file.
65089         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
65090         * modules/isfinite: New file.
65091         * modules/isfinite-tests: New file.
65092         * tests/tests-isfinite.c: New file.
65093         * doc/functions/isfinite.texi: Mention isfinite module.
65094         * MODULES.html.sh: Mention new module.
65095
65096 2007-10-27  Ben Pfaff  <blp@gnu.org>
65097
65098         Ralf Wildenhues reported that Tru64 4.0D declares the round
65099         functions but does not have definitions.
65100         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
65101         cannot be found in any library, set the output variable to
65102         "missing" instead of "".
65103         * m4/round.m4: Also use our substitute if we cannot find round in
65104         any library, even if it is declared.
65105         * m4/roundf.m4: Likewise for roundf.
65106         * m4/roundl.m4: Likewise for roundl.
65107         * lib/math.in.h: Undefine roundf, round, roundl before defining
65108         their replacements, to allow for hypothetical systems where these
65109         may be defined as macros but not available in libraries.
65110
65111 2007-10-27  Bruno Haible  <bruno@clisp.org>
65112
65113         * doc/gnulib.texi: Invoke @firstparagraphindent.
65114         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
65115         changes in gnulib.
65116         (Source changes): New section.
65117
65118 2007-10-26  Bruno Haible  <bruno@clisp.org>
65119
65120         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
65121         borrowed from autoconf.
65122
65123 2007-10-26  Bruno Haible  <bruno@clisp.org>
65124
65125         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
65126         strerror returned the empty string. Needed on HP-UX 11.00.
65127
65128 2007-10-24  Micah Cowan  <micah@cowan.name>
65129
65130         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
65131         * build-aux/bootstrap: Remove support for now-unnecessary option,
65132         --cvs-user, and envvars CVS_USER, CVS_RSH.
65133
65134 2007-10-24  Jim Meyering  <meyering@redhat.com>
65135
65136         Avoid diagnostics from sha1sum when there is no cached checksum.
65137         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
65138         if the po.s1 file hasn't been created yet.
65139
65140         * build-aux/bootstrap: Sync from coreutils:
65141         2007-10-24  Jim Meyering  <meyering@redhat.com>
65142         Get gnulib from the git repository, not from an obsolete cvs one.
65143         * build-aux/bootstrap: Suggestion from Micah Cowan.
65144         2007-10-04  Jim Meyering  <jim@meyering.net>
65145         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
65146         (update_po_files): Work also when there are no .po files in po/.
65147
65148 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65149
65150         * README: Append ".git" to git and cg examples.
65151         Problem reported by Benoit Sigoure.
65152
65153 2007-10-23  Micah Cowan  <micah@cowan.name>
65154
65155         * users.txt: Add wget.
65156
65157 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65158
65159         Fix linking of some unistdio tests on FreeBSD.
65160         * modules/unistdio/u16-vsnprintf-tests
65161         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
65162         * modules/unistdio/u16-vsprintf-tests
65163         (test_u16_vsnprintf1_LDADD): Likewise.
65164         * modules/unistdio/u32-vsnprintf-tests
65165         (test_u32_vsnprintf1_LDADD): Likewise.
65166         * modules/unistdio/u32-vsprintf-tests
65167         (test_u32_vsprintf1_LDADD): Likewise.
65168         * modules/unistdio/u8-vsnprintf-tests
65169         (test_u8_vsnprintf1_LDADD): Likewise.
65170         * modules/unistdio/u8-vsprintf-tests
65171         (test_u8_vsprintf1_LDADD): Likewise.
65172         * modules/unistdio/ulc-vsnprintf-tests
65173         (test_ulc_vsnprintf1_LDADD): Likewise.
65174         * modules/unistdio/ulc-vsprintf-tests
65175         (test_ulc_vsprintf1_LDADD): Likewise.
65176
65177         Fix linking of some uniconv tests on FreeBSD.
65178         * modules/uniconv/u16-conv-from-enc-tests
65179         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
65180         * modules/uniconv/u16-conv-to-enc-tests
65181         (test_u16_conv_to_enc_LDADD): Likewise.
65182         * modules/uniconv/u16-strconv-from-enc-tests
65183         (test_u16_strconv_from_enc_LDADD): Likewise.
65184         * modules/uniconv/u16-strconv-to-enc-tests
65185         (test_u16_strconv_to_enc_LDADD): Likewise.
65186         * modules/uniconv/u32-conv-from-enc-tests
65187         (test_u32_conv_from_enc_LDADD): Likewise.
65188         * modules/uniconv/u32-conv-to-enc-tests
65189         (test_u32_conv_to_enc_LDADD): Likewise.
65190         * modules/uniconv/u32-strconv-from-enc-tests
65191         (test_u32_strconv_from_enc_LDADD): Likewise.
65192         * modules/uniconv/u32-strconv-to-enc-tests
65193         (test_u32_strconv_to_enc_LDADD): Likewise.
65194         * modules/uniconv/u8-conv-from-enc-tests
65195         (test_u8_conv_from_enc_LDADD): Likewise.
65196         * modules/uniconv/u8-conv-to-enc-tests
65197         (test_u8_conv_to_enc_LDADD): Likewise.
65198         * modules/uniconv/u8-strconv-from-enc-tests
65199         (test_u8_strconv_from_enc_LDADD): Likewise.
65200         * modules/uniconv/u8-strconv-to-enc-tests
65201         (test_u8_strconv_to_enc_LDADD): Likewise.
65202
65203 2007-10-22  Bruno Haible  <bruno@clisp.org>
65204
65205         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
65206         size.
65207
65208 2007-10-22  Eric Blake  <ebb9@byu.net>
65209
65210         Tweak x*printf documentation.
65211         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
65212         variable name and comments.
65213         Suggested by Bruno Haible.
65214
65215 2007-10-22  Bruno Haible  <bruno@clisp.org>
65216
65217         * lib/acl.c (copy_acl): Fix file name in comment.
65218
65219 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
65220
65221         Fix Tru64 problem with stdbool.h.
65222         * lib/stdbool.in.h (false, true):
65223         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
65224         Don't declare as an enum in this situation; it runs afoul of Tru64.
65225         Problem reported by Steven M. Schweda in
65226         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
65227
65228 2007-10-22  Eric Blake  <ebb9@byu.net>
65229
65230         Also wrap vf?printf.
65231         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
65232         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
65233         (xvprintf, xvfprintf): New functions.
65234
65235 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65236
65237         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
65238         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
65239
65240         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
65241         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
65242
65243 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
65244
65245         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
65246         by Bruno Haible.
65247
65248 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65249
65250         * lib/getloadavg.c
65251         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
65252         Undef `sys' after including sys/table.h, for Tru64 4.0D.
65253
65254         * tests/test-i-ring.c: Work for C89.
65255
65256 2007-10-22  Bruno Haible  <bruno@clisp.org>
65257
65258         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
65259         -1u, in preprocessor expression, so that we don't test for the bug
65260         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
65261         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
65262
65263 2007-10-22  Eric Blake  <ebb9@byu.net>
65264
65265         * tests/test-yesno.sh: Silence stderr during test.
65266
65267 2007-10-22  Simon Josefsson  <simon@josefsson.org>
65268
65269         * modules/crypto/gc-camellia: New file.
65270
65271         * m4/gc-camellia.m4: New file.
65272
65273         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
65274
65275         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
65276
65277 2007-10-22  Simon Josefsson  <simon@josefsson.org>
65278
65279         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
65280         --help to stdout.  Reported by sms@antinode.org (Steven
65281         M. Schweda).
65282
65283 2007-10-22  Simon Josefsson  <simon@josefsson.org>
65284
65285         * users.txt: Fix link to libksba.
65286
65287 2007-10-21  Ben Pfaff  <blp@gnu.org>
65288
65289         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
65290         round.c roundf implementation that depends on floorf and ceilf to
65291         be tested unconditionally.
65292
65293 2007-10-21  Ben Pfaff  <blp@gnu.org>
65294
65295         * m4/check-libm-func.m4: Removed.
65296         * m4/check-math-lib.m4: New file.
65297         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
65298         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
65299         definition and lack of AC_LIBOBJ([roundf]).
65300         * m4/roundl.m4: Ditto, and similarly for roundl.
65301         * modules/round: Reference new m4 file.
65302         * modules/roundf: Ditto.
65303         * modules/roundl: Ditto.
65304         * tests/test-round2.c (main): Use ROUND instead of round.
65305         Bug report from Bruno Haible.
65306
65307 2007-10-21  Bruno Haible  <bruno@clisp.org>
65308
65309         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
65310         context.
65311
65312 2007-10-21  Bruno Haible  <bruno@clisp.org>
65313
65314         * tests/test-wcwidth.c (main): Allow negative result for some control
65315         characters.
65316
65317         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
65318         Needed on OSF/1 5.1.
65319
65320 2007-10-21  Bruno Haible  <bruno@clisp.org>
65321
65322         * tests/test-floorf1.c: Include isnanf.h.
65323         (main): Use isnanf() instead of isnan().
65324         * tests/test-ceilf1.c: Include isnanf.h.
65325         (main): Use isnanf() instead of isnan().
65326         * tests/test-truncf1.c: Include isnanf.h.
65327         (main): Use isnanf() instead of isnan().
65328         * tests/test-roundf1.c: Include isnanf.h.
65329         (main): Use isnanf() instead of isnan().
65330
65331 2007-10-21  Eric Blake  <ebb9@byu.net>
65332
65333         * users.txt: Update URL for m4.
65334
65335 2007-10-21  Bruno Haible  <bruno@clisp.org>
65336
65337         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
65338
65339 2007-10-21  Bruno Haible  <bruno@clisp.org>
65340
65341         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
65342         Git's management files if the CVS files are not present.
65343
65344 2007-10-20  Bruno Haible  <bruno@clisp.org>
65345
65346         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
65347         gcc-3.4.x.
65348
65349 2007-10-20  Ben Pfaff  <blp@gnu.org>
65350
65351         * lib/math.in.h: Declare round, roundf, roundl if we are providing
65352         implementations.
65353         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
65354         * lib/round.c: New file.
65355         * lib/roundf.c: New file.
65356         * lib/roundl.c: New file.
65357         * m4/round.m4: New file.
65358         * m4/roundf.m4: New file.
65359         * m4/roundl.m4: New file.
65360         * m4/check-libm-func-m4: New file.
65361         * modules/math: Replace round, roundf, roundl related @VARS@ in
65362         math.in.h.
65363         * modules/round: New file.
65364         * modules/round-tests: New file.
65365         * modules/roundf: New file.
65366         * modules/roundf-tests: New file.
65367         * modules/roundl: New file.
65368         * modules/roundl-tests: New file.
65369         * tests/test-round1.c: New file.
65370         * tests/test-round2.c: New file.
65371         * tests/test-roundf1.c: New file.
65372         * tests/test-roundf2.c: New file.
65373         * tests/test-roundl.c: New file.
65374         * doc/functions/round.texi: Mention round module.
65375         * doc/functions/roundf.texi: Mention roundf module.
65376         * doc/functions/roundl.texi: Mention roundl module.
65377         * MODULES.html.sh: Mention new modules.
65378         Thanks to Bruno Haible for suggestions.
65379
65380 2007-10-20  Jim Meyering  <meyering@redhat.com>
65381
65382         * lib/xprintf.c: Include <config.h> unconditionally.
65383
65384         Change xprintf's license to GPL.
65385         * modules/xprintf (License): s/LGPL/GPL/, since this module
65386         depends on modules (exit and exitfail) which are GPL.
65387         Suggestion from Bruno Haible.
65388
65389         xprintf fixes.
65390         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
65391         Use a clearer diagnostic.
65392         Patch from Bruno Haible.
65393
65394 2007-10-20  Bruno Haible  <bruno@clisp.org>
65395
65396         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
65397         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
65398         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65399
65400 2007-10-20  Bruno Haible  <bruno@clisp.org>
65401
65402         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
65403         precision in the comparison result > x - 1 or similar.
65404         * tests/test-ceilf2.c (correct_result_p): Likewise.
65405         * tests/test-truncf2.c (correct_result_p): Likewise.
65406         * tests/test-trunc2.c (correct_result_p): Likewise.
65407         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65408
65409 2007-10-20  Bruno Haible  <bruno@clisp.org>
65410
65411         * modules/ceil: New file.
65412         * m4/ceil.m4: New file.
65413         * doc/functions/ceil.texi: Mention the 'ceil' module.
65414
65415 2007-10-20  Bruno Haible  <bruno@clisp.org>
65416
65417         * modules/floor: New file.
65418         * m4/floor.m4: New file.
65419         * doc/functions/floor.texi: Mention the 'floor' module.
65420
65421 2007-10-20  Bruno Haible  <bruno@clisp.org>
65422
65423         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
65424         of %a.
65425         * modules/floorf-tests (Depends-on): Likewise.
65426         * modules/truncf-tests (Depends-on): Likewise.
65427         * modules/trunc-tests (Depends-on): Likewise.
65428         Reported by Ben Pfaff.
65429
65430 2007-10-19  Jim Meyering  <meyering@redhat.com>
65431
65432         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
65433         Don't bother testing specific errno values.  Just test ferror.
65434
65435         New module: xprintf
65436         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
65437
65438 2007-10-19  Bruno Haible  <bruno@clisp.org>
65439
65440         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
65441         syntax.
65442         * modules/javaexec (Makefile.am): Likewise.
65443         * modules/relocatable-prog (Makefile.am): Likewise.
65444         Suggested by Jim Meyering.
65445
65446 2007-10-18  Bruno Haible  <bruno@clisp.org>
65447
65448         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
65449         Reported by Jim Meyering.
65450
65451 2007-10-18  Eric Blake  <ebb9@byu.net>
65452
65453         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
65454
65455 2007-10-18  Bruno Haible  <bruno@clisp.org>
65456
65457         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
65458         the format string into writable memory. Needed in Fortify conditions.
65459
65460 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
65461             Bruno Haible  <bruno@clisp.org>
65462
65463         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
65464         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
65465         * modules/trim (Depends-on): Add mbchar.
65466         (configure.ac): Add gl_FUNC_MBRTOWC.
65467         (Makefile.am): Augment lib_SOURCES.
65468
65469 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
65470
65471         Modify glob.c to use fstatat and dirfd, to simplify it.
65472         Suggested by Eric Blake.
65473         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
65474         Don't include <stdbool.h>; not used.
65475         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
65476         (link_exists_p): Simplify implementation, since we can now assume
65477         dirfd and fstatat.
65478         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
65479
65480 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65481
65482         * gnulib-tool (func_get_dependencies): Fix sed script to
65483         match only tests.
65484
65485 2007-10-17  Bruno Haible  <bruno@clisp.org>
65486
65487         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
65488         allow locale names without encoding suffix.
65489         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
65490         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
65491
65492 2007-10-16  Bruno Haible  <bruno@clisp.org>
65493
65494         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
65495         * lib/getgroups.c (getgroups): Likewise.
65496         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
65497
65498 2007-10-16  Bruno Haible  <bruno@clisp.org>
65499
65500         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
65501         * modules/malloc-posix (License): Likewise.
65502         * modules/realloc-posix (License): Likewise.
65503         * modules/calloc-posix (License): Likewise.
65504         * modules/intprops (License): Change from GPL to LGPL, with
65505         Paul Eggert's approval.
65506
65507 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
65508
65509         Merge glibc changes into lib/glob.c.
65510
65511         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
65512         2007-10-15 04:59:03 UTC.  Here are the changes:
65513
65514         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
65515
65516         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
65517
65518         * lib/glob.c: Add some branch prediction throughout.
65519
65520         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
65521
65522         [BZ #5103]
65523         * lib/glob.c (glob): Recognize patterns starting \/.
65524
65525         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
65526
65527         [BZ #3996]
65528         * lib/glob.c (attribute_hidden): Define if not defined.
65529         (glob): Unescape dirname, filename or username when needed and not
65530         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
65531         is NULL.  Handle unescaped [ in pattern without closing ].
65532         Don't pass GLOB_CHECK down to recursive glob for directories.
65533         (__glob_pattern_type): New function.
65534         (__glob_pattern_p): Implement using __glob_pattern_type.
65535         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
65536         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
65537         Remove unreachable code.
65538
65539         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
65540
65541         * lib/glob.c (glob_in_dir): Add some comments and asserts to
65542         explain why there are no leaks.
65543
65544         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
65545
65546         [BZ #3253]
65547         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
65548         time, rather allocate increasingly bigger arrays of pointers, if
65549         possible with alloca, if too large with malloc.
65550
65551 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
65552
65553         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
65554         Problem reported by H.Merijn Brand in
65555         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
65556         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
65557         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
65558
65559 2007-10-15  Bruno Haible  <bruno@clisp.org>
65560
65561         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
65562         with explicit rpl_ prefix.
65563         * lib/fopen.c (fopen): Likewise.
65564         * lib/freopen.c (freopen): Likewise.
65565         * lib/iconv.c (iconv): Likewise.
65566         * lib/iconv_close.c (iconv_close): Likewise.
65567
65568 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65569
65570         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
65571
65572 2007-10-15  Bruno Haible  <bruno@clisp.org>
65573
65574         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
65575         <stddef.h> instead of <stdlib.h> since we only need NULL.
65576         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65577
65578 2007-10-15  Bruno Haible  <bruno@clisp.org>
65579
65580         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
65581         Replace paragraph talking about LIBOBJS.
65582         Reported by Colin Watson <cjwatson@debian.org>.
65583
65584 2007-10-15  Bruno Haible  <bruno@clisp.org>
65585
65586         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
65587         <stdlib.h> before using NULL.
65588
65589 2007-10-15  Simon Josefsson  <simon@josefsson.org>
65590
65591         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
65592         Reported by Albert Chin <china@thewrittenword.com>.
65593
65594 2007-10-14  Bruno Haible  <bruno@clisp.org>
65595
65596         * modules/iconv_open-utf-tests: New file.
65597         * tests/test-iconv-utf.c: New file.
65598
65599         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
65600         * modules/iconv_open-utf: New file.
65601         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
65602         (iconv, iconv_close): New declarations.
65603         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
65604         be defined.
65605         (iconv_open): Add special handling of conversion between UTF-8 and
65606         UTF-{16,32}{BE,LE}.
65607         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
65608         * lib/iconv_close.c: New file.
65609         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
65610         gl_FUNC_ICONV_OPEN.
65611         (gl_FUNC_ICONV_OPEN): Use it.
65612         (gl_FUNC_ICONV_OPEN_UTF): New macro.
65613         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
65614         and REPLACE_ICONV_UTF.
65615         * modules/iconv_open (Depends-on): Add c-strcase.
65616         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
65617         ICONV_CONST.
65618         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
65619
65620 2007-10-13  Albert Chin  <china@thewrittenword.com>
65621             Bruno Haible  <bruno@clisp.org>
65622
65623         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
65624         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
65625
65626 2007-10-13  Bruno Haible  <bruno@clisp.org>
65627
65628         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
65629         defined, use the ISO C99 inline semantics.
65630         * lib/argp.h (ARGP_EI): Likewise.
65631
65632 2007-10-13  Bruno Haible  <bruno@clisp.org>
65633
65634         Handle 'inline' change in gcc 4.3.0.
65635         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
65636         argp_fmtstream_write, argp_fmtstream_set_lmargin,
65637         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
65638         argp_fmtstream_point): Disable 'extern' declaration if the function
65639         definition is going to be provided inline.
65640         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
65641         semantics, not the ISO C99 inline semantics.
65642         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
65643         'extern' declaration if the function definition is going to be provided
65644         inline.
65645         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
65646         the GNU C inline semantics, not the ISO C99 inline semantics. With
65647         GCC 4.2, avoid a warning.
65648
65649 2007-10-13  Bruno Haible  <bruno@clisp.org>
65650
65651         * lib/freading.h (freading): Enable the use of __freading for
65652         glibc >= 2.7.
65653         * lib/freading.c (freading): Likewise.
65654
65655 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
65656
65657         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
65658         "warning: C99 inline functions are not supported; using GNU89".
65659
65660 2007-10-12  Bruno Haible  <bruno@clisp.org>
65661
65662         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
65663         of 2.
65664         * tests/test-ceilf2.c: New file.
65665         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
65666
65667         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
65668         * modules/ceilf-tests: Update.
65669
65670 2007-10-12  Bruno Haible  <bruno@clisp.org>
65671
65672         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
65673         of 2.
65674         * tests/test-floorf2.c: New file.
65675         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
65676
65677         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
65678         * modules/floorf-tests: Update.
65679
65680 2007-10-12  Bruno Haible  <bruno@clisp.org>
65681
65682         * tests/test-trunc2.c: New file.
65683         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
65684
65685         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
65686         * modules/trunc-tests: Update.
65687
65688 2007-10-12  Bruno Haible  <bruno@clisp.org>
65689
65690         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
65691         of 2.
65692         * tests/test-truncf2.c: New file.
65693         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
65694
65695         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
65696         * modules/truncf-tests: Update.
65697
65698 2007-10-11  Eric Blake  <ebb9@byu.net>
65699
65700         Don't claim strerror is broken on Interix.
65701         * doc/functions/strerror.texi (strerror): Known broken systems are
65702         now Solaris 8, and not Interix.
65703         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
65704         Interix on cross-compile.
65705         Reported by Martin Koeppe in
65706         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
65707
65708 2007-10-11  Bruno Haible  <bruno@clisp.org>
65709
65710         * modules/i-ring-tests: New file.
65711         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
65712         instead of assert.
65713
65714 2007-10-11  Bruno Haible  <bruno@clisp.org>
65715
65716         * modules/filenamecat-tests: New file.
65717         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
65718         * lib/filenamecat.c: Remove test code.
65719
65720 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
65721
65722         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
65723
65724         * lib/strerror.c: Include <string.h> always, to test interface,
65725         and to remove the need for the dummy.
65726         Include intprops.h to compute width instead of doing it ourselves
65727         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
65728         (strerror): Define it to return NULL if there's no system strerror.
65729         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
65730         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
65731         ancient pre-strerror Unix systems well any more.  Saying "unknown
65732         system error" is enough.
65733         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
65734         simpler strerror.c implementation.
65735         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
65736         Simplify the tests to reflect the simpler strerror implementation.
65737         * modules/strerror (Depends-on): Add intprops.
65738
65739 2007-10-09  Eric Blake  <ebb9@byu.net>
65740
65741         Silence test-fpending.
65742         * modules/fpending-tests (Files): Add wrapper script.
65743         * tests/test-fpending.sh: New file.
65744
65745 2007-10-09  Bruno Haible  <bruno@clisp.org>
65746
65747         * MODULES.html.sh (func_module): Don't create a hyperlink for
65748         function names like 'printf_frexp'.
65749         (Misc): Add crc, memxor.
65750         (Characteristics of floating types): New section.
65751         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
65752         isnanf-nolibm, signbit, trunc, truncf, truncl.
65753         (Enhancements for ISO C 99 functions): New subsection Input/output.
65754         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
65755         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
65756         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
65757         (Compatibility checks for POSIX:2001 functions): Add clock-time.
65758         (Enhancements for POSIX:2001 functions): Add chdir-long.
65759         (File system functions): Add areadlink, chdir-safer, read-file.
65760         Remove cycle-check.
65761         (File system as inode set): New section.
65762         (Date and time): Add gethrxtime.
65763         (Multithreading): Add openmp.
65764         (Internationalization functions): Add localename.
65765         (Unicode string functions): Add unistr/u*-mbsnlen.
65766         (Support for maintaining and releasing projects): Add git-version-gen.
65767         (Lone files): Remove directories.
65768
65769 2007-10-08  Ben Pfaff  <blp@gnu.org>
65770
65771         * lib/xmalloca.h: Fix typo in comment.
65772
65773 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
65774
65775         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
65776         when avoiding problems with integer overflow.  Use a portable test
65777         instead.
65778
65779 2007-10-08  Simon Josefsson  <simon@josefsson.org>
65780
65781         * modules/dummy (License): Change to LGPLv2+.
65782         * modules/float (License): Likewise
65783         * modules/realloc (License): Likewise
65784         * modules/stdlib (License): Likewise
65785
65786 2007-10-07  Bruno Haible  <bruno@clisp.org>
65787
65788         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
65789         * floor.c (TWO_MANT_DIG): Likewise.
65790         * ceil.c (TWO_MANT_DIG): Likewise.
65791         Reported by Ben Pfaff.
65792
65793 2007-10-07  Bruno Haible  <bruno@clisp.org>
65794
65795         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
65796         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
65797         * lib/frexp.c (FUNC): Likewise.
65798         * lib/printf-frexp.h (printf_frexp): Likewise.
65799         * lib/printf-frexpl.h (printf_frexpl): Likewise.
65800         * lib/printf-frexp.c (FUNC): Likewise.
65801         Suggested by Jim Meyering.
65802
65803 2007-10-07  Jim Meyering  <meyering@redhat.com>
65804
65805         Make xnanosleep's integer overflow test more robust.
65806         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
65807         so that gcc-4.3.0 doesn't optimize away this test for overflow.
65808
65809 2007-10-07  Bruno Haible  <bruno@clisp.org>
65810
65811         * NEWS: Mention the license change.
65812
65813         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
65814         abbreviations in the modules files.
65815
65816         Change copyright notice from GPLv2+ to GPLv3+.
65817         * README: Change copyright notice.
65818         * MODULES.html.sh: Likewise.
65819         * build-aux/bootstrap.conf: Likewise.
65820         * build-aux/config.libpath: Likewise.
65821         * build-aux/csharpcomp.sh.in: Likewise.
65822         * build-aux/csharpexec.sh.in: Likewise.
65823         * build-aux/install-reloc: Likewise.
65824         * build-aux/javacomp.sh.in: Likewise.
65825         * build-aux/javaexec.sh.in: Likewise.
65826         * build-aux/ldd.sh.in: Likewise.
65827         * build-aux/reloc-ldflags: Likewise.
65828         * build-aux/relocatable.sh.in: Likewise.
65829         * build-aux/x-to-1.in: Likewise.
65830         * check-module: Likewise.
65831         * config/srclistvars.sh: Likewise.
65832         * gnulib-tool: Likewise.
65833         * lib/acl-internal.h: Likewise.
65834         * lib/acl.c: Likewise.
65835         * lib/acl.h: Likewise.
65836         * lib/acl_entries.c: Likewise.
65837         * lib/areadlink-with-size.c: Likewise.
65838         * lib/areadlink.c: Likewise.
65839         * lib/areadlink.h: Likewise.
65840         * lib/argmatch.c: Likewise.
65841         * lib/argmatch.h: Likewise.
65842         * lib/argp-ba.c: Likewise.
65843         * lib/argp-eexst.c: Likewise.
65844         * lib/argp-fmtstream.c: Likewise.
65845         * lib/argp-fmtstream.h: Likewise.
65846         * lib/argp-fs-xinl.c: Likewise.
65847         * lib/argp-help.c: Likewise.
65848         * lib/argp-namefrob.h: Likewise.
65849         * lib/argp-parse.c: Likewise.
65850         * lib/argp-pin.c: Likewise.
65851         * lib/argp-pv.c: Likewise.
65852         * lib/argp-pvh.c: Likewise.
65853         * lib/argp-xinl.c: Likewise.
65854         * lib/argp.h: Likewise.
65855         * lib/at-func.c: Likewise.
65856         * lib/atanl.c: Likewise.
65857         * lib/backupfile.c: Likewise.
65858         * lib/backupfile.h: Likewise.
65859         * lib/basename.c: Likewise.
65860         * lib/binary-io.h: Likewise.
65861         * lib/byteswap.in.h: Likewise.
65862         * lib/c-stack.c: Likewise.
65863         * lib/c-stack.h: Likewise.
65864         * lib/c-strcasestr.c: Likewise.
65865         * lib/c-strcasestr.h: Likewise.
65866         * lib/c-strstr.c: Likewise.
65867         * lib/c-strstr.h: Likewise.
65868         * lib/c-strtod.c: Likewise.
65869         * lib/calloc.c: Likewise.
65870         * lib/canon-host.c: Likewise.
65871         * lib/canon-host.h: Likewise.
65872         * lib/canonicalize-lgpl.c: Likewise.
65873         * lib/canonicalize.c: Likewise.
65874         * lib/canonicalize.h: Likewise.
65875         * lib/ceil.c: Likewise.
65876         * lib/ceilf.c: Likewise.
65877         * lib/ceill.c: Likewise.
65878         * lib/chdir-long.c: Likewise.
65879         * lib/chdir-long.h: Likewise.
65880         * lib/chdir-safer.c: Likewise.
65881         * lib/chdir-safer.h: Likewise.
65882         * lib/chown.c: Likewise.
65883         * lib/classpath.c: Likewise.
65884         * lib/classpath.h: Likewise.
65885         * lib/clean-temp.c: Likewise.
65886         * lib/clean-temp.h: Likewise.
65887         * lib/cloexec.c: Likewise.
65888         * lib/close-stream.c: Likewise.
65889         * lib/closein.c: Likewise.
65890         * lib/closein.h: Likewise.
65891         * lib/closeout.c: Likewise.
65892         * lib/closeout.h: Likewise.
65893         * lib/concat-filename.c: Likewise.
65894         * lib/copy-file.c: Likewise.
65895         * lib/copy-file.h: Likewise.
65896         * lib/count-one-bits.h: Likewise.
65897         * lib/crc.c: Likewise.
65898         * lib/crc.h: Likewise.
65899         * lib/creat-safer.c: Likewise.
65900         * lib/csharpcomp.c: Likewise.
65901         * lib/csharpcomp.h: Likewise.
65902         * lib/csharpexec.c: Likewise.
65903         * lib/csharpexec.h: Likewise.
65904         * lib/cycle-check.c: Likewise.
65905         * lib/cycle-check.h: Likewise.
65906         * lib/diacrit.c: Likewise.
65907         * lib/diacrit.h: Likewise.
65908         * lib/diffseq.h: Likewise.
65909         * lib/dirchownmod.c: Likewise.
65910         * lib/dirent.in.h: Likewise.
65911         * lib/dirfd.c: Likewise.
65912         * lib/dirfd.h: Likewise.
65913         * lib/dirname.c: Likewise.
65914         * lib/dirname.h: Likewise.
65915         * lib/dummy.c: Likewise.
65916         * lib/dup-safer.c: Likewise.
65917         * lib/dup2.c: Likewise.
65918         * lib/eealloc.h: Likewise.
65919         * lib/error.c: Likewise.
65920         * lib/error.h: Likewise.
65921         * lib/euidaccess.c: Likewise.
65922         * lib/exclude.c: Likewise.
65923         * lib/exclude.h: Likewise.
65924         * lib/execute.c: Likewise.
65925         * lib/execute.h: Likewise.
65926         * lib/exitfail.c: Likewise.
65927         * lib/exitfail.h: Likewise.
65928         * lib/expl.c: Likewise.
65929         * lib/fatal-signal.c: Likewise.
65930         * lib/fatal-signal.h: Likewise.
65931         * lib/fbufmode.c: Likewise.
65932         * lib/fbufmode.h: Likewise.
65933         * lib/fchdir.c: Likewise.
65934         * lib/fchmodat.c: Likewise.
65935         * lib/fchownat.c: Likewise.
65936         * lib/fcntl--.h: Likewise.
65937         * lib/fcntl-safer.h: Likewise.
65938         * lib/fcntl.in.h: Likewise.
65939         * lib/fd-safer.c: Likewise.
65940         * lib/fflush.c: Likewise.
65941         * lib/file-has-acl.c: Likewise.
65942         * lib/file-set.c: Likewise.
65943         * lib/file-type.c: Likewise.
65944         * lib/file-type.h: Likewise.
65945         * lib/fileblocks.c: Likewise.
65946         * lib/filemode.c: Likewise.
65947         * lib/filemode.h: Likewise.
65948         * lib/filename.h: Likewise.
65949         * lib/filenamecat.c: Likewise.
65950         * lib/filenamecat.h: Likewise.
65951         * lib/findprog.c: Likewise.
65952         * lib/findprog.h: Likewise.
65953         * lib/float.in.h: Likewise.
65954         * lib/floor.c: Likewise.
65955         * lib/floorf.c: Likewise.
65956         * lib/floorl.c: Likewise.
65957         * lib/fopen-safer.c: Likewise.
65958         * lib/fopen.c: Likewise.
65959         * lib/fpending.c: Likewise.
65960         * lib/fpending.h: Likewise.
65961         * lib/fprintf.c: Likewise.
65962         * lib/fprintftime.h: Likewise.
65963         * lib/fpucw.h: Likewise.
65964         * lib/fpurge.c: Likewise.
65965         * lib/fpurge.h: Likewise.
65966         * lib/freadable.c: Likewise.
65967         * lib/freadable.h: Likewise.
65968         * lib/freadahead.c: Likewise.
65969         * lib/freadahead.h: Likewise.
65970         * lib/freading.c: Likewise.
65971         * lib/freading.h: Likewise.
65972         * lib/free.c: Likewise.
65973         * lib/freopen.c: Likewise.
65974         * lib/frexp.c: Likewise.
65975         * lib/frexpl.c: Likewise.
65976         * lib/fseek.c: Likewise.
65977         * lib/fseterr.c: Likewise.
65978         * lib/fseterr.h: Likewise.
65979         * lib/fstatat.c: Likewise.
65980         * lib/fstrcmp.c: Likewise.
65981         * lib/fstrcmp.h: Likewise.
65982         * lib/fsusage.c: Likewise.
65983         * lib/fsusage.h: Likewise.
65984         * lib/ftell.c: Likewise.
65985         * lib/ftello.c: Likewise.
65986         * lib/fts-cycle.c: Likewise.
65987         * lib/fts.c: Likewise.
65988         * lib/fts_.h: Likewise.
65989         * lib/full-read.c: Likewise.
65990         * lib/full-read.h: Likewise.
65991         * lib/full-write.c: Likewise.
65992         * lib/full-write.h: Likewise.
65993         * lib/fwritable.c: Likewise.
65994         * lib/fwritable.h: Likewise.
65995         * lib/fwriteerror.c: Likewise.
65996         * lib/fwriteerror.h: Likewise.
65997         * lib/fwriting.c: Likewise.
65998         * lib/fwriting.h: Likewise.
65999         * lib/gcd.c: Likewise.
66000         * lib/gcd.h: Likewise.
66001         * lib/getcwd.c: Likewise.
66002         * lib/getdate.h: Likewise.
66003         * lib/getdate.y: Likewise.
66004         * lib/getdomainname.c: Likewise.
66005         * lib/getdomainname.h: Likewise.
66006         * lib/getgroups.c: Likewise.
66007         * lib/gethostname.c: Likewise.
66008         * lib/gethrxtime.c: Likewise.
66009         * lib/gethrxtime.h: Likewise.
66010         * lib/getloadavg.c: Likewise.
66011         * lib/getndelim2.c: Likewise.
66012         * lib/getndelim2.h: Likewise.
66013         * lib/getnline.c: Likewise.
66014         * lib/getnline.h: Likewise.
66015         * lib/getopt.c: Likewise.
66016         * lib/getopt.in.h: Likewise.
66017         * lib/getopt1.c: Likewise.
66018         * lib/getopt_int.h: Likewise.
66019         * lib/getpagesize.h: Likewise.
66020         * lib/getsubopt.c: Likewise.
66021         * lib/gettime.c: Likewise.
66022         * lib/getugroups.c: Likewise.
66023         * lib/getugroups.h: Likewise.
66024         * lib/getusershell.c: Likewise.
66025         * lib/gl_anyavltree_list1.h: Likewise.
66026         * lib/gl_anyavltree_list2.h: Likewise.
66027         * lib/gl_anyhash_list1.h: Likewise.
66028         * lib/gl_anyhash_list2.h: Likewise.
66029         * lib/gl_anylinked_list1.h: Likewise.
66030         * lib/gl_anylinked_list2.h: Likewise.
66031         * lib/gl_anyrbtree_list1.h: Likewise.
66032         * lib/gl_anyrbtree_list2.h: Likewise.
66033         * lib/gl_anytree_list1.h: Likewise.
66034         * lib/gl_anytree_list2.h: Likewise.
66035         * lib/gl_anytree_oset.h: Likewise.
66036         * lib/gl_anytreehash_list1.h: Likewise.
66037         * lib/gl_anytreehash_list2.h: Likewise.
66038         * lib/gl_array_list.c: Likewise.
66039         * lib/gl_array_list.h: Likewise.
66040         * lib/gl_array_oset.c: Likewise.
66041         * lib/gl_array_oset.h: Likewise.
66042         * lib/gl_avltree_list.c: Likewise.
66043         * lib/gl_avltree_list.h: Likewise.
66044         * lib/gl_avltree_oset.c: Likewise.
66045         * lib/gl_avltree_oset.h: Likewise.
66046         * lib/gl_avltreehash_list.c: Likewise.
66047         * lib/gl_avltreehash_list.h: Likewise.
66048         * lib/gl_carray_list.c: Likewise.
66049         * lib/gl_carray_list.h: Likewise.
66050         * lib/gl_linked_list.c: Likewise.
66051         * lib/gl_linked_list.h: Likewise.
66052         * lib/gl_linkedhash_list.c: Likewise.
66053         * lib/gl_linkedhash_list.h: Likewise.
66054         * lib/gl_list.c: Likewise.
66055         * lib/gl_list.h: Likewise.
66056         * lib/gl_oset.c: Likewise.
66057         * lib/gl_oset.h: Likewise.
66058         * lib/gl_rbtree_list.c: Likewise.
66059         * lib/gl_rbtree_list.h: Likewise.
66060         * lib/gl_rbtree_oset.c: Likewise.
66061         * lib/gl_rbtree_oset.h: Likewise.
66062         * lib/gl_rbtreehash_list.c: Likewise.
66063         * lib/gl_rbtreehash_list.h: Likewise.
66064         * lib/gl_sublist.c: Likewise.
66065         * lib/gl_sublist.h: Likewise.
66066         * lib/group-member.c: Likewise.
66067         * lib/group-member.h: Likewise.
66068         * lib/hard-locale.c: Likewise.
66069         * lib/hard-locale.h: Likewise.
66070         * lib/hash-pjw.c: Likewise.
66071         * lib/hash-pjw.h: Likewise.
66072         * lib/hash-triple.c: Likewise.
66073         * lib/hash.c: Likewise.
66074         * lib/hash.h: Likewise.
66075         * lib/human.c: Likewise.
66076         * lib/human.h: Likewise.
66077         * lib/i-ring.c: Likewise.
66078         * lib/i-ring.h: Likewise.
66079         * lib/idcache.c: Likewise.
66080         * lib/imaxabs.c: Likewise.
66081         * lib/imaxdiv.c: Likewise.
66082         * lib/inet_pton.c: Likewise.
66083         * lib/inet_pton.h: Likewise.
66084         * lib/intprops.h: Likewise.
66085         * lib/inttostr.c: Likewise.
66086         * lib/inttostr.h: Likewise.
66087         * lib/inttypes.in.h: Likewise.
66088         * lib/isapipe.c: Likewise.
66089         * lib/isdir.c: Likewise.
66090         * lib/isnan.c: Likewise.
66091         * lib/isnan.h: Likewise.
66092         * lib/isnanf.c: Likewise.
66093         * lib/isnanf.h: Likewise.
66094         * lib/isnanl-nolibm.h: Likewise.
66095         * lib/isnanl.c: Likewise.
66096         * lib/isnanl.h: Likewise.
66097         * lib/javacomp.c: Likewise.
66098         * lib/javacomp.h: Likewise.
66099         * lib/javaexec.c: Likewise.
66100         * lib/javaexec.h: Likewise.
66101         * lib/javaversion.c: Likewise.
66102         * lib/javaversion.h: Likewise.
66103         * lib/javaversion.java: Likewise.
66104         * lib/lbrkprop.h: Likewise.
66105         * lib/lchmod.h: Likewise.
66106         * lib/lchown.c: Likewise.
66107         * lib/ldexpl.c: Likewise.
66108         * lib/linebreak.c: Likewise.
66109         * lib/linebreak.h: Likewise.
66110         * lib/linebuffer.c: Likewise.
66111         * lib/linebuffer.h: Likewise.
66112         * lib/locale.in.h: Likewise.
66113         * lib/logl.c: Likewise.
66114         * lib/long-options.c: Likewise.
66115         * lib/long-options.h: Likewise.
66116         * lib/lstat.c: Likewise.
66117         * lib/lstat.h: Likewise.
66118         * lib/math.in.h: Likewise.
66119         * lib/mbchar.c: Likewise.
66120         * lib/mbchar.h: Likewise.
66121         * lib/mbfile.h: Likewise.
66122         * lib/mbiter.h: Likewise.
66123         * lib/mbscasecmp.c: Likewise.
66124         * lib/mbscasestr.c: Likewise.
66125         * lib/mbschr.c: Likewise.
66126         * lib/mbscspn.c: Likewise.
66127         * lib/mbslen.c: Likewise.
66128         * lib/mbsncasecmp.c: Likewise.
66129         * lib/mbsnlen.c: Likewise.
66130         * lib/mbspbrk.c: Likewise.
66131         * lib/mbspcasecmp.c: Likewise.
66132         * lib/mbsrchr.c: Likewise.
66133         * lib/mbssep.c: Likewise.
66134         * lib/mbsspn.c: Likewise.
66135         * lib/mbsstr.c: Likewise.
66136         * lib/mbstok_r.c: Likewise.
66137         * lib/mbswidth.c: Likewise.
66138         * lib/mbswidth.h: Likewise.
66139         * lib/mbuiter.h: Likewise.
66140         * lib/memcasecmp.c: Likewise.
66141         * lib/memcasecmp.h: Likewise.
66142         * lib/memchr.c: Likewise.
66143         * lib/memcmp.c: Likewise.
66144         * lib/memcoll.c: Likewise.
66145         * lib/memcoll.h: Likewise.
66146         * lib/memcpy.c: Likewise.
66147         * lib/memrchr.c: Likewise.
66148         * lib/mkancesdirs.c: Likewise.
66149         * lib/mkdir-p.c: Likewise.
66150         * lib/mkdir-p.h: Likewise.
66151         * lib/mkdir.c: Likewise.
66152         * lib/mkdirat.c: Likewise.
66153         * lib/mkdtemp.c: Likewise.
66154         * lib/mkstemp-safer.c: Likewise.
66155         * lib/mkstemp.c: Likewise.
66156         * lib/modechange.c: Likewise.
66157         * lib/modechange.h: Likewise.
66158         * lib/mountlist.c: Likewise.
66159         * lib/mountlist.h: Likewise.
66160         * lib/mpsort.c: Likewise.
66161         * lib/nanosleep.c: Likewise.
66162         * lib/obstack.c: Likewise.
66163         * lib/obstack.h: Likewise.
66164         * lib/open-safer.c: Likewise.
66165         * lib/open.c: Likewise.
66166         * lib/openat-die.c: Likewise.
66167         * lib/openat-priv.h: Likewise.
66168         * lib/openat-proc.c: Likewise.
66169         * lib/openat.c: Likewise.
66170         * lib/openat.h: Likewise.
66171         * lib/pagealign_alloc.c: Likewise.
66172         * lib/pagealign_alloc.h: Likewise.
66173         * lib/physmem.c: Likewise.
66174         * lib/physmem.h: Likewise.
66175         * lib/pipe-safer.c: Likewise.
66176         * lib/pipe.c: Likewise.
66177         * lib/pipe.h: Likewise.
66178         * lib/posixtm.c: Likewise.
66179         * lib/posixtm.h: Likewise.
66180         * lib/posixver.c: Likewise.
66181         * lib/printf-frexp.c: Likewise.
66182         * lib/printf-frexp.h: Likewise.
66183         * lib/printf-frexpl.c: Likewise.
66184         * lib/printf-frexpl.h: Likewise.
66185         * lib/printf.c: Likewise.
66186         * lib/progname.c: Likewise.
66187         * lib/progname.h: Likewise.
66188         * lib/progreloc.c: Likewise.
66189         * lib/putenv.c: Likewise.
66190         * lib/quote.c: Likewise.
66191         * lib/quote.h: Likewise.
66192         * lib/quotearg.c: Likewise.
66193         * lib/quotearg.h: Likewise.
66194         * lib/raise.c: Likewise.
66195         * lib/readline.c: Likewise.
66196         * lib/readline.h: Likewise.
66197         * lib/readlink.c: Likewise.
66198         * lib/readtokens.c: Likewise.
66199         * lib/readtokens.h: Likewise.
66200         * lib/readtokens0.c: Likewise.
66201         * lib/readtokens0.h: Likewise.
66202         * lib/readutmp.c: Likewise.
66203         * lib/readutmp.h: Likewise.
66204         * lib/realloc.c: Likewise.
66205         * lib/relocwrapper.c: Likewise.
66206         * lib/rename-dest-slash.c: Likewise.
66207         * lib/rename.c: Likewise.
66208         * lib/rmdir.c: Likewise.
66209         * lib/rpmatch.c: Likewise.
66210         * lib/safe-read.c: Likewise.
66211         * lib/safe-read.h: Likewise.
66212         * lib/safe-write.c: Likewise.
66213         * lib/safe-write.h: Likewise.
66214         * lib/same-inode.h: Likewise.
66215         * lib/same.c: Likewise.
66216         * lib/same.h: Likewise.
66217         * lib/save-cwd.c: Likewise.
66218         * lib/save-cwd.h: Likewise.
66219         * lib/savedir.c: Likewise.
66220         * lib/savedir.h: Likewise.
66221         * lib/savewd.c: Likewise.
66222         * lib/savewd.h: Likewise.
66223         * lib/search.in.h: Likewise.
66224         * lib/setenv.c: Likewise.
66225         * lib/setenv.h: Likewise.
66226         * lib/settime.c: Likewise.
66227         * lib/sh-quote.c: Likewise.
66228         * lib/sh-quote.h: Likewise.
66229         * lib/sig2str.c: Likewise.
66230         * lib/sig2str.h: Likewise.
66231         * lib/signal.in.h: Likewise.
66232         * lib/signbitd.c: Likewise.
66233         * lib/signbitf.c: Likewise.
66234         * lib/signbitl.c: Likewise.
66235         * lib/sigprocmask.c: Likewise.
66236         * lib/sincosl.c: Likewise.
66237         * lib/sleep.c: Likewise.
66238         * lib/sprintf.c: Likewise.
66239         * lib/sqrtl.c: Likewise.
66240         * lib/stat-time.h: Likewise.
66241         * lib/stdio--.h: Likewise.
66242         * lib/stdio-safer.h: Likewise.
66243         * lib/stdlib--.h: Likewise.
66244         * lib/stdlib-safer.h: Likewise.
66245         * lib/stdlib.in.h: Likewise.
66246         * lib/stpcpy.c: Likewise.
66247         * lib/stpncpy.c: Likewise.
66248         * lib/strchrnul.c: Likewise.
66249         * lib/strcspn.c: Likewise.
66250         * lib/strerror.c: Likewise.
66251         * lib/strftime.c: Likewise.
66252         * lib/strftime.h: Likewise.
66253         * lib/striconveh.c: Likewise.
66254         * lib/striconveh.h: Likewise.
66255         * lib/striconveha.c: Likewise.
66256         * lib/striconveha.h: Likewise.
66257         * lib/stripslash.c: Likewise.
66258         * lib/strnlen1.c: Likewise.
66259         * lib/strnlen1.h: Likewise.
66260         * lib/strtod.c: Likewise.
66261         * lib/strtoimax.c: Likewise.
66262         * lib/strtok_r.c: Likewise.
66263         * lib/strtol.c: Likewise.
66264         * lib/strtoll.c: Likewise.
66265         * lib/strtoul.c: Likewise.
66266         * lib/strtoull.c: Likewise.
66267         * lib/sysexits.in.h: Likewise.
66268         * lib/tempname.c: Likewise.
66269         * lib/tempname.h: Likewise.
66270         * lib/timespec.h: Likewise.
66271         * lib/tls.c: Likewise.
66272         * lib/tls.h: Likewise.
66273         * lib/tmpdir.c: Likewise.
66274         * lib/tmpdir.h: Likewise.
66275         * lib/tmpfile-safer.c: Likewise.
66276         * lib/tmpfile.c: Likewise.
66277         * lib/trigl.c: Likewise.
66278         * lib/trigl.h: Likewise.
66279         * lib/trim.c: Likewise.
66280         * lib/trim.h: Likewise.
66281         * lib/trunc.c: Likewise.
66282         * lib/truncf.c: Likewise.
66283         * lib/truncl.c: Likewise.
66284         * lib/tsearch.c: Likewise.
66285         * lib/unicodeio.c: Likewise.
66286         * lib/unicodeio.h: Likewise.
66287         * lib/unistd--.h: Likewise.
66288         * lib/unistd-safer.h: Likewise.
66289         * lib/unistdio/ulc-fprintf.c: Likewise.
66290         * lib/unistdio/ulc-vfprintf.c: Likewise.
66291         * lib/unlinkdir.c: Likewise.
66292         * lib/unlinkdir.h: Likewise.
66293         * lib/unlocked-io.h: Likewise.
66294         * lib/unsetenv.c: Likewise.
66295         * lib/userspec.c: Likewise.
66296         * lib/utime.c: Likewise.
66297         * lib/utimecmp.c: Likewise.
66298         * lib/utimecmp.h: Likewise.
66299         * lib/utimens.c: Likewise.
66300         * lib/verify.h: Likewise.
66301         * lib/verror.c: Likewise.
66302         * lib/verror.h: Likewise.
66303         * lib/version-etc-fsf.c: Likewise.
66304         * lib/version-etc.c: Likewise.
66305         * lib/version-etc.h: Likewise.
66306         * lib/vfprintf.c: Likewise.
66307         * lib/vprintf.c: Likewise.
66308         * lib/vsprintf.c: Likewise.
66309         * lib/w32spawn.h: Likewise.
66310         * lib/wait-process.c: Likewise.
66311         * lib/wait-process.h: Likewise.
66312         * lib/wcwidth.c: Likewise.
66313         * lib/write-any-file.c: Likewise.
66314         * lib/xalloc-die.c: Likewise.
66315         * lib/xalloc.h: Likewise.
66316         * lib/xasprintf.c: Likewise.
66317         * lib/xgetcwd.c: Likewise.
66318         * lib/xgetcwd.h: Likewise.
66319         * lib/xgetdomainname.c: Likewise.
66320         * lib/xgetdomainname.h: Likewise.
66321         * lib/xgethostname.c: Likewise.
66322         * lib/xmalloc.c: Likewise.
66323         * lib/xmalloca.c: Likewise.
66324         * lib/xmalloca.h: Likewise.
66325         * lib/xmemcoll.c: Likewise.
66326         * lib/xnanosleep.c: Likewise.
66327         * lib/xreadlink.c: Likewise.
66328         * lib/xreadlink.h: Likewise.
66329         * lib/xsetenv.c: Likewise.
66330         * lib/xsetenv.h: Likewise.
66331         * lib/xstriconv.c: Likewise.
66332         * lib/xstriconv.h: Likewise.
66333         * lib/xstrndup.c: Likewise.
66334         * lib/xstrndup.h: Likewise.
66335         * lib/xstrtod.c: Likewise.
66336         * lib/xstrtod.h: Likewise.
66337         * lib/xstrtol-error.c: Likewise.
66338         * lib/xstrtol.c: Likewise.
66339         * lib/xstrtol.h: Likewise.
66340         * lib/xtime.h: Likewise.
66341         * lib/xvasprintf.c: Likewise.
66342         * lib/xvasprintf.h: Likewise.
66343         * lib/yesno.c: Likewise.
66344         * lib/yesno.h: Likewise.
66345         * posix-modules: Likewise.
66346         * tests/test-alloca-opt.c: Likewise.
66347         * tests/test-arcfour.c: Likewise.
66348         * tests/test-arctwo.c: Likewise.
66349         * tests/test-argmatch.c: Likewise.
66350         * tests/test-argp-2.sh: Likewise.
66351         * tests/test-argp.c: Likewise.
66352         * tests/test-arpa_inet.c: Likewise.
66353         * tests/test-array_list.c: Likewise.
66354         * tests/test-array_oset.c: Likewise.
66355         * tests/test-atexit.c: Likewise.
66356         * tests/test-avltree_list.c: Likewise.
66357         * tests/test-avltree_oset.c: Likewise.
66358         * tests/test-avltreehash_list.c: Likewise.
66359         * tests/test-base64.c: Likewise.
66360         * tests/test-binary-io.c: Likewise.
66361         * tests/test-byteswap.c: Likewise.
66362         * tests/test-c-ctype.c: Likewise.
66363         * tests/test-c-strcasecmp.c: Likewise.
66364         * tests/test-c-strcasestr.c: Likewise.
66365         * tests/test-c-strncasecmp.c: Likewise.
66366         * tests/test-c-strstr.c: Likewise.
66367         * tests/test-canonicalize-lgpl.c: Likewise.
66368         * tests/test-canonicalize.c: Likewise.
66369         * tests/test-carray_list.c: Likewise.
66370         * tests/test-ceilf.c: Likewise.
66371         * tests/test-ceill.c: Likewise.
66372         * tests/test-count-one-bits.c: Likewise.
66373         * tests/test-crc.c: Likewise.
66374         * tests/test-dirname.c: Likewise.
66375         * tests/test-fbufmode.c: Likewise.
66376         * tests/test-fcntl.c: Likewise.
66377         * tests/test-fflush.c: Likewise.
66378         * tests/test-floorf.c: Likewise.
66379         * tests/test-floorl.c: Likewise.
66380         * tests/test-fopen.c: Likewise.
66381         * tests/test-fprintf-posix.c: Likewise.
66382         * tests/test-fprintf-posix.h: Likewise.
66383         * tests/test-fpurge.c: Likewise.
66384         * tests/test-freadable.c: Likewise.
66385         * tests/test-freadahead.c: Likewise.
66386         * tests/test-freading.c: Likewise.
66387         * tests/test-freopen.c: Likewise.
66388         * tests/test-frexp.c: Likewise.
66389         * tests/test-frexpl.c: Likewise.
66390         * tests/test-fseek.c: Likewise.
66391         * tests/test-fseeko.c: Likewise.
66392         * tests/test-fseterr.c: Likewise.
66393         * tests/test-fstrcmp.c: Likewise.
66394         * tests/test-ftell.c: Likewise.
66395         * tests/test-ftello.c: Likewise.
66396         * tests/test-fwritable.c: Likewise.
66397         * tests/test-fwriting.c: Likewise.
66398         * tests/test-getaddrinfo.c: Likewise.
66399         * tests/test-getpass.c: Likewise.
66400         * tests/test-gettimeofday.c: Likewise.
66401         * tests/test-hmac-md5.c: Likewise.
66402         * tests/test-hmac-sha1.c: Likewise.
66403         * tests/test-iconv.c: Likewise.
66404         * tests/test-iconvme.c: Likewise.
66405         * tests/test-inttypes.c: Likewise.
66406         * tests/test-isnan.c: Likewise.
66407         * tests/test-isnanf.c: Likewise.
66408         * tests/test-isnanl-nolibm.c: Likewise.
66409         * tests/test-isnanl.c: Likewise.
66410         * tests/test-isnanl.h: Likewise.
66411         * tests/test-ldexpl.c: Likewise.
66412         * tests/test-linked_list.c: Likewise.
66413         * tests/test-linkedhash_list.c: Likewise.
66414         * tests/test-locale.c: Likewise.
66415         * tests/test-localename.c: Likewise.
66416         * tests/test-lock.c: Likewise.
66417         * tests/test-lseek.c: Likewise.
66418         * tests/test-malloca.c: Likewise.
66419         * tests/test-math.c: Likewise.
66420         * tests/test-mbscasecmp.c: Likewise.
66421         * tests/test-mbscasestr1.c: Likewise.
66422         * tests/test-mbscasestr2.c: Likewise.
66423         * tests/test-mbscasestr3.c: Likewise.
66424         * tests/test-mbscasestr4.c: Likewise.
66425         * tests/test-mbschr.c: Likewise.
66426         * tests/test-mbscspn.c: Likewise.
66427         * tests/test-mbsncasecmp.c: Likewise.
66428         * tests/test-mbspbrk.c: Likewise.
66429         * tests/test-mbspcasecmp.c: Likewise.
66430         * tests/test-mbsrchr.c: Likewise.
66431         * tests/test-mbsspn.c: Likewise.
66432         * tests/test-mbsstr1.c: Likewise.
66433         * tests/test-mbsstr2.c: Likewise.
66434         * tests/test-mbsstr3.c: Likewise.
66435         * tests/test-md5.c: Likewise.
66436         * tests/test-memmem.c: Likewise.
66437         * tests/test-netinet_in.c: Likewise.
66438         * tests/test-open.c: Likewise.
66439         * tests/test-printf-frexp.c: Likewise.
66440         * tests/test-printf-frexpl.c: Likewise.
66441         * tests/test-printf-posix.c: Likewise.
66442         * tests/test-printf-posix.h: Likewise.
66443         * tests/test-rbtree_list.c: Likewise.
66444         * tests/test-rbtree_oset.c: Likewise.
66445         * tests/test-rbtreehash_list.c: Likewise.
66446         * tests/test-read-file.c: Likewise.
66447         * tests/test-rijndael.c: Likewise.
66448         * tests/test-search.c: Likewise.
66449         * tests/test-signbit.c: Likewise.
66450         * tests/test-sleep.c: Likewise.
66451         * tests/test-snprintf-posix.c: Likewise.
66452         * tests/test-snprintf-posix.h: Likewise.
66453         * tests/test-snprintf.c: Likewise.
66454         * tests/test-sprintf-posix.c: Likewise.
66455         * tests/test-sprintf-posix.h: Likewise.
66456         * tests/test-stat-time.c: Likewise.
66457         * tests/test-stdbool.c: Likewise.
66458         * tests/test-stdint.c: Likewise.
66459         * tests/test-stdio.c: Likewise.
66460         * tests/test-stdlib.c: Likewise.
66461         * tests/test-stpncpy.c: Likewise.
66462         * tests/test-strcasestr.c: Likewise.
66463         * tests/test-striconv.c: Likewise.
66464         * tests/test-striconveh.c: Likewise.
66465         * tests/test-striconveha.c: Likewise.
66466         * tests/test-string.c: Likewise.
66467         * tests/test-sys_select.c: Likewise.
66468         * tests/test-sys_socket.c: Likewise.
66469         * tests/test-sys_stat.c: Likewise.
66470         * tests/test-sys_time.c: Likewise.
66471         * tests/test-sysexits.c: Likewise.
66472         * tests/test-time.c: Likewise.
66473         * tests/test-tls.c: Likewise.
66474         * tests/test-trunc.c: Likewise.
66475         * tests/test-truncf.c: Likewise.
66476         * tests/test-truncl.c: Likewise.
66477         * tests/test-unistd.c: Likewise.
66478         * tests/test-vasnprintf-posix.c: Likewise.
66479         * tests/test-vasnprintf-posix2.c: Likewise.
66480         * tests/test-vasnprintf.c: Likewise.
66481         * tests/test-vasprintf-posix.c: Likewise.
66482         * tests/test-vasprintf.c: Likewise.
66483         * tests/test-verify.c: Likewise.
66484         * tests/test-vfprintf-posix.c: Likewise.
66485         * tests/test-vprintf-posix.c: Likewise.
66486         * tests/test-vsnprintf-posix.c: Likewise.
66487         * tests/test-vsnprintf.c: Likewise.
66488         * tests/test-vsprintf-posix.c: Likewise.
66489         * tests/test-wchar.c: Likewise.
66490         * tests/test-wctype.c: Likewise.
66491         * tests/test-wcwidth.c: Likewise.
66492         * tests/test-xstrtol.c: Likewise.
66493         * tests/test-xvasprintf.c: Likewise.
66494         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
66495         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
66496         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
66497         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
66498         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
66499         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
66500         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
66501         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
66502         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
66503         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
66504         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
66505         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
66506         * tests/uniname/test-uninames.c: Likewise.
66507         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
66508         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
66509         * tests/unistdio/test-u16-printf1.h: Likewise.
66510         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
66511         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
66512         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
66513         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
66514         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
66515         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
66516         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
66517         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
66518         * tests/unistdio/test-u32-printf1.h: Likewise.
66519         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
66520         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
66521         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
66522         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
66523         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
66524         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
66525         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
66526         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
66527         * tests/unistdio/test-u8-printf1.h: Likewise.
66528         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
66529         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
66530         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
66531         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
66532         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
66533         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
66534         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
66535         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
66536         * tests/unistdio/test-ulc-printf1.h: Likewise.
66537         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
66538         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
66539         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
66540         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
66541         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
66542         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
66543         * tests/uniwidth/test-u16-strwidth.c: Likewise.
66544         * tests/uniwidth/test-u16-width.c: Likewise.
66545         * tests/uniwidth/test-u32-strwidth.c: Likewise.
66546         * tests/uniwidth/test-u32-width.c: Likewise.
66547         * tests/uniwidth/test-u8-strwidth.c: Likewise.
66548         * tests/uniwidth/test-u8-width.c: Likewise.
66549         * tests/uniwidth/test-uc_width.c: Likewise.
66550         * config/srclist-update: Likewise.
66551         (fixlicense): Update to GPLv3+.
66552
66553         Change copyright notice from LGPLv2.1+ to LGPLv3+.
66554         * tests/test-tsearch.c: Change copyright notice.
66555
66556         Change copyright notice from LGPLv2.0+ to LGPLv3+.
66557         * lib/c-strcaseeq.h: Change copyright notice.
66558         * lib/streq.h: Likewise.
66559         * lib/uniconv.h: Likewise.
66560         * lib/uniconv/u-conv-from-enc.h: Likewise.
66561         * lib/uniconv/u-conv-to-enc.h: Likewise.
66562         * lib/uniconv/u-strconv-from-enc.h: Likewise.
66563         * lib/uniconv/u-strconv-to-enc.h: Likewise.
66564         * lib/uniconv/u16-conv-from-enc.c: Likewise.
66565         * lib/uniconv/u16-conv-to-enc.c: Likewise.
66566         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
66567         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
66568         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
66569         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
66570         * lib/uniconv/u32-conv-from-enc.c: Likewise.
66571         * lib/uniconv/u32-conv-to-enc.c: Likewise.
66572         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
66573         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
66574         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
66575         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
66576         * lib/uniconv/u8-conv-from-enc.c: Likewise.
66577         * lib/uniconv/u8-conv-to-enc.c: Likewise.
66578         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
66579         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
66580         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
66581         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
66582         * lib/uniname.h: Likewise.
66583         * lib/uniname/uniname.c: Likewise.
66584         * lib/unistdio.h: Likewise.
66585         * lib/unistdio/u-asnprintf.h: Likewise.
66586         * lib/unistdio/u-asprintf.h: Likewise.
66587         * lib/unistdio/u-printf-args.c: Likewise.
66588         * lib/unistdio/u-printf-args.h: Likewise.
66589         * lib/unistdio/u-printf-parse.h: Likewise.
66590         * lib/unistdio/u-snprintf.h: Likewise.
66591         * lib/unistdio/u-sprintf.h: Likewise.
66592         * lib/unistdio/u-vasprintf.h: Likewise.
66593         * lib/unistdio/u-vsnprintf.h: Likewise.
66594         * lib/unistdio/u-vsprintf.h: Likewise.
66595         * lib/unistdio/u16-asnprintf.c: Likewise.
66596         * lib/unistdio/u16-asprintf.c: Likewise.
66597         * lib/unistdio/u16-printf-parse.c: Likewise.
66598         * lib/unistdio/u16-snprintf.c: Likewise.
66599         * lib/unistdio/u16-sprintf.c: Likewise.
66600         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
66601         * lib/unistdio/u16-u16-asprintf.c: Likewise.
66602         * lib/unistdio/u16-u16-snprintf.c: Likewise.
66603         * lib/unistdio/u16-u16-sprintf.c: Likewise.
66604         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
66605         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
66606         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
66607         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
66608         * lib/unistdio/u16-vasnprintf.c: Likewise.
66609         * lib/unistdio/u16-vasprintf.c: Likewise.
66610         * lib/unistdio/u16-vsnprintf.c: Likewise.
66611         * lib/unistdio/u16-vsprintf.c: Likewise.
66612         * lib/unistdio/u32-asnprintf.c: Likewise.
66613         * lib/unistdio/u32-asprintf.c: Likewise.
66614         * lib/unistdio/u32-printf-parse.c: Likewise.
66615         * lib/unistdio/u32-snprintf.c: Likewise.
66616         * lib/unistdio/u32-sprintf.c: Likewise.
66617         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
66618         * lib/unistdio/u32-u32-asprintf.c: Likewise.
66619         * lib/unistdio/u32-u32-snprintf.c: Likewise.
66620         * lib/unistdio/u32-u32-sprintf.c: Likewise.
66621         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
66622         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
66623         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
66624         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
66625         * lib/unistdio/u32-vasnprintf.c: Likewise.
66626         * lib/unistdio/u32-vasprintf.c: Likewise.
66627         * lib/unistdio/u32-vsnprintf.c: Likewise.
66628         * lib/unistdio/u32-vsprintf.c: Likewise.
66629         * lib/unistdio/u8-asnprintf.c: Likewise.
66630         * lib/unistdio/u8-asprintf.c: Likewise.
66631         * lib/unistdio/u8-printf-parse.c: Likewise.
66632         * lib/unistdio/u8-snprintf.c: Likewise.
66633         * lib/unistdio/u8-sprintf.c: Likewise.
66634         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
66635         * lib/unistdio/u8-u8-asprintf.c: Likewise.
66636         * lib/unistdio/u8-u8-snprintf.c: Likewise.
66637         * lib/unistdio/u8-u8-sprintf.c: Likewise.
66638         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
66639         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
66640         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
66641         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
66642         * lib/unistdio/u8-vasnprintf.c: Likewise.
66643         * lib/unistdio/u8-vasprintf.c: Likewise.
66644         * lib/unistdio/u8-vsnprintf.c: Likewise.
66645         * lib/unistdio/u8-vsprintf.c: Likewise.
66646         * lib/unistdio/ulc-asnprintf.c: Likewise.
66647         * lib/unistdio/ulc-asprintf.c: Likewise.
66648         * lib/unistdio/ulc-printf-parse.c: Likewise.
66649         * lib/unistdio/ulc-snprintf.c: Likewise.
66650         * lib/unistdio/ulc-sprintf.c: Likewise.
66651         * lib/unistdio/ulc-vasnprintf.c: Likewise.
66652         * lib/unistdio/ulc-vasprintf.c: Likewise.
66653         * lib/unistdio/ulc-vsnprintf.c: Likewise.
66654         * lib/unistdio/ulc-vsprintf.c: Likewise.
66655         * lib/unistr.h: Likewise.
66656         * lib/unistr/u-cpy-alloc.h: Likewise.
66657         * lib/unistr/u-cpy.h: Likewise.
66658         * lib/unistr/u-endswith.h: Likewise.
66659         * lib/unistr/u-move.h: Likewise.
66660         * lib/unistr/u-set.h: Likewise.
66661         * lib/unistr/u-startswith.h: Likewise.
66662         * lib/unistr/u-stpcpy.h: Likewise.
66663         * lib/unistr/u-stpncpy.h: Likewise.
66664         * lib/unistr/u-strcat.h: Likewise.
66665         * lib/unistr/u-strcpy.h: Likewise.
66666         * lib/unistr/u-strcspn.h: Likewise.
66667         * lib/unistr/u-strdup.h: Likewise.
66668         * lib/unistr/u-strlen.h: Likewise.
66669         * lib/unistr/u-strncat.h: Likewise.
66670         * lib/unistr/u-strncpy.h: Likewise.
66671         * lib/unistr/u-strnlen.h: Likewise.
66672         * lib/unistr/u-strpbrk.h: Likewise.
66673         * lib/unistr/u-strspn.h: Likewise.
66674         * lib/unistr/u-strstr.h: Likewise.
66675         * lib/unistr/u-strtok.h: Likewise.
66676         * lib/unistr/u16-check.c: Likewise.
66677         * lib/unistr/u16-chr.c: Likewise.
66678         * lib/unistr/u16-cmp.c: Likewise.
66679         * lib/unistr/u16-cpy-alloc.c: Likewise.
66680         * lib/unistr/u16-cpy.c: Likewise.
66681         * lib/unistr/u16-endswith.c: Likewise.
66682         * lib/unistr/u16-mblen.c: Likewise.
66683         * lib/unistr/u16-mbsnlen.c: Likewise.
66684         * lib/unistr/u16-mbtouc-aux.c: Likewise.
66685         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
66686         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
66687         * lib/unistr/u16-mbtouc.c: Likewise.
66688         * lib/unistr/u16-mbtoucr.c: Likewise.
66689         * lib/unistr/u16-move.c: Likewise.
66690         * lib/unistr/u16-next.c: Likewise.
66691         * lib/unistr/u16-prev.c: Likewise.
66692         * lib/unistr/u16-set.c: Likewise.
66693         * lib/unistr/u16-startswith.c: Likewise.
66694         * lib/unistr/u16-stpcpy.c: Likewise.
66695         * lib/unistr/u16-stpncpy.c: Likewise.
66696         * lib/unistr/u16-strcat.c: Likewise.
66697         * lib/unistr/u16-strchr.c: Likewise.
66698         * lib/unistr/u16-strcmp.c: Likewise.
66699         * lib/unistr/u16-strcpy.c: Likewise.
66700         * lib/unistr/u16-strcspn.c: Likewise.
66701         * lib/unistr/u16-strdup.c: Likewise.
66702         * lib/unistr/u16-strlen.c: Likewise.
66703         * lib/unistr/u16-strmblen.c: Likewise.
66704         * lib/unistr/u16-strmbtouc.c: Likewise.
66705         * lib/unistr/u16-strncat.c: Likewise.
66706         * lib/unistr/u16-strncmp.c: Likewise.
66707         * lib/unistr/u16-strncpy.c: Likewise.
66708         * lib/unistr/u16-strnlen.c: Likewise.
66709         * lib/unistr/u16-strpbrk.c: Likewise.
66710         * lib/unistr/u16-strrchr.c: Likewise.
66711         * lib/unistr/u16-strspn.c: Likewise.
66712         * lib/unistr/u16-strstr.c: Likewise.
66713         * lib/unistr/u16-strtok.c: Likewise.
66714         * lib/unistr/u16-to-u32.c: Likewise.
66715         * lib/unistr/u16-to-u8.c: Likewise.
66716         * lib/unistr/u16-uctomb-aux.c: Likewise.
66717         * lib/unistr/u16-uctomb.c: Likewise.
66718         * lib/unistr/u32-check.c: Likewise.
66719         * lib/unistr/u32-chr.c: Likewise.
66720         * lib/unistr/u32-cmp.c: Likewise.
66721         * lib/unistr/u32-cpy-alloc.c: Likewise.
66722         * lib/unistr/u32-cpy.c: Likewise.
66723         * lib/unistr/u32-endswith.c: Likewise.
66724         * lib/unistr/u32-mblen.c: Likewise.
66725         * lib/unistr/u32-mbsnlen.c: Likewise.
66726         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
66727         * lib/unistr/u32-mbtouc.c: Likewise.
66728         * lib/unistr/u32-mbtoucr.c: Likewise.
66729         * lib/unistr/u32-move.c: Likewise.
66730         * lib/unistr/u32-next.c: Likewise.
66731         * lib/unistr/u32-prev.c: Likewise.
66732         * lib/unistr/u32-set.c: Likewise.
66733         * lib/unistr/u32-startswith.c: Likewise.
66734         * lib/unistr/u32-stpcpy.c: Likewise.
66735         * lib/unistr/u32-stpncpy.c: Likewise.
66736         * lib/unistr/u32-strcat.c: Likewise.
66737         * lib/unistr/u32-strchr.c: Likewise.
66738         * lib/unistr/u32-strcmp.c: Likewise.
66739         * lib/unistr/u32-strcpy.c: Likewise.
66740         * lib/unistr/u32-strcspn.c: Likewise.
66741         * lib/unistr/u32-strdup.c: Likewise.
66742         * lib/unistr/u32-strlen.c: Likewise.
66743         * lib/unistr/u32-strmblen.c: Likewise.
66744         * lib/unistr/u32-strmbtouc.c: Likewise.
66745         * lib/unistr/u32-strncat.c: Likewise.
66746         * lib/unistr/u32-strncmp.c: Likewise.
66747         * lib/unistr/u32-strncpy.c: Likewise.
66748         * lib/unistr/u32-strnlen.c: Likewise.
66749         * lib/unistr/u32-strpbrk.c: Likewise.
66750         * lib/unistr/u32-strrchr.c: Likewise.
66751         * lib/unistr/u32-strspn.c: Likewise.
66752         * lib/unistr/u32-strstr.c: Likewise.
66753         * lib/unistr/u32-strtok.c: Likewise.
66754         * lib/unistr/u32-to-u16.c: Likewise.
66755         * lib/unistr/u32-to-u8.c: Likewise.
66756         * lib/unistr/u32-uctomb.c: Likewise.
66757         * lib/unistr/u8-check.c: Likewise.
66758         * lib/unistr/u8-chr.c: Likewise.
66759         * lib/unistr/u8-cmp.c: Likewise.
66760         * lib/unistr/u8-cpy-alloc.c: Likewise.
66761         * lib/unistr/u8-cpy.c: Likewise.
66762         * lib/unistr/u8-endswith.c: Likewise.
66763         * lib/unistr/u8-mblen.c: Likewise.
66764         * lib/unistr/u8-mbsnlen.c: Likewise.
66765         * lib/unistr/u8-mbtouc-aux.c: Likewise.
66766         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
66767         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
66768         * lib/unistr/u8-mbtouc.c: Likewise.
66769         * lib/unistr/u8-mbtoucr.c: Likewise.
66770         * lib/unistr/u8-move.c: Likewise.
66771         * lib/unistr/u8-next.c: Likewise.
66772         * lib/unistr/u8-prev.c: Likewise.
66773         * lib/unistr/u8-set.c: Likewise.
66774         * lib/unistr/u8-startswith.c: Likewise.
66775         * lib/unistr/u8-stpcpy.c: Likewise.
66776         * lib/unistr/u8-stpncpy.c: Likewise.
66777         * lib/unistr/u8-strcat.c: Likewise.
66778         * lib/unistr/u8-strchr.c: Likewise.
66779         * lib/unistr/u8-strcmp.c: Likewise.
66780         * lib/unistr/u8-strcpy.c: Likewise.
66781         * lib/unistr/u8-strcspn.c: Likewise.
66782         * lib/unistr/u8-strdup.c: Likewise.
66783         * lib/unistr/u8-strlen.c: Likewise.
66784         * lib/unistr/u8-strmblen.c: Likewise.
66785         * lib/unistr/u8-strmbtouc.c: Likewise.
66786         * lib/unistr/u8-strncat.c: Likewise.
66787         * lib/unistr/u8-strncmp.c: Likewise.
66788         * lib/unistr/u8-strncpy.c: Likewise.
66789         * lib/unistr/u8-strnlen.c: Likewise.
66790         * lib/unistr/u8-strpbrk.c: Likewise.
66791         * lib/unistr/u8-strrchr.c: Likewise.
66792         * lib/unistr/u8-strspn.c: Likewise.
66793         * lib/unistr/u8-strstr.c: Likewise.
66794         * lib/unistr/u8-strtok.c: Likewise.
66795         * lib/unistr/u8-to-u16.c: Likewise.
66796         * lib/unistr/u8-to-u32.c: Likewise.
66797         * lib/unistr/u8-uctomb-aux.c: Likewise.
66798         * lib/unistr/u8-uctomb.c: Likewise.
66799         * lib/unitypes.h: Likewise.
66800         * lib/uniwidth.h: Likewise.
66801         * lib/uniwidth/cjk.h: Likewise.
66802         * lib/uniwidth/u16-strwidth.c: Likewise.
66803         * lib/uniwidth/u16-width.c: Likewise.
66804         * lib/uniwidth/u32-strwidth.c: Likewise.
66805         * lib/uniwidth/u32-width.c: Likewise.
66806         * lib/uniwidth/u8-strwidth.c: Likewise.
66807         * lib/uniwidth/u8-width.c: Likewise.
66808         * lib/uniwidth/width.c: Likewise.
66809
66810 2007-10-07  Bruno Haible  <bruno@clisp.org>
66811
66812         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
66813         The file is still under LGPL (see modules/inttypes).
66814
66815 2007-10-06  Bruno Haible  <bruno@clisp.org>
66816
66817         * modules/trunc (Dependencies): Add 'extensions'.
66818         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
66819         Reported by Ben Pfaff <blp@gnu.org>.
66820
66821 2007-10-06  Bruno Haible  <bruno@clisp.org>
66822
66823         * modules/freopen-tests: New file.
66824         * tests/test-freopen.c: New file.
66825
66826         * modules/fopen-tests: New file.
66827         * tests/test-fopen.c: New file.
66828
66829         * modules/fopen: New file.
66830         * lib/fopen.c: New file.
66831         * m4/fopen.m4: New file.
66832         * modules/freopen: New file.
66833         * lib/freopen.c: New file.
66834         * m4/freopen.m4: New file.
66835         * lib/stdio.in.h (fopen, freopen): New declarations.
66836         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
66837         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
66838         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
66839         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
66840         * doc/functions/fopen.texi: Mention the 'fopen' module.
66841         * doc/functions/freopen.texi: Mention the 'freopen' module.
66842
66843 2007-10-06  Bruno Haible  <bruno@clisp.org>
66844
66845         * modules/open-tests: New file.
66846         * tests/test-open.c: New file.
66847
66848         * modules/open: New file.
66849         * lib/open.c: New file.
66850         * m4/open.m4: New file.
66851         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
66852         lib/open.c does.
66853         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
66854         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
66855         macros.
66856         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
66857         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
66858         REPLACE_OPEN.
66859         * doc/functions/open.texi: Mention the 'open' module.
66860
66861 2007-10-04  Bruno Haible  <bruno@clisp.org>
66862
66863         * modules/ceill-tests: New file.
66864         * tests/test-ceill.c: New file.
66865
66866         * modules/ceill: New file.
66867         * lib/ceill.c: Replace entire file.
66868         * m4/ceill.m4: New file.
66869         * lib/math.in.h (ceill): Replace declaration.
66870         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
66871         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
66872         * doc/functions/ceill.texi: Mention the 'ceill' module.
66873         * modules/mathl (Files): Remove lib/ceill.c.
66874         (Depends-on): Add ceill.
66875
66876 2007-10-04  Bruno Haible  <bruno@clisp.org>
66877
66878         * modules/ceilf-tests: New file.
66879         * tests/test-ceilf.c: New file.
66880
66881         * modules/ceilf: New file.
66882         * lib/ceil.c: New file.
66883         * lib/ceilf.c: New file.
66884         * m4/ceilf.m4: New file.
66885         * lib/math.in.h (ceilf): New declaration.
66886         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
66887         HAVE_DECL_CEILF.
66888         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
66889         HAVE_DECL_CEILF.
66890         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
66891
66892 2007-10-04  Bruno Haible  <bruno@clisp.org>
66893
66894         * modules/floorl-tests: New file.
66895         * tests/test-floorl.c: New file.
66896
66897         * modules/floorl: New file.
66898         * lib/floorl.c: Replace entire file.
66899         * m4/floorl.m4: New file.
66900         * lib/math.in.h (floorl): Replace declaration.
66901         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
66902         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
66903         * doc/functions/floorl.texi: Mention the 'floorl' module.
66904         * modules/mathl (Files): Remove lib/floorl.c.
66905         (Depends-on): Add floorl.
66906
66907 2007-10-04  Bruno Haible  <bruno@clisp.org>
66908
66909         * modules/floorf-tests: New file.
66910         * tests/test-floorf.c: New file.
66911
66912         * modules/floorf: New file.
66913         * lib/floor.c: New file.
66914         * lib/floorf.c: New file.
66915         * m4/floorf.m4: New file.
66916         * lib/math.in.h (floorf): New declaration.
66917         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
66918         HAVE_DECL_FLOORF.
66919         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
66920         HAVE_DECL_FLOORF.
66921         * doc/functions/floorf.texi: Mention the 'floorf' module.
66922
66923 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
66924             Bruno Haible  <bruno@clisp.org>
66925
66926         Advertise for the Git server instead of the CVS server.
66927         * doc/gnulib-intro.texi (Steady Development): Mention the Git
66928         repository instead of the CVS one.
66929         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
66930         about all VCS systems generically.
66931         * doc/gnulib.texi (Introduction): Capitalize `Git'.
66932
66933 2007-10-04  Bruno Haible  <bruno@clisp.org>
66934
66935         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
66936         means.
66937         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
66938
66939 2007-10-04  Bruno Haible  <bruno@clisp.org>
66940
66941         * modules/truncl-tests: New file.
66942         * tests/test-truncl.c: New file.
66943
66944         * modules/truncl: New file.
66945         * lib/truncl.c: New file.
66946         * m4/truncl.m4: New file.
66947         * lib/math.in.h (truncl): New declaration.
66948         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
66949         HAVE_DECL_TRUNCL.
66950         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
66951         HAVE_DECL_TRUNCL.
66952         * doc/functions/truncl.texi: Mention the 'truncl' module.
66953
66954 2007-10-04  Bruno Haible  <bruno@clisp.org>
66955
66956         * modules/truncf-tests: New file.
66957         * tests/test-truncf.c: New file.
66958
66959         * modules/truncf: New file.
66960         * lib/trunc.c: Make paramerizable through USE_* macros.
66961         * lib/truncf.c: New file.
66962         * m4/truncf.m4: New file.
66963         * lib/math.in.h (truncf): New declaration.
66964         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
66965         HAVE_DECL_TRUNCF.
66966         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
66967         HAVE_DECL_TRUNCF.
66968         * doc/functions/truncf.texi: Mention the 'truncf' module.
66969
66970 2007-10-03  Bruno Haible  <bruno@clisp.org>
66971
66972         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
66973         augmentation also for tests modules.
66974         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
66975         * modules/atexit-tests (Makefile.am): Likewise.
66976         * modules/binary-io-tests (Makefile.am): Likewise.
66977         * modules/c-strcase-tests (Makefile.am): Likewise.
66978         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
66979         * modules/canonicalize-tests (Makefile.am): Likewise.
66980         * modules/closein-tests (Makefile.am): Likewise.
66981         * modules/fprintf-posix-tests (Makefile.am): Likewise.
66982         * modules/freadahead-tests (Makefile.am): Likewise.
66983         * modules/fseek-tests (Makefile.am): Likewise.
66984         * modules/fseeko-tests (Makefile.am): Likewise.
66985         * modules/ftell-tests (Makefile.am): Likewise.
66986         * modules/ftello-tests (Makefile.am): Likewise.
66987         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
66988         * modules/isnanl-tests (Makefile.am): Likewise.
66989         * modules/lseek-tests (Makefile.am): Likewise.
66990         * modules/mbscasecmp-tests (Makefile.am): Likewise.
66991         * modules/mbscasestr-tests (Makefile.am): Likewise.
66992         * modules/mbschr-tests (Makefile.am): Likewise.
66993         * modules/mbscspn-tests (Makefile.am): Likewise.
66994         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
66995         * modules/mbspbrk-tests (Makefile.am): Likewise.
66996         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
66997         * modules/mbsrchr-tests (Makefile.am): Likewise.
66998         * modules/mbsspn-tests (Makefile.am): Likewise.
66999         * modules/mbsstr-tests (Makefile.am): Likewise.
67000         * modules/printf-posix-tests (Makefile.am): Likewise.
67001         * modules/snprintf-posix-tests (Makefile.am): Likewise.
67002         * modules/sprintf-posix-tests (Makefile.am): Likewise.
67003         * modules/tsearch-tests (Makefile.am): Likewise.
67004         * modules/uniname/uniname-tests (Makefile.am): Likewise.
67005         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
67006         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
67007         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
67008         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
67009         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
67010         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
67011         * modules/vprintf-posix-tests (Makefile.am): Likewise.
67012         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
67013         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
67014         * modules/xstrtoimax-tests (Makefile.am): Likewise.
67015         * modules/xstrtol-tests (Makefile.am): Likewise.
67016         * modules/xstrtoumax-tests (Makefile.am): Likewise.
67017         * modules/yesno-tests (Makefile.am): Likewise.
67018
67019 2007-10-03  Bruno Haible  <bruno@clisp.org>
67020
67021         * modules/trunc-tests: New file.
67022         * tests/test-trunc.c: New file.
67023
67024         * modules/trunc: New file.
67025         * lib/trunc.c: New file.
67026         * m4/trunc.m4: New file.
67027         * lib/math.in.h (trunc): New declaration.
67028         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
67029         HAVE_DECL_TRUNC.
67030         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
67031         HAVE_DECL_TRUNC.
67032         * doc/functions/trunc.texi: Mention the 'trunc' module.
67033
67034 2007-10-03  Bruno Haible  <bruno@clisp.org>
67035
67036         * tests/test-fpending.c: New file, mostly copied
67037         from coreutils/lib/t-fpending.c.
67038         * modules/fpending-tests: New file.
67039
67040 2007-10-03  Bruno Haible  <bruno@clisp.org>
67041
67042         Port the stdio extensions to QNX (untested).
67043         * lib/fseterr.c (fseterr): Add support for QNX.
67044         * lib/fbufmode.c (fbufmode): Likewise.
67045         * lib/freadable.c (freadable): Likewise.
67046         * lib/fwritable.c (fwritable): Likewise.
67047         * lib/freading.c (freading): Likewise.
67048         * lib/fwriting.c (fwriting): Likewise.
67049         * lib/freadahead.c (freadahed): Likewise.
67050         * lib/fpurge.c (fpurge): Likewise.
67051         * lib/fseeko.c (rpl_fseeko): Likewise.
67052
67053 2007-10-03  Bruno Haible  <bruno@clisp.org>
67054             Jim Meyering  <jim@meyering.net>
67055             Eric Blake  <ebb9@byu.net>
67056
67057         * doc/relocatable.texi: Use @command instead of @program.
67058
67059 2007-10-02  Jim Meyering  <jim@meyering.net>
67060
67061         Perform one more "_.h" -> ".in.h" substitution.
67062         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
67063         instead of unistd_.h here, too.
67064
67065 2007-10-01  Bruno Haible  <bruno@clisp.org>
67066
67067         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
67068         Needed for the alloca-opt module.
67069
67070 2007-09-30  Bruno Haible  <bruno@clisp.org>
67071
67072         * lib/alloca.in.h: Renamed from lib/alloca_.h.
67073         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
67074         alloca_.h.
67075         * lib/argz.in.h: Renamed from lib/argz_.h.
67076         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
67077         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
67078         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
67079         byteswap_.h.
67080         * lib/dirent.in.h: Renamed from lib/dirent_.h.
67081         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
67082         dirent_.h.
67083         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
67084         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
67085         fcntl_.h.
67086         * lib/float.in.h: Renamed from lib/float_.h.
67087         * modules/float (Files, Makefile.am): Use float.in.h instead of
67088         float_.h.
67089         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
67090         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
67091         fnmatch_.h.
67092         * lib/getopt.in.h: Renamed from lib/getopt_.h.
67093         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
67094         getopt_.h.
67095         * lib/glob.in.h: Renamed from lib/glob_.h.
67096         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
67097         * lib/iconv.in.h: Renamed from lib/iconv_.h.
67098         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
67099         iconv_.h.
67100         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
67101         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
67102         inttypes_.h.
67103         * lib/locale.in.h: Renamed from lib/locale_.h.
67104         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
67105         locale_.h.
67106         * lib/math.in.h: Renamed from lib/math_.h.
67107         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
67108         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
67109         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
67110         of netinet_in_.h. Add dependency.
67111         * lib/poll.in.h: Renamed from lib/poll_.h.
67112         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
67113         * lib/search.in.h: Renamed from lib/search_.h.
67114         * modules/search (Files, Makefile.am): Use search.in.h instead of
67115         search_.h.
67116         * lib/signal.in.h: Renamed from lib/signal_.h.
67117         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
67118         _signal.h.
67119         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
67120         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
67121         stdbool_.h.
67122         * lib/stdint.in.h: Renamed from lib/stdint_.h.
67123         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
67124         stdint_.h.
67125         * lib/stdio.in.h: Renamed from lib/stdio_.h.
67126         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
67127         stdio_.h.
67128         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
67129         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
67130         stdlib_.h.
67131         * lib/string.in.h: Renamed from lib/string_.h.
67132         * modules/string (Files, Makefile.am): Use string.in.h instead of
67133         string_.h.
67134         * doc/gnulib-tool.texi (Initial import): Update.
67135         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
67136         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
67137         of sys_select_.h. Add dependency.
67138         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
67139         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
67140         of sys_socket_.h.
67141         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
67142         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
67143         sys_stat_.h.
67144         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
67145         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
67146         sys_time_.h.
67147         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
67148         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
67149         sysexits_.h.
67150         * lib/time.in.h: Renamed from lib/time_.h.
67151         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
67152         * lib/unistd.in.h: Renamed from lib/unistd_.h.
67153         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
67154         unistd_.h.
67155         * lib/wchar.in.h: Renamed from lib/wchar_.h.
67156         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
67157         wchar_.h.
67158         * lib/wctype.in.h: Renamed from lib/wctype_.h.
67159         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
67160         wctype_.h.
67161         * build-aux/bootstrap (slurp): Update.
67162         * lib/.cppi-disable: Update.
67163
67164 2007-09-30  Bruno Haible  <bruno@clisp.org>
67165
67166         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
67167         Needed on BeOS.
67168
67169 2007-09-30  Bruno Haible  <bruno@clisp.org>
67170
67171         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
67172
67173 2007-09-29  Bruno Haible  <bruno@clisp.org>
67174
67175         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
67176
67177 2007-09-29  Bruno Haible  <bruno@clisp.org>
67178
67179         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
67180         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
67181         * build-aux/install-reloc: Compile also areadlink.c.
67182         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
67183
67184 2007-09-29  Bruno Haible  <bruno@clisp.org>
67185
67186         * gnulib-tool (func_emit_initmacro_done): Indentation.
67187
67188 2007-09-29  Bruno Haible  <bruno@clisp.org>
67189
67190         * README: Add CVS checkout update instructions.
67191         Info from Bob Proulx <bob@proulx.com>.
67192
67193 2007-09-28  Eric Blake  <ebb9@byu.net>
67194
67195         Provide move-if-change.
67196         * build-aux/move-if-change: New file, based on best practice
67197         rather than any canonical upstream location.
67198
67199 2007-09-28  Jim Meyering  <jim@meyering.net>
67200
67201         Fix canonicalize loop-detection corner case.
67202         Do not attempt to stat the symlink values stored via seen_triple.
67203         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
67204         on linux-2.6.18, (but not 2.6.22).
67205         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
67206         triple_compare.  The former compares dev,ino,filename, while the latter
67207         would actually stat dirname(filename) when dev and ino were equal.
67208         * lib/hash-triple.c: Install <string.h>.
67209         (STREQ): Define.
67210         (triple_compare_ino_str): New function.
67211         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
67212
67213 2007-09-28  Eric Blake  <ebb9@byu.net>
67214
67215         Enforce that AC_REPLACE_FUNCS files exist.
67216         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
67217         override check for typos.
67218
67219         Fix test-closein on Solaris 10.
67220         * tests/test-closein.c (main): Don't assume stdin can be inherited
67221         closed on all systems.
67222         * tests/test-closein.sh: Likewise.
67223         Reported by Piotr Tarnowski.
67224
67225 2007-09-28  Jim Meyering  <jim@meyering.net>
67226
67227         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
67228
67229 2007-09-27  Jim Meyering  <jim@meyering.net>
67230
67231         canonicalize: Avoid a false-positive cycle failure.
67232         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
67233         Sort.  Remove cycle-check.
67234         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
67235         not cycle-check.h.
67236         (seen_triple): New function.
67237         (canonicalize_filename_mode): Use it instead of cycle-check.
67238         * tests/test-canonicalize.c: Add a test for this bug.
67239         * tests/test-canonicalize.sh: Set up and run the test.
67240
67241         New module, file-set, from coreutils.
67242         * modules/file-set: Define it.
67243         * lib/file-set.c, lib/file-set.h: Implement.
67244
67245         New module, hash-triple, from coreutils.
67246         * modules/hash-triple: Define it.
67247         * lib/hash-triple.c, lib/hash-triple.h: Implement.
67248
67249 2007-09-25  Eric Blake  <ebb9@byu.net>
67250
67251         Fix strerror on Interix.
67252         * lib/string_.h (strerror): Declare replacement.
67253         * doc/functions/strerror.texi (strerror): Document the Interix
67254         shortcoming.
67255         * modules/string (Makefile.am): Support new hooks.
67256         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
67257         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
67258         gl_FUNC_STRERROR_SEPARATE.
67259         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
67260         * lib/strerror.c (rpl_strerror): Provide replacement.
67261         * modules/strerror (Depends-on): Add string.
67262         (configure.ac): Detect use of module.
67263         * tests/test-strerror.c: New file.
67264         * modules/strerror-tests: New test module.
67265         * modules/argp (Depends-on): Add strerror.
67266         * modules/error (Depends-on): Likewise.
67267         Reported by Martin Koeppe.
67268
67269 2007-09-24  Bruno Haible  <bruno@clisp.org>
67270
67271         * README: Update git instructions.
67272
67273 2007-09-24  Eric Blake  <ebb9@byu.net>
67274
67275         Revert fpending breakage from 2007-09-08.
67276         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
67277         __fpending.c.
67278
67279 2007-09-24  Jim Meyering  <jim@meyering.net>
67280
67281         filenamecat.c: Add a test.
67282         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
67283         showing how the function works when DIR is the empty string.
67284
67285 2007-09-21  Simon Josefsson  <simon@josefsson.org>
67286
67287         * tests/test-canonicalize.sh: Turn on executable bit.
67288
67289 2007-09-19  Eric Blake  <ebb9@byu.net>
67290
67291         * README: Update CVS instructions.
67292
67293 2007-09-18  Bruno Haible  <bruno@clisp.org>
67294
67295         * modules/areadlink: New file.
67296         * lib/areadlink.h (areadlink): New declaration.
67297         * lib/areadlink.c: New file, based on lib/xreadlink.c.
67298
67299 2007-09-17  Jim Meyering  <jim@meyering.net>
67300
67301         * lib/savewd.c (ESTALE) [!defined]: Define.
67302         Reported to be required on Interix by Martin Koeppe.
67303
67304 2007-09-17  Bruno Haible  <bruno@clisp.org>
67305
67306         * gnulib-tool (func_version): Use $version.
67307
67308 2007-09-16  Bruno Haible  <bruno@clisp.org>
67309
67310         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
67311         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
67312         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
67313         Reported by Greg Schafer <gschafer@zip.com.au>.
67314
67315 2007-09-15  Bruno Haible  <bruno@clisp.org>
67316
67317         * gnulib-tool (sed): Try a little harder to make bash understand the
67318         alias.
67319         Reported by Bruce Korb <bruce.korb@gmail.com>.
67320
67321 2007-09-13  Eric Blake  <ebb9@byu.net>
67322
67323         * ChangeLog: Remove conflict markers.
67324
67325 2007-09-13  Simon Josefsson  <simon@josefsson.org>
67326
67327         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
67328         Reported by Bruno Haible <bruno@clisp.org>.
67329
67330 2007-09-12  Bruno Haible  <bruno@clisp.org>
67331
67332         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
67333         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
67334         is not defined.
67335
67336 2007-09-12  Eric Blake  <ebb9@byu.net>
67337
67338         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
67339         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
67340         Autoconf definition.
67341         * modules/euidaccess (Depends-on): Add extensions, for
67342         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
67343         * modules/fnmatch (Depends-on): Likewise.
67344         * modules/getaddrinfo (Depends-on): Likewise.
67345         * modules/getdelim (Depends-on): Likewise.
67346         * modules/getline (Depends-on): Likewise.
67347         * modules/getsubopt (Depends-on): Likewise.
67348         * modules/gettext (Depends-on): Likewise.
67349         * modules/group-member (Depends-on): Likewise.
67350         * modules/mbchar (Depends-on): Likewise.
67351         * modules/memmem (Depends-on): Likewise.
67352         * modules/mempcpy (Depends-on): Likewise.
67353         * modules/memrchr (Depends-on): Likewise.
67354         * modules/pagealign_alloc (Depends-on): Likewise.
67355         * modules/readutmp (Depends-on): Likewise.
67356         * modules/stpcpy (Depends-on): Likewise.
67357         * modules/stpncpy (Depends-on): Likewise.
67358         * modules/strchrnul (Depends-on): Likewise.
67359         * modules/strndup (Depends-on): Likewise.
67360         * modules/strsep (Depends-on): Likewise.
67361         * modules/strverscmp (Depends-on): Likewise.
67362         * modules/vasprintf (Depends-on): Likewise.
67363         * modules/wcwidth (Depends-on): Likewise.
67364         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
67365         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
67366         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
67367         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
67368         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
67369         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
67370         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
67371         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
67372         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
67373         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
67374         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
67375         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
67376         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
67377         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
67378         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
67379         * m4/readutmp.m4 (gl_READUTMP): Likewise.
67380         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
67381         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
67382         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
67383         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
67384         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
67385         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
67386         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
67387         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
67388         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
67389         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
67390         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
67391         so that lock.m4 can be used in gettext without extensions module.
67392
67393 2007-09-11  Bruno Haible  <bruno@clisp.org>
67394
67395         * m4/isc-posix.m4: Remove file.
67396         Suggested by Eric Blake.
67397
67398 2007-09-11  Eric Blake  <ebb9@byu.net>
67399
67400         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
67401
67402 2007-09-10  Bruno Haible  <bruno@clisp.org>
67403
67404         * posix-modules: Fix typo in error message.
67405         Reported by Matt <mkraai@beckman.com>.
67406
67407 2007-09-09  Bruno Haible  <bruno@clisp.org>
67408
67409         * doc/functions/getdelim.texi: Update list of platforms lacking the
67410         function.
67411         * doc/functions/getline.texi: Likewise.
67412
67413 2007-09-09  Jim Meyering  <jim@meyering.net>
67414
67415         * lib/hash.c (hash_initialize): Detect calloc failure.
67416         Reported by Bruno Haible.
67417
67418 2007-09-09  Bruno Haible  <bruno@clisp.org>
67419
67420         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
67421         malloc or realloc fails.
67422
67423 2007-09-09  Bruno Haible  <bruno@clisp.org>
67424
67425         * modules/getcwd (Depends-on): Add malloc-posix.
67426         * modules/glob (Depends-on): Likewise.
67427         * modules/putenv (Depends-on): Likewise.
67428         * modules/strdup (Depends-on): Likewise.
67429         * modules/getdelim (Depends-on): Add realloc-posix.
67430         * modules/read-file (Depends-on): Likewise.
67431
67432 2007-09-09  Bruno Haible  <bruno@clisp.org>
67433
67434         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
67435         (gl_FUNC_MALLOC_POSIX): Require it.
67436         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
67437         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
67438         * modules/realloc (Files): Add m4/malloc.m4.
67439         * modules/calloc (Files): Likewise.
67440
67441 2007-09-09  Bruno Haible  <bruno@clisp.org>
67442
67443         * modules/malloc-posix: New file.
67444         * modules/malloc (Depends-on): Add malloc-posix.
67445         * lib/malloc.c: Include errno.h.
67446         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
67447         and a POSIX-compatible malloc into a single function. Set ENOMEM
67448         when returning NULL.
67449         * m4/malloc.m4: New file.
67450         * doc/functions/malloc.texi: Mention the malloc-posix module.
67451         * lib/stdlib_.h (malloc): New declaration.
67452         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
67453         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
67454         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
67455         and HAVE_MALLOC_POSIX.
67456
67457 2007-09-09  Bruno Haible  <bruno@clisp.org>
67458
67459         * modules/realloc-posix: New file.
67460         * modules/realloc (Depends-on): Add realloc-posix.
67461         * lib/realloc.c: Include errno.h.
67462         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
67463         and a POSIX-compatible realloc into a single function. Set ENOMEM
67464         when returning NULL.
67465         * m4/realloc.m4: New file.
67466         * doc/functions/realloc.texi: Mention the realloc-posix module.
67467         * lib/stdlib_.h (realloc): New declaration.
67468         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
67469         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
67470         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
67471         and HAVE_REALLOC_POSIX.
67472
67473 2007-09-09  Bruno Haible  <bruno@clisp.org>
67474
67475         * modules/calloc-posix: New file.
67476         * modules/calloc (Depends-on): Add calloc-posix.
67477         * lib/calloc.c: Include errno.h.
67478         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
67479         and a POSIX-compatible calloc into a single function. Set ENOMEM
67480         when returning NULL.
67481         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
67482         * doc/functions/calloc.texi: Mention the calloc-posix module.
67483         * lib/stdlib_.h (calloc): New declaration.
67484         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
67485         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
67486         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
67487         and HAVE_CALLOC_POSIX.
67488
67489 2007-09-09  Bruno Haible  <bruno@clisp.org>
67490
67491         Allow for modules to show an arbitrary notice.
67492         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
67493         * gnulib-tool: New option --extract-notice.
67494         (func_usage): Document it.
67495         (sed_extract_prog): Update.
67496         (func_get_notice): New function.
67497         (func_modules_notice): New function.
67498         (func_import, func_create_testdir): Invoke it.
67499         Suggested by Jim Meyering.
67500
67501 2007-09-09  Bruno Haible  <bruno@clisp.org>
67502
67503         * gnulib-tool: New options --verbose, --quiet.
67504         (func_usage): Document them.
67505         (verbose): New variable.
67506         (func_execute_command): New function.
67507         (func_import): Don't show the module list and the file list if
67508         $verbose < 0.
67509         (func_create_testdir): Likewise. Use func_execute_command.
67510         (func_create_megatestdir): Use func_execute_command.
67511
67512 2007-09-08  Bruno Haible  <bruno@clisp.org>
67513
67514         * gnulib-tool (func_import): Prefer rsync over wget when available,
67515         for fetching the PO files.
67516
67517 2007-09-08  Bruno Haible  <bruno@clisp.org>
67518
67519         * posix-modules: New file. Portions copied from gnulib-tool.
67520         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
67521
67522 2007-09-08  Jim Meyering  <jim@meyering.net>
67523
67524         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
67525         * lib/fpending.h: Rename from __fpending.h.
67526         * lib/fpending.c: Rename from __fpending.c.
67527         Include "fpending.h", not "__fpending.h".
67528         * lib/__fpending.h, lib/__fpending.c: Remove files.
67529         * modules/fpending (Files): Reflect new file names.
67530         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
67531
67532 2007-09-08  Bruno Haible  <bruno@clisp.org>
67533
67534         * m4/inttypes-h.m4: Remove stub file.
67535
67536 2007-09-07  Simon Josefsson  <simon@josefsson.org>
67537
67538         * doc/headers/stdint.texi: Discuss #include_next issue.
67539
67540 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
67541
67542         * build-aux/bootstrap: Remove obsolete comment about wget --help.
67543
67544 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67545
67546         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
67547         in variable name.
67548
67549 2007-09-03  Jim Meyering  <jim@meyering.net>
67550
67551         New module: git-version-gen.
67552         * modules/git-version-gen: New file.
67553
67554         Import changes from coreutils for bootstrap script.
67555
67556         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
67557
67558         bootstrap: uses rsync to download the .po files
67559         * build-aux/bootstrap (po_download_command_format): New global.
67560         (download_po_files): Use rsync.
67561         (update_po_files): Don't remove .po files after download,
67562         so future rsync runs can take advantage of the copies.
67563
67564         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
67565
67566         Solve the unnecessary-.po-file-regeneration problem once and for all.
67567         * build-aux/bootstrap (download_po_files): New function, renamed from
67568         get_translations.  Now, downloads, but doesn't update LINGUAS.
67569         (update_po_files): New function.
67570
67571         bootstrap: Ignore more.
67572         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
67573         uniwidth to e.g., lib/.gitignore.
67574         (slurp): Handle the sys_stat_.h -> sys mapping, too.
67575
67576         * build-aux/bootstrap: New setting: vc_ignore.
67577         (insert_sorted_if_absent): Create $file if absent.
67578         Adapt to new, possibly empty, list: $vc_ignore.
67579
67580         bootstrap: generate more ignorable names
67581         * build-aux/bootstrap (slurp): When generating ignorable names,
67582         also map .sin to .sed, .gperf to .c, and .y to .c.
67583
67584 2007-09-03  Jim Meyering  <jim@meyering.net>
67585
67586         * build-aux/git-version-gen: New file, from coreutils.  For details, see
67587         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
67588
67589 2007-09-02  Bruno Haible  <bruno@clisp.org>
67590
67591         Fix mis-recognition of 'mcs' on QNX 6.
67592         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
67593         output contains the string "Mono".
67594         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
67595         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
67596
67597 2007-09-01  Bruno Haible  <bruno@clisp.org>
67598
67599         Fix collision between uniwidth/* and linebreak modules.
67600         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
67601         u32_width): Remove declarations.
67602         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
67603         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
67604         streq3, streq2, streq1, streq0): Remove functions.
67605         (STREQ): Remove macro.
67606         (is_cjk_encoding): Remove function.
67607         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
67608         (uc_width, u8_width, u16_width, u32_width): Remove functions.
67609         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
67610         * NEWS: Document the change.
67611
67612 2007-09-01  Bruno Haible  <bruno@clisp.org>
67613
67614         * lib/streq.h: Add double-inclusion guard.
67615
67616 2007-09-01  Karl Berry  <karl@gnu.org>
67617
67618         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
67619
67620 2007-08-28  Jim Meyering  <jim@meyering.net>
67621
67622         Rename mreadlink_with_size to areadlink_with_size.
67623         * NEWS: Document the change.
67624         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
67625         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
67626         * lib/mreadlink.h: Rename this to...
67627         * lib/areadlink.h: ...this.
67628         * modules/mreadlink-with-size: Rename this to...
67629         * modules/areadlink-with-size: ...this.
67630         * lib/canonicalize.c: Reflect the renaming.
67631         * modules/canonicalize: Likewise.
67632
67633 2007-08-26  Bruno Haible  <bruno@clisp.org>
67634
67635         * gnulib-tool (func_import): When deciding which files to remove,
67636         consider also dangling symbolic links.
67637         Reported by Eric Blake.
67638
67639 2007-08-26  Bruno Haible  <bruno@clisp.org>
67640
67641         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
67642
67643 2007-08-23  Simon Josefsson  <simon@josefsson.org>
67644
67645         * lib/readline.c: Don't include getline.h, the prototype is now
67646         found in stdio.h.
67647
67648 2007-08-23  Jim Meyering  <jim@meyering.net>
67649
67650         Getdelim touchup.
67651         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
67652         around the funlockfile call, since funlockfile never sets errno.
67653         Don't set errno upon failed realloc.
67654
67655 2007-08-22  Eric Blake  <ebb9@byu.net>
67656
67657         Getline touchups.
67658         * lib/getdelim.c (getdelim): Revert regression that required *n to
67659         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
67660         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
67661         getdelim, rather than whether implementation is missing.
67662         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
67663         * lib/stdio_.h (getline): Also declare if replacement is
67664         required.
67665         * doc/functions/getdelim.texi: New file.
67666         * doc/functions/getline.texi: Likewise.
67667         * doc/gnulib.texi (Function Substitutes): Add new files.
67668         Reported by Bruno Haible.
67669
67670 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
67671
67672         * users.txt: Add Guile.
67673
67674 2007-08-22  Eric Blake  <ebb9@byu.net>
67675
67676         * tests/test-getdelim.c (main): Use remove, not unlink.
67677         * tests/test-getline.c (main): Likewise.
67678
67679         Move getline and getdelim into stdio.h, per POSIX 200x.
67680         * modules/getline (Files): Remove getline.h.
67681         (Depends-on): Add stdio.
67682         (configure.ac): Add module indicator.
67683         * modules/getdelim (Files): Remove getdelim.h.
67684         (Depends-on): Add stdio.
67685         (configure.ac): Add module indicator.
67686         * modules/stdio (Makefile.am): Work with new indicators.
67687         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
67688         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
67689         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
67690         * lib/getdelim.h: Delete.
67691         * lib/getline.h: Delete.
67692         * lib/stdio_.h (getdelim, getline): Declare.
67693         * modules/getdelim-tests: New module.
67694         * modules/getline-tests: Likewise.
67695         * tests/test-getdelim.c: New file.
67696         * tests/test-getline.c: Likewise.
67697         * NEWS: Document the change.
67698         * lib/getline.c: Update choice of header.
67699         * lib/csharpcomp.c: Likewise.
67700         * lib/getpass.c: Likewise.
67701         * lib/javacomp.c: Likewise.
67702         * lib/javaversion.c: Likewise.
67703         * lib/yesno.c: Likewise.
67704         * lib/getdelim.c: Likewise.
67705         (getdelim): Set errno on failure, and avoid memory leak.
67706
67707 2007-08-19  Bruno Haible  <bruno@clisp.org>
67708
67709         * modules/closein (Depends-on): Add freadahead.
67710         * lib/closein.c: Include freadahead.h.
67711         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
67712         is zero.
67713
67714 2007-08-19  Bruno Haible  <bruno@clisp.org>
67715
67716         * modules/freadahead-tests: New file.
67717         * tests/test-freadahead.sh: New file.
67718         * tests/test-freadahead.c: New file.
67719
67720         * modules/freadahead: New file.
67721         * lib/freadahead.h: New file.
67722         * lib/freadahead.c: New file.
67723         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
67724         fbufmode, fpurge, freadable, fwritable.
67725
67726 2007-08-19  Eric Blake  <ebb9@byu.net>
67727
67728         Test yesno in combination with closein.
67729         * lib/yesno.c (yesno): Document use of stdin.
67730         * modules/yesno-tests (Files): New module.
67731         * tests/test-yesno.c (main): New file.
67732         * tests/test-yesno.sh: Likewise.
67733
67734 2007-08-19  Bruno Haible  <bruno@clisp.org>
67735
67736         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
67737         * lib/fseeko.c (rpl_fseeko): Likewise.
67738         * lib/fseterr.c (fseterr): Likewise.
67739
67740 2007-08-19  Bruno Haible  <bruno@clisp.org>
67741
67742         * tests/test-lseek.c (main): Disable a test for BeOS.
67743         * doc/functions/lseek.texi: Document the BeOS bug.
67744
67745 2007-08-19  Bruno Haible  <bruno@clisp.org>
67746             Eric Blake  <ebb9@byu.net>
67747
67748         * lib/lseek.c: Include <sys/stat.h>.
67749         (rpl_lseek): Add workaround code also for Unix platforms.
67750         Needed for BeOS.
67751         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
67752         * doc/functions/lseek.texi: Document BeOS definiency.
67753
67754 2007-08-18  Bruno Haible  <bruno@clisp.org>
67755
67756         * modules/fstrcmp-tests: New file.
67757         * tests/test-fstrcmp.c: New file.
67758
67759 2007-08-18  Bruno Haible  <bruno@clisp.org>
67760
67761         * modules/fstrcmp: New file, from GNU gettext with modifications.
67762         * lib/fstrcmp.h: New file, from GNU gettext.
67763         * lib/fstrcmp.c: New file, from GNU gettext.
67764         * MODULES.html.sh (String handling): Add fstrcmp.
67765
67766 2007-08-18  Bruno Haible  <bruno@clisp.org>
67767
67768         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
67769         'bool'.
67770         (diag, compareseq): Remove const from the ctxt argument.
67771         (USE_HEURISTIC): Undefine at the end.
67772
67773 2007-08-18  Jim Meyering  <jim@meyering.net>
67774
67775         New file: lib/idcache.h
67776         * NEWS: Mention the addition.
67777         * modules/idcache (Files): Add lib/idcache.h
67778         * lib/idcache.c: Include "idcache.h".
67779         Don't include <sys/types.h>.
67780         Add a FIXME comment.
67781         Move file-scoped "static" declarations to the top.
67782         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
67783
67784 2007-08-17  Bruno Haible  <bruno@clisp.org>
67785         and Paul Eggert  <eggert@cs.ucla.edu>
67786
67787         * MODULES.html.sh: Add diffseq.
67788         * modules/diffseq: New file.
67789         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
67790         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
67791
67792 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67793
67794         Import changes from coreutils for bootstrap script.
67795
67796         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
67797
67798         * build-aux/bootstrap (slurp): Work even in environments where
67799         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
67800         current code does not slurp files whose names start with ".", and
67801         this looks like it might be a troublesome area.
67802
67803         2007-07-11  Jim Meyering  <jim@meyering.net>
67804
67805         If there's a GPL vN copyright comment, require that N == 3.
67806
67807         2007-07-08  Jim Meyering  <jim@meyering.net>
67808
67809         Run the coreutils-specific code only if tests/Makefile.am.in exists.
67810         * build-aux/bootstrap (mam_template): Move definition out of loop.
67811
67812         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
67813
67814         * build-aux/bootstrap (symlink_to_dir): Rename function from
67815         symlink_to_gnulib.  Add a directory parameter.  Update all
67816         callers.
67817         (cp_mark_as_generated): Also check for -- and link to -- files in
67818         gl/.
67819
67820         2007-07-08  Jim Meyering  <jim@meyering.net>
67821
67822         Adapt to deeper hierarchy in gnulib.
67823         * build-aux/bootstrap (symlink_to_dir): If the destination
67824         directory doesn't exist, create it. This is required at least for
67825         "lib/uniwidth/cjk.h".
67826
67827         2007-05-15  Jim Meyering  <jim@meyering.net>
67828
67829         * build-aux/bootstrap: Now that generated Makefile.am files
67830         are no longer under version control, they must be created at
67831         bootstrap time.
67832
67833 2007-08-14  Ben Pfaff  <blp@gnu.org>
67834
67835         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
67836
67837 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
67838
67839         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
67840         given the changes below.
67841         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
67842         even on hosts that have padding bits beyond the supported 64.
67843
67844 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
67845
67846         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
67847         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
67848         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
67849         depends on it.
67850         (xstrtol_error): Remove.
67851         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
67852         but with a different signature.
67853         (ATTRIBUTE_NORETURN, __attribute__): New macros.
67854         * lib/xstrtol-error.c: Include exitfail.h.
67855         (xstrtol_fatal): New function, with a different signature from the
67856         old xstrtol_error, so that the caller need not worry about passing
67857         in an exit status, or about storage management of the option argument.
67858         (xstrtol_error): Now a static function.  Redo signature to
67859         implement xstrtol_fatal.  Output the correct number of hyphens in
67860         front of the option so that the caller need not worry about
67861         storage management.
67862         (N_): New macro.
67863         (_): Remove; not used now.
67864         * modules/xstrtol: Depend on getopt.
67865         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
67866         of old STRTOL_FATAL_ERROR macro.
67867         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
67868         of test program.
67869         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
67870         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
67871
67872 2007-08-08  Eric Blake  <ebb9@byu.net>
67873
67874         * lib/xstrtol-error.c: Add missing include.
67875
67876         Move xstrtol messages into gnulib domain, when --pobase is used.
67877         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
67878         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
67879         * modules/xstrtol (Files): Distribute new file.
67880         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
67881         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
67882         * tests/test-xstrtol.c: ...into new file.
67883         * tests/test-xstrtoul.c: Also test xstrtoul.
67884         * tests/test-xstrtoimax.c: Also test xstrtoimax.
67885         * tests/test-xstrtoumax.c: Also test xstrtoumax.
67886         * tests/test-xstrtol.sh: Drive the tests.
67887         * tests/test-xstrtoimax.sh: Likewise.
67888         * tests/test-xstrtoumax.sh: Likewise.
67889         * modules/xstrtol-tests: New module.
67890         * modules/xstrtoimax-tests: Likewise.
67891         * modules/xstrtoumax-tests: Likewise.
67892
67893 2007-08-08  Jim Meyering  <jim@meyering.net>
67894
67895         New function: mfile_name_concat.
67896         * lib/filenamecat.c (mfile_name_concat): New function, just like
67897         file_name_concat, but return NULL upon failure rather than exiting
67898         with a diagnostic.
67899         * lib/filenamecat.h: Declare it.
67900
67901 2007-08-07  Bruno Haible  <bruno@clisp.org>
67902
67903         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
67904         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
67905         warning from gcc.
67906         Reported by Eric Blake.
67907
67908 2007-08-07  Simon Josefsson  <simon@josefsson.org>
67909
67910         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
67911         * modules/crypto/arcfour (License): Likewise.
67912         * modules/crypto/des-tests (License): Likewise.
67913         * modules/crypto/gc-arctwo-tests (License): Likewise.
67914         * modules/crypto/gc-des-tests (License): Likewise.
67915         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
67916         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
67917         * modules/crypto/gc-md2-tests (License): Likewise.
67918         * modules/crypto/gc-md4-tests (License): Likewise.
67919         * modules/crypto/gc-md5-tests (License): Likewise.
67920         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
67921         * modules/crypto/gc-rijndael-tests (License): Likewise.
67922         * modules/crypto/gc-sha1-tests (License): Likewise.
67923         * modules/crypto/gc-tests (License): Likewise.
67924         * modules/crypto/hmac-md5 (License): Likewise.
67925         * modules/crypto/hmac-sha1 (License): Likewise.
67926         * modules/crypto/md2-tests (License): Likewise.
67927         * modules/crypto/md4-tests (License): Likewise.
67928         * modules/crypto/md5 (License): Likewise.
67929         * modules/crypto/rijndael (License): Likewise.
67930         * modules/crypto/sha1 (License): Likewise.
67931         * modules/memxor (License): Likewise.
67932
67933 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
67934         and Bruno Haible  <bruno@clisp.org>
67935
67936         * NEWS: Describe interface changes to human, xstrtol.
67937         * lib/human.h: Include <xstrtol.h>.
67938         (human_options): Return enum strtol_error, not int.  Remove
67939         bool arg; take int * instead.
67940         * lib/human.c: Don't include "gettext.h".
67941         (_): Remove; no longer used.
67942         Don't include <xstrtol.h>, since human.h does it.
67943         (human_options): Adjust to abovementioned interface changes.
67944         Do not report error to stderr; that's now the caller's
67945         responsibility.
67946         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
67947         interface change.
67948         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
67949         Str, Argument_type_string.  All uses changed.  Put " argument"
67950         in diagnostics to make them clearer.  Change wording of suffix
67951         message for clarity.
67952         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
67953         Argument_type_string.
67954         (STRTOL_FATAL_WARN): Remove; no longer used.
67955         * modules/human (Depends-on): Remove gettext-h.
67956
67957 2007-08-06  Simon Josefsson  <simon@josefsson.org>
67958
67959         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
67960
67961 2007-07-31  Bruno Haible  <bruno@clisp.org>
67962
67963         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
67964         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
67965         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
67966
67967 2007-07-31  Bruno Haible  <bruno@clisp.org>
67968
67969         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
67970         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
67971
67972 2007-07-30  Bruno Haible  <bruno@clisp.org>
67973
67974         * modules/base64 (License): Use the synonymous term "LGPLv2+".
67975         * modules/c-ctype (License): Likewise.
67976         * modules/c-strcase (License): Likewise.
67977         * modules/check-version (License): Likewise.
67978         * modules/iconv (License): Likewise.
67979         * modules/iconv_open (License): Likewise.
67980         * modules/read-file (License): Likewise.
67981         * modules/striconv (License): Likewise.
67982         * modules/strverscmp (License): Likewise.
67983         * modules/vasprintf (License): Likewise.
67984         * modules/crypto/des (License): Likewise.
67985         * modules/crypto/gc (License): Likewise.
67986         * modules/crypto/gc-arcfour (License): Likewise.
67987         * modules/crypto/gc-arctwo (License): Likewise.
67988         * modules/crypto/gc-des (License): Likewise.
67989         * modules/crypto/gc-hmac-md5 (License): Likewise.
67990         * modules/crypto/gc-hmac-sha1 (License): Likewise.
67991         * modules/crypto/gc-md2 (License): Likewise.
67992         * modules/crypto/gc-md4 (License): Likewise.
67993         * modules/crypto/gc-md5 (License): Likewise.
67994         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
67995         * modules/crypto/gc-random (License): Likewise.
67996         * modules/crypto/gc-rijndael (License): Likewise.
67997         * modules/crypto/gc-sha1 (License): Likewise.
67998         * modules/crypto/md2 (License): Likewise.
67999         * modules/crypto/md4 (License): Likewise.
68000
68001 2007-07-30  Jim Meyering  <jim@meyering.net>
68002
68003         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
68004         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
68005         it has valid stat data.  This bug would cause du not to count the
68006         sizes of inaccessible directories.
68007         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
68008         in <http://bugzilla.redhat.com/250077>.
68009
68010 2007-07-25  Peter O'Gorman  <peter@pogma.com>
68011             Bruno Haible  <bruno@clisp.org>
68012
68013         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
68014         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
68015         #include_next, gives a diagnostic about it, but reports no error in
68016         the exit code.
68017         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
68018
68019 2007-07-24  Ben Pfaff  <blp@gnu.org>
68020
68021         Improve name: "count-one-bits" is better than "popcount".
68022         * MODULES.html.sh: Update name.
68023         * lib/popcount.h: Renamed lib/count-one-bits.h.
68024         (popcount): Renamed count_one_bits.
68025         (popcountl): Renamed count_one_bits_l.
68026         (popcountll): Renamed count_one_bits_ll.
68027         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
68028         * modules/popcount: Renamed module/count-one-bits.
68029         * modules/popcount-tests: Renamed module/count-one-bits-tests.
68030         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
68031
68032 2007-07-23  Ben Pfaff  <blp@gnu.org>
68033
68034         * lib/popcount.h (popcount32): Reduce size of constants, to allow
68035         better code generation, and add U to large constants to avoid
68036         warnings, in non-GCC case.
68037         Suggested by Bruno Haible.
68038
68039 2007-07-23  Ben Pfaff  <blp@gnu.org>
68040
68041         * lib/popcount.h: Use verify_true instead of if...abort.
68042         * modules/popcount: Depend on verify module.
68043         Suggested by Jim Meyering.
68044
68045 2007-07-23  Bruno Haible  <bruno@clisp.org>
68046
68047         * gnulib-tool (func_import): Create a .cvsignore file also when the
68048         directory is not yet in CVS but the toplevel directory is. When
68049         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
68050         Reported by Karl Berry.
68051
68052 2007-07-22  Ben Pfaff  <blp@gnu.org>
68053
68054         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
68055         case.
68056         Suggested by Eric Blake.
68057
68058 2007-07-22  Ben Pfaff  <blp@gnu.org>
68059
68060         New module: popcount.
68061         * MODULES.html.sh: Add popcount.
68062         * modules/popcount: New file.
68063         * modules/popcount-tests: New file.
68064         * tests/test-popcount.c: New file.
68065         * lib/popcount.h: New file.
68066         * m4/popcount.m4: New file.
68067
68068 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
68069
68070         * build-aux/announce-gen: Update to GPLv3.
68071
68072         * build-aux/config.guess: Update from config.
68073
68074 2007-07-21  Bruno Haible  <bruno@clisp.org>
68075
68076         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
68077         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
68078
68079 2007-07-20  Jim Meyering  <jim@meyering.net>
68080
68081         * check-module: Diagnose a self-dependency.
68082
68083 2007-07-19  Bruno Haible  <bruno@clisp.org>
68084
68085         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
68086         empty.
68087         Reported by Eric Blake.
68088
68089 2007-07-18  Bruno Haible  <bruno@clisp.org>
68090
68091         * gnulib-tool: New options --po-base, --po-domain.
68092         (func_usage): Document them.
68093         (pobase, po_domain): New variables.
68094         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
68095         DEFAULT_TEXT_DOMAIN.
68096         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
68097         (func_import): Consider pobase and po_domain. Create a po/ directory.
68098         (func_create_testdir): Set pobase and po_domain to empty.
68099         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
68100         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
68101
68102 2007-07-18  Bruno Haible  <bruno@clisp.org>
68103
68104         * gnulib-tool (func_get_automake_snippet): Synthesize also an
68105         EXTRA_DIST augmentation for files in build-aux/.
68106
68107 2007-07-16  Bruno Haible  <bruno@clisp.org>
68108
68109         * modules/lseek (License): Use the synonymous term "LGPLv2+".
68110         * modules/getdelim (License): Likewise.
68111
68112 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68113
68114         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
68115         * modules/d-type (License): Likewise.
68116         * modules/extensions (License): Likewise.
68117         * modules/fnmatch (License): Likewise.
68118         * modules/fseeko (License): Likewise.
68119         * modules/getaddrinfo (License): Likewise.
68120         * modules/getline (License): Likewise.
68121         * modules/getlogin_r (License): Likewise.
68122         * modules/getpass (License): Likewise.
68123         * modules/gettimeofday (License): Likewise.
68124         * modules/glob (License): Likewise.
68125         * modules/inet_ntop (License): Likewise.
68126         * modules/malloc (License): Likewise.
68127         * modules/malloca (License): Likewise.
68128         * modules/memmem (License): Likewise.
68129         * modules/mempcpy (License): Likewise.
68130         * modules/memset (License): Likewise.
68131         * modules/minmax (License): Likewise.
68132         * modules/mktime (License): Likewise.
68133         * modules/netinet_in (License): Likewise.
68134         * modules/pathmax (License): Likewise.
68135         * modules/poll (License): Likewise.
68136         * modules/regex (License): Likewise.
68137         * modules/snprintf (License): Likewise.
68138         * modules/stdbool (License): Likewise.
68139         * modules/stdint (License): Likewise.
68140         * modules/stdio (License): Likewise.
68141         * modules/strcase (License): Likewise.
68142         * modules/strcasestr (License): Likewise.
68143         * modules/strdup (License): Likewise.
68144         * modules/string (License): Likewise.
68145         * modules/strndup (License): Likewise.
68146         * modules/strnlen (License): Likewise.
68147         * modules/strpbrk (License): Likewise.
68148         * modules/strptime (License): Likewise.
68149         * modules/strsep (License): Likewise.
68150         * modules/sys_select (License): Likewise.
68151         * modules/sys_socket (License): Likewise.
68152         * modules/sys_stat (License): Likewise.
68153         * modules/sys_time (License): Likewise.
68154         * modules/time (License): Likewise.
68155         * modules/time_r (License): Likewise.
68156         * modules/timegm (License): Likewise.
68157         * modules/unistd (License): Likewise.
68158         * modules/vsnprintf (License): Likewise.
68159         * modules/wctype (License): Likewise.
68160
68161 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68162
68163         * modules/argz (License): LGPLv2+.
68164
68165 2007-07-15  Karl Berry  <karl@gnu.org>
68166
68167         * doc/gnulib.texi: revise node structure per new fdl.texi.
68168
68169 2007-07-14  Bruno Haible  <bruno@clisp.org>
68170
68171         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
68172         the output file.
68173         * lib/uniname/uninames.h: Regenerated.
68174
68175 2007-07-14  Karl Berry  <karl@gnu.org>
68176
68177         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
68178         omitting sectioning and index commands.
68179
68180 2007-07-13  Bruno Haible  <bruno@clisp.org>
68181
68182         New gnulib-tool option --more-symlinks.
68183         * gnulib-tool (func_usage): Document --more-symlinks.
68184         (do_copyrights): New variable.
68185         Recognize option --more-symlinks.
68186         (func_import): Don't add a copyright notice transform to
68187         sed_transform_lib_file if do_copyrights is empty.
68188
68189 2007-07-13  Bruno Haible  <bruno@clisp.org>
68190
68191         * lib/vasnprintf.c (decimal_point_char): Define also if
68192         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
68193         && !NEED_PRINTF_DIRECTIVE_A.
68194         Reported by Clemens Koller <clemens.koller@anagramm.de> via
68195         Gary V. Vaughan <gary@gnu.org>.
68196
68197 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
68198
68199         * lib/inttypes_.h: Undo previous change, since it was fixed
68200         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
68201
68202 2007-07-13  Bruno Haible  <bruno@clisp.org>
68203
68204         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
68205         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
68206
68207 2007-07-13  Jim Meyering  <jim@meyering.net>
68208
68209         df: Don't fail for Tru64's "file-on-file mount".
68210         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
68211         so we fall through and use statfs instead.  Details here:
68212         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
68213         Reported by Albert Chin.
68214
68215 2007-07-13  Bruno Haible  <bruno@clisp.org>
68216
68217         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
68218         * modules/configmake (License): Likewise.
68219         * modules/gettext (License): Likewise.
68220         * modules/gettext-h (License): Likewise.
68221         * modules/include_next (License): Likewise.
68222         * modules/link-warning (License): Likewise.
68223         * modules/localcharset (License): Likewise.
68224         * modules/localename (License): Likewise.
68225         * modules/lock (License): Likewise.
68226         * modules/relocatable-lib-lgpl (License): Likewise.
68227         * modules/size_max (License): Likewise.
68228         * modules/vasnprintf (License): Likewise.
68229         * modules/wchar (License): Likewise.
68230         * modules/xsize (License): Likewise.
68231
68232 2007-07-13  Bruno Haible  <bruno@clisp.org>
68233
68234         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
68235         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
68236
68237 2007-07-12  Bruno Haible  <bruno@clisp.org>
68238
68239         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
68240         in the modules files.
68241
68242 2007-07-11  Karl Berry  <karl@gnu.org>
68243
68244         * MODULES.html.sh (func_module): use
68245          sed -e '\|^'"${includefile}"'$|d'
68246          instead of /.../d, to avoid errors on $includefile's containing /.
68247
68248 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68249
68250         * gnulib-tool (func_import): Avoid duplication of --avoid
68251         statements
68252         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
68253         names to `_' in variable names.
68254
68255 2007-07-10  Eric Blake  <ebb9@byu.net>
68256
68257         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
68258         * NEWS: Document this change.
68259
68260 2007-07-08  Bruno Haible  <bruno@clisp.org>
68261
68262         Update to Unicode 5.0.
68263         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
68264         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
68265         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
68266         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
68267         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
68268         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
68269         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
68270         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
68271         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
68272         U+10A3F, U+1D242..U+1D244.
68273         (nonspacing_table_ind): Update.
68274         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
68275         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
68276
68277 2007-07-08  Bruno Haible  <bruno@clisp.org>
68278
68279         Update to Unicode 5.0.
68280         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
68281         code transform. Extend the name index field of unicode_name_to_code and
68282         unicode_code_to_name from 16 to 24 bits.
68283         * lib/uniname/uniname.c (unicode_character_name,
68284         unicode_name_character): Add the range 0x12xxx to the code transform.
68285         * lib/uniname/uninames.h: Regenerated.
68286         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
68287
68288 2007-07-07  Bruno Haible  <bruno@clisp.org>
68289
68290         * modules/wcwidth-tests: New file.
68291         * tests/test-wcwidth.c: New file.
68292
68293         Work around MacOS X wcwidth() bug.
68294         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
68295         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
68296         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
68297         original wcwidth in non-UTF-8 locales.
68298         * modules/wcwidth (Depends-on): Add localcharset, streq,
68299         uniwidth/width.
68300         * doc/functions/wcwidth.texi: Update.
68301
68302 2007-07-07  Bruno Haible  <bruno@clisp.org>
68303
68304         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
68305         (wcwidth): New declaration.
68306         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
68307         macros.
68308         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
68309         here. Prepare for creating <wchar.h> unconditionally.
68310         * modules/wchar (Depends-on): Add link-warning.
68311         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
68312         REPLACE_WCWIDTH, and GL_LINK_WARNING.
68313         * lib/wcwidth.h: Remove file.
68314         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
68315         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
68316         * modules/wcwidth (Files): Remove lib/wcwidth.h.
68317         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
68318         (Include): Replace wcwidth.h with <wchar.h>.
68319         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
68320         * lib/mbchar.h: Don't include wcwidth.h.
68321         * lib/mbswidth.c: Likewise.
68322         * NEWS: Mention the change.
68323
68324 2007-07-07  Bruno Haible  <bruno@clisp.org>
68325
68326         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
68327         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
68328         definition with an external declaration.
68329         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
68330         defined as a function. Remove AC_C_INLINE requirement.
68331         * modules/wcwidth (Files): Add lib/wcwidth.c.
68332         (Makefile.am): Remove redundant statement.
68333
68334 2007-07-07  Bruno Haible  <bruno@clisp.org>
68335
68336         * MODULES.html.sh (Unicode string functions): Add the new modules.
68337
68338         * tests/uniwidth/test-u32-strwidth.c: New file.
68339         * modules/uniwidth/u32-strwidth-tests: New file.
68340
68341         * lib/uniwidth/u32-strwidth.c: New file.
68342         * modules/uniwidth/u32-strwidth: New file.
68343
68344         * tests/uniwidth/test-u16-strwidth.c: New file.
68345         * modules/uniwidth/u16-strwidth-tests: New file.
68346
68347         * lib/uniwidth/u16-strwidth.c: New file.
68348         * modules/uniwidth/u16-strwidth: New file.
68349
68350         * tests/uniwidth/test-u8-strwidth.c: New file.
68351         * modules/uniwidth/u8-strwidth-tests: New file.
68352
68353         * lib/uniwidth/u8-strwidth.c: New file.
68354         * modules/uniwidth/u8-strwidth: New file.
68355
68356         * tests/uniwidth/test-u32-width.c: New file.
68357         * modules/uniwidth/u32-width-tests: New file.
68358
68359         * lib/uniwidth/u32-width.c: New file.
68360         * modules/uniwidth/u32-width: New file.
68361
68362         * tests/uniwidth/test-u16-width.c: New file.
68363         * modules/uniwidth/u16-width-tests: New file.
68364
68365         * lib/uniwidth/u16-width.c: New file.
68366         * modules/uniwidth/u16-width: New file.
68367
68368         * tests/uniwidth/test-u8-width.c: New file.
68369         * modules/uniwidth/u8-width-tests: New file.
68370
68371         * lib/uniwidth/u8-width.c: New file.
68372         * modules/uniwidth/u8-width: New file.
68373
68374         * tests/uniwidth/test-uc_width.c: New file.
68375         * modules/uniwidth/width-tests: New file.
68376
68377         * lib/uniwidth/width.c: New file, from GNU libiconv.
68378         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
68379         * modules/uniwidth/width: New file.
68380
68381         * lib/uniwidth.h: New file, from GNU libiconv.
68382         * modules/uniwidth/base: New file.
68383
68384 2007-07-07  Bruno Haible  <bruno@clisp.org>
68385
68386         * lib/uniname.h: New file, from GNU gettext.
68387         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
68388         * lib/uniname/uninames.h: New file, from GNU gettext.
68389         * lib/uniname/uniname.c: New file, from GNU gettext.
68390         * tests/uniname/test-uninames.sh: New file.
68391         * tests/uniname/test-uninames.c: New file, from GNU gettext.
68392         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
68393         * modules/uniname/base: New file.
68394         * modules/uniname/uniname: New file.
68395         * modules/uniname/uniname-tests: New file.
68396         * MODULES.html.sh (Unicode string functions): Add the new modules.
68397
68398 2007-07-06  Bruno Haible  <bruno@clisp.org>
68399
68400         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
68401
68402 2007-07-06  Bruno Haible  <bruno@clisp.org>
68403
68404         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
68405         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
68406         includes <cygwin/sys_time.h> which includes <sys/select.h> which
68407         include <sys/time.h>.
68408         Reported by Eric Blake.
68409
68410 2007-07-06  Eric Blake  <ebb9@byu.net>
68411
68412         Fix testing canonicalize on cygwin.
68413         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
68414         Revert patch from 2007-06-19.
68415         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
68416         canonicalize module is also in use.
68417         * tests/test-canonicalize.c: New file.
68418         * tests/test-canonicalize.sh: Likewise.
68419         * modules/canonicalize-tests: Likewise.
68420
68421 2007-07-06  Jim Meyering  <jim@meyering.net>
68422
68423         * lib/getugroups.c (getugroups): Detect getgrent failure.
68424         Adjust comment to reflect reality: this function may return -1.
68425
68426 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
68427
68428         * build-aux/bootstrap (TP_URL,get_translations): Update to use
68429         the new TP address.
68430         (usage): Fix typo
68431         (gnulib_mk): New variable.
68432
68433 2007-07-05  Jim Meyering  <jim@meyering.net>
68434
68435         Don't let endgrent clobber errno, no matter how improbable.
68436         * lib/getugroups.c (getugroups): Save and restore errno around
68437         endgrent call.
68438
68439         Close the group DB even when failing with 2^31 or more members.
68440         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
68441
68442 2007-07-04  Jim Meyering  <jim@meyering.net>
68443
68444         * lib/getugroups.h: New file.
68445         * lib/getugroups.c: Include "getugroups.h".
68446         Remove uses of "register" keyword.
68447         Move local variable, "cp", down into scope where used.
68448         Give "username" parameter the "const" attribute.
68449         * modules/getugroups (Files): Add lib/getugroups.h
68450
68451 2007-07-04  Karl Berry  <karl@gnu.org>
68452
68453         * MODULES.html.sh (func_all_modules): Complete rename of
68454         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
68455
68456 2007-07-02  Bruno Haible  <bruno@clisp.org>
68457
68458         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
68459         mode, when inttypes.h comes from gnulib.
68460         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
68461
68462 2007-07-02  Simon Josefsson  <simon@josefsson.org>
68463
68464         * NEWS: Mention lgpl module name change.
68465
68466         * modules/lgpl-2.1: Renamed from lgpl.
68467
68468         * NEWS: Mention gpl module name change.
68469
68470         * modules/gpl-3.0: New file, based on gpl-2.0.
68471
68472         * modules/gpl-2.0: Renamed from gpl.
68473
68474         * modules/gpl: Fix filename, doc/gpl.texi is now found at
68475         doc/gpl-2.0.texi.
68476
68477 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
68478
68479         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
68480         #define __STDC_LIMIT_MACROS temporarily while including
68481         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
68482         Problem reported by Joel E. Denny in
68483         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
68484
68485 2007-07-01  Bruno Haible  <bruno@clisp.org>
68486
68487         * lib/unistdio.h: New file.
68488         * lib/unistdio/u-asnprintf.h: New file.
68489         * lib/unistdio/u-asprintf.h: New file.
68490         * lib/unistdio/u-printf-args.c: New file.
68491         * lib/unistdio/u-printf-args.h: New file.
68492         * lib/unistdio/u-printf-parse.h: New file.
68493         * lib/unistdio/u-snprintf.h: New file.
68494         * lib/unistdio/u-sprintf.h: New file.
68495         * lib/unistdio/u-vasprintf.h: New file.
68496         * lib/unistdio/u-vsnprintf.h: New file.
68497         * lib/unistdio/u-vsprintf.h: New file.
68498         * lib/unistdio/ulc-asnprintf.c: New file.
68499         * lib/unistdio/ulc-asprintf.c: New file.
68500         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
68501         * lib/unistdio/ulc-printf-parse.c: New file.
68502         * lib/unistdio/ulc-snprintf.c: New file.
68503         * lib/unistdio/ulc-sprintf.c: New file.
68504         * lib/unistdio/ulc-vasnprintf.c: New file.
68505         * lib/unistdio/ulc-vasprintf.c: New file.
68506         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
68507         * lib/unistdio/ulc-vsnprintf.c: New file.
68508         * lib/unistdio/ulc-vsprintf.c: New file.
68509         * lib/unistdio/u8-asnprintf.c: New file.
68510         * lib/unistdio/u8-asprintf.c: New file.
68511         * lib/unistdio/u8-printf-parse.c: New file.
68512         * lib/unistdio/u8-snprintf.c: New file.
68513         * lib/unistdio/u8-sprintf.c: New file.
68514         * lib/unistdio/u8-vasnprintf.c: New file.
68515         * lib/unistdio/u8-vasprintf.c: New file.
68516         * lib/unistdio/u8-vsnprintf.c: New file.
68517         * lib/unistdio/u8-vsprintf.c: New file.
68518         * lib/unistdio/u8-u8-asnprintf.c: New file.
68519         * lib/unistdio/u8-u8-asprintf.c: New file.
68520         * lib/unistdio/u8-u8-snprintf.c: New file.
68521         * lib/unistdio/u8-u8-sprintf.c: New file.
68522         * lib/unistdio/u8-u8-vasnprintf.c: New file.
68523         * lib/unistdio/u8-u8-vasprintf.c: New file.
68524         * lib/unistdio/u8-u8-vsnprintf.c: New file.
68525         * lib/unistdio/u8-u8-vsprintf.c: New file.
68526         * lib/unistdio/u16-asnprintf.c: New file.
68527         * lib/unistdio/u16-asprintf.c: New file.
68528         * lib/unistdio/u16-printf-parse.c: New file.
68529         * lib/unistdio/u16-snprintf.c: New file.
68530         * lib/unistdio/u16-sprintf.c: New file.
68531         * lib/unistdio/u16-vasnprintf.c: New file.
68532         * lib/unistdio/u16-vasprintf.c: New file.
68533         * lib/unistdio/u16-vsnprintf.c: New file.
68534         * lib/unistdio/u16-vsprintf.c: New file.
68535         * lib/unistdio/u16-u16-asnprintf.c: New file.
68536         * lib/unistdio/u16-u16-asprintf.c: New file.
68537         * lib/unistdio/u16-u16-snprintf.c: New file.
68538         * lib/unistdio/u16-u16-sprintf.c: New file.
68539         * lib/unistdio/u16-u16-vasnprintf.c: New file.
68540         * lib/unistdio/u16-u16-vasprintf.c: New file.
68541         * lib/unistdio/u16-u16-vsnprintf.c: New file.
68542         * lib/unistdio/u16-u16-vsprintf.c: New file.
68543         * lib/unistdio/u32-asnprintf.c: New file.
68544         * lib/unistdio/u32-asprintf.c: New file.
68545         * lib/unistdio/u32-printf-parse.c: New file.
68546         * lib/unistdio/u32-snprintf.c: New file.
68547         * lib/unistdio/u32-sprintf.c: New file.
68548         * lib/unistdio/u32-vasnprintf.c: New file.
68549         * lib/unistdio/u32-vasprintf.c: New file.
68550         * lib/unistdio/u32-vsnprintf.c: New file.
68551         * lib/unistdio/u32-vsprintf.c: New file.
68552         * lib/unistdio/u32-u32-asnprintf.c: New file.
68553         * lib/unistdio/u32-u32-asprintf.c: New file.
68554         * lib/unistdio/u32-u32-snprintf.c: New file.
68555         * lib/unistdio/u32-u32-sprintf.c: New file.
68556         * lib/unistdio/u32-u32-vasnprintf.c: New file.
68557         * lib/unistdio/u32-u32-vasprintf.c: New file.
68558         * lib/unistdio/u32-u32-vsnprintf.c: New file.
68559         * lib/unistdio/u32-u32-vsprintf.c: New file.
68560         * tests/unistdio/test-ulc-asnprintf1.c: New file.
68561         * tests/unistdio/test-ulc-asnprintf1.h: New file.
68562         * tests/unistdio/test-ulc-printf1.h: New file.
68563         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
68564         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
68565         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
68566         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
68567         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
68568         * tests/unistdio/test-ulc-vasprintf1.c: New file.
68569         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
68570         * tests/unistdio/test-ulc-vsprintf1.c: New file.
68571         * tests/unistdio/test-u8-asnprintf1.c: New file.
68572         * tests/unistdio/test-u8-asnprintf1.h: New file.
68573         * tests/unistdio/test-u8-printf1.h: New file.
68574         * tests/unistdio/test-u8-vasnprintf1.c: New file.
68575         * tests/unistdio/test-u8-vasnprintf2.c: New file.
68576         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
68577         * tests/unistdio/test-u8-vasnprintf3.c: New file.
68578         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
68579         * tests/unistdio/test-u8-vasprintf1.c: New file.
68580         * tests/unistdio/test-u8-vsnprintf1.c: New file.
68581         * tests/unistdio/test-u8-vsprintf1.c: New file.
68582         * tests/unistdio/test-u16-asnprintf1.c: New file.
68583         * tests/unistdio/test-u16-asnprintf1.h: New file.
68584         * tests/unistdio/test-u16-printf1.h: New file.
68585         * tests/unistdio/test-u16-vasnprintf1.c: New file.
68586         * tests/unistdio/test-u16-vasnprintf2.c: New file.
68587         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
68588         * tests/unistdio/test-u16-vasnprintf3.c: New file.
68589         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
68590         * tests/unistdio/test-u16-vasprintf1.c: New file.
68591         * tests/unistdio/test-u16-vsnprintf1.c: New file.
68592         * tests/unistdio/test-u16-vsprintf1.c: New file.
68593         * tests/unistdio/test-u32-asnprintf1.c: New file.
68594         * tests/unistdio/test-u32-asnprintf1.h: New file.
68595         * tests/unistdio/test-u32-printf1.h: New file.
68596         * tests/unistdio/test-u32-vasnprintf1.c: New file.
68597         * tests/unistdio/test-u32-vasnprintf2.c: New file.
68598         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
68599         * tests/unistdio/test-u32-vasnprintf3.c: New file.
68600         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
68601         * tests/unistdio/test-u32-vasprintf1.c: New file.
68602         * tests/unistdio/test-u32-vsnprintf1.c: New file.
68603         * tests/unistdio/test-u32-vsprintf1.c: New file.
68604         * modules/unistdio/base: New file.
68605         * modules/unistdio/u-printf-args: New file.
68606         * modules/unistdio/ulc-asnprintf: New file.
68607         * modules/unistdio/ulc-asprintf: New file.
68608         * modules/unistdio/ulc-fprintf: New file.
68609         * modules/unistdio/ulc-printf-parse: New file.
68610         * modules/unistdio/ulc-snprintf: New file.
68611         * modules/unistdio/ulc-sprintf: New file.
68612         * modules/unistdio/ulc-vasnprintf: New file.
68613         * modules/unistdio/ulc-vasprintf: New file.
68614         * modules/unistdio/ulc-vfprintf: New file.
68615         * modules/unistdio/ulc-vsnprintf: New file.
68616         * modules/unistdio/ulc-vsprintf: New file.
68617         * modules/unistdio/u8-asnprintf: New file.
68618         * modules/unistdio/u8-asprintf: New file.
68619         * modules/unistdio/u8-printf-parse: New file.
68620         * modules/unistdio/u8-snprintf: New file.
68621         * modules/unistdio/u8-sprintf: New file.
68622         * modules/unistdio/u8-vasnprintf: New file.
68623         * modules/unistdio/u8-vasprintf: New file.
68624         * modules/unistdio/u8-vsnprintf: New file.
68625         * modules/unistdio/u8-vsprintf: New file.
68626         * modules/unistdio/u8-u8-asnprintf: New file.
68627         * modules/unistdio/u8-u8-asprintf: New file.
68628         * modules/unistdio/u8-u8-snprintf: New file.
68629         * modules/unistdio/u8-u8-sprintf: New file.
68630         * modules/unistdio/u8-u8-vasnprintf: New file.
68631         * modules/unistdio/u8-u8-vasprintf: New file.
68632         * modules/unistdio/u8-u8-vsnprintf: New file.
68633         * modules/unistdio/u8-u8-vsprintf: New file.
68634         * modules/unistdio/u16-asnprintf: New file.
68635         * modules/unistdio/u16-asprintf: New file.
68636         * modules/unistdio/u16-printf-parse: New file.
68637         * modules/unistdio/u16-snprintf: New file.
68638         * modules/unistdio/u16-sprintf: New file.
68639         * modules/unistdio/u16-vasnprintf: New file.
68640         * modules/unistdio/u16-vasprintf: New file.
68641         * modules/unistdio/u16-vsnprintf: New file.
68642         * modules/unistdio/u16-vsprintf: New file.
68643         * modules/unistdio/u16-u16-asnprintf: New file.
68644         * modules/unistdio/u16-u16-asprintf: New file.
68645         * modules/unistdio/u16-u16-snprintf: New file.
68646         * modules/unistdio/u16-u16-sprintf: New file.
68647         * modules/unistdio/u16-u16-vasnprintf: New file.
68648         * modules/unistdio/u16-u16-vasprintf: New file.
68649         * modules/unistdio/u16-u16-vsnprintf: New file.
68650         * modules/unistdio/u16-u16-vsprintf: New file.
68651         * modules/unistdio/u32-asnprintf: New file.
68652         * modules/unistdio/u32-asprintf: New file.
68653         * modules/unistdio/u32-printf-parse: New file.
68654         * modules/unistdio/u32-snprintf: New file.
68655         * modules/unistdio/u32-sprintf: New file.
68656         * modules/unistdio/u32-vasnprintf: New file.
68657         * modules/unistdio/u32-vasprintf: New file.
68658         * modules/unistdio/u32-vsnprintf: New file.
68659         * modules/unistdio/u32-vsprintf: New file.
68660         * modules/unistdio/u32-u32-asnprintf: New file.
68661         * modules/unistdio/u32-u32-asprintf: New file.
68662         * modules/unistdio/u32-u32-snprintf: New file.
68663         * modules/unistdio/u32-u32-sprintf: New file.
68664         * modules/unistdio/u32-u32-vasnprintf: New file.
68665         * modules/unistdio/u32-u32-vasprintf: New file.
68666         * modules/unistdio/u32-u32-vsnprintf: New file.
68667         * modules/unistdio/u32-u32-vsprintf: New file.
68668         * modules/unistdio/ulc-asnprintf-tests: New file.
68669         * modules/unistdio/ulc-vasnprintf-tests: New file.
68670         * modules/unistdio/ulc-vasprintf-tests: New file.
68671         * modules/unistdio/ulc-vsnprintf-tests: New file.
68672         * modules/unistdio/ulc-vsprintf-tests: New file.
68673         * modules/unistdio/u8-asnprintf-tests: New file.
68674         * modules/unistdio/u8-vasnprintf-tests: New file.
68675         * modules/unistdio/u8-vasprintf-tests: New file.
68676         * modules/unistdio/u8-vsnprintf-tests: New file.
68677         * modules/unistdio/u8-vsprintf-tests: New file.
68678         * modules/unistdio/u16-asnprintf-tests: New file.
68679         * modules/unistdio/u16-vasnprintf-tests: New file.
68680         * modules/unistdio/u16-vasprintf-tests: New file.
68681         * modules/unistdio/u16-vsnprintf-tests: New file.
68682         * modules/unistdio/u16-vsprintf-tests: New file.
68683         * modules/unistdio/u32-asnprintf-tests: New file.
68684         * modules/unistdio/u32-vasnprintf-tests: New file.
68685         * modules/unistdio/u32-vasprintf-tests: New file.
68686         * modules/unistdio/u32-vsnprintf-tests: New file.
68687         * modules/unistdio/u32-vsprintf-tests: New file.
68688         * MODULES.html.sh (Unicode string functions): Add the new modules.
68689
68690 2007-07-01  Bruno Haible  <bruno@clisp.org>
68691
68692         * lib/sprintf.c (sprintf): Limit the available length estimation,
68693         to avoid address wraparound.
68694         * lib/vsprintf.c (vsprintf): Likewise.
68695         * modules/sprintf-posix (Dependencies): Add stdint.
68696         * modules/vsprintf-posix (Dependencies): Likewise.
68697
68698 2007-07-01  Bruno Haible  <bruno@clisp.org>
68699
68700         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
68701         Windows PATH as well. Conservative double-quoting. Comments.
68702
68703 2007-07-01  Bruno Haible  <bruno@clisp.org>
68704             Eric Blake  <ebb9@byu.net>
68705             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68706
68707         * gnulib-tool (self_abspathname): Fix algorithm to cope with
68708         empty components in $PATH, denoting '.'.
68709
68710 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68711
68712         * gnulib-tool: Fix indentation.
68713         (func_create_megatestdir): Likewise.
68714         Report by Bruno Haible.
68715
68716 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68717
68718         Sync from Automake.
68719         * build-aux/gnupload: Fix shell portability issues with for loops.
68720         Report by Karl Berry.
68721
68722 2007-06-29  Simon Josefsson  <simon@josefsson.org>
68723
68724         * build-aux/maint.mk (POURL): Use translationproject.org.
68725
68726 2007-06-27  Simon Josefsson  <simon@josefsson.org>
68727             Bruno Haible  <bruno@clisp.org>
68728
68729         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
68730         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
68731         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
68732         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
68733         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
68734
68735 2007-06-27  Bruno Haible  <bruno@clisp.org>
68736
68737         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
68738         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
68739
68740 2007-06-26  Karl Berry  <karl@gnu.org>
68741
68742         * MODULES.html.sh: remove xreadlink-with-size.
68743
68744 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
68745
68746         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
68747         method that I hope also handles the double-include problem noted
68748         by Bruno Haible in
68749         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
68750
68751 2007-06-23  Bruno Haible  <bruno@clisp.org>
68752
68753         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68754         Don't let the 'mostlyclean' target fail if the last subdirectory could
68755         not be removed.
68756         Reported by Karl Berry.
68757
68758 2007-06-23  Bruno Haible  <bruno@clisp.org>
68759
68760         * gnulib-tool (echo): Add a speedier workaround for ksh.
68761         * tests/test-echo.sh: Likewise.
68762
68763 2007-06-23  Bruno Haible  <bruno@clisp.org>
68764
68765         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
68766         * tests/test-echo.sh: Likewise.
68767
68768 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68769
68770         * gnulib-tool (IFS): Initialize early, so we don't set it to
68771         empty later.
68772         (self_abspathname): Rewrite algorithm to set it, reindent.
68773         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
68774         (func_create_megatestdir): Merge some sed scripts.
68775
68776 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
68777
68778         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
68779         exposed by Sun Studio 11 cc on Solaris 8.
68780
68781 2007-06-22  Bruno Haible  <bruno@clisp.org>
68782
68783         * gnulib-tool (echo): Ensure the echo primitive does not interpret
68784         backslashes.
68785         * tests/test-echo.sh: New file.
68786
68787 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68788
68789         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
68790         simplify `sed_replace_build_aux' scripts, they are portable but
68791         echoing them with `echo' is not.
68792         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
68793
68794 2007-06-21  Karl Berry  <karl@gnu.org>
68795
68796         * config/srclist.txt: guess we can't handle the licenses via
68797         srclist at the moment.
68798
68799 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
68800
68801         * MODULES.html.sh: Add include_next.
68802         * modules/include_next: New file.
68803
68804 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
68805
68806         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
68807         INCLUDE_NEXT.
68808         (gl_CHECK_NEXT_HEADERS): New macro.
68809         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
68810         the obsolescent gl_ABSOLUTE_HEADER.
68811         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
68812         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
68813         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
68814         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
68815         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
68816         * m4/math_h.m4 (gl_MATH_H): Likewise.
68817         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
68818         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
68819         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
68820         * m4/stdint.m4 (gl_STDINT_H): Likewise.
68821         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
68822         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
68823         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
68824         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
68825         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
68826         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
68827         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
68828         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
68829         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
68830         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
68831         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
68832         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
68833         * m4/inttypes.m4 (gl_INTTYPES_H): Define
68834         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
68835         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
68836         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
68837         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
68838         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
68839         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
68840         * lib/float_.h: Likewise.
68841         * lib/inttypes_.h: Likewise.
68842         * lib/math_.h: Likewise.
68843         * lib/search_.h: Likewise.
68844         * lib/signal_.h: Likewise.
68845         * lib/stdint_.h: Likewise.
68846         * lib/stdio_.h: Likewise.
68847         * lib/stdlib_.h: Likewise.
68848         * lib/string_.h: Likewise.
68849         * lib/sys_stat_.h: Likewise.
68850         * lib/sys_time_.h: Likewise.
68851         * lib/time_.h: Likewise.
68852         * lib/unistd_.h: Likewise.
68853         * lib/wchar_.h: Likewise.
68854         * lib/wctype_.h: Likewise.
68855         * lib/dirent_.h: Likewise.
68856         * lib/iconv_.h: Likewise.
68857         * lib/locale_.h: Likewise.
68858         * lib/netinet_in_.h: Likewise.
68859         * lib/sys_select_.h: Likewise.
68860         * lib/sys_socket_.h: Likewise.
68861         * lib/sysexits_.h: Likewise.
68862         * modules/fcntl (Depends-on): Depend on include_next, not
68863         absolute_header.
68864         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
68865         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
68866         * modules/fchdir: Likewise.
68867         * modules/float: Likewise.
68868         * modules/iconv_open: Likewise.
68869         * modules/inttypes: Likewise.
68870         * modules/locale: Likewise.
68871         * modules/math: Likewise.
68872         * modules/netinet_in: Likewise.
68873         * modules/search: Likewise.
68874         * modules/signal: Likewise.
68875         * modules/stdint: Likewise.
68876         * modules/stdio: Likewise.
68877         * modules/stdlib: Likewise.
68878         * modules/string: Likewise.
68879         * modules/sys_select: Likewise.
68880         * modules/sys_socket: Likewise.
68881         * modules/sys_stat: Likewise.
68882         * modules/sys_time: Likewise.
68883         * modules/sysexits: Likewise.
68884         * modules/time: Likewise.
68885         * modules/unistd: Likewise.
68886         * modules/wchar: Likewise.
68887         * modules/wctype: Likewise.
68888         * modules/sys_stat: Change maintainer to "all".
68889         * modules/unistd: Likewise.
68890
68891 2007-06-20  Karl Berry  <karl@gnu.org>
68892
68893         * config/srclist.txt: track www changes in license files.
68894
68895 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
68896
68897         * build-aux/bootstrap: Remove stray dot.
68898         Make sure build_aux settings are honored when linking
68899         gnulib_extra_files.
68900
68901 2007-06-19  Eric Blake  <ebb9@byu.net>
68902
68903         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
68904         Allow compilation on cygwin.
68905
68906 2007-06-19  Jim Meyering  <jim@meyering.net>
68907
68908         xreadlink-with-size: Remove module.  No longer used.
68909         Ex-callers now use xreadlink or mreadlink-with-size.
68910         * modules/xreadlink-with-size: Remove module.
68911         * lib/xreadlink-with-size.c: Remove file.
68912         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
68913         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
68914         just before the function definition *is* accurate.
68915
68916         Eliminate one way canonicalize_filename_mode could exit.
68917         * lib/canonicalize.c (canonicalize_filename_mode):
68918         Use mreadlink_with_size, not xreadlink_with_size.
68919
68920 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
68921
68922         Detect porting problems to FreeBSD/arm, which has time_t wider than
68923         long int.  Original problem reported for GNU diff by Xin Li in
68924         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
68925         * modules/getdate (Depends-on): Add intprops, verify.
68926         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
68927         is an integer type no wider than long int.
68928
68929 2007-06-18  Jim Meyering  <jim@meyering.net>
68930
68931         New module: mreadlink-with-size.
68932         * MODULES.html.sh: Add mreadlink-with-size.
68933         * modules/mreadlink-with-size: New module
68934         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
68935         not xreadlink-with-size.
68936         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
68937
68938 2007-06-16  Bruno Haible  <bruno@clisp.org>
68939
68940         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
68941         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
68942         Reported by Gary V. Vaughan <gary@gnu.org>.
68943
68944 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
68945
68946         Revamp lchown so that it lives in unistd.h where it belongs.
68947         * lib/lchown.h: Remove.
68948         * lib/dirchownmod.c: Don't include lib/lchown.h.
68949         * lib/fchownat.c: Likewise.
68950         * lib/openat.c: Likewise.
68951         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
68952         does not follow symlinks.
68953         (EOPNOTSUPP): Define if not defined.
68954         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
68955         is defined to 0.
68956         (lchown): New decl.
68957         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
68958         Do not check for lchown decl.
68959         Set REPLACE_LCHOWN.
68960         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
68961         REPLACE_LCHOWN.
68962         * modules/chown: Make it clear it follows symlinks.
68963         * modules/lchown: Make it clear it doesn't follow symlinks.
68964         (Files): Remove lib/lchown.h
68965         (Depends-on): Add unistd.
68966         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
68967         (Include): Include <unistd.h>, not "lchown.h".
68968         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
68969         REPLACE_LCHOWN.
68970
68971 2007-06-15  Jim Meyering  <jim@meyering.net>
68972
68973         Change license (GPL to LGPL) of fsusage and dependents.
68974         * modules/fsusage (License): Change to LGPL.
68975         * modules/full-read (License): Likewise.
68976         * modules/full-write (License): Likewise.
68977         * modules/safe-read (License): Likewise.
68978         * modules/safe-write (License): Likewise.
68979
68980 2007-06-14  Ben Pfaff  <blp@gnu.org>
68981
68982         Missing part of allocsa -> malloca transition.
68983         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
68984         gl_MALLOCA.
68985
68986 2007-06-12  Bruno Haible  <bruno@clisp.org>
68987
68988         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
68989         to ia64, x86_64, i386.
68990         Reported by Eric Blake.
68991
68992 2007-06-12  Bruno Haible  <bruno@clisp.org>
68993
68994         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
68995         cross-compiling to x86_64.
68996
68997 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
68998
68999         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
69000         glitch reported by Ralf Wildenhues in
69001         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
69002
69003         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
69004         Vin Shelton.
69005
69006 2007-06-11  Bruno Haible  <bruno@clisp.org>
69007
69008         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
69009         replacement string.
69010         Reported by Eric Blake.
69011
69012 2007-06-10  Bruno Haible  <bruno@clisp.org>
69013
69014         Prepare vasnprintf code for use with Unicode strings.
69015         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
69016         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
69017         TYPE_U32_STRING.
69018         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
69019         a_u32_string variants.
69020         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
69021         * lib/printf-args.c: Don't include config.h and the specification
69022         header if PRINTF_FETCHARGS is already defined.
69023         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
69024         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
69025         TYPE_U16_STRING, TYPE_U32_STRING.
69026         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
69027         u16_directive, u16_directives, u32_directive, u32_directives): New
69028         types.
69029         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
69030         New declarations.
69031         * lib/printf-parse.c: Don't include config.h and the specification
69032         header if PRINTF_PARSE is already defined. Eliminate the set of
69033         parameters for WIDE_CHAR_VERSION; the user of this file must provide
69034         them now. Include c-ctype.h.
69035         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
69036         directive and CHAR_T_ONLY_ASCII.
69037         * lib/vasnprintf.c: Don't include config.h and the specification header
69038         if VASNPRINTF is already defined.
69039         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
69040         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
69041         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
69042         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
69043         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
69044         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
69045         code accordingly.
69046         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
69047         pad_ourselves also in this case, with the 'c' and 's' directives, and
69048         with a different notion of "width".
69049         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
69050
69051 2007-06-10  Bruno Haible  <bruno@clisp.org>
69052
69053         * modules/unistr/u32-mbsnlen: New file.
69054         * lib/unistr/u32-mbsnlen.c: New file.
69055
69056         * modules/unistr/u16-mbsnlen: New file.
69057         * lib/unistr/u16-mbsnlen.c: New file.
69058
69059         * modules/unistr/u8-mbsnlen: New file.
69060         * lib/unistr/u8-mbsnlen.c: New file.
69061
69062         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
69063         declarations.
69064
69065 2007-06-10  Bruno Haible  <bruno@clisp.org>
69066
69067         * lib/string_.h (mbsnlen): New declaration.
69068         * lib/mbsnlen.c: New file.
69069         * m4/mbsnlen.m4: New file.
69070         * modules/mbsnlen: New file.
69071         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
69072         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
69073         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
69074
69075 2007-06-10  Bruno Haible  <bruno@clisp.org>
69076
69077         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
69078
69079 2007-06-10  Bruno Haible  <bruno@clisp.org>
69080
69081         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
69082         * lib/mbuiter.h: Likewise.
69083
69084 2007-06-10  Bruno Haible  <bruno@clisp.org>
69085
69086         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
69087         declaration.
69088
69089 2007-06-10  Karl Berry  <karl@gnu.org>
69090
69091         * config/srclist.txt: remove gettext entries, Bruno prefers
69092         to update individually.
69093
69094 2007-06-10  Bruno Haible  <bruno@clisp.org>
69095
69096         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
69097         'maxlen'. Ensure only length + width bytes are allocated, not
69098         length + 1 + width.
69099
69100 2007-06-09  Bruno Haible  <bruno@clisp.org>
69101
69102         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
69103         (CHAR_T): Remove macro.
69104         (VASNPRINTF): Update.
69105
69106 2007-06-09  Bruno Haible  <bruno@clisp.org>
69107
69108         * MODULES.html.sh (Unicode string functions): Add the new modules.
69109
69110         * modules/uniconv/u32-conv-to-enc: New file.
69111         * lib/uniconv/u32-conv-to-enc.c: New file.
69112         * modules/uniconv/u32-conv-to-enc-tests: New file.
69113         * tests/uniconv/test-u32-conv-to-enc.c: New file.
69114
69115         * modules/uniconv/u16-conv-to-enc: New file.
69116         * lib/uniconv/u16-conv-to-enc.c: New file.
69117         * lib/uniconv/u-conv-to-enc.h: New file.
69118         * modules/uniconv/u16-conv-to-enc-tests: New file.
69119         * tests/uniconv/test-u16-conv-to-enc.c: New file.
69120
69121         * modules/uniconv/u8-conv-to-enc: New file.
69122         * lib/uniconv/u8-conv-to-enc.c: New file.
69123         * modules/uniconv/u8-conv-to-enc-tests: New file.
69124         * tests/uniconv/test-u8-conv-to-enc.c: New file.
69125
69126         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
69127         u32_conv_to_encoding): New declarations.
69128
69129 2007-06-09  Bruno Haible  <bruno@clisp.org>
69130
69131         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
69132
69133 2007-06-09  Bruno Haible  <bruno@clisp.org>
69134
69135         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
69136         * modules/malloca: Renamed from modules/allocsa, updated.
69137         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
69138         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
69139         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
69140         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
69141         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
69142         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
69143         * modules/xmalloca: Renamed from modules/xallocsa, updated.
69144         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
69145         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
69146         * modules/c-strcasestr (Depends-on): Update.
69147         * lib/c-strcasestr.c: Update.
69148         * modules/c-strstr (Depends-on): Update.
69149         * lib/c-strstr.c: Update.
69150         * modules/canonicalize-lgpl (Depends-on): Update.
69151         * lib/canonicalize-lgpl.c: Update.
69152         * modules/clean-temp (Depends-on): Update.
69153         * lib/clean-temp.c: Update.
69154         * modules/csharpcomp (Depends-on): Update.
69155         * lib/csharpcomp.c: Update.
69156         * modules/csharpexec (Depends-on): Update.
69157         * lib/csharpexec.c: Update.
69158         * modules/javacomp (Depends-on): Update.
69159         * lib/javacomp.c: Update.
69160         * modules/javaexec (Depends-on): Update.
69161         * lib/javaexec.c: Update.
69162         * modules/mbscasestr (Depends-on): Update.
69163         * lib/mbscasestr.c: Update.
69164         * modules/mbsstr (Depends-on): Update.
69165         * lib/mbsstr.c: Update.
69166         * modules/setenv (Depends-on): Update.
69167         * lib/setenv.c: Update.
69168         * modules/strcasestr (Depends-on): Update.
69169         * lib/strcasestr.c: Update.
69170         * modules/striconveha (Depends-on): Update.
69171         * lib/striconveha.c: Update.
69172         * modules/relocatable-prog-wrapper (Files): Update.
69173         * lib/relocwrapper.c: Update.
69174         * build-aux/install-reloc: Update.
69175         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
69176
69177 2007-06-08  Bruno Haible  <bruno@clisp.org>
69178
69179         Port to uClibc.
69180         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
69181         * lib/fpurge.c (fpurge): Likewise.
69182         * lib/freading.c (freading): Likewise.
69183         * lib/fseeko.c (rpl_fseeko): Likewise.
69184         * lib/fseterr.c (fseterr): Likewise.
69185         * lib/fwriting.c (fwriting): Likewise.
69186         * tests/test-fflush.c (main): Avoid a failure on uClibc.
69187
69188 2007-06-08  Bruno Haible  <bruno@clisp.org>
69189
69190         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
69191         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
69192         * modules/gettext (Files): Add m4/intlmacosx.m4.
69193
69194 2007-06-07  Bruno Haible  <bruno@clisp.org>
69195
69196         * modules/localename-tests: New file.
69197         * tests/test-localename.c: New file.
69198
69199         New module 'localename'.
69200         * lib/localename.h: New file.
69201         * lib/localename.c: New file, from GNU gettext.
69202         * m4/localename.m4: New file.
69203         * modules/localename: New file.
69204
69205 2007-06-07  Bruno Haible  <bruno@clisp.org>
69206
69207         Work around the lack of <wchar.h> on some builds of uClibc.
69208         * doc/headers/wchar.texi: Update.
69209         * lib/wchar_.h: Include <wchar.h> only if it exists.
69210         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
69211         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
69212         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
69213         doesn't exist.
69214         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
69215         * modules/mbfile (Depends-on): Add wchar.
69216         * modules/mbiter (Depends-on): Likewise.
69217         * modules/mbuiter (Depends-on): Likewise.
69218         Reported by Simon Josefsson.
69219
69220 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
69221
69222         Work around problem reported by Steven M. Schweda in
69223         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
69224         Tru64 5.1B with the Compaq compiler environment installed declares
69225         an 'isblank' function but does not define it in the C library.
69226         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
69227         * lib/regex_internal.h (isblank): Likewise.
69228         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
69229         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
69230
69231 2007-06-05  Bruno Haible  <bruno@clisp.org>
69232
69233         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
69234         ia64.
69235         * modules/printf-safe: New file.
69236         * modules/fprintf-posix (Depends-on): Add printf-safe.
69237         * modules/printf-posix (Depends-on): Likewise.
69238         * modules/snprintf-posix (Depends-on): Likewise.
69239         * modules/sprintf-posix (Depends-on): Likewise.
69240         * modules/vasnprintf-posix (Depends-on): Likewise.
69241         * modules/vasprintf-posix (Depends-on): Likewise.
69242         * modules/vfprintf-posix (Depends-on): Likewise.
69243         * modules/vprintf-posix (Depends-on): Likewise.
69244         * modules/vsnprintf-posix (Depends-on): Likewise.
69245         * modules/vsprintf-posix (Depends-on): Likewise.
69246         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
69247         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
69248         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
69249         "no" on i386, x86_64, ia64.
69250         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
69251         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69252         on i386, x86_64, ia64.
69253         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
69254         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69255         on i386, x86_64, ia64.
69256         * tests/test-vasnprintf-posix.c: Include float.h.
69257         (LDBL80_WORDS): New macro.
69258         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69259         on i386, x86_64, ia64.
69260         * tests/test-vasprintf-posix.c: Include float.h.
69261         (LDBL80_WORDS): New macro.
69262         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69263         on i386, x86_64, ia64.
69264         * tests/test-snprintf-posix.c: Include float.h.
69265         * tests/test-sprintf-posix.c: Likewise.
69266         * tests/test-vsnprintf-posix.c: Likewise.
69267         * tests/test-vsprintf-posix.c: Likewise.
69268
69269 2007-06-05  Bruno Haible  <bruno@clisp.org>
69270
69271         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
69272         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
69273         non-IEEE numbers on i386, x86_64, ia64.
69274         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
69275         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
69276         * tests/test-isnanl.h: Include float.h.
69277         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
69278
69279 2007-06-05  Bruno Haible  <bruno@clisp.org>
69280
69281         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
69282         also the %a / %A. Handle the %a / %A code before this extra handling.
69283
69284 2007-06-05  Bruno Haible  <bruno@clisp.org>
69285
69286         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
69287         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
69288
69289 2007-06-05  Bruno Haible  <bruno@clisp.org>
69290
69291         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
69292         typo in variable name.
69293
69294 2007-06-05  Eric Blake  <ebb9@byu.net>
69295
69296         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
69297         Reported by Simon Josefsson.
69298
69299 2007-06-04  Bruno Haible  <bruno@clisp.org>
69300
69301         Avoid test failures on some PowerPC platforms.
69302         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
69303         Define differently for PowerPC.
69304         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
69305         Reported by Gary V. Vaughan <gary@gnu.org>.
69306
69307 2007-06-02  Bruno Haible  <bruno@clisp.org>
69308
69309         Fix test-stdint failure on FreeBSD/ia64.
69310         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
69311         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
69312         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
69313         * doc/headers/stdint.texi: Update.
69314
69315 2007-06-01  Bruno Haible  <bruno@clisp.org>
69316
69317         * tests/test-binary-io.c (main): Pass a third argument to open().
69318         Reported by Gary V. Vaughan <gary@gnu.org>.
69319
69320 2007-06-01  Bruno Haible  <bruno@clisp.org>
69321
69322         * doc/functions/frexpl.texi: Update for mingw.
69323
69324 2007-06-01  Bruno Haible  <bruno@clisp.org>
69325
69326         * tests/test-lseek.c (main): Disable test of errno for invalid third
69327         argument.
69328         * doc/functions/lseek.texi: Update.
69329         Reported by Gary V. Vaughan <gary@gnu.org>.
69330
69331 2007-05-28  Bruno Haible  <bruno@clisp.org>
69332
69333         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
69334
69335 2007-05-31  Eric Blake  <ebb9@byu.net>
69336
69337         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
69338         cross compiling.
69339
69340 2007-05-30  Eric Blake  <ebb9@byu.net>
69341         and Bruno Haible  <bruno@clisp.org>
69342
69343         Work around mingw test failures exposed by m4-1.4.9b.
69344         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
69345         * tests/test-unistd.c: Disable uid_t and git_t tests for the
69346         moment.
69347
69348 2007-05-30  Bruno Haible  <bruno@clisp.org>
69349
69350         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
69351         assuming that they are closed. Needed on HP-UX 11.
69352
69353 2007-05-29  Bruno Haible  <bruno@clisp.org>
69354
69355         Fix a problem with #include_next.
69356         * lib/dirent_.h: Split the double-inclusion guard.
69357         * lib/fcntl_.h: Likewise.
69358         * lib/float_.h: Likewise.
69359         * lib/iconv_.h: Likewise.
69360         * lib/inttypes_.h: Likewise.
69361         * lib/locale_.h: Likewise.
69362         * lib/math_.h: Likewise.
69363         * lib/netinet_in_.h: Likewise.
69364         * lib/search_.h: Likewise.
69365         * lib/signal_.h: Likewise.
69366         * lib/stdint_.h: Likewise.
69367         * lib/stdio_.h: Likewise.
69368         * lib/stdlib_.h: Likewise.
69369         * lib/string_.h: Likewise.
69370         * lib/sys_select_.h: Likewise.
69371         * lib/sys_socket_.h: Likewise.
69372         * lib/sys_stat_.h: Likewise.
69373         * lib/sys_time_.h: Likewise.
69374         * lib/sysexits_.h: Likewise.
69375         * lib/time_.h: Likewise.
69376         * lib/unistd_.h: Likewise.
69377         * lib/wchar_.h: Likewise.
69378         * lib/wctype_.h: Likewise.
69379
69380 2007-05-29  Bruno Haible  <bruno@clisp.org>
69381
69382         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
69383         for the moment.
69384
69385 2007-05-29  Bruno Haible  <bruno@clisp.org>
69386
69387         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
69388         invocation.
69389         Reported by Eric Blake.
69390
69391 2007-05-29  Bruno Haible  <bruno@clisp.org>
69392
69393         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
69394         compiling case.
69395
69396 2007-05-29  Eric Blake  <ebb9@byu.net>
69397             Bruno Haible  <bruno@clisp.org>
69398
69399         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
69400         cross compiles.
69401
69402 2007-05-28  Eric Blake  <ebb9@byu.net>
69403
69404         * modules/closein-tests (test_closein_LDADD): Support test on
69405         cygwin with libtool.
69406
69407 2007-05-28  Bruno Haible  <bruno@clisp.org>
69408
69409         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
69410         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
69411         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
69412         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
69413         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
69414         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
69415         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
69416         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
69417         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
69418
69419 2007-05-28  Eric Blake  <ebb9@byu.net>
69420
69421         Unconditionally include <config.h> in unit tests.
69422         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
69423         * tests/test-allocsa.c, tests/test-arcfour.c,
69424         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
69425         tests/test-array_list.c, tests/test-array_oset.c,
69426         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
69427         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
69428         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
69429         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
69430         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
69431         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
69432         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
69433         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
69434         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
69435         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
69436         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
69437         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
69438         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
69439         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
69440         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
69441         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
69442         test-md5.c, test-memmem.c, test-printf-posix.c,
69443         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
69444         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
69445         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
69446         test-strcasestr.c, test-striconv.c, test-striconveh.c,
69447         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
69448         test-vasnprintf-posix2.c, test-vasnprintf.c,
69449         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
69450         test-vfprintf-posix.c, test-vprintf-posix.c,
69451         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
69452         test-xvasprintf.c: Likewise.
69453
69454 2007-05-28  Bruno Haible  <bruno@clisp.org>
69455
69456         * gnulib-tool (func_import): Remember the --with-tests command-line
69457         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
69458         Reported by Eric Blake.
69459
69460 2007-05-28  Bruno Haible  <bruno@clisp.org>
69461
69462         * modules/ftell-tests: New file.
69463         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
69464         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
69465
69466         * lib/ftell.c: New file.
69467         * modules/ftell: New file.
69468         * m4/ftell.m4: New file.
69469         * doc/functions/ftell.texi: Update.
69470         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
69471         REPLACE_FTELL.
69472         * lib/stdio_.h (rpl_ftell): New declaration.
69473         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
69474         REPLACE_FTELL.
69475
69476 2007-05-28  Eric Blake  <ebb9@byu.net>
69477
69478         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
69479
69480 2007-05-28  Bruno Haible  <bruno@clisp.org>
69481
69482         * modules/fseek-tests: New file.
69483         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
69484         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
69485
69486         * lib/fseek.c: New file.
69487         * modules/fseek: New file.
69488         * m4/fseek.m4: New file.
69489         * doc/functions/fseek.texi: Update.
69490         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
69491         REPLACE_FSEEK.
69492         * lib/stdio_.h (rpl_fseek): New declaration.
69493         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
69494         REPLACE_FSEEK.
69495
69496 2007-05-28  Bruno Haible  <bruno@clisp.org>
69497
69498         * lib/stdio_.h (fflush): More comments.
69499
69500 2007-05-28  Bruno Haible  <bruno@clisp.org>
69501
69502         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
69503         runtime test.
69504
69505 2007-05-28  Eric Blake  <ebb9@byu.net>
69506
69507         Improve lseek module.
69508         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
69509         * lib/unistd_.h (lseek): Scale back link warning message.
69510         * tests/test-lseek.c: Beef up test.
69511         * tests/test-lseek.sh: Exercise more facets of lseek.
69512         Reported by Bruno Haible.
69513
69514 2007-05-28  Bruno Haible  <bruno@clisp.org>
69515
69516         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
69517         to define.
69518
69519 2007-05-27  Bruno Haible  <bruno@clisp.org>
69520
69521         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
69522
69523 2007-05-27  Bruno Haible  <bruno@clisp.org>
69524
69525         * modules/openmp: New file.
69526         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
69527         Noah Misch.
69528
69529 2007-05-26  Bruno Haible  <bruno@clisp.org>
69530
69531         * modules/chdir-long (Depends-on): Add fchdir.
69532         * modules/chdir-safer (Depends-on): Likewise.
69533         * modules/fts (Depends-on): Likewise.
69534         * modules/fts-lgpl (Depends-on): Likewise.
69535         * modules/openat (Depends-on): Likewise.
69536         * modules/savewd (Depends-on): Likewise.
69537
69538 2007-05-24  Eric Blake  <ebb9@byu.net>
69539
69540         Fix lseek on mingw.
69541         * modules/lseek: New module.
69542         * m4/lseek.m4: New file.
69543         * lib/lseek.c: New file.
69544         * modules/lseek-tests: New file.
69545         * tests/test-lseek.c: New file.
69546         * tests/test-lseek.sh: New file.
69547         * MODULES.html.sh: Document lseek module.
69548         * modules/fflush (Depends-on): Add lseek, fseeko.
69549         * modules/fseeko (Depends-on): Likewise.
69550         * modules/ftello (Depends-on): Likewise.
69551         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
69552         broken.
69553         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
69554         broken.
69555         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
69556         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
69557         * lib/ftello.c (rpl_ftello): Likewise.
69558         * tests/test-fseeko.c (main): Test this.
69559         * tests/test-fseeko.sh: Likewise.
69560         * tests/test-ftello.c (main): Likewise.
69561         * tests/test-ftello.sh: Likewise.
69562         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
69563         implies replacing fseek.
69564         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
69565         HAVE_FTELLO.
69566         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
69567         * modules/unistd (Makefile.am): Likewise.
69568         * lib/unistd_.h (lseek): Declare a replacement.
69569         * doc/functions/lseek.texi (lseek): Document this fix.
69570         * doc/functions/fseek.texi (fseek): Likewise.
69571         * doc/functions/ftell.texi (ftell): Likewise.
69572
69573 2007-05-24  Bruno Haible  <bruno@clisp.org>
69574
69575         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
69576         in the printed representation of a NaN.
69577         * tests/test-vasprintf-posix.c (test_function): Likewise.
69578         * tests/test-snprintf-posix.h (test_function): Likewise.
69579         * tests/test-sprintf-posix.h (test_function): Likewise.
69580         Reported by Eric Blake.
69581
69582 2007-05-23  Eric Blake  <ebb9@byu.net>
69583
69584         Fix fseeko/ftello on cygwin 1.5.24.
69585         * doc/functions/fseeko.texi (fseeko): Document the fix.
69586         * doc/functions/ftello.texi (ftello): Document the fix.
69587         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
69588         * doc/functions/stdout.text (stdout): New file.
69589         * doc/functions/stderr.text (stderr): New file.
69590         * doc/gnulib.texi (Function Substitutes): Use new files.
69591         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
69592         prior to 1.7.0.
69593         * tests/test-ftello.c (main): Likewise for ftello.
69594         * tests/test-fseeko.sh: New file.
69595         * tests/test-ftello.sh: New file.
69596         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
69597         with seekable stdin.
69598         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
69599         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
69600         (gl_REPLACE_FSEEKO): New macro.
69601         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
69602         * modules/fseeko (Files): Distribute fseeko.c.
69603         * modules/ftello (Files): Distribute ftello.c.
69604         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
69605         mode.
69606         * lib/ftello.c (rpl_ftello): New file.
69607         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
69608         fseeko, ftello.
69609         (gl_STDIN_LARGE_OFFSET): New macro.
69610         * modules/stdio (Makefile.am): Perform the replacement.
69611         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
69612
69613 2007-05-23  Bruno Haible  <bruno@clisp.org>
69614
69615         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
69616         GNULIB_POSIXCHECK is defined.
69617
69618 2007-05-21  Bruno Haible  <bruno@clisp.org>
69619
69620         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
69621         Check also the output for NaN arguments. When cross-compiling, guess
69622         no on IRIX.
69623         * lib/vasnprintf.c: Update comments.
69624         * tests/test-vasnprintf-posix.c (strisnan): New function.
69625         (test_function): Use it.
69626         * tests/test-vasprintf-posix.c (strisnan): New function.
69627         (test_function): Use it.
69628         * tests/test-snprintf-posix.h (strisnan): New function.
69629         (test_function): Use it.
69630         * tests/test-sprintf-posix.h (strisnan): New function.
69631         (test_function): Use it.
69632         Reported by Eric Blake.
69633
69634 2007-05-20  Bruno Haible  <bruno@clisp.org>
69635
69636         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
69637         numbers that fails on BeOS.
69638         * doc/functions/frexpl.texi: Update.
69639
69640 2007-05-20  Jim Meyering  <jim@meyering.net>
69641
69642         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
69643         forced upon us by glibc-2.6.
69644
69645 2007-05-20  Bruno Haible  <bruno@clisp.org>
69646
69647         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
69648         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
69649         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
69650         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
69651         NEED_PRINTF_INFINITE.
69652         (is_infinitel): New function.
69653         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
69654         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
69655         gl_PREREQ_VASNPRINTF_INFINITE.
69656         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
69657         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69658         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
69659         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
69660         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
69661         gl_PREREQ_VASNPRINTF_INFINITE.
69662         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69663         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69664         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69665         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69666         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69667         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69668         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69669         * doc/functions/fprintf.texi: Update.
69670         * doc/functions/printf.texi: Update.
69671         * doc/functions/snprintf.texi: Update.
69672         * doc/functions/sprintf.texi: Update.
69673         * doc/functions/vfprintf.texi: Update.
69674         * doc/functions/vprintf.texi: Update.
69675         * doc/functions/vsnprintf.texi: Update.
69676         * doc/functions/vsprintf.texi: Update.
69677
69678 2007-05-20  Bruno Haible  <bruno@clisp.org>
69679
69680         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
69681         was not found in libc.
69682         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
69683
69684 2007-05-20  Bruno Haible  <bruno@clisp.org>
69685
69686         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
69687         printed as "-nan" instead of "nan".
69688         * tests/test-vasprintf-posix.c (test_function): Likewise.
69689         * tests/test-snprintf-posix.h (test_function): Likewise.
69690         * tests/test-sprintf-posix.h (test_function): Likewise.
69691         Needed for HP-UX 11.
69692
69693 2007-05-20  Jim Meyering  <jim@meyering.net>
69694
69695         Fix buggy test for the fchownat-deref bug.
69696         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
69697         symlink required for the run-test.  Without it, this test would
69698         always declare that fchownat doesn't work, and client code would
69699         unnecessarily use the replacement function with fixed libc.
69700         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
69701         Reported by Greg Schafer.
69702
69703 2007-05-19  Bruno Haible  <bruno@clisp.org>
69704
69705         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
69706         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
69707         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
69708         Needed for IRIX 6.5 and Solaris 2.5.1.
69709
69710 2007-05-19  Bruno Haible  <bruno@clisp.org>
69711
69712         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
69713         (test_function): Skip tests involving -0.0 on platforms where
69714         -0.0 = 0.0.
69715         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
69716         (test_function): Skip tests involving -0.0 on platforms where
69717         -0.0 = 0.0.
69718         * tests/test-snprintf-posix.h (have_minus_zero): New function.
69719         (test_function): Skip tests involving -0.0 on platforms where
69720         -0.0 = 0.0.
69721         * tests/test-sprintf-posix.h (have_minus_zero): New function.
69722         (test_function): Skip tests involving -0.0 on platforms where
69723         -0.0 = 0.0.
69724         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
69725         tests.
69726         * tests/test-printf-posix.h (test_function): Likewise.
69727         * tests/test-printf-posix.output: Remove all -0.0 related results.
69728         Needed for IRIX 6.5.
69729
69730 2007-05-19  Bruno Haible  <bruno@clisp.org>
69731
69732         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
69733         printed as "nan0x7fffffff" instead of "nan".
69734         * tests/test-vasprintf-posix.c (test_function): Likewise.
69735         * tests/test-snprintf-posix.h (test_function): Likewise.
69736         * tests/test-sprintf-posix.h (test_function): Likewise.
69737         * tests/test-fprintf-posix.h (NaN): Remove macro.
69738         (test_function): Remove all NaN related tests.
69739         * tests/test-printf-posix.h (NaN): Remove macro.
69740         (test_function): Remove all NaN related tests.
69741         * tests/test-printf-posix.output: Remove all NaN related results.
69742         Needed for IRIX 6.5.
69743
69744 2007-05-19  Bruno Haible  <bruno@clisp.org>
69745
69746         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
69747         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
69748
69749 2007-05-19  Bruno Haible  <bruno@clisp.org>
69750
69751         * lib/float_.h: New file.
69752         * m4/float_h.m4: New file.
69753         * modules/float: New file.
69754         * modules/isnanl (Dependencies): Add float.
69755         * modules/isnanl-nolibm (Dependencies): Likewise.
69756         * modules/mathl (Dependencies): Likewise.
69757         * modules/printf-frexpl (Dependencies): Likewise.
69758         * modules/signbit (Dependencies): Likewise.
69759         * modules/vasnprintf (Dependencies): Likewise.
69760         * doc/headers/float.texi: Update.
69761
69762 2007-05-19  Jim Meyering  <jim@meyering.net>
69763
69764         * lib/utimens.c (gl_futimens): Rename from futimens,
69765         now that glibc-2.6 declares futimens.
69766         * lib/utimens.h: Likewise.
69767
69768 2007-05-19  Bruno Haible  <bruno@clisp.org>
69769
69770         Avoid test failures on mingw.
69771         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
69772         * tests/test-printf-posix.sh: Likewise.
69773         * tests/test-vfprintf-posix.sh: Likewise.
69774         * tests/test-vprintf-posix.sh: Likewise.
69775
69776 2007-05-19  Bruno Haible  <bruno@clisp.org>
69777
69778         Fix *printf result for NaN, Inf, -0.0 on mingw.
69779         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
69780         * lib/vasnprintf.c: Include math.h and isnan.h.
69781         (is_infinite_or_zero): New function.
69782         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
69783         values in the %f, %F, %e, %E, %g, %G directives.
69784         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
69785         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69786         gl_PRINTF_INFINITE and test its result. Invoke
69787         gl_PREREQ_VASNPRINTF_INFINITE.
69788         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69789         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69790         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69791         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69792         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69793         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69794         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69795         * doc/functions/fprintf.texi: Update.
69796         * doc/functions/printf.texi: Update.
69797         * doc/functions/snprintf.texi: Update.
69798         * doc/functions/sprintf.texi: Update.
69799         * doc/functions/vfprintf.texi: Update.
69800         * doc/functions/vprintf.texi: Update.
69801         * doc/functions/vsnprintf.texi: Update.
69802         * doc/functions/vsprintf.texi: Update.
69803
69804 2007-05-19  Bruno Haible  <bruno@clisp.org>
69805
69806         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
69807         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
69808         Instead of multiplying with 10^k, set extra_zeroes to k.
69809         (scale10_round_long_double): Remove function.
69810
69811 2007-05-18  Bruno Haible  <bruno@clisp.org>
69812
69813         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
69814         introduced on 2007-05-06.
69815
69816 2007-05-18  Bruno Haible  <bruno@clisp.org>
69817
69818         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
69819         %g directives.
69820         * tests/test-vasprintf-posix.c (test_function): Likewise.
69821         * tests/test-snprintf-posix.h (test_function): Likewise.
69822         * tests/test-sprintf-posix.h (test_function): Likewise.
69823
69824 2007-05-18  Bruno Haible  <bruno@clisp.org>
69825
69826         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
69827         (strmatch): New function.
69828         (test_function): Test the %f directive on numbers of various exponents.
69829         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
69830         (strmatch): New function.
69831         (test_function): Test the %f directive on numbers of various exponents.
69832         * tests/test-snprintf-posix.h (strmatch): New function.
69833         (test_function): Test the %f directive on numbers of various exponents.
69834         * tests/test-sprintf-posix.h (strmatch): New function.
69835         (test_function): Test the %f directive on numbers of various exponents.
69836         * tests/test-snprintf-posix.c (SIZEOF): New macro.
69837         * tests/test-sprintf-posix.c (SIZEOF): New macro.
69838         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
69839         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
69840
69841 2007-05-18  Bruno Haible  <bruno@clisp.org>
69842
69843         Add support for 'long double' number output.
69844         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
69845         * lib/vasnprintf.c: Include math.h and float+.h.
69846         (mp_limb_t): New type.
69847         (GMP_LIMB_BITS): New macro.
69848         (mp_twolimb_t): New type.
69849         (GMP_TWOLIMB_BITS): New macro.
69850         (mpn_t): New type.
69851         (multiply, divide, convert_to_decimal, decode_long_double,
69852         scale10_round_long_double, scale10_round_decimal_long_double,
69853         floorlog10l): New functions.
69854         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
69855         for the %f, %F, %e, %E, %g, %G directives.
69856         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
69857         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69858         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
69859         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
69860         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69861         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69862         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69863         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69864         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69865         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69866         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69867         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
69868         * modules/snprintf-posix (Depends-on): Likewise.
69869         * modules/sprintf-posix (Depends-on): Likewise.
69870         * modules/vasnprintf-posix (Depends-on): Likewise.
69871         * modules/vasprintf-posix (Depends-on): Likewise.
69872         * modules/vfprintf-posix (Depends-on): Likewise.
69873         * modules/vsnprintf-posix (Depends-on): Likewise.
69874         * modules/vsprintf-posix (Depends-on): Likewise.
69875         * modules/vasnprintf (Files): Add lib/float+.h.
69876         * doc/functions/fprintf.texi: Update.
69877         * doc/functions/printf.texi: Update.
69878         * doc/functions/snprintf.texi: Update.
69879         * doc/functions/sprintf.texi: Update.
69880         * doc/functions/vfprintf.texi: Update.
69881         * doc/functions/vprintf.texi: Update.
69882         * doc/functions/vsnprintf.texi: Update.
69883         * doc/functions/vsprintf.texi: Update.
69884
69885 2007-05-18  Bruno Haible  <bruno@clisp.org>
69886
69887         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
69888
69889 2007-05-18  Bruno Haible  <bruno@clisp.org>
69890
69891         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
69892         for printing 64-bit integers. Needed for mingw.
69893
69894 2007-05-18  Bruno Haible  <bruno@clisp.org>
69895
69896         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
69897         gl_FUNC_FREXPL_WORKS.
69898         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
69899
69900 2007-05-18  Bruno Haible  <bruno@clisp.org>
69901
69902         * modules/frexpl-nolibm-tests: New file.
69903
69904         * modules/frexpl-nolibm: New file.
69905         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
69906
69907 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
69908
69909         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
69910         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
69911         GCC 4.2, which otherwise issues a lot of warnings.
69912         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
69913         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
69914         Likewise.
69915         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
69916         * modules/iconv_open (iconv.h): Likewise.
69917         * modules/locale (locale.h): Likewise.
69918         * modules/netinet_in (netinet/in.h): Likewise.
69919         * modules/sys_select (sys_select.h): Likewise.
69920         * modules/sys_socket (sys/socket.h): Likewise.
69921         * modules/sys_stat (sys/stat.h): Likewise.
69922         * modules/sysexits (sysexits.h): Likewise.
69923         * modules/unistd (unistd.h): Likewise.
69924
69925 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69926
69927         * modules/closein-tests (Makefile.am): Distribute
69928         `test-closein.sh'.
69929
69930 2007-05-17  Bruno Haible  <bruno@clisp.org>
69931
69932         * tests/test-printf-posix.output: Renamed from
69933         tests/test-fprintf-posix.out.
69934         * modules/fprintf-posix-tests: Update.
69935         * modules/printf-posix-tests: Update.
69936         * modules/vfprintf-posix-tests: Update.
69937         * modules/vprintf-posix-tests: Update.
69938         * tests/test-fprintf-posix.sh: Update.
69939         * tests/test-printf-posix.sh: Update.
69940         * tests/test-vfprintf-posix.sh: Update.
69941         * tests/test-vprintf-posix.sh: Update.
69942         Reported by Ralf Wildenhues.
69943
69944 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
69945
69946         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
69947         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
69948         GCC 4.2, which otherwise issues a lot of warnings.
69949         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
69950         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
69951         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
69952         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
69953         it should no longer be needed.
69954         * lib/string_.h: Likewise.
69955         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
69956         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
69957         * modules/inttypes (inttypes.h): Likewise.
69958         * modules/math (math.h): Likewise.
69959         * modules/search (search.h): Likewise.
69960         * modules/signal (signal.h): Likewise.
69961         * modules/stdint (stdint.h): Likewise.
69962         * modules/stdio (stdio.h): Likewise.
69963         * modules/stdlib (stdlib.h): Likewise.
69964         * modules/string (string.h): Likewise.
69965         * modules/sys_time (sys/time.h): Likewise.
69966         * modules/time (time.h): Likewise.
69967         * modules/wchar (wchar.h): Likewise.
69968         * modules/wctype (wtype.h): Likewise.
69969
69970 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
69971
69972         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
69973
69974 2007-05-13  Bruno Haible  <bruno@clisp.org>
69975
69976         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
69977         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
69978         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
69979         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69980         (gl_PREREQ_STRTOK_R): Don't require it here.
69981
69982 2007-05-13  Bruno Haible  <bruno@clisp.org>
69983
69984         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
69985         when used in C++ mode.
69986
69987 2007-05-12  Bruno Haible  <bruno@clisp.org>
69988
69989         * lib/linebuffer.h: Tweak doc.
69990         * lib/linebuffer.c: Likewise.
69991
69992 2007-05-12  James Youngman  <jay@gnu.org>
69993
69994         * lib/linebuffer.c (readlinebuffer_delim): New function,
69995         like readlinebuffer, but use a caller-specified delimiter.
69996         (readlinebuffer): Just call readlinebuffer_delim with '\n'
69997         as the delimiter.
69998         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
69999
70000 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
70001
70002         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
70003         * modules/openat (Files): Remove openat-die.c.
70004         (Depends-on): Add openat-die.
70005         * modules/openat-die: New module.
70006
70007 2007-05-06  Bruno Haible  <bruno@clisp.org>
70008
70009         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
70010         Update with info about Cygwin.
70011         * doc/functions/fprintf.texi: Update.
70012         * doc/functions/printf.texi: Update.
70013         * doc/functions/snprintf.texi: Update.
70014         * doc/functions/sprintf.texi: Update.
70015         * doc/functions/vfprintf.texi: Update.
70016         * doc/functions/vprintf.texi: Update.
70017         * doc/functions/vsnprintf.texi: Update.
70018         * doc/functions/vsprintf.texi: Update.
70019         Reported by Eric Blake.
70020
70021 2007-05-06  Bruno Haible  <bruno@clisp.org>
70022
70023         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
70024         padding ourselves for the floating-point directives.
70025         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
70026         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
70027         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70028         gl_PRINTF_FLAG_ZERO and test its result. Invoke
70029         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
70030         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70031         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
70032         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70033         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70034         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70035         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70036         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70037         * tests/test-snprintf-posix.h (test_function): Also check the width
70038         and some flags in the %f directive.
70039         * tests/test-sprintf-posix.h (test_function): Likewise.
70040         * tests/test-vasnprintf-posix.c (test_function): Likewise.
70041         * tests/test-vasprintf-posix.c (test_function): Likewise.
70042         * doc/functions/fprintf.texi: Update.
70043         * doc/functions/printf.texi: Update.
70044         * doc/functions/snprintf.texi: Update.
70045         * doc/functions/sprintf.texi: Update.
70046         * doc/functions/vfprintf.texi: Update.
70047         * doc/functions/vprintf.texi: Update.
70048         * doc/functions/vsnprintf.texi: Update.
70049         * doc/functions/vsprintf.texi: Update.
70050
70051 2007-05-06  Bruno Haible  <bruno@clisp.org>
70052
70053         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
70054         pass the ' flag character to sprintf or snprintf.
70055         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
70056         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
70057         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70058         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
70059         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
70060         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70061         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
70062         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70063         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70064         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70065         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70066         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70067         * tests/test-snprintf-posix.h (test_function): Also check the grouping
70068         flag.
70069         * tests/test-sprintf-posix.h (test_function): Likewise.
70070         * tests/test-vasnprintf-posix.c (test_function): Likewise.
70071         * tests/test-vasprintf-posix.c (test_function): Likewise.
70072         * doc/functions/fprintf.texi: Update.
70073         * doc/functions/printf.texi: Update.
70074         * doc/functions/snprintf.texi: Update.
70075         * doc/functions/sprintf.texi: Update.
70076         * doc/functions/vfprintf.texi: Update.
70077         * doc/functions/vprintf.texi: Update.
70078         * doc/functions/vsnprintf.texi: Update.
70079         * doc/functions/vsprintf.texi: Update.
70080
70081 2007-05-01  Bruno Haible  <bruno@clisp.org>
70082
70083         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
70084
70085 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
70086
70087         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
70088         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
70089
70090 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70091
70092         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
70093         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
70094         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
70095
70096 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
70097
70098         * lib/argp-help.c (struct hol_entry): New member `ord'.
70099         (HOL_ENTRY_PTRCMP): Use ord for comparison
70100         (hol_sort): Initialize ord.
70101
70102 2007-05-01  Bruno Haible  <bruno@clisp.org>
70103
70104         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
70105         Reported by Eric Blake.
70106         * doc/gnulib.texi (Function Substitutes): Update.
70107
70108 2007-05-01  Bruno Haible  <bruno@clisp.org>
70109
70110         * doc/functions.texi: Remove file, now redundant through
70111         doc/functions/*.texi.
70112
70113 2007-05-01  Bruno Haible  <bruno@clisp.org>
70114
70115         * modules/argp (Depends-on): Add sleep.
70116
70117 2007-05-01  Bruno Haible  <bruno@clisp.org>
70118
70119         * modules/sleep-tests: New file.
70120         * tests/test-sleep.c: New file.
70121
70122         * modules/sleep: New file.
70123         * lib/sleep.c: New file.
70124         * m4/sleep.m4: New file.
70125         * lib/unistd_.h (sleep): New declaration.
70126         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
70127         HAVE_SLEEP.
70128         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
70129         * doc/functions/sleep.texi: Document the sleep module.
70130
70131 2007-05-01  Bruno Haible  <bruno@clisp.org>
70132
70133         * lib/sigprocmask.h: Remove file.
70134         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
70135         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
70136         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
70137         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
70138         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
70139         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
70140         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
70141         HAVE_SIGSET_T as a shell variable.
70142         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
70143         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
70144         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
70145         (Depends-on): Add signal. Remove verify.
70146         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
70147         (Include): Mention <signal.h> instead of sigprocmask.h.
70148         * NEWS: Mention the change.
70149         * lib/fatal-signal.c: Don't include sigprocmask.h.
70150
70151 2007-05-01  Bruno Haible  <bruno@clisp.org>
70152
70153         * modules/signal: New file.
70154         * lib/signal_.h: New file.
70155         * m4/signal_h.m4: New file.
70156
70157 2007-05-01  Bruno Haible  <bruno@clisp.org>
70158
70159         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
70160         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
70161         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
70162         HAVE_WCTYPE_CTMP_BUG into wctype.h.
70163
70164 2007-05-01  Bruno Haible  <bruno@clisp.org>
70165
70166         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
70167         configure time.
70168         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
70169         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
70170         * modules/sys_stat (Makefile.am): Substitute their values into
70171         sys/stat.h.
70172
70173 2007-05-01  Bruno Haible  <bruno@clisp.org>
70174
70175         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
70176         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
70177         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
70178
70179 2007-05-01  Bruno Haible  <bruno@clisp.org>
70180
70181         * doc/header/assert.texi: Undo last change: don't mention the gnulib
70182         'assert' module here.
70183
70184 2007-05-01  Bruno Haible  <bruno@clisp.org>
70185
70186         * doc/functions/*.texi: New files.
70187         * doc/functions/google-ranking.txt: New file.
70188         * doc/gnulib.texi (Function Substitutes): New chapter.
70189         (ctime, inet_ntoa): Remove sections.
70190         * doc/ctime.texi: Remove file.
70191         * doc/inet_ntoa.texi: Remove file.
70192         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
70193         dependencies.
70194         (%.info): New rule, specifying a --reference-limit.
70195
70196 2007-05-01  Bruno Haible  <bruno@clisp.org>
70197
70198         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
70199
70200 2007-05-01  Bruno Haible  <bruno@clisp.org>
70201
70202         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
70203         the portability of 'mkdir' to mingw systems.
70204
70205 2007-05-01  Bruno Haible  <bruno@clisp.org>
70206
70207         * doc/headers/google-ranking.txt: New file.
70208
70209 2007-04-30  Eric Blake  <ebb9@byu.net>
70210
70211         Prefer fseeko to fseek.
70212         * modules/getpass (Depends-on): Add fseeko.
70213         * lib/getpass.c (getpass): Use fseeko, not fseek.
70214
70215 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
70216
70217         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
70218         assumes the sorting is stable, while most qsort implementations
70219         are not.  Use argument addresses to ensure they never compare as
70220         equal.
70221
70222         * tests/test-argp-2.sh (usage-indent test): Fix output
70223         (func_compare): Restore diff options
70224         * tests/test-argp.c: Restore #include "progname.h"
70225
70226 2007-04-29  Bruno Haible  <bruno@clisp.org>
70227
70228         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
70229         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70230         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
70231         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70232         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
70233         (configure.ac): Define CHECK_SNPRINTF_POSIX.
70234         (TESTS, check_PROGRAMS): Add test-snprintf.
70235         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
70236         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
70237         (TESTS, check_PROGRAMS): Add test-vsnprintf.
70238         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
70239         assertions that fail on HP-UX, OSF/1, or IRIX.
70240         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
70241
70242 2007-04-29  Bruno Haible  <bruno@clisp.org>
70243
70244         * MODULES.html.sh (posix_functions): Remove 'contents'.
70245
70246 2007-04-29  Karl Berry  <karl@gnu.org>
70247
70248         * config/srclist.txt (gendocs_template_min): new entry.
70249
70250 2007-04-29  Bruno Haible  <bruno@clisp.org>
70251
70252         Work around fpurge bug on BSD systems.
70253         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
70254         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
70255         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
70256         fpurge to rpl_fpurge if the system already has this function.
70257         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
70258         the case where the system already has this function. Correct invariants
70259         on BSD systems.
70260         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
70261         BSD systems.
70262
70263 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
70264
70265         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
70266         proposed by Sven Verdoolaege.
70267
70268         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
70269         options.
70270         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
70271         (usage and help tests): Update
70272
70273 2007-04-29  Bruno Haible  <bruno@clisp.org>
70274
70275         * tests/test-fflush.c (main): Use a file of size 17, not 10.
70276         Print more information in case of failure. Disable a test on BeOS.
70277
70278 2007-04-29  Bruno Haible  <bruno@clisp.org>
70279
70280         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
70281         This helps debugging on systems on which no gdb is available.
70282
70283 2007-04-29  Bruno Haible  <bruno@clisp.org>
70284
70285         * lib/freading.h: Improve comments.
70286         * lib/fwriting.h: Likewise.
70287         * tests/test-freading.c (main): Don't check freading immediately after
70288         repositioning. Needed for glibc.
70289
70290 2007-04-29  Bruno Haible  <bruno@clisp.org>
70291
70292         * lib/freading.c (freading): Trivial simplification.
70293
70294 2007-04-28  Bruno Haible  <bruno@clisp.org>
70295
70296         * tests/test-fwriting.c (main): Also test the interaction between
70297         fflush and fwriting.
70298         * modules/fwriting-tests (Depends-on): Add fflush.
70299
70300         * tests/test-freading.c (main): Also test the interaction between
70301         fflush and freading.
70302         * modules/freading-tests (Depends-on): Add fflush.
70303
70304 2007-04-28  Bruno Haible  <bruno@clisp.org>
70305
70306         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
70307         fseeko and ftello.
70308         Suggested by Eric Blake.
70309
70310 2007-04-28  Jim Meyering  <jim@meyering.net>
70311
70312         Avoid false-negative in gl_STDINT_H's C99 conformance test.
70313         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
70314         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
70315
70316 2007-04-27  Eric Blake  <ebb9@byu.net>
70317
70318         * doc/headers/assert.texi (assert.h): Document assert module use.
70319
70320 2007-04-27  Bruno Haible  <bruno@clisp.org>
70321
70322         * doc/headers/*.texi: New files.
70323         * doc/gnulib.texi (Header File Substitutes): New chapter.
70324         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
70325         dependencies.
70326         (standards.info ,standards.html, standards.dvi): Update dependencies.
70327         (mostlyclean, clean): New targets.
70328
70329 2007-04-27  Bruno Haible  <bruno@clisp.org>
70330
70331         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
70332         * modules/sysexits (Files, Makefile.am): Update.
70333
70334         * lib/sys_socket_.h: Renamed from lib/socket_.h.
70335         * modules/sys_socket (Files, Makefile.am): Update.
70336
70337         * lib/sys_stat_.h: Renamed from lib/stat_.h.
70338         * modules/sys_stat (Files, Makefile.am): Update.
70339
70340 2007-04-27  Eric Blake  <ebb9@byu.net>
70341
70342         * lib/freading.h: Improve comments.
70343         * lib/fwriting.h: Likewise.
70344         * lib/fflush.c: Likewise.
70345
70346         Fix closein for mingw.
70347         * modules/closein-tests: Add tests for closein.
70348         * tests/test-closein.c: New file.
70349         * tests/test-closein.sh: Likewise.
70350         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
70351         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
70352
70353 2007-04-27  Bruno Haible  <bruno@clisp.org>
70354
70355         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
70356         version is < 6.
70357         * lib/math_.h [__DECC]: Likewise.
70358         * lib/stdio_.h [__DECC]: Likewise.
70359         * lib/stdlib_.h [__DECC]: Likewise.
70360         * lib/string_.h [__DECC]: Likewise.
70361         * lib/time_.h [__DECC]: Likewise.
70362         * lib/wchar_.h [__DECC]: Likewise.
70363         * lib/wctype_.h [__DECC]: Likewise.
70364
70365 2007-04-27  Bruno Haible  <bruno@clisp.org>
70366
70367         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
70368
70369 2007-04-27  Bruno Haible  <bruno@clisp.org>
70370
70371         * lib/fflush.c: Add comments.
70372         * modules/fpurge-tests (Depends-on): Add fflush.
70373         * modules/freadable-tests (Depends-on): Likewise.
70374         * modules/fwritable-tests (Depends-on): Likewise.
70375
70376 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
70377
70378         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
70379         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
70380         Report by Bruno Haible <bruno@clisp.org>.
70381
70382 2007-04-26  Eric Blake  <ebb9@byu.net>
70383
70384         Fix fflush on mingw.
70385         * modules/fflush (Depends-on): Add freading.
70386         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
70387         but unread data.
70388
70389 2007-04-26  Eric Blake  <ebb9@byu.net>
70390         and Bruno Haible  <bruno@clisp.org>
70391
70392         Implement freading and fwriting.
70393         * lib/freading.c: New file.
70394         * lib/freading.h: Likewise.
70395         * m4/freading.m4: Likewise.
70396         * modules/freading: Likewise.
70397         * modules/freading-tests: Likewise.
70398         * tests/test-freading.c: Likewise.
70399         * lib/fwriting.c: New file.
70400         * lib/fwriting.h: Likewise.
70401         * m4/fwriting.m4: Likewise.
70402         * modules/fwriting: Likewise.
70403         * modules/fwriting-tests: Likewise.
70404         * tests/test-fwriting.c: Likewise.
70405         * MODULES.html.sh (File stream based Input/Output): Mention them.
70406
70407 2007-04-26  Bruno Haible  <bruno@clisp.org>
70408
70409         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
70410         'long' when we assume it.
70411         Suggested by Eric Blake.
70412
70413 2007-04-26  Bruno Haible  <bruno@clisp.org>
70414
70415         Ensure fseeko, ftello are declared on glibc systems.
70416         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
70417         * modules/fseeko (configure.ac-early): Likewise.
70418         * modules/ftello (configure.ac-early): Likewise.
70419         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
70420         AC_FUNC_FSEEKO for this.
70421         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
70422         (gl_CHECK_FSEEKO): Remove macro.
70423
70424 2007-04-26  Bruno Haible  <bruno@clisp.org>
70425
70426         * tests/test-fflush.c (main): Also check the ftell result after
70427         fflush and fseek/fseeko.
70428         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
70429         file descriptor position cache in the stream.
70430         * lib/fseeko.c (rpl_fseeko): Likewise.
70431
70432 2007-04-26  Bruno Haible  <bruno@clisp.org>
70433
70434         * modules/fflush-tests (Depends-on): Add fseeko.
70435
70436 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
70437             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70438
70439         * lib/argz_.h: ensure error_t definition is obtained in same
70440         mechanism system argz.h would have.
70441         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
70442         argz facilities are known bad.  Err on the side of caution if
70443         cross-compiling.
70444
70445 2007-04-25  Eric Blake  <ebb9@byu.net>
70446
70447         * lib/fpurge.c (includes): Use stdlib.h for free.
70448         * tests/test-fflush.c (main): Also test fflush-fseeko.
70449
70450 2007-04-25  Bruno Haible  <bruno@clisp.org>
70451
70452         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
70453         * lib/fseeko.c: New file.
70454         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
70455         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
70456         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
70457         gl_FUNC_FSEEKO.
70458         (gl_FUNC_FSEEKO): Invoke it.
70459         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
70460         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
70461         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
70462
70463 2007-04-25  Bruno Haible  <bruno@clisp.org>
70464
70465         * modules/fflush (Depends-on): Add ftello.
70466
70467 2007-04-25  Bruno Haible  <bruno@clisp.org>
70468
70469         * modules/ftello-tests: New file.
70470         * tests/test-ftello.c: New file.
70471
70472         * modules/ftello: New file.
70473         * m4/ftello.m4: New file.
70474         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
70475         HAVE_FTELLO.
70476         * lib/stdio_.h (ftello): New declaration.
70477         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
70478         HAVE_FTELLO.
70479
70480 2007-04-25  Bruno Haible  <bruno@clisp.org>
70481
70482         * modules/fseeko-tests: New file.
70483         * tests/test-fseeko.c: New file.
70484
70485         * modules/fseeko: New file.
70486         * m4/fseeko.m4: New file.
70487         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
70488         HAVE_FSEEKO.
70489         * lib/stdio_.h (fseeko): New declaration.
70490         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
70491         HAVE_FSEEKO.
70492
70493 2007-04-25  Bruno Haible  <bruno@clisp.org>
70494
70495         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
70496
70497 2007-04-25  Bruno Haible  <bruno@clisp.org>
70498
70499         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
70500         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
70501         * tests/test-unistd.c: Likewise.
70502         * tests/test-fcntl.c: Likewise.
70503
70504 2007-04-23  Eric Blake  <ebb9@byu.net>
70505
70506         * lib/fflush.c: Fix missing include.
70507         Reported by Bruno Haible.
70508
70509 2007-04-23  Bruno Haible  <bruno@clisp.org>
70510
70511         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
70512         Reported by Eric Blake.
70513
70514 2007-04-23  Bruno Haible  <bruno@clisp.org>
70515
70516         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
70517
70518 2007-04-23  Bruno Haible  <bruno@clisp.org>
70519
70520         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
70521
70522 2007-04-23  Bruno Haible  <bruno@clisp.org>
70523
70524         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
70525         Needed on HP-UX 11.
70526
70527 2007-04-16  Eric Blake  <ebb9@byu.net>
70528
70529         Make fflush rely on fpurge.
70530         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
70531         open coding all variants.
70532         * modules/fflush (Depends-on): Add fpurge and unistd.
70533         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
70534         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
70535
70536         Fix --with-tests compilation on cygwin.
70537         * modules/argmatch-tests (Makefile.am): List gnulib library first
70538         in LDADD.
70539         * modules/argp-tests (Makefile.am): Likewise.
70540         * modules/array-list-tests (Makefile.am): Likewise.
70541         * modules/array-oset-tests (Makefile.am): Likewise.
70542         * modules/avltree-list-tests (Makefile.am): Likewise.
70543         * modules/avltree-oset-tests (Makefile.am): Likewise.
70544         * modules/avltreehash-list-tests (Makefile.am): Likewise.
70545         * modules/carray-list-tests (Makefile.am): Likewise.
70546         * modules/dirname-tests (Makefile.am): Likewise.
70547         * modules/frexp-tests (Makefile.am): Likewise.
70548         * modules/isnanl-tests (Makefile.am): Likewise.
70549         * modules/linked-list-tests (Makefile.am): Likewise.
70550         * modules/linkedhash-list-tests (Makefile.am): Likewise.
70551         * modules/lock-tests (Makefile.am): Likewise.
70552         * modules/rbtree-list-tests (Makefile.am): Likewise.
70553         * modules/rbtree-oset-tests (Makefile.am): Likewise.
70554         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
70555         * modules/tls-tests (Makefile.am): Likewise.
70556         * modules/tsearch-tests (Makefile.am): Likewise.
70557         * modules/xvasprintf-tests (Makefile.am): Likewise.
70558
70559         Fix fpurge for cygwin.
70560         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
70561         value.
70562         * modules/fpurge-tests (Depends-on): Clean up trash.
70563
70564 2007-04-16  Simon Josefsson  <simon@josefsson.org>
70565
70566         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
70567
70568         * m4/autobuild.m4: Re-indent.
70569
70570 2007-04-13  Bruno Haible  <bruno@clisp.org>
70571
70572         * modules/fpurge-tests: New file.
70573         * tests/test-fpurge.c: New file.
70574
70575         * modules/fpurge: New file.
70576         * lib/fpurge.h: New file.
70577         * lib/fpurge.c: New file.
70578         * m4/fpurge.m4: New file.
70579
70580 2007-04-13  Bruno Haible  <bruno@clisp.org>
70581
70582         * modules/fbufmode-tests: New file.
70583         * tests/test-fbufmode.c: New file.
70584
70585         * modules/fbufmode: New file.
70586         * lib/fbufmode.h: New file.
70587         * lib/fbufmode.c: New file.
70588         * m4/fbufmode.m4: New file.
70589
70590 2007-04-13  Bruno Haible  <bruno@clisp.org>
70591
70592         * modules/fwritable-tests: New file.
70593         * tests/test-fwritable.c: New file.
70594
70595         * modules/fwritable: New file.
70596         * lib/fwritable.h: New file.
70597         * lib/fwritable.c: New file.
70598         * m4/fwritable.m4: New file.
70599
70600 2007-04-13  Bruno Haible  <bruno@clisp.org>
70601
70602         * modules/freadable-tests: New file.
70603         * tests/test-freadable.c: New file.
70604
70605         * modules/freadable: New file.
70606         * lib/freadable.h: New file.
70607         * lib/freadable.c: New file.
70608         * m4/freadable.m4: New file.
70609
70610 2007-04-13  Bruno Haible  <bruno@clisp.org>
70611
70612         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
70613         MOSTLYCLEANFILES.
70614
70615 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
70616
70617         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
70618         gzip bootstrap.conf to avoid dragging in i18n machinery.
70619         (gnulib_tool_option): Use it.
70620
70621 2007-04-13  Bruno Haible  <bruno@clisp.org>
70622
70623         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
70624         %F directives.
70625         * tests/test-vasprintf-posix.c (test_function): Likewise.
70626         * tests/test-snprintf-posix.h (test_function): Likewise.
70627         * tests/test-sprintf-posix.h (test_function): Likewise.
70628         * tests/test-fprintf-posix.h (test_function): Likewise.
70629         * tests/test-printf-posix.h (test_function): Likewise.
70630         * tests/test-fprintf-posix.out: Likewise.
70631
70632 2007-04-13  Bruno Haible  <bruno@clisp.org>
70633
70634         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
70635         * modules/tls-tests (configure.ac): Likewise.
70636         Reported by Arto C. Nirkko <anirkko@insel.ch>.
70637
70638 2007-04-13  Bruno Haible  <bruno@clisp.org>
70639
70640         * lib/tls.c (glthread_tls_get): Fix return type.
70641         Patch by Arto C. Nirkko <anirkko@insel.ch>.
70642
70643 2007-04-12  Eric Blake  <ebb9@byu.net>
70644
70645         * modules/gettime (Depends-on): Remove gettime.
70646         Reported by Dmitry V. Levin.
70647
70648 2007-04-12  Bruno Haible  <bruno@clisp.org>
70649
70650         * modules/fflush (Include): Mention <stdio.h>.
70651         * modules/strtoimax (Include): Mention <inttypes.h>.
70652         * modules/strtoumax (Include): Likewise.
70653
70654 2007-04-12  Eric Blake  <ebb9@byu.net>
70655
70656         * .cvsignore: New file.
70657         * .gitignore: Likewise.
70658
70659 2007-04-12  Bruno Haible  <bruno@clisp.org>
70660
70661         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
70662         not before, since $(LDADD) often contains libgnu.a.
70663         * modules/striconv-tests (test_striconv_LDADD): Likewise.
70664         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
70665         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
70666         Needed on Cygwin.
70667
70668 2007-04-12  Eric Blake  <ebb9@byu.net>
70669
70670         Work around glibc's failure to flush stdin on fclose.
70671         * lib/closein.c (close_stdin): Flush stdin before closing.
70672
70673         Work around glibc's failure to reset seekable stdin on exit.
70674         * modules/closein: New module.
70675         * lib/closein.c: New file.
70676         * lib/closein.h: Likewise.
70677         * m4/closein.m4: Likewise.
70678         * MODULES.html.sh (File stream based Input/Output): Document it.
70679
70680 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70681
70682         * gnulib-tool: Rename generated 'autobuild' script to
70683         'do-autobuild' in --create-megatestdir output.
70684
70685         * doc/gnulib.texi (Build robot for gnulib): Fix.
70686
70687 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70688
70689         * modules/sysexits (Depends-on): Add absolute-header.
70690
70691 2007-04-12  Eric Blake  <ebb9@byu.net>
70692
70693         No need to preserve errno on success.
70694         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
70695         Reported by Bruno Haible.
70696
70697 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70698
70699         * MODULES.html.sh (Support for maintaining and releasing
70700         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
70701
70702 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70703
70704         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
70705
70706 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70707
70708         * modules/autobuild: New module.
70709
70710         * m4/autobuild.m4: New file.
70711
70712 2007-04-11  Bruno Haible  <bruno@clisp.org>
70713
70714         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
70715         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
70716         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
70717         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
70718         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70719         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70720         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70721         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70722         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70723         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70724         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
70725         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70726         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70727         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
70728         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70729         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70730         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
70731         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70732         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70733         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
70734         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70735         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70736         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
70737         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70738         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70739         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
70740         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70741         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70742         Reported by Eric Blake.
70743
70744 2007-04-11  Bruno Haible  <bruno@clisp.org>
70745
70746         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
70747
70748 2007-04-10  Bruno Haible  <bruno@clisp.org>
70749
70750         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
70751         for NaN and Infinity. Needed on FreeBSD 6.1.
70752         * tests/test-vasnprintf-posix.c (test_function): Undo last change
70753         regarding results for "%010a" of Infinity and NaN.
70754         * tests/test-vasprintf-posix.c (test_function): Likewise.
70755         * tests/test-snprintf-posix.h (test_function): Likewise.
70756         * tests/test-sprintf-posix.h (test_function): Likewise.
70757         * tests/test-fprintf-posix.h (test_function): Likewise.
70758         * tests/test-printf-posix.h (test_function): Likewise.
70759         * tests/test-fprintf-posix.out: Likewise.
70760
70761 2007-04-10  Bruno Haible  <bruno@clisp.org>
70762
70763         * modules/locale-tests: New file.
70764         * tests/test-locale.c: New file.
70765
70766         * modules/locale: New file.
70767         * lib/locale_.h: New file.
70768         * m4/locale_h.m4: New file.
70769
70770 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
70771             Bruno Haible  <bruno@clisp.org>
70772
70773         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
70774         be determined, test for availability of the copysignf, copysign,
70775         copysignl functions.
70776         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
70777         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
70778         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
70779
70780 2007-04-09  Eric Blake  <ebb9@byu.net>
70781
70782         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
70783         * modules/stdio (Makefile.am): Support fflush.
70784         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
70785         * modules/fflush: New file.
70786         * lib/fflush.c: Likewise.
70787         * m4/fflush.m4: Likewise.
70788         * modules/fflush-tests: New test.
70789         * tests/test-fflush.c: Likewise.
70790         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
70791
70792 2007-04-06  Bruno Haible  <bruno@clisp.org>
70793
70794         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
70795         (VASNPRINTF): Use signbit for faster determination whether to print a
70796         minus sign.
70797         * modules/vasnprintf (Files): Remove lib/float+.h.
70798         * modules/fprintf-posix (Depends-on): Add signbit.
70799         * modules/snprintf-posix (Depends-on): Likewise.
70800         * modules/sprintf-posix (Depends-on): Likewise.
70801         * modules/vasnprintf-posix (Depends-on): Likewise.
70802         * modules/vasprintf-posix (Depends-on): Likewise.
70803         * modules/vfprintf-posix (Depends-on): Likewise.
70804         * modules/vsnprintf-posix (Depends-on): Likewise.
70805         * modules/vsprintf-posix (Depends-on): Likewise.
70806
70807 2007-04-06  Bruno Haible  <bruno@clisp.org>
70808
70809         * tests/test-frexp.c (main): Test also the sign bit of zero results.
70810         * tests/test-frexpl.c (main): Likewise.
70811         * tests/test-ldexpl.c (main): Likewise.
70812         * modules/frexp-tests (Depends-on): Add signbit.
70813         * modules/frexpl-tests (Depdends-on): Likewise.
70814         * modules/ldexpl-tests (Depdends-on): Likewise.
70815
70816 2007-04-06  Bruno Haible  <bruno@clisp.org>
70817
70818         * modules/signbit-tests: New file.
70819         * tests/test-signbit.c: New file.
70820
70821         * modules/signbit: New file.
70822         * lib/signbitf.c: New file.
70823         * lib/signbitd.c: New file.
70824         * lib/signbitl.c: New file.
70825         * m4/signbit.m4: New file.
70826         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
70827         (signbit): New macro.
70828         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
70829         REPLACE_SIGNBIT.
70830         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
70831         REPLACE_FREXPL into math.h.
70832
70833 2007-04-06  Bruno Haible  <bruno@clisp.org>
70834
70835         * modules/isnanf-nolibm-tests: New file.
70836         * tests/test-isnanf.c: New file.
70837
70838         * modules/isnanf-nolibm: New file.
70839         * lib/isnanf.h: New file.
70840         * lib/isnanf.c: New file.
70841         * lib/isnan.c: Consider the USE_FLOAT macro.
70842         * m4/isnanf.m4: New file.
70843
70844 2007-04-06  Bruno Haible  <bruno@clisp.org>
70845
70846         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
70847         (Link): New section.
70848
70849         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
70850
70851 2007-04-06  Bruno Haible  <bruno@clisp.org>
70852
70853         Assume the 'long double' type.
70854         * m4/longdouble.m4: Remove file.
70855         * config/srclist.txt: Don't mention longdouble.m4.
70856         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
70857         * lib/float+.h: Likewise.
70858         * lib/frexp.c: Likewise.
70859         * lib/printf-args.h: Likewise.
70860         * lib/printf-args.c: Likewise.
70861         * lib/printf-frexp.c: Likewise.
70862         * lib/printf-parse.c: Likewise.
70863         * lib/vasnprintf.c: Likewise.
70864         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
70865         * m4/intl.m4: Likewise.
70866         * m4/isnanl.m4: Likewise.
70867         * m4/printf.m4: Likewise.
70868         * m4/printf-frexpl.m4: Likewise.
70869         * m4/vasnprintf.m4: Likewise.
70870         * modules/allocsa (Files): Remove m4/longdouble.m4.
70871         * modules/gettext (Files): Likewise.
70872         * modules/relocatable-prog-wrapper (Files): Likewise.
70873         * modules/vasnprintf (Files): Likewise.
70874         * modules/isnanl (Files): Likewise.
70875         (Include): Simplify.
70876         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
70877         (Include): Simplify.
70878         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
70879         (Include): Simplify.
70880         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
70881         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70882         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
70883         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70884         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
70885         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70886         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
70887         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70888         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
70889         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70890         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
70891         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70892         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
70893         * tests/test-isnanl.c: Likewise.
70894         * tests/test-snprintf-posix.h: Likewise.
70895         * tests/test-sprintf-posix.h: Likewise.
70896         * tests/test-vasnprintf-posix.c: Likewise.
70897         * tests/test-vasnprintf-posix2.c: Likewise.
70898         * tests/test-vasprintf-posix.c: Likewise.
70899
70900 2007-04-06  Bruno Haible  <bruno@clisp.org>
70901
70902         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
70903         * lib/math_.h [__DECC]: Include the overridden include file through
70904         #include_next, outside the double-inclusion guard.
70905         * lib/stdio_.h [__DECC]: Likewise.
70906         * lib/stdlib_.h [__DECC]: Likewise.
70907         * lib/string_.h [__DECC]: Likewise.
70908         * lib/time_.h [__DECC]: Likewise.
70909         * lib/wchar_.h [__DECC]: Likewise.
70910         * lib/wctype_.h [__DECC]: Likewise.
70911         * lib/inttypes_.h [__DECC]: Likewise.
70912         Reported by Albert Chin <china@thewrittenword.com> in
70913         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
70914
70915 2007-04-04  Eric Blake  <ebb9@byu.net>
70916
70917         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
70918         1.5.x.
70919
70920 2007-04-04  Bruno Haible  <bruno@clisp.org>
70921
70922         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
70923         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
70924
70925 2007-04-04  Bruno Haible  <bruno@clisp.org>
70926
70927         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
70928         results for "%010a" of Infinity and NaN.
70929         * tests/test-vasprintf-posix.c (test_function): Likewise.
70930         * tests/test-snprintf-posix.h (test_function): Likewise.
70931         * tests/test-sprintf-posix.h (test_function): Likewise.
70932         * tests/test-fprintf-posix.h (test_function): Remove these tests.
70933         * tests/test-printf-posix.h (test_function): Likewise.
70934         * tests/test-fprintf-posix.out: Update.
70935         Needed for FreeBSD 6.1.
70936
70937 2007-04-04  Bruno Haible  <bruno@clisp.org>
70938
70939         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
70940         directly used by the gnulib modules nor by gnulib-tool.
70941
70942 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
70943
70944         * DEPENDENCIES: Give overall description of version dependency
70945         desirability.  Use more-typical names for apps.
70946         Add shell, coreutils, diffutils, grep, tar, gzip.
70947
70948 2007-04-04  Simon Josefsson  <simon@josefsson.org>
70949
70950         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
70951
70952 2007-04-04  Karl Berry  <karl@gnu.org>
70953
70954         * MODULES.html.sh (func_module): missing '.
70955
70956 2007-04-03  Bruno Haible  <bruno@clisp.org>
70957
70958         * modules/argmatch-tests (Makefile.am): New variable
70959         test_argmatch_LDADD.
70960         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
70961         * modules/array-list-tests (Makefile.am): New variable
70962         test_array_list_LDADD.
70963         * modules/array-oset-tests (Makefile.am): New variable
70964         test_array_oset_LDADD.
70965         * modules/avltree-list-tests (Makefile.am): New variable
70966         test_avltree_list_LDADD.
70967         * modules/avltree-oset-tests (Makefile.am): New variable
70968         test_avltree_oset_LDADD.
70969         * modules/avltreehash-list-tests (Makefile.am): New variable
70970         test_avltreehash_list_LDADD.
70971         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
70972         test_canonicalize_lgpl_LDADD.
70973         * modules/carray-list-tests (Makefile.am): New variable
70974         test_carray_list_LDADD.
70975         * modules/dirname-tests (Makefile.am): New variable
70976         test_dirname_LDADD.
70977         * modules/linked-list-tests (Makefile.am): New variable
70978         test_linked_list_LDADD.
70979         * modules/linkedhash-list-tests (Makefile.am): New variable
70980         test_linkedhash_list_LDADD.
70981         * modules/rbtree-list-tests (Makefile.am): New variable
70982         test_rbtree_list_LDADD.
70983         * modules/rbtree-oset-tests (Makefile.am): New variable
70984         test_rbtree_oset_LDADD.
70985         * modules/rbtreehash-list-tests (Makefile.am): New variable
70986         test_rbtreehash_list_LDADD.
70987         * modules/xvasprintf-tests (Makefile.am): New variable
70988         test_xvasprintf_LDADD.
70989         Reported by Eric Blake.
70990
70991 2007-04-03  Eric Blake  <ebb9@byu.net>
70992
70993         * DEPENDENCIES: Weaken m4 requirements.
70994
70995 2007-04-03  Bruno Haible  <bruno@clisp.org>
70996
70997         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
70998         * modules/isnanl-tests (configure.ac): Likewise.
70999
71000 2007-04-03  Ben Pfaff  <blp@gnu.org>
71001
71002         * modules/iconv_open: Add $(srcdir)/ to source directory
71003         references in Makefile fragments that call gperf, to fix VPATH
71004         builds.
71005
71006 2007-04-03  Bruno Haible  <bruno@clisp.org>
71007
71008         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
71009         * lib/ldexpl.c: Undo last change.
71010
71011 2007-04-03  Bruno Haible  <bruno@clisp.org>
71012
71013         * modules/printf-frexpl (Depends-on): Undo last change.
71014         (Files): Add m4/ldexpl.m4.
71015
71016 2007-04-03  Bruno Haible  <bruno@clisp.org>
71017
71018         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
71019         * modules/isnanl (Link): New section.
71020
71021         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
71022         * modules/frexp (Link): New section.
71023
71024         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
71025         * modules/frexpl (Link): New section.
71026
71027         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
71028         * modules/ldexpl (Link): New section.
71029
71030 2007-04-03  Bruno Haible  <bruno@clisp.org>
71031
71032         * modules/TEMPLATE-EXTENDED: New file.
71033         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
71034
71035 2007-04-03  Bruno Haible  <bruno@clisp.org>
71036
71037         * DEPENDENCIES: New file.
71038         Suggested by Simon Josefsson.
71039
71040 2007-04-03  Bruno Haible  <bruno@clisp.org>
71041
71042         * doc/gnulib.texi: Escape @.
71043
71044 2007-04-03  James Youngman  <jay@gnu.org>
71045         and Paul Eggert  <eggert@cs.ucla.edu>
71046
71047         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
71048         birthtime on all systems that have birthtime, not just those which
71049         use st_birthtimensec rather than st_birthtim.  Putting zero in
71050         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
71051         that the birth time is not available for files on an NFS mount.
71052
71053 2007-04-03  Simon Josefsson  <simon@josefsson.org>
71054
71055         * modules/memxor: Move back from crypto/, suggested by Bruno.
71056         * modules/crypto/hmac-sha1: Fix memxor dependency.
71057
71058         * modules/crypto/gc: Moved from ../.
71059
71060 2007-04-02  Eric Blake  <ebb9@byu.net>
71061
71062         * lib/ldexpl.c (includes): Avoid libm.
71063
71064         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
71065
71066 2007-04-02  Bruno Haible  <bruno@clisp.org>
71067
71068         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
71069         on IRIX.
71070
71071 2007-04-02  Bruno Haible  <bruno@clisp.org>
71072
71073         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
71074         x86 or x86_64 platforms running MacOS X.
71075         Reported by Ryan Schmidt <@ryandesign.com>.
71076
71077 2007-04-02  Bruno Haible  <bruno@clisp.org>
71078
71079         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
71080         i386.
71081
71082 2007-04-01  Simon Josefsson  <simon@josefsson.org>
71083
71084         * modules/crypto/arcfour: Moved from ../.
71085         * modules/crypto/arcfour-tests: Moved from ../.
71086         * modules/crypto/arctwo: Moved from ../.
71087         * modules/crypto/arctwo-tests: Moved from ../.
71088         * modules/crypto/des: Moved from ../.
71089         * modules/crypto/des-tests: Moved from ../.
71090         * modules/crypto/gc-arcfour: Moved from ../.
71091         * modules/crypto/gc-arcfour-tests: Moved from ../.
71092         * modules/crypto/gc-arctwo: Moved from ../.
71093         * modules/crypto/gc-arctwo-tests: Moved from ../.
71094         * modules/crypto/gc-des: Moved from ../.
71095         * modules/crypto/gc-des-tests: Moved from ../.
71096         * modules/crypto/gc-hmac-md5: Moved from ../.
71097         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
71098         * modules/crypto/gc-hmac-sha1: Moved from ../.
71099         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
71100         * modules/crypto/gc-md2: Moved from ../.
71101         * modules/crypto/gc-md2-tests: Moved from ../.
71102         * modules/crypto/gc-md4: Moved from ../.
71103         * modules/crypto/gc-md4-tests: Moved from ../.
71104         * modules/crypto/gc-md5: Moved from ../.
71105         * modules/crypto/gc-md5-tests: Moved from ../.
71106         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
71107         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
71108         * modules/crypto/gc-random: Moved from ../.
71109         * modules/crypto/gc-rijndael: Moved from ../.
71110         * modules/crypto/gc-rijndael-tests: Moved from ../.
71111         * modules/crypto/gc-sha1: Moved from ../.
71112         * modules/crypto/gc-sha1-tests: Moved from ../.
71113         * modules/crypto/gc-tests: Moved from ../.
71114         * modules/crypto/hmac-md5: Moved from ../.
71115         * modules/crypto/hmac-md5-tests: Moved from ../.
71116         * modules/crypto/hmac-sha1: Moved from ../.
71117         * modules/crypto/hmac-sha1-tests: Moved from ../.
71118         * modules/crypto/md2: Moved from ../.
71119         * modules/crypto/md2-tests: Moved from ../.
71120         * modules/crypto/md4: Moved from ../.
71121         * modules/crypto/md4-tests: Moved from ../.
71122         * modules/crypto/md5: Moved from ../.
71123         * modules/crypto/md5-tests: Moved from ../.
71124         * modules/crypto/memxor: Moved from ../.
71125         * modules/crypto/rijndael: Moved from ../.
71126         * modules/crypto/rijndael-tests: Moved from ../.
71127         * modules/crypto/sha1: Moved from ../.
71128
71129 2007-03-30  James Youngman  <jay@gnu.org>
71130
71131         * tests/test-stat-time.c (prepare_test): use chmod() rather than
71132         rename() to change the ctime of a file (because ctime is unaffected
71133         by rename on jfs2 on AIX 5.1).
71134         (main): Start by doing cleanup, in case a previous run failed leaving
71135         test files behind.
71136
71137 2007-03-31  Bruno Haible  <bruno@clisp.org>
71138
71139         Support old proprietary implementations of iconv.
71140         * modules/iconv_open: New file.
71141         * lib/iconv_.h: New file.
71142         * m4/iconv_h.m4: New file.
71143         * lib/iconv_open.c: New file.
71144         * lib/iconv_open-aix.gperf: New file.
71145         * lib/iconv_open-hpux.gperf: New file.
71146         * lib/iconv_open-irix.gperf: New file.
71147         * lib/iconv_open-osf.gperf: New file.
71148         * m4/iconv_open.m4: New file.
71149         * modules/linebreak (Depends-on): Add iconv_open.
71150         * modules/striconv (Depends-on): Likewise.
71151         * modules/striconveh (Depends-on): Likewise.
71152         * modules/unicodeio (Depends-on): Likewise.
71153         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
71154         (iconv_t)(-1).
71155         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
71156         conversion if cd is (iconv_t)(-1).
71157         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
71158         is not possible.
71159
71160 2007-03-31  Bruno Haible  <bruno@clisp.org>
71161
71162         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
71163         work on Solaris either. Protect also second use of "autodetect_jp".
71164
71165 2007-03-31  Bruno Haible  <bruno@clisp.org>
71166
71167         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
71168         the function is not present.
71169
71170 2007-03-31  Bruno Haible  <bruno@clisp.org>
71171
71172         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
71173         the function is not present.
71174
71175 2007-03-31  Bruno Haible  <bruno@clisp.org>
71176
71177         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
71178         a bug in HP-UX iconv_open().
71179
71180 2007-03-31  Bruno Haible  <bruno@clisp.org>
71181
71182         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
71183         (Mathematics <math.h>): New section, add fpieee.
71184         (Input/output <stdio.h>): Add fseterr.
71185         (Mathematics <math.h>): New section, add printf-frexp.
71186         (Container data structures): Add sublist.
71187         (Core language properties): Add fpucw, inline.
71188         (Functions for greatest-width integer types <inttypes.h>): Add
71189         imaxabs, imaxdiv, inttypes.
71190         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
71191         isnanl-nolibm, ldexp.
71192         (Mathematics <math.h>): New section, add printf-frexpl.
71193         (Support for systems lacking POSIX:2001): Add fprintf-posix,
71194         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
71195         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
71196         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
71197         (Unicode string functions): Add unistr/u*-mbtoucr.
71198         (Java): Add javacomp-script, javaexec-script.
71199         (C#): Add csharpcomp-script, csharpexec-script.
71200         (Support for building libraries and executables): Add havelib,
71201         relocatable-*.
71202         (Support for maintaining and releasing projects): Renamed from
71203         'Support for maintaining and release projects'. Add announce-gen.
71204
71205 2007-03-31  Bruno Haible  <bruno@clisp.org>
71206
71207         * README: Talk primarily about git.
71208         (git and CVS): Renamed from CVS.
71209         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
71210         gnulib is available through git.
71211         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
71212
71213 2007-03-30  Bruno Haible  <bruno@clisp.org>
71214
71215         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
71216         * lib/poll_.h: Likewise.
71217         * lib/stat_.h: Likewise.
71218         * lib/sys_time_.h: Likewise.
71219         * lib/sysexit_.h: Likewise.
71220         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
71221         * lib/stdbool_.h: Likewise.
71222         * lib/byteswap_.h: Add double-inclusion guard.
71223
71224 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
71225
71226         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
71227
71228 2007-03-30  Karl Berry  <karl@gnu.org>
71229
71230         * config/srclist-update: double space after USA in the license
71231         substitution, since that's how it's usually (?) written.
71232
71233 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
71234
71235         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
71236         reported by Bruno Haible.
71237
71238 2007-03-29  Bruno Haible  <bruno@clisp.org>
71239
71240         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
71241         a bug in AIX iconv().
71242
71243 2007-03-29  Bruno Haible  <bruno@clisp.org>
71244
71245         * modules/ldexpl-tests: New file.
71246         * tests/test-ldexpl.c: New file.
71247
71248 2007-03-29  Bruno Haible  <bruno@clisp.org>
71249
71250         * lib/ldexpl.c: Include fpucw.h.
71251         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
71252         multiplication.
71253         * modules/ldexpl (Depends-on): Add fpucw.
71254
71255 2007-03-29  Bruno Haible  <bruno@clisp.org>
71256
71257         * modules/ldexpl: New file.
71258         * m4/ldexpl.m4: New file.
71259         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
71260         set.
71261         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
71262         REPLACE_LDEXPL.
71263         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
71264         REPLACE_LDEXPL.
71265         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
71266         gl_FUNC_LDEXPL_WORKS.
71267         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
71268         * modules/mathl (Files): Remove lib/ldexpl.c.
71269         (Depends-on): Add ldexpl.
71270
71271 2007-03-29  Bruno Haible  <bruno@clisp.org>
71272
71273         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
71274
71275 2007-03-29  Bruno Haible  <bruno@clisp.org>
71276
71277         * tests/test-striconveh.c (main): Don't assume that a direct conversion
71278         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
71279         and possibly also HP-UX.
71280         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
71281         work on AIX, IRIX, HP-UX, OSF/1.
71282         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
71283         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
71284         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
71285         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
71286         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
71287         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
71288
71289 2007-03-29  Bruno Haible  <bruno@clisp.org>
71290
71291         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
71292
71293 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
71294
71295         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
71296         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
71297
71298 2007-03-29  Eric Blake  <ebb9@byu.net>
71299
71300         * lib/acl-internal.h: Remove redundant include.
71301         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
71302         Cygwin when a file is locked.
71303
71304 2007-03-29  Bruno Haible  <bruno@clisp.org>
71305
71306         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
71307         file.
71308         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
71309
71310 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
71311
71312         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
71313         try to remove a parent directory if the child couldn't be removed
71314         (except for the first rmdir, which could fail because the child
71315         doesn't exist).  Problem reported by Jeff Blaine in
71316         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
71317
71318 2007-03-28  Bruno Haible  <bruno@clisp.org>
71319
71320         * lib/striconveh.c (utf8conv_carefully): New function.
71321         (mem_cd_iconveh_internal): Invoke it.
71322
71323 2007-03-28  Bruno Haible  <bruno@clisp.org>
71324
71325         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
71326         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
71327         input.
71328         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
71329         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
71330         unistr/u8-uctomb.
71331
71332 2007-03-28  Bruno Haible  <bruno@clisp.org>
71333
71334         * modules/unistr/u8-mbtoucr: New file.
71335         * lib/unistr/u8-mbtoucr.c: New file.
71336         * modules/unistr/u16-mbtoucr: New file.
71337         * lib/unistr/u16-mbtoucr.c: New file.
71338         * modules/unistr/u16-mbtoucr: New file.
71339         * lib/unistr/u16-mbtoucr.c: New file.
71340         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
71341
71342 2007-03-27  Simon Josefsson  <simon@josefsson.org>
71343             Bruno Haible  <bruno@clisp.org>
71344
71345         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
71346         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
71347         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
71348
71349         * m4/stdio_h.m4: Add stubs for vasprintf too.
71350
71351         * modules/stdio: Support vasprintf in sed command.
71352
71353         * modules/vasprintf: Depend on stdio for prototypes.  Remove
71354         vasprintf.h.  Add stdio module indicator.
71355
71356         * lib/stdio_.h: Declare asprintf and vasprintf, based on
71357         vasprintf.h.
71358
71359         * lib/vasprintf.h: File removed.
71360
71361         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
71362         * lib/vasprintf.c: Ditto.
71363         * lib/xvasprintf.c: Ditto.
71364         * tests/test-vasprintf-posix.c: Ditto.
71365         * tests/test-vasprintf.c: Ditto.
71366
71367 2007-03-27  Bruno Haible  <bruno@clisp.org>
71368
71369         Make vasnprintf multithread-safe.
71370         * lib/vasnprintf.c (decimal_point_char): New function.
71371         (VASNPRINTF): Use it.
71372         Suggested by Simon Josefsson.
71373
71374 2007-03-27  Eric Blake  <ebb9@byu.net>
71375
71376         Support sub-second birthtime on cygwin.
71377         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
71378         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
71379         (get_stat_birthtime): Also work with st_birthtim.
71380
71381 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
71382
71383         * lib/stat-time.h (USE_BIRTHTIME): Remove.
71384         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
71385         (get_stat_birthtime_ns): Do not try to use "spare" fields.
71386         (get_stat_birthtime_ns): Simplify compile-time tests.
71387         (get_stat_birthtime): Change the API to look like
71388         get_stat_mtime etc., except return a negative tv_nsec on error.
71389         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
71390         Don't check for "spare" fields.
71391         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
71392         or for struct stat.st_birthtime, as these tests aren't used.
71393         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
71394
71395 2007-03-27  Bruno Haible  <bruno@clisp.org>
71396
71397         * lib/stat-time.h: Include <sys/stat.h>.
71398
71399 2007-03-27  James Youngman  <jay@gnu.org>
71400
71401         * lib/stat-time.h (get_stat_birthtime): New function for
71402           retrieving st_birthtime as provided by UFS2 (hence *BSD).
71403         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
71404           and its variants.
71405         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
71406         * modules/stat-time-test: New file.
71407         * tests/test-stat-time.c: New test, devised by Bruno Haible.
71408
71409 2007-03-26  Bruno Haible  <bruno@clisp.org>
71410
71411         Better support of signalling NaNs.
71412         * lib/atanl.c: Include isnanl.h.
71413         (atanl): Perform test for NaN at the beginning of the function and
71414         through a call to isnanl.
71415         * lib/cosl.c: Include isnanl.h.
71416         (cosl): Perform test for NaN at the beginning of the function and
71417         through a call to isnanl.
71418         * lib/ldexpl.c: Include isnanl.h.
71419         (ldexpl): Perform test for NaN through a call to isnanl.
71420         * lib/logl.c: Include isnanl.h.
71421         (logl): Perform test for NaN at the beginning of the function and
71422         through a call to isnanl.
71423         * lib/sinl.c: Include isnanl.h.
71424         (sinl): Perform test for NaN at the beginning of the function and
71425         through a call to isnanl.
71426         * lib/sqrtl.c: Include isnanl.h.
71427         (sqrtl): Perform test for NaN at the beginning of the function and
71428         through a call to isnanl.
71429         * lib/tanl.c: Include isnanl.h.
71430         (tanl): Perform test for NaN at the beginning of the function and
71431         through a call to isnanl.
71432         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
71433         * modules/mathl (Depends-on): Add isnanl.
71434
71435 2007-03-26  Eric Blake  <ebb9@byu.net>
71436
71437         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
71438         regression in logic sense of previous patch.
71439
71440 2007-03-26  Bruno Haible  <bruno@clisp.org>
71441
71442         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
71443         unportable shell command "if ! ...".
71444         Reported by Ralf Wildenhues.
71445
71446 2007-03-25  Bruno Haible  <bruno@clisp.org>
71447
71448         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
71449         <sysexits.h> file, and only add EX_CONFIG.
71450         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
71451         absolute file name and whether it is sufficient. Substitute also
71452         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
71453         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
71454         ABSOLUTE_SYSEXITS_H into sysexits.h.
71455
71456 2007-03-25  Bruno Haible  <bruno@clisp.org>
71457
71458         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
71459         hints is NULL.
71460
71461 2007-03-25  Bruno Haible  <bruno@clisp.org>
71462
71463         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
71464         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
71465
71466 2007-03-25  Bruno Haible  <bruno@clisp.org>
71467
71468         * lib/vasnprintf.c: Include langinfo.h.
71469         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
71470         multithread-safe.
71471         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
71472         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
71473         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
71474         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
71475         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
71476         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
71477         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
71478         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
71479         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
71480         Reported by Simon Josefsson.
71481
71482 2007-03-25  Bruno Haible  <bruno@clisp.org>
71483
71484         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
71485         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
71486         * modules/vasnprintf (Depends-on): Add stdint.
71487
71488 2007-03-25  Bruno Haible  <bruno@clisp.org>
71489
71490         * modules/fpieee: New file.
71491         * m4/fpieee.m4: New file.
71492         * modules/isnan-nolibm (Depends-on): Add fpieee.
71493         * modules/isnanl-nolibm (Depends-on): Add fpieee.
71494         * modules/isnanl (Depends-on): Add fpieee.
71495
71496 2007-03-25  Bruno Haible  <bruno@clisp.org>
71497
71498         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
71499
71500 2007-03-25  Bruno Haible  <bruno@clisp.org>
71501
71502         Avoid test failures on IRIX 6.5.
71503         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
71504         (main): Use it.
71505         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
71506         macros.
71507         (main): Use them.
71508
71509 2007-03-25  Bruno Haible  <bruno@clisp.org>
71510
71511         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
71512         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
71513         exists but doesn't work.
71514         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
71515         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
71516         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
71517         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
71518         math.h.
71519
71520 2007-03-25  Bruno Haible  <bruno@clisp.org>
71521
71522         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
71523         returns inf. Needed on IRIX 6.5.
71524
71525 2007-03-25  Bruno Haible  <bruno@clisp.org>
71526
71527         * tests/test-frexpl.c: Include isnanl-nolibm.h.
71528         (main): Use isnanl instead of x != x idiom.
71529         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
71530
71531         * tests/test-frexp.c: Include isnan.h.
71532         (main): Use isnan instead of x != x idiom.
71533         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
71534
71535 2007-03-25  Bruno Haible  <bruno@clisp.org>
71536
71537         * tests/test-frexp.c (NaN): New function/macro.
71538         (main): Use it instead of 0.0 / 0.0.
71539         * tests/test-isnan.c (NaN): New function/macro.
71540         (main): Use it instead of 0.0 / 0.0.
71541         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
71542         (test_function): Use it instead of 0.0 / 0.0.
71543         * tests/test-vasprintf-posix.c (NaN): New function/macro.
71544         (test_function): Use it instead of 0.0 / 0.0.
71545         * tests/test-snprintf-posix.h (NaN): New function/macro.
71546         (test_function): Use it instead of 0.0 / 0.0.
71547         * tests/test-sprintf-posix.h (NaN): New function/macro.
71548         (test_function): Use it instead of 0.0 / 0.0.
71549         * tests/test-fprintf-posix.h (NaN): New function/macro.
71550         (test_function): Use it instead of 0.0 / 0.0.
71551         * tests/test-printf-posix.h (NaN): New function/macro.
71552         (test_function): Use it instead of 0.0 / 0.0.
71553
71554         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
71555
71556 2007-03-25  Bruno Haible  <bruno@clisp.org>
71557
71558         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
71559
71560 2007-03-25  Bruno Haible  <bruno@clisp.org>
71561
71562         * lib/regexec.c (merge_state_with_log): Make static.
71563
71564 2007-03-25  Bruno Haible  <bruno@clisp.org>
71565
71566         * lib/trigl.c (kernel_rem_pio2): Make static.
71567
71568 2007-03-25  Bruno Haible  <bruno@clisp.org>
71569
71570         * lib/sincosl.c (sincosl_table): Make static.
71571
71572 2007-03-25  Bruno Haible  <bruno@clisp.org>
71573
71574         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
71575         if the compiler does not support C99.
71576
71577 2007-03-25  Bruno Haible  <bruno@clisp.org>
71578
71579         * modules/time (Makefile.am): Ensure all rule action lines start with a
71580         tab.
71581
71582 2007-03-24  Bruno Haible  <bruno@clisp.org>
71583
71584         * modules/tsearch-tests: New file.
71585         * tests/test-tsearch.sh: New file.
71586         * tests/test-tsearch.c: New file, mostly copied from glibc.
71587
71588         * modules/search-tests: New file.
71589         * tests/test-search.c: New file.
71590
71591         * modules/search: New file.
71592         * lib/search_.h: New file, incorporating lib/tsearch.h.
71593         * m4/search_h.m4: New file.
71594         * lib/tsearch.h: Remove file.
71595         * lib/tsearch.c: Include search.h instead of tsearch.h.
71596         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
71597         HAVE_TSEARCH.
71598         * modules/tsearch (Files): Remove lib/tsearch.h.
71599         (Depends-on): Add search.
71600         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
71601         (Include): Change tsearch.h into search.h.
71602
71603 2007-03-24  Bruno Haible  <bruno@clisp.org>
71604
71605         * modules/fpucw: New file.
71606         * lib/fpucw.h: New file.
71607         * lib/frexp.c: Include fpucw.h.
71608         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
71609         (FUNC): Use them.
71610         * lib/printf-frexp.c: Include fpucw.h.
71611         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
71612         (FUNC): Use them.
71613         * lib/vasnprintf.c: Include fpucw.h.
71614         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
71615         'long double' calculations.
71616         * tests/test-frexpl.c: Include fpucw.h.
71617         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
71618         * tests/test-printf-frexpl.c: Include fpucw.h.
71619         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
71620         * modules/frexpl (Depends-on): Add fpucw.
71621         * modules/printf-frexpl (Depends-on): Likewise.
71622         * modules/fprintf-posix (Depends-on): Likewise.
71623         * modules/snprintf-posix (Depends-on): Likewise.
71624         * modules/sprintf-posix (Depends-on): Likewise.
71625         * modules/vasnprintf-posix (Depends-on): Likewise.
71626         * modules/vasprintf-posix (Depends-on): Likewise.
71627         * modules/vfprintf-posix (Depends-on): Likewise.
71628         * modules/vsnprintf-posix (Depends-on): Likewise.
71629         * modules/vsprintf-posix (Depends-on): Likewise.
71630         * modules/frexpl-tests (Depends-on): Likewise.
71631         * modules/printf-frexpl-tests (Depends-on): Likewise.
71632
71633 2007-03-24  Bruno Haible  <bruno@clisp.org>
71634
71635         * lib/float+.h: New file.
71636         * lib/isnan.c: Include float+.h.
71637         (SIZE): New macro.
71638         (FUNC): Compare only SIZE bytes of the value.
71639         * lib/vasnprintf.c: Include float+.h.
71640         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
71641         SIZEOF_LDBL or SIZEOF_DBL bytes.
71642         * modules/isnan-nolibm (Files): Add lib/float+.h.
71643         * modules/isnanl-nolibm (Files): Add lib/float+.h.
71644         * modules/isnanl (Files): Add lib/float+.h.
71645         * modules/vasnprintf (Files): Add lib/float+.h.
71646
71647 2007-03-24  Bruno Haible  <bruno@clisp.org>
71648
71649         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
71650         include isnanl-nolibm.h.
71651
71652 2007-03-24  Bruno Haible  <bruno@clisp.org>
71653
71654         * tests/test-read-file.c (main): Don't produce spurious output for
71655         expected situations. Make the test fail if it encountered unexpected
71656         results.
71657
71658 2007-03-24  Bruno Haible  <bruno@clisp.org>
71659
71660         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
71661         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
71662
71663 2007-03-24  Bruno Haible  <bruno@clisp.org>
71664
71665         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
71666
71667 2007-03-24  Bruno Haible  <bruno@clisp.org>
71668
71669         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
71670         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
71671
71672         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
71673         * modules/utf8-ucs4: Turn into a symbolic link to module
71674         unistr/u8-mbtouc.
71675
71676         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
71677         utf8-ucs4-unsafe.
71678         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
71679         unistr/u8-mbtouc-unsafe.
71680
71681         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
71682         * modules/utf16-ucs4: Turn into a symbolic link to module
71683         unistr/u16-mbtouc.
71684
71685         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
71686         utf16-ucs4-unsafe.
71687         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
71688         unistr/u16-mbtouc-unsafe.
71689
71690         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
71691         * modules/ucs4-utf8: Turn into a symbolic link to module
71692         unistr/u8-ubtomb.
71693
71694         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
71695         * modules/ucs4-utf16: Turn into a symbolic link to module
71696         unistr/u16-ubtomb.
71697
71698 2007-03-24  Bruno Haible  <bruno@clisp.org>
71699
71700         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
71701         Enable the function only if HAVE_INLINE.
71702         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
71703         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
71704         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
71705         Enable the function only if HAVE_INLINE.
71706         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
71707         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
71708         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
71709         Enable the function only if HAVE_INLINE.
71710         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
71711         Enable the function only if HAVE_INLINE.
71712         * modules/utf8-ucs4: Update.
71713         * modules/utf8-ucs4-unsafe: Update.
71714         * modules/utf16-ucs4: Update.
71715         * modules/utf16-ucs4-unsafe: Update.
71716         * modules/ucs4-utf8: Update.
71717         * modules/ucs4-utf16: Update.
71718
71719 2007-03-24  Bruno Haible  <bruno@clisp.org>
71720
71721         * lib/utf8-ucs4.h: Remove file.
71722         * lib/utf8-ucs4-unsafe.h: Remove file.
71723         * lib/utf16-ucs4.h: Remove file.
71724         * lib/utf16-ucs4-unsafe.h: Remove file.
71725         * lib/ucs4-utf8.h: Remove file.
71726         * lib/ucs4-utf16.h: Remove file.
71727         * lib/unistr.h: Include their previous contents.
71728         * m4/utf-ucs4.m4: Remove file.
71729         * m4/ucs4-utf.m4: Remove file.
71730         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
71731         (Depends-on): Add unistr/base.
71732         (configure.ac): Remove gl_UTF_UCS4.
71733         (Makefile.am): Update.
71734         (Include): Change to unistr.h.
71735         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
71736         (Depends-on): Add unistr/base.
71737         (configure.ac): Remove gl_UTF_UCS4.
71738         (Makefile.am): Update.
71739         (Include): Change to unistr.h.
71740         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
71741         (Depends-on): Add unistr/base.
71742         (configure.ac): Remove gl_UTF_UCS4.
71743         (Makefile.am): Update.
71744         (Include): Change to unistr.h.
71745         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
71746         (Depends-on): Add unistr/base.
71747         (configure.ac): Remove gl_UTF_UCS4.
71748         (Makefile.am): Update.
71749         (Include): Change to unistr.h.
71750         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
71751         (Depends-on): Add unistr/base.
71752         (configure.ac): Remove gl_UCS4_UTF.
71753         (Makefile.am): Update.
71754         (Include): Change to unistr.h.
71755         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
71756         (Depends-on): Add unistr/base.
71757         (configure.ac): Remove gl_UCS4_UTF.
71758         (Makefile.am): Update.
71759         (Include): Change to unistr.h.
71760         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
71761         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
71762         utf8-ucs4-unsafe.h.
71763         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
71764         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
71765         utf16-ucs4-unsafe.h.
71766         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
71767         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
71768         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
71769         * lib/unistr/u8-strchr.c: Likewise.
71770         * lib/unistr/u8-strrchr.c: Likewise.
71771         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
71772         * lib/unistr/u16-strchr.c: Likewise.
71773         * lib/unistr/u16-strrchr.c: Likewise.
71774         * lib/striconveh.c: Update.
71775         * lib/linebreak.c: Update.
71776
71777 2007-03-24  Bruno Haible  <bruno@clisp.org>
71778
71779         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
71780         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
71781
71782 2007-03-22  Bruno Haible  <bruno@clisp.org>
71783
71784         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
71785
71786 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
71787
71788         * MODULES.html.sh (File system functions): New module write-any-file.
71789         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
71790         * m4/write-any-file.m4: New files.
71791
71792 2007-03-23  Eric Blake  <ebb9@byu.net>
71793
71794         * gnulib-tool: Rearrange space-tab sequences, since some editors
71795         like to eat them.
71796
71797 2007-03-23  Eric Blake  <ebb9@byu.net>
71798
71799         * lib/version-etc.c (version_etc_va): Update license wording to
71800         be more concise.  Recommended by Richard Stallman.
71801
71802 2007-03-22  Bruno Haible  <bruno@clisp.org>
71803
71804         * lib/poll.c (MSG_PEEK): New fallback definition.
71805
71806 2007-03-22  Bruno Haible  <bruno@clisp.org>
71807
71808         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
71809         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
71810         (main): Update.
71811         Fixes a compilation error on BeOS.
71812
71813 2007-03-22  Bruno Haible  <bruno@clisp.org>
71814
71815         * modules/frexpl-tests: New file.
71816         * tests/test-frexpl.c: New file.
71817
71818         * modules/frexpl: New file.
71819         * m4/frexpl.m4: New file.
71820         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
71821         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
71822         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
71823         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
71824         (Depends-on): Add frexpl. Remove isnanl-nolibm.
71825         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
71826
71827 2007-03-22  Bruno Haible  <bruno@clisp.org>
71828
71829         * lib/frexpl.c: Share code with lib/frexp.c.
71830         * modules/mathl (Files): Add lib/frexp.c.
71831         (Depends-on): Add isnanl-nolibm.
71832
71833 2007-03-22  Bruno Haible  <bruno@clisp.org>
71834
71835         * modules/printf-frexp (Files): Add m4/frexp.m4.
71836         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
71837         only if the found frexp function actually works.
71838
71839 2007-03-22  Bruno Haible  <bruno@clisp.org>
71840
71841         * lib/frexp.c: Remove older implementation that uses divisions.
71842
71843 2007-03-21  Bruno Haible  <bruno@clisp.org>
71844
71845         * modules/frexp-tests: New file.
71846         * tests/test-frexp.c: New file.
71847
71848         * modules/frexp: New file.
71849         * lib/frexp.c: New file.
71850         * m4/frexp.m4: New file.
71851         * lib/math_.h (frexp): New declaration.
71852         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
71853         REPLACE_FREXP.
71854         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
71855
71856 2007-03-21  Bruno Haible  <bruno@clisp.org>
71857
71858         * modules/isnanl-tests: New file.
71859         * tests/test-isnanl.c: New file.
71860
71861         * modules/isnanl: New file.
71862         * lib/isnanl.h: New file.
71863         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
71864         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
71865         gl_FUNC_ISNANL_WORKS.
71866         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
71867         New macros.
71868
71869 2007-03-21  Bruno Haible  <bruno@clisp.org>
71870
71871         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
71872         lib/isnanl.h.
71873         (Include): Update.
71874         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
71875         * lib/vasnprintf.c: Update.
71876         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
71877         tests/test-isnanl.h, remove tests/test-isnanl.c.
71878         (Makefile.am): Update.
71879         * tests/test-isnanl-nolibm.c: New file.
71880         * tests/test-isnanl.h: New file.
71881         * tests/test-isnanl.c: Remove file.
71882
71883 2007-03-21  Jim Meyering  <jim@meyering.net>
71884
71885         When trying to open ".", treat ESTALE like EACCES.
71886         * lib/savewd.c (savewd_save): Resort to forking not just upon
71887         failure with EACCES, but also when errno is ESTALE.
71888
71889 2007-03-20  Bruno Haible  <bruno@clisp.org>
71890
71891         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
71892         Needed on AIX 5.1. Reported by Matthew Woehlke.
71893
71894 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
71895
71896         Suggestions by Bruno Haible:
71897         * lib/acl-internal.h: Include "gettext.h" rather than rolling
71898         our own.
71899         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
71900         * modules/acl (Depends-on): Add gettext.
71901
71902 2007-03-19  Bruno Haible  <bruno@clisp.org>
71903
71904         * modules/iconvme: Remove file.
71905         * lib/iconvme.h: Remove file.
71906         * lib/iconvme.c: Remove file.
71907         * m4/iconvme.m4: Remove file.
71908
71909 2007-03-19  Bruno Haible  <bruno@clisp.org>
71910
71911         * doc/relocatable-maint.texi: Break long shell script line.
71912         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
71913
71914 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
71915
71916         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
71917         handle file_has_acl.
71918         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
71919         * lib/acl.c: Move header inclusions and related macro defns into
71920         lib/acl-internal.h.
71921         (S_ISLNK): Remove defn, since that's now done for us.
71922         (file_has_acl): Move to lib/file-has-acl.c.
71923         Call acl_trivial if available.  This is the crucial part of the fix.
71924         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
71925         shared within the library.  Rewrite a bit, partly to make it compatible
71926         with the GNU coding style.
71927         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
71928         Remove unnecessary double-quotes.
71929         Don't test for acl_to_text; the build will catch that.
71930         Replace acl_entries if it doesn't exist and it is needed.
71931         Check for -lsec and acl_trivial (as used on Solaris 10).
71932         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
71933         lib/file-has-acl.c.
71934         (Depends-on): Add sys_stat, for S_ISLNK.
71935
71936 2007-03-19  Ben Pfaff  <blp@gnu.org>
71937
71938         * doc/gnulib.texi: Fix typos.
71939         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
71940
71941 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
71942
71943         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
71944         If size is zero here, buf must be zero.
71945
71946 2007-03-19  Simon Josefsson  <simon@josefsson.org>
71947
71948         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
71949         <bruno@clisp.org>.
71950
71951 2007-03-18  Bruno Haible  <bruno@clisp.org>
71952
71953         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
71954         Suggested by Eric Blake.
71955
71956 2007-03-18  Ben Pfaff  <blp@gnu.org>
71957
71958         * doc/relocatable.texi: Recommend using as prefix a directory
71959         that does not exist and will never be created.  Based on
71960         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
71961         and others.
71962
71963 2007-03-17  Bruno Haible  <bruno@clisp.org>
71964
71965         * lib/fchownat.c: Include lchown.h.
71966
71967 2007-03-17  Bruno Haible  <bruno@clisp.org>
71968
71969         Fix endless loop when the given allocated size was > INT_MAX.
71970         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
71971         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
71972         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
71973         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
71974         * lib/sprintf.c (sprintf): Likewise.
71975
71976 2007-03-17  Bruno Haible  <bruno@clisp.org>
71977
71978         * tests/test-argp-2.sh (func_compare): Output a context diff.
71979
71980 2007-03-17  Bruno Haible  <bruno@clisp.org>
71981
71982         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
71983         locale's decimal-point character.
71984
71985 2007-03-17  Bruno Haible  <bruno@clisp.org>
71986
71987         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
71988         before comparing it. Needed because on some platforms (e.g. x86) a
71989         'long double' occupies less bytes than sizeof (long double).
71990
71991 2007-03-17  Bruno Haible  <bruno@clisp.org>
71992
71993         * tests/test-crc.c (main): Make printf statements 64-bit clean.
71994         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
71995         * tests/test-getaddrinfo.c (simple): Likewise.
71996         * tests/test-read-file.c (main): Likewise.
71997
71998 2007-03-17  Bruno Haible  <bruno@clisp.org>
71999
72000         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
72001
72002 2007-03-17  Bruno Haible  <bruno@clisp.org>
72003
72004         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
72005         unused variable.
72006
72007 2007-03-17  Bruno Haible  <bruno@clisp.org>
72008
72009         * tests/test-c-strcasecmp.c: Include c-strcase.h.
72010         * tests/test-c-strncasecmp.c: Likewise.
72011
72012 2007-03-17  Bruno Haible  <bruno@clisp.org>
72013
72014         * modules/stdlib (Depends-on): Add unistd.
72015         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
72016         Needed for MacOS X 10.3.
72017
72018 2007-03-17  Bruno Haible  <bruno@clisp.org>
72019
72020         * lib/unistr/u-strdup.h: Include <stdlib.h>.
72021
72022 2007-03-17  Bruno Haible  <bruno@clisp.org>
72023
72024         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
72025
72026 2007-03-17  Bruno Haible  <bruno@clisp.org>
72027
72028         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
72029         to reflect files copied from gnulib (with or without modifications).
72030         Suggested by Jim Meyering.
72031
72032 2007-03-17  Eric Blake  <ebb9@byu.net>
72033
72034         * NEWS: Document stdlib change from 2007-02-18.
72035
72036 2007-03-17  Jim Meyering  <jim@meyering.net>
72037
72038         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
72039         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
72040         someone uses a name containing shell meta-characters.
72041         Reported by Alfred M. Szmidt.
72042
72043         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
72044
72045 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
72046
72047         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
72048         and copy gettext configuration files only if configure.ac contains
72049         a use of AM_GNU_GETTEXT_VERSION.
72050
72051 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
72052
72053         * build-aux/bootstrap (gnulib_name): New variable.
72054         (gnulib_tool_options): Use it.
72055
72056 2007-03-13  Simon Josefsson  <simon@josefsson.org>
72057
72058         * tests/test-des.c: Use new namespace.
72059
72060 2007-03-15  Bruno Haible  <bruno@clisp.org>
72061
72062         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
72063         Reported by James Youngman <jay@gnu.org>.
72064
72065 2007-03-15  Bruno Haible  <bruno@clisp.org>
72066
72067         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
72068         declared prototype. Needed with cc on OSF/1 5.1.
72069
72070 2007-03-15  Bruno Haible  <bruno@clisp.org>
72071
72072         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
72073         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
72074         (struct gl_list_implementation): Add dispose_fn argument to the
72075         'create_empty', 'create' methods.
72076         (struct gl_list_impl_base): Add field 'dispose_fn'.
72077         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
72078         argument.
72079         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
72080         dispose_fn argument.
72081         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
72082         dispose_fn on the dropped values.
72083         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
72084         dispose_fn argument.
72085         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
72086         dropped values.
72087         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
72088         (gl_tree_remove_node): Call dispose_fn on the dropped value.
72089         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
72090         (gl_tree_remove_node): Call dispose_fn on the dropped value.
72091         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
72092         argument.
72093         (gl_tree_list_free): Call dispose_fn on the dropped values.
72094         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
72095         the dropped values.
72096         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
72097         Add dispose_fn argument.
72098         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
72099         Call dispose_fn on the dropped values.
72100         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
72101         Add dispose_fn argument.
72102         (gl_sublist_create): Initialize the 'dispose_fn' field.
72103         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
72104         * tests/test-array_list.c (main): Update.
72105         * tests/test-carray_list.c (main): Update.
72106         * tests/test-avltree_list.c (main): Update.
72107         * tests/test-rbtree_list.c (main): Update.
72108         * tests/test-avltreehash_list.c (main): Update.
72109         * tests/test-rbtreehash_list.c (main): Update.
72110         * tests/test-linked_list.c (main): Update.
72111         * tests/test-linkedhash_list.c (main): Update.
72112         * tests/test-array_oset.c (main): Update.
72113
72114 2007-03-15  Bruno Haible  <bruno@clisp.org>
72115
72116         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
72117         (gl_oset_create_empty): Add dispose_fn argument.
72118         (struct gl_oset_implementation): Add dispose_fn argument to
72119         'create_empty' method.
72120         (struct gl_oset_impl_base): Add dispose_fn field.
72121         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
72122         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
72123         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
72124         values.
72125         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
72126         (gl_tree_oset_free): Call dispose_fn on the dropped values.
72127         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
72128         dropped value.
72129         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
72130         dropped value.
72131         * tests/test-array_oset.c (main): Update.
72132         * tests/test-avltree_oset.c (main): Update.
72133         * tests/test-rbtree_oset.c (main): Update.
72134         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
72135
72136 2007-03-13  Bruno Haible  <bruno@clisp.org>
72137
72138         * tests/test-stdbool.c (i): Update after last patch.
72139
72140 2007-03-12  Bruno Haible  <bruno@clisp.org>
72141
72142         * lib/quotearg.c: Include <wctype.h> early, before the definition of
72143         the iswprint macro. Needed on Solaris 2.5.1.
72144
72145 2007-03-12  Bruno Haible  <bruno@clisp.org>
72146
72147         * tests/test-printf-frexp.c (main): Declare x as volatile.
72148
72149 2007-03-12  Simon Josefsson  <simon@josefsson.org>
72150
72151         * doc/gnulib.texi (Build robot for gnulib): New section.
72152
72153 2007-03-12  Jim Meyering  <jim@meyering.net>
72154
72155         * build-aux/bootstrap: New file.
72156         * build-aux/bootstrap.conf: New file, from coreutils.
72157
72158 2007-03-11  Bruno Haible  <bruno@clisp.org>
72159
72160         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
72161
72162 2007-03-12  Simon Josefsson  <simon@josefsson.org>
72163
72164         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
72165         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
72166         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
72167
72168 2007-03-11  Bruno Haible  <bruno@clisp.org>
72169
72170         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
72171         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
72172
72173 2007-03-11  Bruno Haible  <bruno@clisp.org>
72174
72175         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
72176         formula. Needed for SunPRO C 5.0.
72177
72178 2007-03-11  Bruno Haible  <bruno@clisp.org>
72179
72180         * modules/long-options (Depends-on): Add getopt.
72181
72182 2007-03-11  Bruno Haible  <bruno@clisp.org>
72183
72184         * modules/modechange (Depends-on): Add stdbool.
72185
72186 2007-03-11  Bruno Haible  <bruno@clisp.org>
72187
72188         * modules/i-ring (Depends-on): Add stdbool.
72189
72190 2007-03-11  Bruno Haible  <bruno@clisp.org>
72191
72192         * modules/gc-des (Depends-on): Add stdbool.
72193
72194 2007-03-11  Bruno Haible  <bruno@clisp.org>
72195
72196         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
72197
72198 2007-03-11  Bruno Haible  <bruno@clisp.org>
72199
72200         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
72201
72202 2007-03-11  Bruno Haible  <bruno@clisp.org>
72203
72204         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
72205
72206 2007-03-11  Bruno Haible  <bruno@clisp.org>
72207
72208         * lib/vasnprintf.c (sprintf): Undefine.
72209
72210 2007-03-11  Bruno Haible  <bruno@clisp.org>
72211
72212         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
72213         initializers in SunPRO C and Compaq C compilers.
72214
72215 2007-03-11  Bruno Haible  <bruno@clisp.org>
72216
72217         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
72218         decrementing code ANSI C compliant.
72219
72220 2007-03-11  Bruno Haible  <bruno@clisp.org>
72221
72222         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
72223         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
72224
72225 2007-03-11  Bruno Haible  <bruno@clisp.org>
72226
72227         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
72228         <stdbool.h> substitute doesn't pass.
72229
72230 2007-03-11  Bruno Haible  <bruno@clisp.org>
72231
72232         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
72233
72234 2007-03-11  Bruno Haible  <bruno@clisp.org>
72235
72236         * gnulib-tool (func_create_megatestdir): Create also an autobuild
72237         script, for submission to autobuild.josefsson.org.
72238
72239 2007-03-10  Bruno Haible  <bruno@clisp.org>
72240
72241         * modules/canonicalize-lgpl-tests: New file.
72242         * tests/test-canonicalize-lgpl.sh: New file.
72243         * tests/test-canonicalize-lgpl.c: New file.
72244
72245         * modules/c-strcase-tests: New file.
72246         * tests/test-c-strcase.sh: New file.
72247         * tests/test-c-strcasecmp.c: New file.
72248         * tests/test-c-strncasecmp.c: New file.
72249
72250         * modules/atexit-tests: New file.
72251         * tests/test-atexit.sh: New file.
72252         * tests/test-atexit.c: New file.
72253
72254 2007-03-10  Bruno Haible  <bruno@clisp.org>
72255
72256         * tests/test-binary-io.sh: Use temporary filenames that are not so
72257         likely to clash with those of other tests (in a parallel make).
72258         * tests/test-binary-io.c: Likewise.
72259
72260 2007-03-10  Bruno Haible  <bruno@clisp.org>
72261
72262         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
72263         fallback; use #error instead.
72264         Suggested by Simon Josefsson.
72265
72266 2007-03-10  Bruno Haible  <bruno@clisp.org>
72267
72268         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
72269         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
72270         first and the last.
72271
72272 2007-03-10  Bruno Haible  <bruno@clisp.org>
72273
72274         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
72275
72276 2007-03-10  Bruno Haible  <bruno@clisp.org>
72277
72278         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
72279         "make distcheck".
72280         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
72281         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
72282         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
72283
72284 2007-03-10  Bruno Haible  <bruno@clisp.org>
72285
72286         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
72287         variable.
72288         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
72289         variable.
72290
72291 2007-03-09  Eric Blake  <ebb9@byu.net>
72292         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
72293
72294         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
72295         types are not being provided by gnulib.
72296         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
72297         types are supported.
72298
72299 2007-03-10  Bruno Haible  <bruno@clisp.org>
72300
72301         * lib/stdio_.h (__attribute__): New macro.
72302         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
72303         vsprintf): Specify __attribute__ __format__ for GCC.
72304         Suggested by Eric Blake.
72305
72306 2007-03-09  Bruno Haible  <bruno@clisp.org>
72307
72308         * modules/printf-posix-tests: New file.
72309         * tests/test-printf-posix.sh: New file.
72310         * tests/test-printf-posix.c: New file.
72311
72312         * modules/printf-posix: New file.
72313         * lib/printf.c: New file.
72314         * m4/printf-posix-rpl.m4: New file.
72315         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
72316         REPLACE_PRINTF.
72317         * lib/stdio_.h (printf): New declaration.
72318         (format, __format__, ____printf____, ____scanf____, ____strftime____,
72319         ____strfmon____): New macros.
72320         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
72321         REPLACE_PRINTF.
72322
72323 2007-03-09  Bruno Haible  <bruno@clisp.org>
72324
72325         * tests/test-vasnprintf-posix2.sh: New file.
72326         * tests/test-vasnprintf-posix2.c: New file.
72327         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
72328         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
72329         (Makefile.am): Activate test-vasnprintf-posix2.sh.
72330
72331         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
72332         a locale dependent decimal point, rather than always '.'.
72333
72334 2007-03-09  Eric Blake  <ebb9@byu.net>
72335
72336         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
72337         spite of platforms like Tandem/NSK that define it to -1.
72338
72339 2007-03-08  Bruno Haible  <bruno@clisp.org>
72340
72341         * modules/vprintf-posix-tests: New file.
72342         * tests/test-vprintf-posix.sh: New file.
72343         * tests/test-vprintf-posix.c: New file.
72344         * tests/test-printf-posix.h: New file.
72345
72346         * modules/vprintf-posix: New file.
72347         * lib/vprintf.c: New file.
72348         * m4/vprintf-posix.m4: New file.
72349         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
72350         REPLACE_VPRINTF.
72351         * lib/stdio_.h (vprintf): New declaration.
72352         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
72353         REPLACE_VPRINTF.
72354
72355 2007-03-08  Bruno Haible  <bruno@clisp.org>
72356
72357         * modules/fprintf-posix-tests: New file.
72358         * tests/test-fprintf-posix.sh: New file.
72359         * tests/test-fprintf-posix.c: New file.
72360
72361         * modules/fprintf-posix: New file.
72362         * lib/fprintf.c: New file.
72363         * m4/fprintf-posix.m4: New file.
72364         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
72365         REPLACE_FPRINTF.
72366         * lib/stdio_.h (fprintf): New declaration.
72367         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
72368         REPLACE_FPRINTF.
72369
72370 2007-03-08  Bruno Haible  <bruno@clisp.org>
72371
72372         * modules/vfprintf-posix-tests: New file.
72373         * tests/test-vfprintf-posix.sh: New file.
72374         * tests/test-vfprintf-posix.c: New file.
72375         * tests/test-fprintf-posix.h: New file.
72376         * tests/test-fprintf-posix.out: New file.
72377
72378         * modules/vfprintf-posix: New file.
72379         * lib/vfprintf.c: New file.
72380         * m4/vfprintf-posix.m4: New file.
72381         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
72382         REPLACE_VFPRINTF.
72383         * lib/stdio_.h (vfprintf): New declaration.
72384         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
72385         REPLACE_VFPRINTF.
72386
72387 2007-03-08  Bruno Haible  <bruno@clisp.org>
72388
72389         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
72390
72391 2007-03-08  Bruno Haible  <bruno@clisp.org>
72392
72393         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
72394         instead of 'expr' invocations.
72395         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
72396         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
72397         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
72398         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
72399         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
72400         Suggested by Paul Eggert.
72401
72402 2007-03-08  Bruno Haible  <bruno@clisp.org>
72403
72404         * modules/fseterr-tests: New file.
72405         * tests/test-fseterr.c: New file.
72406
72407         * modules/fseterr: New file.
72408         * lib/fseterr.h: New file.
72409         * lib/fseterr.c: New file.
72410
72411 2007-03-08  Bruno Haible  <bruno@clisp.org>
72412
72413         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
72414         * lib/getopt_.h: Likewise.
72415         * lib/mbswidth.h: Likewise.
72416         * lib/setenv.h: Likewise.
72417         * lib/vasnprintf.h: Likewise.
72418         * lib/vasprintf.h: Likewise.
72419         * lib/verror.h: Likewise.
72420         * lib/xsetenv.h: Likewise.
72421         * lib/xvasprintf.h: Likewise.
72422
72423 2007-03-08  Jim Meyering  <jim@meyering.net>
72424
72425         * users.txt: Add parted.
72426
72427         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
72428
72429 2007-03-07  Bruno Haible  <bruno@clisp.org>
72430
72431         * m4/printf.m4: Make the shell script snippets copy&pastable.
72432
72433 2007-03-02  Bruno Haible  <bruno@clisp.org>
72434
72435         * lib/netinet_in_.h: New file.
72436         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
72437         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
72438         * modules/netinet_in (Files): Add lib/netinet_in_.h.
72439         (Depends-on): Add absolute-header.
72440         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
72441         into netinet/in.h.
72442
72443 2007-03-03  Bruno Haible  <bruno@clisp.org>
72444
72445         * lib/sys_select_.h: New file.
72446         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
72447         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
72448         * modules/sys_select (Files): Add lib/sys_select_.h.
72449         (Depends-on): Add absolute-header.
72450         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
72451         into sys/select.h.
72452
72453 2007-03-02  Bruno Haible  <bruno@clisp.org>
72454
72455         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
72456         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
72457         values.
72458         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
72459         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
72460         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
72461         * modules/sys_socket (Depends-on): Add absolute-header.
72462         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
72463         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
72464         (Include): Remove requirement of inclusion of <sys/types.h>.
72465
72466 2007-03-02  Bruno Haible  <bruno@clisp.org>
72467
72468         * lib/byteswap_.h (bswap_32): Fix formula.
72469
72470 2007-03-06  Bruno Haible  <bruno@clisp.org>
72471
72472         * modules/sprintf-posix-tests: New file.
72473         * tests/test-sprintf-posix.c: New file.
72474
72475         * modules/sprintf-posix: New file.
72476         * lib/sprintf.c: New file.
72477         * m4/sprintf-posix.m4: New file.
72478         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
72479         REPLACE_SPRINTF.
72480         * lib/stdio_.h (sprintf): New declaration.
72481         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
72482         REPLACE_SPRINTF.
72483
72484 2007-03-06  Bruno Haible  <bruno@clisp.org>
72485
72486         * modules/vsprintf-posix-tests: New file.
72487         * tests/test-vsprintf-posix.c: New file.
72488         * tests/test-sprintf-posix.h: New file.
72489
72490         * modules/vsprintf-posix: New file.
72491         * lib/vsprintf.c: New file.
72492         * m4/vsprintf-posix.m4: New file.
72493         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
72494         REPLACE_VSPRINTF.
72495         * lib/stdio_.h (vsprintf): New declaration.
72496         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
72497         REPLACE_VSPRINTF.
72498
72499 2007-03-06  Bruno Haible  <bruno@clisp.org>
72500
72501         * modules/vsnprintf (Depend-on): Remove minmax.
72502
72503 2007-03-06  Bruno Haible  <bruno@clisp.org>
72504
72505         * modules/snprintf-posix-tests: New file.
72506         * tests/test-snprintf-posix.c: New file.
72507
72508         * modules/snprintf-posix: New file.
72509         * m4/snprintf-posix.m4: New file.
72510         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
72511         gl_FUNC_SNPRINTF.
72512         (gl_FUNC_SNPRINTF): Invoke it.
72513         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
72514         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
72515         is set.
72516         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
72517
72518 2007-03-06  Bruno Haible  <bruno@clisp.org>
72519
72520         * modules/vsnprintf-posix-tests: New file.
72521         * tests/test-vsnprintf-posix.c: New file.
72522         * tests/test-snprintf-posix.h: New file.
72523
72524         * modules/vsnprintf-posix: New file.
72525         * m4/vsnprintf-posix.m4: New file.
72526         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
72527         gl_FUNC_VSNPRINTF.
72528         (gl_FUNC_VSNPRINTF): Invoke it.
72529         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
72530         * lib/stdio_.h (vsnprintf): Define as a replacement if
72531         REPLACE_VSNPRINTF is set.
72532         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
72533
72534 2007-03-06  Bruno Haible  <bruno@clisp.org>
72535
72536         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
72537         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
72538
72539 2007-03-06  Bruno Haible  <bruno@clisp.org>
72540
72541         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
72542         (asinl): Declare also if HAVE_DECL_ASINL is set.
72543         (atanl): Declare also if HAVE_DECL_ATANL is set.
72544         (ceill): Declare also if HAVE_DECL_CEILL is set.
72545         (cosl): Declare also if HAVE_DECL_COSL is set.
72546         (expl): Declare also if HAVE_DECL_EXPL is set.
72547         (floorl): Declare also if HAVE_DECL_FLOORL is set.
72548         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
72549         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
72550         (logl): Declare also if HAVE_DECL_LOGL is set.
72551         (sinl): Declare also if HAVE_DECL_SINL is set.
72552         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
72553         (tanl): Declare also if HAVE_DECL_TANL is set.
72554         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
72555         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
72556         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
72557         declaration of frexpl, ldexpl.
72558         * modules/printf-frexpl (Depends-on): Add math.
72559         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
72560
72561 2007-03-05  Bruno Haible  <bruno@clisp.org>
72562
72563         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
72564         frexpl and ldexpl are declared.
72565         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
72566
72567 2007-03-05  Bruno Haible  <bruno@clisp.org>
72568
72569         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
72570         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
72571
72572 2007-03-05  Bruno Haible  <bruno@clisp.org>
72573
72574         * lib/stdio_.h: Include <stddef.h>.
72575
72576 2007-03-05  Bruno Haible  <bruno@clisp.org>
72577
72578         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
72579
72580 2007-03-05  Bruno Haible  <bruno@clisp.org>
72581
72582         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
72583         NetBSD 4, from Ralf Wildenhues.
72584
72585 2007-03-04  Bruno Haible  <bruno@clisp.org>
72586
72587         * lib/vasprintf.h: Update #if logic for the case when the functions
72588         exist but are overridden.
72589
72590 2007-03-04  Bruno Haible  <bruno@clisp.org>
72591
72592         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
72593         implementations: glibc-2.4 and MacOS X 10.3.
72594         * tests/test-vasnprintf-posix.c (test_function): Test also the case
72595         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
72596         * tests/test-vasprintf-posix.c (test_function): Likewise.
72597
72598 2007-03-04  Bruno Haible  <bruno@clisp.org>
72599
72600         * modules/vasprintf-posix-tests: New file.
72601         * tests/test-vasprintf-posix.c: New file.
72602
72603         * modules/vasprintf-posix: New file.
72604         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
72605         defined.
72606         * m4/vasprintf-posix.m4: New file.
72607         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
72608         gl_FUNC_VASPRINTF.
72609         (gl_FUNC_VASPRINTF): Invoke it.
72610         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
72611         here.
72612         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
72613
72614 2007-03-04  Bruno Haible  <bruno@clisp.org>
72615
72616         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
72617         REPLACE_GETTIMEOFDAY.
72618         * modules/sys_time (Makefile.am): Likewise.
72619         * m4/sys_time_h.m4: Likewise.
72620         * m4/gettimeofday.m4: Likewise.
72621
72622 2007-03-04  Bruno Haible  <bruno@clisp.org>
72623
72624         * modules/vasnprintf-posix-tests: New file.
72625         * tests/test-vasnprintf-posix.c: New file.
72626
72627         * modules/vasnprintf-posix: New file.
72628         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
72629         printf-frexpl.h.
72630         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
72631         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
72632         REPLACE_VASNPRINTF is defined.
72633         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
72634         gl_FUNC_VASNPRINTF.
72635         (gl_FUNC_VASNPRINTF): Invoke it.
72636         * m4/vasnprintf-posix.m4: New file.
72637         * m4/printf.m4: New file.
72638
72639 2007-03-04  Bruno Haible  <bruno@clisp.org>
72640
72641         Compile progreloc.c only if --enable-relocatable is specified.
72642         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
72643         if --enable-relocatable was specified.
72644         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
72645         lib_SOURCES.
72646
72647 2007-03-04  Jim Meyering  <jim@meyering.net>
72648
72649         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
72650         Use it consistently, rather than enumerating errno constants.
72651
72652 2007-03-04  Bruno Haible  <bruno@clisp.org>
72653
72654         * modules/xvasprintf-tests: New file.
72655         * tests/test-xvasprintf.c: New file.
72656
72657         * modules/vasprintf-tests: New file.
72658         * tests/test-vasprintf.c: New file.
72659
72660         * modules/vasnprintf-tests: New file.
72661         * tests/test-vasnprintf.c: New file.
72662
72663         * modules/vsnprintf-tests: New file.
72664         * tests/test-vsnprintf.c: New file.
72665
72666         * modules/snprintf-tests: New file.
72667         * tests/test-snprintf.c: New file.
72668
72669 2007-03-04  Bruno Haible  <bruno@clisp.org>
72670
72671         Compile relocatable.c only if --enable-relocatable is specified.
72672         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
72673         gl_RELOCATABLE_LIBRARY.
72674         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
72675         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
72676         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
72677         gl_RELOCATABLE_LIBRARY.
72678         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
72679         (Makefile.am): Remove lib_SOURCES.
72680         * modules/relocatable-lib-lgpl (configure.ac): Invoke
72681         gl_RELOCATABLE_LIBRARY.
72682         (Makefile.am): Remove lib_SOURCES.
72683         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
72684         always.
72685         * modules/relocatable-prog-wrapper (configure.ac): Invoke
72686         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
72687
72688 2007-03-04  Bruno Haible  <bruno@clisp.org>
72689
72690         * modules/argmatch-tests: New file.
72691         * tests/test-argmatch.c: New file.
72692
72693         * tests/test-allocsa.c (main): Halve the number of loop runs.
72694
72695         * modules/alloca-opt-tests: New file.
72696         * tests/test-alloca-opt.c: New file.
72697
72698 2007-03-04  Jim Meyering  <jim@meyering.net>
72699
72700         Work around difference between Linux ACLs and Solaris 10 ZFS.
72701         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
72702         for EINVAL.
72703
72704 2007-03-03  Bruno Haible  <bruno@clisp.org>
72705
72706         * modules/relocatable-prog (Depends-on): Add back progreloc's
72707         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
72708
72709 2007-03-03  Bruno Haible  <bruno@clisp.org>
72710
72711         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
72712         * modules/relocatable-lib: New file.
72713
72714 2007-03-03  Bruno Haible  <bruno@clisp.org>
72715
72716         * modules/relocatable-prog: Renamed from modules/relocatable.
72717         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
72718
72719 2007-03-03  Bruno Haible  <bruno@clisp.org>
72720
72721         * modules/relocatable-script (Files): Add doc/relocatable.texi,
72722         m4/relocatable-lib.m4.
72723         (Depends-on): Remove 'relocatable'.
72724         (configure.ac): Add gl_RELOCATABLE_NOP.
72725
72726 2007-03-03  Bruno Haible  <bruno@clisp.org>
72727
72728         * modules/relocatable-prog-wrapper: New file.
72729         * modules/relocatable (Depends-on): Add it. Remove all other
72730         dependencies except progname.
72731         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
72732
72733         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
72734         (gl_FUNC_STRERROR): Nop.
72735         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
72736
72737         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
72738         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
72739
72740         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
72741         (gl_FUNC_READLINK): Update.
72742
72743         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
72744
72745 2007-03-03  Bruno Haible  <bruno@clisp.org>
72746
72747         * lib/xreadlink.c: Include <unistd.h> unconditionally.
72748         * modules/xreadlink (Depends-on): Add unistd.
72749         * modules/xreadlink-with-size (Depends-on): Likewise.
72750
72751 2007-03-03  Bruno Haible  <bruno@clisp.org>
72752
72753         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
72754         extracted from gt_FUNC_SETENV.
72755         (gt_FUNC_SETENV): Remove macro.
72756         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
72757         remove gt_FUNC_SETENV.
72758
72759 2007-03-03  Bruno Haible  <bruno@clisp.org>
72760
72761         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
72762         ENABLE_RELOCATABLE here.
72763         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
72764
72765 2007-03-03  Bruno Haible  <bruno@clisp.org>
72766
72767         * modules/rbtreehash-list-tests (Depends-on): Add progname.
72768         * tests/test-rbtreehash_list.c: Include progname.h.
72769         (main): Call set_program_name.
72770
72771         * modules/rbtree-oset-tests (Depends-on): Add progname.
72772         * tests/test-rbtree_oset.c: Include progname.h.
72773         (main): Call set_program_name.
72774
72775         * modules/rbtree-list-tests (Depends-on): Add progname.
72776         * tests/test-rbtree_list.c: Include progname.h.
72777         (main): Call set_program_name.
72778
72779         * modules/linked-list-tests (Depends-on): Add progname.
72780         * tests/test-linked_list.c: Include progname.h.
72781         (main): Call set_program_name.
72782
72783 2007-03-03  Bruno Haible  <bruno@clisp.org>
72784
72785         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
72786         All uses of __restrict changed to _Restrict_.
72787         * lib/glob_.h (__restrict): Remove macro.
72788
72789 2007-03-02  Bruno Haible  <bruno@clisp.org>
72790
72791         * modules/gettext (configure.ac): Require gettext infrastructure
72792         from version 0.16.1.
72793
72794 2007-03-02  Bruno Haible  <bruno@clisp.org>
72795
72796         * modules/linkedhash-list-tests (Depends-on): Add progname.
72797         * tests/test-linkedhash_list.c: Include progname.h.
72798         (main): Call set_program_name.
72799
72800         * modules/carray-list-tests (Depends-on): Add progname.
72801         * tests/test-carray_list.c: Include progname.h.
72802         (main): Call set_program_name.
72803
72804         * modules/avltreehash-list-tests (Depends-on): Add progname.
72805         * tests/test-avltreehash_list.c: Include progname.h.
72806         (main): Call set_program_name.
72807
72808         * modules/avltree-oset-tests (Depends-on): Add progname.
72809         * tests/test-avltree_oset.c: Include progname.h.
72810         (main): Call set_program_name.
72811
72812         * modules/avltree-list-tests (Depends-on): Add progname.
72813         * tests/test-avltree_list.c: Include progname.h.
72814         (main): Call set_program_name.
72815
72816         * modules/array-oset-tests (Depends-on): Add progname.
72817         * tests/test-array_oset.c: Include progname.h.
72818         (main): Call set_program_name.
72819
72820         * modules/array-list-tests (Depends-on): Add progname.
72821         * tests/test-array_list.c: Include progname.h.
72822         (main): Call set_program_name.
72823
72824         * modules/argp-tests (Depends-on): Add progname.
72825         * tests/test-argp.c: Include argp.h first. Include progname.h.
72826         (main): Call set_program_name.
72827
72828 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
72829
72830         * doc/gnulib-tool.texi (Initial import): Reword description of
72831         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
72832         limited effect even if defined after the first system include.
72833
72834 2007-03-01  Bruno Haible  <bruno@clisp.org>
72835
72836         * build-aux/config.libpath: Update to libtool-1.5.22.
72837         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
72838
72839 2007-03-01  Bruno Haible  <bruno@clisp.org>
72840
72841         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
72842         foo_CFLAGS.
72843         Reported by Ralf Wildenhues.
72844
72845 2007-03-01  Bruno Haible  <bruno@clisp.org>
72846
72847         * build-aux/install-reloc: Remove object files left over by some
72848         compilers.
72849         Reported by Ralf Wildenhues.
72850
72851 2007-03-01  Bruno Haible  <bruno@clisp.org>
72852
72853         * build-aux/install-reloc: Break long lines.
72854
72855 2007-03-01  Bruno Haible  <bruno@clisp.org>
72856
72857         * doc/relocatable.texi: Document that it may not work on OpenBSD.
72858         Reported by Ralf Wildenhues.
72859
72860 2007-03-01  Bruno Haible  <bruno@clisp.org>
72861
72862         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
72863         include ordering constraints.
72864
72865 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72866
72867         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
72868         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
72869         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
72870         as another example.
72871         * lib/time_.h: Fix misspelling.
72872         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
72873         Require gl_HEADER_TIME_H_DEFAULTS.
72874         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
72875         * m4/time_r.m4 (gl_TIME_R): Likewise.
72876         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
72877
72878 2007-03-01  Bruno Haible  <bruno@clisp.org>
72879
72880         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
72881         * m4/utimens.m4 (gl_UTIMENS): Likewise.
72882
72883 2007-03-01  Jim Meyering  <jim@meyering.net>
72884
72885         * modules/xreadlink (Maintainer): Add my name.
72886         * modules/xreadlink-with-size (Depends-on): Alphabetize.
72887
72888 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
72889             Bruno Haible  <bruno@clisp.org>
72890
72891         * build-aux/install-reloc: Compile also c-ctype.c.
72892         * build-aux/relocatable.sh.in: New file.
72893         * doc/relocatable.texi: New file.
72894         * doc/relocatable-maint.texi: New file.
72895         * doc/gnulib.texi: Include relocatable-maint.texi.
72896         * lib/progreloc.c: Include unistd.h unconditionally.
72897         * lib/relocwrapper.c: Include unistd.h unconditionally.
72898         Include c-ctype.h.
72899         (add_dotbin): Use c_tolower.
72900         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
72901         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
72902         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
72903         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
72904         to m4/relocatable-lib.m4.
72905         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
72906         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
72907         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
72908         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
72909         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
72910         * modules/relocatable: New file.
72911         * modules/relocatable-lib: New file.
72912         * modules/relocatable-script: New file.
72913
72914 2007-02-28  Bruno Haible  <bruno@clisp.org>
72915
72916         Import --enable-relocatable infrastructure.
72917         * build-aux/config.libpath: New file, from GNU gettext.
72918         * build-aux/install-reloc: New file, from GNU gettext.
72919         * build-aux/reloc-ldflags: New file, from GNU gettext.
72920         * lib/relocatable.h: New file, from GNU gettext.
72921         * lib/relocatable.c: New file, from GNU gettext.
72922         * lib/relocwrapper.c: New file, from GNU gettext.
72923         * m4/relocatable.m4: New file, from GNU gettext.
72924
72925 2007-02-28  Bruno Haible  <bruno@clisp.org>
72926
72927         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
72928
72929         * modules/xreadlink: New file, from GNU gettext with modifications.
72930         * lib/xreadlink.c: New file, from GNU gettext.
72931         * lib/xreadlink.h: Add comments.
72932         (xreadlink): New declaration.
72933
72934         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
72935         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
72936         lib/xreadlink-with-size.c.
72937         (configure.ac): Remove gl_XREADLINK invocation.
72938         (Makefile.am): Augment lib_SOURCES.
72939         * m4/xreadlink.m4: Remove file.
72940         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
72941         (xreadlink_with_size): Renamed from xreadink.
72942         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
72943         * modules/canonicalize (Depends-on): Replace xreadlink with
72944         xreadlink-with-size.
72945         * lib/canonicalize.c (canonicalize_filename_mode): Update.
72946
72947 2007-02-25  Jim Meyering  <jim@meyering.net>
72948
72949         * build-aux/announce-gen: When complaining about excess arguments,
72950         list them.
72951
72952 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
72953
72954         * README: Document signed integer overflow situation more
72955         accurately.
72956
72957 2007-02-25  Bruno Haible  <bruno@clisp.org>
72958
72959         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
72960         'a' or 'A' conversion.
72961
72962 2007-02-25  Bruno Haible  <bruno@clisp.org>
72963
72964         * modules/filename: Renamed from modules/pathname.
72965         (Files): Replace lib/pathname.h with lib/filename.h. Replace
72966         lib/concatpath.c with lib/concat-filename.c.
72967         (Makefile.am): Update.
72968         (Include): Replace pathname.h with filename.h.
72969         * lib/filename.h: Renamed from lib/pathname.h.
72970         (concatenated_filename): Renamed from concatenated_pathname.
72971         * lib/concat-filename.c: Renamed from lib/concatpath.c.
72972         (concatenated_filename): Renamed from concatenated_pathname.
72973         * lib/findprog.c: Include filename.h instead of pathname.h.
72974         (find_in_path): Update.
72975         * lib/javacomp.c: Include filename.h instead of pathname.h.
72976         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
72977         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
72978         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
72979         is_oldgcj_14_13_usable, is_javac_usable): Update.
72980         * lib/javaexec.c: Include filename.h instead of pathname.h.
72981         (execute_java_class): Update.
72982         * modules/findprog: Update.
72983         * modules/javacomp: Update.
72984         * modules/javaexec: Update.
72985         * MODULES.html.sh (File system functions): Add 'filename', remove
72986         'pathname'.
72987
72988 2007-02-25  Bruno Haible  <bruno@clisp.org>
72989
72990         * modules/printf-frexpl-tests: New file.
72991         * tests/test-printf-frexpl.c: New file.
72992
72993         * modules/printf-frexpl: New file.
72994         * lib/printf-frexpl.h: New file.
72995         * lib/printf-frexpl.c: New file.
72996         * m4/printf-frexpl.m4: New file.
72997
72998 2007-02-25  Bruno Haible  <bruno@clisp.org>
72999
73000         * modules/printf-frexp-tests: New file.
73001         * tests/test-printf-frexp.c: New file.
73002
73003         * modules/printf-frexp: New file.
73004         * lib/printf-frexp.h: New file.
73005         * lib/printf-frexp.c: New file.
73006         * m4/printf-frexp.m4: New file.
73007
73008 2007-02-25  Bruno Haible  <bruno@clisp.org>
73009
73010         Assume automake >= 1.10 for the tests.
73011         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
73012         * modules/arctwo-tests: Likewise.
73013         * modules/argp-tests: Likewise.
73014         * modules/avltree-list-tests: Likewise.
73015         * modules/avltree-oset-tests: Likewise.
73016         * modules/avltreehash-list-tests: Likewise.
73017         * modules/carray-list-tests: Likewise.
73018         * modules/crc-tests: Likewise.
73019         * modules/des-tests: Likewise.
73020         * modules/gc-arcfour-tests: Likewise.
73021         * modules/gc-arctwo-tests: Likewise.
73022         * modules/gc-des-tests: Likewise.
73023         * modules/gc-hmac-md5-tests: Likewise.
73024         * modules/gc-hmac-sha1-tests: Likewise.
73025         * modules/gc-md2-tests: Likewise.
73026         * modules/gc-md4-tests: Likewise.
73027         * modules/gc-md5-tests: Likewise.
73028         * modules/gc-pbkdf2-sha1-tests: Likewise.
73029         * modules/gc-rijndael-tests: Likewise.
73030         * modules/gc-sha1-tests: Likewise.
73031         * modules/gc-tests: Likewise.
73032         * modules/getaddrinfo-tests: Likewise.
73033         * modules/hmac-md5-tests: Likewise.
73034         * modules/hmac-sha1-tests: Likewise.
73035         * modules/linked-list-tests: Likewise.
73036         * modules/linkedhash-list-tests: Likewise.
73037         * modules/lock-tests: Likewise.
73038         * modules/md2-tests: Likewise.
73039         * modules/md4-tests: Likewise.
73040         * modules/md5-tests: Likewise.
73041         * modules/rbtree-list-tests: Likewise.
73042         * modules/rbtree-oset-tests: Likewise.
73043         * modules/rbtreehash-list-tests: Likewise.
73044         * modules/read-file-tests: Likewise.
73045         * modules/rijndael-tests: Likewise.
73046         * modules/stdint-tests: Likewise.
73047         * modules/tls-tests: Likewise.
73048
73049 2007-02-24  Bruno Haible  <bruno@clisp.org>
73050
73051         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
73052         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
73053         function; instead check whether isnan with a double argument links.
73054         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
73055         function; instead check whether isnan with a 'long double' argument
73056         links.
73057         Reported by Eric Blake <ebb9@byu.net>.
73058
73059 2007-02-24  Bruno Haible  <bruno@clisp.org>
73060
73061         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
73062         defined.
73063         * lib/isnanl.c: Remove all code. Just include isnan.c.
73064         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
73065
73066 2007-02-25  Jim Meyering  <jim@meyering.net>
73067
73068         Avoid conflicting types for 'unsetenv' on FreeBSD.
73069         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
73070         conflicting with FreeBSD's (5.0 and 6.1) function declaration
73071         in stdlib.h.
73072
73073 2007-02-24  Bruno Haible  <bruno@clisp.org>
73074
73075         * modules/isnanl-nolibm-tests: New file.
73076         * tests/test-isnanl.c: New file.
73077
73078         * modules/isnanl-nolibm: New file.
73079         * lib/isnanl.h: New file.
73080         * lib/isnanl.c: New file.
73081         * m4/isnanl.m4: New file.
73082
73083 2007-02-24  Bruno Haible  <bruno@clisp.org>
73084
73085         * modules/isnan-nolibm-tests: New file.
73086         * tests/test-isnan.c: New file.
73087
73088         * modules/isnan-nolibm: New file.
73089         * lib/isnan.h: New file.
73090         * lib/isnan.c: New file.
73091         * m4/isnan.m4: New file.
73092
73093 2007-02-24  Bruno Haible  <bruno@clisp.org>
73094
73095         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
73096         assume that an exponent fits in 20 bits.
73097
73098 2007-02-24  Jim Meyering  <jim@meyering.net>
73099
73100         * m4/regex.m4: Update the description of the configure-time option,
73101         --without-included-regex, to state accurately what the defaults are,
73102         and perhaps to give people an idea why using this option is risky.
73103
73104 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
73105
73106         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
73107         loops on small arguments.  This attempts to avoid the problem
73108         Bruno Haible reported for AIX 4.3.2 in
73109         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
73110
73111 2007-02-23  Bruno Haible  <bruno@clisp.org>
73112
73113         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
73114         Needed for help2man.
73115
73116 2007-02-23  Karl Berry  <karl@gnu.org>
73117
73118         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
73119         exists, foo.h should be cvs-ignored, not committed.
73120
73121 2007-02-23  Eric Blake  <ebb9@byu.net>
73122
73123         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
73124         * lib/stat-time.h (includes): Likewise.
73125         * lib/utimecmp.c (includes): Likewise.
73126         * lib/utimens.h (includes): Likewise.
73127         * lib/getdate.y (includes): Also include "timespec.h" for use
73128         internal to the module.
73129         * modules/utimens (Depends-on): Revert yesterday's patch.
73130         * modules/nanosleep (Depends-on): Add missing dependency.
73131
73132 2007-02-22  Bruno Haible  <bruno@clisp.org>
73133
73134         * lib/glob.c: Don't include getlogin_r.h.
73135
73136 2007-02-22  Jim Meyering  <jim@meyering.net>
73137
73138         * modules/utimens (Depends-on): Add timespec, required for
73139         utimens.h's inclusion of timespec.h.
73140
73141 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
73142
73143         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
73144         long unreadable paths in GNU/Linux.  Problem reported by Andreas
73145         Schwab in
73146         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
73147         I'll try to think of a better way to fix the Solaris problem.
73148
73149         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
73150         like glibc; on Solaris 10, it fails with errno == EINVAL.
73151         POSIX says the behavior is unspecified if the first argument is NULL,
73152         so play it safe and never pass NULL to the system getcwd.
73153
73154 2007-02-21  Jim Meyering  <jim@meyering.net>
73155
73156         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
73157         of gettimeofday.  It would conflict with the one now always
73158         provided via sys_time_.h.  Reported by Matthew Woehlke, as
73159         an IRIX 6.5 build failure.
73160
73161 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
73162
73163         Minor fixups to port to Solaris 10 with Sun C 5.8.
73164         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
73165         * modules/getcwd (Depends-on): Add dirfd.
73166         * lib/putenv.c (putenv): #undef it.
73167         (rpl_putenv): New decl.
73168         (malloc, free): Include <stdlib.h> rather than prototyping separately.
73169
73170 2007-02-20  Bruno Haible  <bruno@clisp.org>
73171
73172         * modules/stdio-tests: New file.
73173         * tests/test-stdio.c: New file.
73174
73175         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
73176         (Depends-on): Add stdio.
73177         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
73178         (Include): Use <stdio.h> instead of vsnprintf.h.
73179         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
73180         HAVE_DECL_VSNPRINTF.
73181         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
73182
73183         * modules/snprintf (Files): Remove lib/snprintf.h.
73184         (Depends-on): Add stdio.
73185         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
73186         (Include): Use <stdio.h> instead of snprintf.h.
73187         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
73188         HAVE_DECL_SNPRINTF.
73189         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
73190         * lib/getaddrinfo.c: Likewise.
73191
73192         * modules/stdio: New file.
73193         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
73194         * lib/snprintf.h: Remove file.
73195         * lib/vsnprintf.h: Remove file.
73196         * lib/.cppi-disable: Remove snprintf.h.
73197         * m4/stdio_h.m4: New file.
73198         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
73199
73200 2007-02-20  Jim Meyering  <jim@meyering.net>
73201
73202         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
73203         used by e.g., mingw.  From Bruno Haible.
73204
73205 2007-02-19  Bruno Haible  <bruno@clisp.org>
73206
73207         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
73208         warnings.
73209         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73210
73211 2007-02-19  Bruno Haible  <bruno@clisp.org>
73212
73213         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
73214         from mingw users.
73215
73216 2007-02-19  Bruno Haible  <bruno@clisp.org>
73217
73218         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
73219         warnings.
73220         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
73221
73222 2007-02-19  Jim Meyering  <jim@meyering.net>
73223
73224         Don't use FD after a successful "fdopendir (fd)".
73225         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
73226         Reset it by calling dirfd on the just-obtained DIR*.
73227
73228         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
73229         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
73230
73231 2007-02-18  Bruno Haible  <bruno@clisp.org>
73232
73233         * lib/readlink.c: Include <unistd.h>.
73234         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
73235         HAVE_READLINK.
73236         * modules/readlink (Depends-on): Add unistd.
73237         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73238         (Include): Add <unistd.h>.
73239
73240         * lib/getlogin_r.h: Remove file.
73241         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
73242         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
73243         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
73244         HAVE_DECL_GETLOGIN_R.
73245         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
73246         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73247         (Include): Use <unistd.h> instead of getlogin_r.h.
73248
73249         * lib/getcwd.h: Remove file.
73250         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
73251         * lib/xgetcwd.c: Likewise.
73252         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
73253         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
73254         * modules/getcwd (Files): Remove lib/getcwd.h.
73255         (Depends-on): Add unistd.
73256         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73257         (Include): Use <unistd.h> instad of getcwd.h.
73258
73259         * lib/ftruncate.c: Include <unistd.h> first.
73260         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
73261         Set HAVE_FTRUNCATE.
73262         * modules/ftruncate (Depends-on): Add unistd.
73263         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73264
73265         * lib/fchdir.c: Include <unistd.h> first.
73266         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
73267         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
73268         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
73269         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73270         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
73271
73272         * lib/dup2.c: Include <unistd.h> first.
73273         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
73274         HAVE_DUP2.
73275         * modules/dup2 (Depends-on): Add unistd.
73276         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73277
73278         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
73279         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
73280         REPLACE_CHOWN. Don't define chown as a macro here.
73281         * modules/chown (Depends-on): Add unistd.
73282         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73283
73284         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
73285         Add definition for GL_LINK_WARNING.
73286         (chown, dup2): New declarations.
73287         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
73288         link warning.
73289         (ftruncate): New declaration.
73290         (getcwd): New declaration, taken from old getcwd.h.
73291         (getlogin_r): New declaration, taken from old getlogin_r.h.
73292         (readlink): New declaration.
73293         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
73294         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
73295         (gl_PREREQ_UNISTD): Remove macro.
73296         (gl_UNISTD_MODULE_INDICATOR): New macro.
73297         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
73298         many new variables. Don't set UNISTD_H.
73299         * modules/unistd (Description): Change.
73300         (Depends-on): Add link-warning.
73301         (configure.ac): Update.
73302         (Makefile.am): Create unistd.h always. Substitute many new variables
73303         into it.
73304
73305 2007-02-18  Bruno Haible  <bruno@clisp.org>
73306
73307         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
73308         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
73309         HAVE_GETSUBOPT.
73310         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
73311         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
73312         * lib/getsubopt.h: Remove file.
73313         * modules/getsubopt (Files): Remove lib/getsubopt.h.
73314         (Depends-on): Add stdlib.
73315         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73316         (Includes): Use <stdlib.h> instead of getsubopt.h.
73317         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
73318         Set HAVE_GETSUBOPT.
73319         * lib/getsubopt.c: Don't include getsubopt.h.
73320
73321 2007-02-18  Bruno Haible  <bruno@clisp.org>
73322
73323         * modules/fchdir (Depends-on): Add dup2.
73324
73325 2007-02-18  Bruno Haible  <bruno@clisp.org>
73326
73327         * lib/stdlib_.h: Handle glibc's special invocation convention
73328         specially.
73329
73330 2007-02-18  Bruno Haible  <bruno@clisp.org>
73331
73332         * modules/stdlib-tests: New file.
73333         * tests/test-stdlib.c: New file.
73334
73335         * modules/mkstemp (Files): Remove lib/mkstemp.h.
73336         (Depends-on): Add stdlib.
73337         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73338         (Includes): Use <stdlib.h> instead of mkstemp.h.
73339         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
73340         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
73341         * lib/mkstemp.c: Don't include mkstemp.h.
73342         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
73343         * lib/stdlib--.h: Don't include mkstemp.h.
73344
73345         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
73346         (Depends-on): Add stdlib.
73347         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73348         (Includes): Use <stdlib.h> instead of mkdtemp.h.
73349         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
73350         HAVE_MKDTEMP.
73351         * lib/mkdtemp.c: Don't include mkdtemp.h.
73352         * lib/clean-temp.c: Don't include mkdtemp.h.
73353
73354         * modules/exit (Files): Remove lib/exit.h.
73355         (Depends-on): Add stdlib.
73356         (Makefile.am): Remove lib_SOURCES.
73357         (Include): Use <stdlib.h> instead of exit.h.
73358         * lib/argmatch.c: Don't include exit.h.
73359         * lib/execute.c: Likewise.
73360         * lib/pagealign_alloc.c: Likewise.
73361         * lib/pipe.c: Likewise.
73362         * lib/wait-process.c: Likewise.
73363         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
73364         * lib/exitfail.c: Likewise.
73365         * lib/savewd.c: Likewise.
73366         * lib/xsetenv.c: Likewise.
73367
73368         * modules/stdlib: New file.
73369         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
73370         and extra comments about mkstemp().
73371         * lib/exit.h: Remove file.
73372         * lib/mkdtemp.h: Remove file.
73373         * lib/mkstemp.h: Remove file.
73374         * m4/stdlib_h.m4: New file.
73375         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
73376
73377 2007-02-18  Bruno Haible  <bruno@clisp.org>
73378
73379         * modules/math-tests: New file.
73380         * tests/test-math.c: New file.
73381
73382         * modules/math: New file.
73383         * modules/mathl (Files): Remove lib/mathl.h.
73384         (Depends-on): Add math.
73385         (Makefile.am): Don't mention mathl.h.
73386         (Include): Use <math.h> instead of mathl.h.
73387         * lib/math_.h: New file.
73388         * lib/mathl.h: Remove file.
73389         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
73390         mathl.h.
73391         * lib/asinl.c: Likewise.
73392         * lib/atanl.c: Likewise.
73393         * lib/ceill.c: Likewise.
73394         * lib/cosl.c: Likewise.
73395         * lib/expl.c: Likewise.
73396         * lib/floorl.c: Likewise.
73397         * lib/frexpl.c: Likewise.
73398         * lib/ldexpl.c: Likewise.
73399         * lib/logl.c: Likewise.
73400         * lib/sincosl.c: Likewise.
73401         * lib/sinl.c: Likewise.
73402         * lib/sqrtl.c: Likewise.
73403         * lib/tanl.c: Likewise.
73404         * lib/trigl.c: Likewise.
73405         * m4/math_h.m4: New file.
73406         * MODULES.html.sh (Mathematics): Add math.
73407
73408 2007-02-17  Bruno Haible  <bruno@clisp.org>
73409
73410         * modules/wctype-tests: New file.
73411         * tests/test-wctype.c: New file.
73412
73413         * modules/wchar-tests: New file.
73414         * tests/test-wchar.c: New file.
73415
73416         * modules/unistd-tests: New file.
73417         * tests/test-unistd.c: New file.
73418
73419         * modules/time-tests: New file.
73420         * tests/test-time.c: New file.
73421
73422         * modules/sysexits-tests: New file.
73423         * tests/test-sysexits.c: New file.
73424
73425         * modules/sys_time-tests: New file.
73426         * tests/test-sys_time.c: New file.
73427
73428         * modules/sys_stat-tests: New file.
73429         * tests/test-sys_stat.c: New file.
73430
73431         * modules/sys_socket-tests: New file.
73432         * tests/test-sys_socket.c: New file.
73433
73434         * modules/sys_select-tests: New file.
73435         * tests/test-sys_select.c: New file.
73436
73437         * modules/string-tests: New file.
73438         * tests/test-string.c: New file.
73439
73440         * modules/stdbool-tests: New file.
73441         * tests/test-stdbool.c: New file.
73442
73443         * modules/netinet_in-tests: New file.
73444         * tests/test-netinet_in.c: New file.
73445
73446         * modules/inttypes-tests: New file.
73447         * tests/test-inttypes.c: New file.
73448
73449         * modules/fcntl-tests: New file.
73450         * tests/test-fcntl.c: New file.
73451
73452         * modules/byteswap-tests: New file.
73453         * tests/test-byteswap.c: New file.
73454
73455         * modules/arpa_inet-tests: New file.
73456         * tests/test-arpa_inet.c: New file.
73457
73458 2007-02-17  Bruno Haible  <bruno@clisp.org>
73459
73460         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
73461         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
73462         if the corresponding module is not enabled. Emit link warnings if
73463         the function is used nevertheless.
73464         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
73465         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
73466         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
73467         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
73468         * modules/inttypes (Depends-on): Add link-warning.
73469         (Makefile.am): Copy the contents of build-aux/link-warning.h into
73470         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
73471         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
73472         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
73473         * modules/imaxdiv (configure.ac): Likewise.
73474         * modules/strtoimax (configure.ac): Likewise.
73475         * modules/strtoumax (configure.ac): Likewise.
73476
73477 2007-02-17  Bruno Haible  <bruno@clisp.org>
73478
73479         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
73480         gl_STRING_MODULE_INDICATOR_DEFAULTS.
73481         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
73482         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
73483
73484 2007-02-17  Bruno Haible  <bruno@clisp.org>
73485
73486         * modules/link-warning: New file.
73487         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
73488         * lib/string_.h (GL_LINK_WARNING): Remove definition.
73489         * modules/string (Depends-on): Add link-warning.
73490         (Makefile.am): Copy the contents of build-aux/link-warning.h into
73491         string.h.
73492         * MODULES.html.sh (Support for building libraries and executables): Add
73493         link-warning.
73494
73495 2007-02-17  Bruno Haible  <bruno@clisp.org>
73496
73497         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
73498         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
73499         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
73500         long lines.
73501
73502 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
73503             Bruno Haible  <bruno@clisp.org>
73504
73505         * modules/tmpfile: New file.
73506         * lib/tmpfile.c: New file.
73507         * m4/tmpfile.m4: New file.
73508         * MODULES.html.sh (func_all_modules): New section "Input/output".
73509
73510 2007-02-15  Bruno Haible  <bruno@clisp.org>
73511
73512         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
73513         (supports_delete_on_close): New function.
73514         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
73515
73516 2007-02-14  Bruno Haible  <bruno@clisp.org>
73517
73518         * modules/mbspcasecmp-tests: New file.
73519         * tests/test-mbspcasecmp.sh: New file.
73520         * tests/test-mbspcasecmp.c: New file.
73521
73522         New module mbspcasecmp.
73523         * modules/mbspcasecmp: New file.
73524         * lib/mbspcasecmp.c: New file.
73525         * lib/string_.h (strncasecmp): Change warning message.
73526         (mbspcasecmp): New declaration.
73527         * m4/mbspcasecmp.m4: New file.
73528         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73529         GNULIB_MBSPCASECMP.
73530         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
73531         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
73532
73533 2007-02-14  Bruno Haible  <bruno@clisp.org>
73534
73535         * modules/mbsncasecmp-tests: New file.
73536         * tests/test-mbsncasecmp.sh: New file.
73537         * tests/test-mbsncasecmp.c: New file.
73538
73539         New module mbsncasecmp.
73540         * modules/mbsncasecmp: New file.
73541         * lib/mbsncasecmp.c: New file.
73542         * lib/string_.h (mbsncasecmp): New declaration.
73543         * m4/mbsncasecmp.m4: New file.
73544         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73545         GNULIB_MBSNCASECMP.
73546         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
73547         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
73548
73549 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
73550
73551         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
73552         Verify that it doesn't overlap with our flags.
73553         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
73554         do not have the desired effect in multibyte locales; instead, use
73555         mbscasecmp.
73556         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
73557         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
73558         we don't require GNU fnmatch ourselves (if our users require it, they
73559         should do so explicitly).
73560
73561         Fix regex code so it doesn't rely on strcasecmp.
73562         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
73563         Otherwise, include gnulib's langinfo.h.
73564         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
73565         undesirable behavior in non-C locales.  Instead, rely on localecharset.
73566         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
73567         * modules/regex (FILES): Remove m4/codeset.m4.
73568         (Depends-on): Add localcharset.  Remove strcase.
73569
73570 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73571
73572         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
73573         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
73574
73575 2007-02-13  Bruno Haible  <bruno@clisp.org>
73576
73577         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
73578         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73579
73580 2007-02-12  Bruno Haible  <bruno@clisp.org>
73581
73582         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
73583         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
73584         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
73585         time warning rather than a link error.
73586
73587 2007-02-12  Bruno Haible  <bruno@clisp.org>
73588
73589         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
73590         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
73591         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73592
73593 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
73594
73595         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
73596         args, not 2.
73597
73598 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
73599
73600         New module 'time', so that apps can include <time.h> as per
73601         POSIX and GNU instead of separate include files like time_r.h
73602         and timegm.h.  This implementation tries out a simpler approach
73603         for replacing decls in standard include files (as compared to
73604         the string module), somewhat as an experiment.
73605
73606         * config/srclist.txt: Comment out mktime.c for now.
73607         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
73608         since it doesn't apply any more.  Use generic wording instead.
73609         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
73610         'time'.
73611         * lib/time_.h, m4/time_h.m4, modules/time: New files.
73612         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
73613         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
73614         Don't include <sys/types.h>; no longer needed since we assume C89.
73615         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
73616         * lib/strftime.c: Likewise.
73617         * lib/time_r.c: Likewise.
73618         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
73619         * lib/nanosleep.c: Include <time.h> first, to check interface.
73620         * lib/strptime.c: Likewise.
73621         * lib/time_r.c: Likewise.
73622         * lib/timegm.c: Likewise.
73623         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
73624         needed.
73625         * lib/timegm.c: Don't include timegm.h; no longer needed.
73626         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
73627         time.h now handles any problems in that area.
73628         (struct timespec, nanosleep): Remove; time.h now arranges for these.
73629         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
73630         that time.h defines struct timespec.
73631         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
73632         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
73633         handles that.
73634         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
73635         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
73636         needed.  Set REPLACE_LOCALTIME.
73637         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
73638         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
73639         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
73640         nanosleep; time_h.m4 now does that.  Don't require
73641         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
73642         module handles this now.
73643         * modules/getdate (Depends-on): Remove timespec.  Add time.
73644         * modules/nanosleep (Depends-on): Likewise.
73645         * modules/stat-time (Depends-on): Likewise.
73646         * modules/nanosleep (Include): Include time.h, not timespec.h.
73647         * modules/strptime (Files): Remove lib/strptime.h.
73648         (Depends-on): Add extensions, time.
73649         (Include): Include time.h, not strptime.h.
73650         * modules/time_r (Files): Remove lib/time_r.h.
73651         (Depends-on): Add time.
73652         (Include): Include time.h, not time_r.h.
73653         * modules/timegm: Likewise.
73654         * modules/timespec (Description): Now does timespec-related decls
73655         of our own, instead of struct timespec itself.
73656         (Depends-on): Add time; remove extensions.
73657         (Maintainer): Add self.
73658         * modules/utimecmp (Depends-on): Add time; remove timespec.
73659         * modules/utimens (Depends-on): Likewise.
73660         * modules/xnanosleep (Depends-on): Likewise.
73661
73662 2007-02-11  Bruno Haible  <bruno@clisp.org>
73663
73664         * lib/c-strstr.c: Include allocsa.h.
73665         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
73666         * lib/c-strcasestr.c: Include allocsa.h.
73667         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
73668         * lib/strcasestr.c: Include allocsa.h.
73669         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
73670         * lib/mbsstr.c: Include allocsa.h.
73671         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
73672         allocsa/freesa instead of malloc/free.
73673         * lib/mbscasestr.c: Include allocsa.h.
73674         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
73675         allocsa/freesa instead of malloc/free.
73676         * modules/c-strstr (Depends-on): Add allocsa.
73677         * modules/c-strcasestr (Depends-on): Likewise.
73678         * modules/strcasestr (Depends-on): Likewise.
73679         * modules/mbsstr (Depends-on): Likewise.
73680         * modules/mbscasestr (Depends-on): Likewise.
73681
73682 2007-02-11  Bruno Haible  <bruno@clisp.org>
73683
73684         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
73685
73686         * modules/mbsspn-tests: New file.
73687         * tests/test-mbsspn.sh: New file.
73688         * tests/test-mbsspn.c: New file.
73689
73690 2007-02-11  Bruno Haible  <bruno@clisp.org>
73691
73692         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
73693
73694         * modules/mbspbrk-tests: New file.
73695         * tests/test-mbspbrk.sh: New file.
73696         * tests/test-mbspbrk.c: New file.
73697
73698 2007-02-11  Bruno Haible  <bruno@clisp.org>
73699
73700         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
73701         unneeded cast.
73702
73703         * modules/mbscspn-tests: New file.
73704         * tests/test-mbscspn.sh: New file.
73705         * tests/test-mbscspn.c: New file.
73706
73707 2007-02-11  Bruno Haible  <bruno@clisp.org>
73708
73709         * modules/mbscasecmp-tests: New file.
73710         * tests/test-mbscasecmp.sh: New file.
73711         * tests/test-mbscasecmp.c: New file.
73712
73713 2007-02-11  Bruno Haible  <bruno@clisp.org>
73714
73715         Ensure O(n) worst-case complexity of mbscasestr.
73716         * lib/mbscasestr.c: Include stdbool.h.
73717         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
73718         functions.
73719         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
73720         the bookkeeping indicates that it's worth it.
73721         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
73722
73723         * modules/mbscasestr-tests: New file.
73724         * tests/test-mbscasestr1.c: New file.
73725         * tests/test-mbscasestr2.sh: New file.
73726         * tests/test-mbscasestr2.c: New file.
73727         * tests/test-mbscasestr3.sh: New file.
73728         * tests/test-mbscasestr3.c: New file.
73729         * tests/test-mbscasestr4.sh: New file.
73730         * tests/test-mbscasestr4.c: New file.
73731         * m4/locale-tr.m4: New file.
73732
73733 2007-02-11  Bruno Haible  <bruno@clisp.org>
73734
73735         Ensure O(n) worst-case complexity of mbsstr.
73736         * lib/mbsstr.c: Include stdbool.h.
73737         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
73738         functions.
73739         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
73740         bookkeeping indicates that it's worth it.
73741         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
73742
73743         * modules/mbsstr-tests: New file.
73744         * tests/test-mbsstr1.c: New file.
73745         * tests/test-mbsstr2.sh: New file.
73746         * tests/test-mbsstr2.c: New file.
73747         * tests/test-mbsstr3.sh: New file.
73748         * tests/test-mbsstr3.c: New file.
73749         * m4/locale-fr.m4: New file.
73750
73751 2007-02-11  Bruno Haible  <bruno@clisp.org>
73752
73753         * lib/mbsrchr.c (mbsrchr): Fix bug.
73754
73755         * modules/mbsrchr-tests: New file.
73756         * tests/test-mbsrchr.sh: New file.
73757         * tests/test-mbsrchr.c: New file.
73758
73759 2007-02-11  Bruno Haible  <bruno@clisp.org>
73760
73761         * lib/mbschr.c (mbschr): Fix bug.
73762
73763         * modules/mbschr-tests: New file.
73764         * tests/test-mbschr.sh: New file.
73765         * tests/test-mbschr.c: New file.
73766         * m4/locale-zh.m4: New file.
73767
73768 2007-02-11  Bruno Haible  <bruno@clisp.org>
73769
73770         Support for copying multibyte string iterators.
73771         * lib/mbiter.h: Include <string.h>.
73772         (mbiter_multi_copy): New function.
73773         (mbi_copy): New macro.
73774         * lib/mbuiter.h: Include <string.h>.
73775         (mbuiter_multi_copy): New function.
73776         (mbui_copy): New macro.
73777
73778 2007-02-11  Bruno Haible  <bruno@clisp.org>
73779
73780         New module mbslen.
73781         * modules/mbslen: New file.
73782         * lib/mbslen.c: New file.
73783         * lib/string_.h (mbslen): New declaration.
73784         * m4/mbslen.m4: New file.
73785         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73786         GNULIB_MBSLEN.
73787         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
73788         * MODULES.html.sh (Internationalization functions): Add mbslen.
73789
73790 2007-02-11  Bruno Haible  <bruno@clisp.org>
73791
73792         Ensure O(n) worst-case complexity of strcasestr substitute.
73793         * lib/strcasestr.c: Include stdbool.h.
73794         (knuth_morris_pratt): New function.
73795         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
73796         bookkeeping indicates that it's worth it.
73797         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
73798
73799         * modules/strcasestr-tests: New file.
73800         * tests/test-strcasestr.c: New file.
73801
73802 2007-02-11  Bruno Haible  <bruno@clisp.org>
73803
73804         Ensure O(n) worst-case complexity of c_strcasestr.
73805         * lib/c-strcasestr.c: Include stdbool.h, string.h.
73806         (knuth_morris_pratt): New function.
73807         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
73808         the bookkeeping indicates that it's worth it.
73809         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
73810
73811         * modules/c-strcasestr-tests: New file.
73812         * tests/test-c-strcasestr.c: New file.
73813
73814 2007-02-11  Bruno Haible  <bruno@clisp.org>
73815
73816         Ensure O(n) worst-case complexity of c_strstr.
73817         * lib/c-strstr.c: Include stdbool.h, string.h.
73818         (knuth_morris_pratt): New function.
73819         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
73820         bookkeeping indicates that it's worth it.
73821         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
73822
73823         * lib/c-strstr.c: Complete rewrite for maintainability.
73824
73825         * modules/c-strstr-tests: New file.
73826         * tests/test-c-strstr.c: New file.
73827
73828 2007-02-11  Bruno Haible  <bruno@clisp.org>
73829
73830         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
73831         5.2.1 and earlier, whereby \055 was treated just like the range
73832         delimiter '-'.
73833         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
73834
73835 2007-02-08  Bruno Haible  <bruno@clisp.org>
73836
73837         * modules/regex (Depends-on): Add stdbool.
73838         Reported by Dalibor Topic <robilad@kaffe.org>.
73839
73840 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
73841
73842         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
73843         Prefer returning from main to exiting from it.
73844         Remove unnecessary parens after sizeof.
73845
73846 2007-02-05  Bruno Haible  <bruno@clisp.org>
73847
73848         New module mbssep.
73849         * modules/mbssep: New file.
73850         * lib/mbssep.c: New file.
73851         * lib/string_.h (strsep): Add a conditional link warning.
73852         (mbssep): New declaration.
73853         * m4/mbssep.m4: New file.
73854         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73855         GNULIB_MBSSEP.
73856         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
73857         * MODULES.html.sh (Internationalization functions): Add mbssep.
73858
73859 2007-02-05  Bruno Haible  <bruno@clisp.org>
73860
73861         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
73862         Optimize search in case of 1 delimiter.
73863
73864 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
73865
73866         * lib/acl.h: Include sys/types.h before sys/acl.h.
73867
73868 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
73869
73870         Merge upstream fix for glibc bugzilla #3957:
73871
73872         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
73873
73874         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
73875         bit for RE_HAT_LISTS_NOT_NEWLINE.
73876         (build_charclass_op): Remove bogus comment.
73877
73878 2007-02-05  Simon Josefsson  <simon@josefsson.org>
73879
73880         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
73881
73882 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
73883
73884         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
73885         * lib/memmem.c [!defined _LIBC]: Include config.h.
73886
73887 2007-02-04  Bruno Haible  <bruno@clisp.org>
73888
73889         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
73890         warning message.
73891
73892 2007-02-04  Bruno Haible  <bruno@clisp.org>
73893
73894         New module mbstok_r.
73895         * modules/mbstok_r: New file.
73896         * lib/mbstok_r.c: New file.
73897         * lib/string_.h (strtok_r): Change argument names to match the
73898         comments. Add a conditional link warning.
73899         (mbstok_r): New declaration.
73900         * m4/mbstok_r.m4: New file.
73901         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73902         GNULIB_MBSTOK_R.
73903         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
73904         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
73905
73906 2007-02-04  Bruno Haible  <bruno@clisp.org>
73907
73908         New module mbsspn.
73909         * modules/mbsspn: New file.
73910         * lib/mbsspn.c: New file.
73911         * lib/string_.h (strspn): Add a conditional link warning.
73912         (mbsspn): New declaration.
73913         * m4/mbsspn.m4: New file.
73914         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73915         GNULIB_MBSSPN.
73916         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
73917         * MODULES.html.sh (Internationalization functions): Add mbsspn.
73918
73919 2007-02-04  Bruno Haible  <bruno@clisp.org>
73920
73921         New module mbspbrk.
73922         * modules/mbspbrk: New file.
73923         * lib/mbspbrk.c: New file.
73924         * lib/string_.h (strpbrk): Add a conditional link warning.
73925         (mbspbrk): New declaration.
73926         * m4/mbspbrk.m4: New file.
73927         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73928         GNULIB_MBSPBRK.
73929         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
73930         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
73931
73932 2007-02-04  Bruno Haible  <bruno@clisp.org>
73933
73934         New module mbscspn.
73935         * modules/mbscspn: New file.
73936         * lib/mbscspn.c: New file.
73937         * lib/string_.h (strcspn): Add a conditional link warning.
73938         (mbscspn): New declaration.
73939         * m4/mbscspn.m4: New file.
73940         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73941         GNULIB_MBSCSPN.
73942         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
73943         * MODULES.html.sh (Internationalization functions): Add mbscspn.
73944
73945 2007-02-04  Bruno Haible  <bruno@clisp.org>
73946
73947         New module mbscasestr, reduced goal of strcasestr.
73948         * modules/mbscasestr: New file.
73949         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
73950         (mbscasestr): Renamed from strcasestr.
73951         * lib/strcasestr.c: Don't include mbuiter.h.
73952         (strcasestr): Remove support for multibyte locales.
73953         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
73954         Change the conditional link warning.
73955         (mbscasestr): New declaration.
73956         * m4/mbscasestr.m4: New file.
73957         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
73958         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
73959         REPLACE_STRCASESTR.
73960         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
73961         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
73962         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
73963         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
73964         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
73965         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
73966         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
73967         (Depends-on): Remove mbuiter.
73968         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
73969
73970 2007-02-04  Bruno Haible  <bruno@clisp.org>
73971
73972         Simplify handling of strncasecmp.
73973         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
73974         the conditional link warning.
73975         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
73976         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
73977         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
73978         * modules/strcase (configure.ac): Don't invoke
73979         gl_STRING_MODULE_INDICATOR.
73980         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
73981
73982 2007-02-04  Bruno Haible  <bruno@clisp.org>
73983
73984         New module mbscasecmp, reduced goal of strcasecmp.
73985         * modules/mbscasecmp: New file.
73986         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
73987         (mbscasecmp): Renamed from strcasecmp.
73988         * lib/strcasecmp.c: Don't include mbuiter.h.
73989         (strcasecmp): Remove support for multibyte locales.
73990         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
73991         Change the conditional link warning.
73992         (mbscasecmp): New declaration.
73993         * m4/mbscasecmp.m4: New file.
73994         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
73995         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
73996         REPLACE_STRCASECMP.
73997         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
73998         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73999         GNULIB_MBSCASECMP.
74000         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
74001         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
74002         * modules/strcase (Files): Remove m4/mbrtowc.m4.
74003         (Depends-on): Remove mbuiter.
74004         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
74005
74006 2007-02-04  Bruno Haible  <bruno@clisp.org>
74007
74008         New module mbsstr. Remove module strstr.
74009         * modules/mbsstr: New file.
74010         * modules/strstr: Remove file.
74011         * lib/mbsstr.c: Renamed from lib/strstr.c.
74012         (mbsstr): Renamed from strstr.
74013         * lib/string_.h (strstr): Remove declaration. Change the conditional
74014         link warning.
74015         (mbsstr): New declaration.
74016         * m4/mbsstr.m4: New file.
74017         * m4/strstr.m4: Remove file.
74018         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
74019         REPLACE_STRSTR.
74020         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
74021         Don't initialize GNULIB_STRSTR.
74022         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
74023         substitute GNULIB_STRSTR and REPLACE_STRSTR.
74024         * MODULES.html.sh (Internationalization functions): Add mbsstr.
74025         (Support for systems lacking ANSI C 89): Remove strstr.
74026
74027 2007-02-04  Bruno Haible  <bruno@clisp.org>
74028
74029         New module mbsrchr.
74030         * modules/mbsrchr: New file.
74031         * lib/mbsrchr.c: New file.
74032         * lib/string_.h (strrchr): Add a conditional link warning.
74033         (mbsrchr): New declaration.
74034         * m4/mbsrchr.m4: New file.
74035         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74036         GNULIB_MBSRCHR.
74037         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
74038         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
74039
74040 2007-02-04  Bruno Haible  <bruno@clisp.org>
74041
74042         New module mbschr.
74043         * modules/mbschr: New file.
74044         * lib/mbschr.c: New file.
74045         * lib/string_.h (strchr): Add a conditional link warning.
74046         (mbschr): New declaration.
74047         * m4/mbschr.m4: New file.
74048         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74049         GNULIB_MBSCHR.
74050         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
74051         * MODULES.html.sh (Internationalization functions): Add mbschr.
74052
74053 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
74054
74055         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
74056
74057         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
74058
74059 2007-02-04  Bruno Haible  <bruno@clisp.org>
74060
74061         New module description section 'configure.ac-early'.
74062         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
74063         (func_get_autoconf_early_snippet): New function.
74064         (func_import, func_create_testdir): Use it. Remove special cases for
74065         modules 'extensions' and 'lock'.
74066         * modules/extensions (configure.ac-early): Require
74067         gl_USE_SYSTEM_EXTENSIONS.
74068         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
74069
74070 2007-02-04  Bruno Haible  <bruno@clisp.org>
74071
74072         Make use of gcj-4.3's -fsource and -ftarget option.
74073         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
74074         and if so try the options -fsource and -ftarget.
74075         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
74076         source_version, ftarget_option, target_version arguments.
74077         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
74078         (is_envjavac_oldgcj_14_14_usable): Renamed from
74079         is_envjavac_gcj_14_14_usable.
74080         (is_envjavac_oldgcj_14_13_usable): Renamed from
74081         is_envjavac_gcj_14_13_usable.
74082         (is_gcj_present): Update.
74083         (is_gcj_43, is_gcj43_usable): New functions.
74084         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
74085         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
74086         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
74087         try the options -fsource and -ftarget.
74088
74089 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74090
74091         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
74092         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
74093         larger value.
74094
74095 2007-02-03  Jim Meyering  <jim@meyering.net>
74096
74097         Give tools a better chance to allocate space for very large buffers.
74098         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
74099
74100         Make pwd and readlink work also when run with an unreadable parent dir
74101         on systems with openat support.
74102         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
74103         provided getcwd function, even when we have openat support.
74104         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
74105
74106 2007-02-02  Bruno Haible  <bruno@clisp.org>
74107
74108         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
74109         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
74110         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
74111         portability problems if one of these functions is only used on specific
74112         platforms.
74113         Reported by Paul Eggert.
74114
74115 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
74116
74117         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
74118         is causing more trouble than it's curing.
74119         * lib/regex_internal.h (__mempcpy): Remove.
74120         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
74121         (and make the code a tad smaller to boot).
74122         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
74123
74124 2007-02-02  Jim Meyering  <jim@meyering.net>
74125
74126         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
74127         section, not in the Makefile.am: one.
74128
74129 2007-02-02  Eric Blake  <ebb9@byu.net>
74130
74131         * lib/strchrnul.c: Always include config.h first.
74132
74133         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
74134         gnulib strstr is not necessary here.
74135
74136 2007-02-02  Simon Josefsson  <simon@josefsson.org>
74137
74138         * m4/socklen.m4: Fix typo.
74139
74140 2007-02-02  Eric Blake  <ebb9@byu.net>
74141
74142         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
74143         * modules/netinet_in (Makefile.am): Likewise.
74144
74145 2007-02-01  Bruno Haible  <bruno@clisp.org>
74146
74147         * lib/string_.h (GL_LINK_WARNING): New macro.
74148         (strcasecmp, strstr, strcasestr): If provided by the system,
74149         conditionally define as a macro that leads to a warning instead of to
74150         an error.
74151         (strncasecmp): Conditionally define as a macro that leads to a warning.
74152
74153 2007-02-01  Karl Berry  <karl@gnu.org>
74154
74155         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
74156
74157 2007-02-01  Bruno Haible  <bruno@clisp.org>
74158
74159         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
74160         renamings.
74161
74162 2007-02-01  Eric Blake  <ebb9@byu.net>
74163
74164         * modules/regex (Depends-on): Revert dependence on mempcpy.
74165         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
74166         module's definition of mempcpy.
74167         Reported by Paul Eggert.
74168
74169 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
74170
74171         * lib/string_.h: If the gnulib module XYZ is not present, undefine
74172         the symbol XYZ before redefining it.  This fixes a problem with
74173         programs that don't use XYZ, when compiled on systems that define
74174         XYZ to something else.
74175
74176 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
74177
74178         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
74179         occurs when "mkdir -m foo" creates a setgid directory that is (1)
74180         writeable to group or other and (2) is intended to have a special
74181         mode bit that is set or cleared.  In such a case, the directory
74182         should be neither group- nor other-writeable until the special
74183         mode bits are right.
74184
74185 2007-01-31  Eric Blake  <ebb9@byu.net>
74186
74187         * modules/mountlist (Depends-on): Add strstr.
74188
74189         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
74190         bug.
74191         * modules/string (Makefile.am): Remove redundant replacement.
74192         * modules/regex (Depends-on): Add mempcpy.
74193
74194 2007-01-31  Bruno Haible  <bruno@clisp.org>
74195
74196         New module description field 'Link'.
74197         * gnulib-tool (func_usage): Document --extract-link-directive.
74198         (sed_extract_prog): Recognize 'Link' directive.
74199         (func_get_link_directive): New function.
74200         (func_import): Show summary of link directives.
74201         Handle --extract-link-directive option.
74202         * modules/acl (Link): New section.
74203         * modules/clock-time (Link): New section.
74204         * modules/euidaccess (Link): New section.
74205         * modules/gettext (Link): New section.
74206         * modules/iconv (Link): New section.
74207         * modules/lock (Link): New section.
74208         * modules/nanosleep (Link): New section.
74209         * modules/readline (Link): New section.
74210
74211 2007-01-27  Bruno Haible  <bruno@clisp.org>
74212
74213         Enforce the use of gnulib modules for unportable <string.h> functions.
74214         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
74215         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
74216         (gl_HEADER_STRING_H_BODY): Require it.
74217         * lib/string_.h: If the gnulib module XYZ is not present, redefine
74218         the symbol XYZ to one that gives a link error.
74219         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
74220         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
74221         * modules/mempcpy (configure.ac): Likewise.
74222         * modules/memrchr (configure.ac): Likewise.
74223         * modules/stpcpy (configure.ac): Likewise.
74224         * modules/stpncpy (configure.ac): Likewise.
74225         * modules/strcase (configure.ac): Likewise.
74226         * modules/strcasestr (configure.ac): Likewise.
74227         * modules/strchrnul (configure.ac): Likewise.
74228         * modules/strdup (configure.ac): Likewise.
74229         * modules/strndup (configure.ac): Likewise.
74230         * modules/strnlen (configure.ac): Likewise.
74231         * modules/strpbrk (configure.ac): Likewise.
74232         * modules/strsep (configure.ac): Likewise.
74233         * modules/strstr (configure.ac): Likewise.
74234         * modules/strtok_r (configure.ac): Likewise.
74235
74236 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
74237
74238         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
74239
74240 2007-01-30  Jim Meyering  <jim@meyering.net>
74241
74242         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
74243
74244 2007-01-29  Bruno Haible  <bruno@clisp.org>
74245
74246         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
74247         * lib/execute.c: Likewise.
74248         * lib/pipe.c: Likewise.
74249         * lib/printf-args.h: Likewise.
74250         * lib/printf-args.c: Likewise.
74251         * lib/printf-parse.c: Likewise.
74252         * lib/vasnprintf.c: Likewise.
74253
74254 2007-01-29  Eric Blake  <ebb9@byu.net>
74255
74256         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
74257         declaration.
74258
74259 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
74260
74261         * lib/strptime.h (strptime): Use 'restrict' for args where
74262         POSIX requires this.
74263         * lib/strptime.c (strptime): Likewise.
74264         Change license notice from LGPL to GPL, since gnulib-tool will
74265         change this as needed.
74266         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
74267         defined.
74268         Include "strptime.h" first, to check interface.
74269         Do not #undef _LIBC and _NL_CURRENT.
74270         Do not include <stdlib.h>; no longer needed.
74271         Include "time_r.h" and declare ptime_locale_status
74272         only if _LIBC is not defined.
74273         (__P): Remove unused macro.
74274         (match_string): Bring back glibc version, but use it only if _LIBC
74275         is defined.
74276         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
74277         Remove unnecessary assertion and abort() call.
74278         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
74279         * m4/strptime.m4: Fix serial number comment.
74280         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
74281         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
74282         (Depends-on): Add time_r.
74283
74284 2007-01-29  Bruno Haible  <bruno@clisp.org>
74285
74286         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74287         strptime.
74288         * modules/strptime (Depends-on): Add stdbool.
74289         * lib/strptime.h: Include <time.h> always. Add comments.
74290
74291 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74292
74293         * modules/strptime: New file.
74294         * lib/strptime.h: New file.
74295         * lib/strptime.c: New file.
74296         * m4/strptime.m4: New file.
74297
74298 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74299
74300         * MODULES.html.sh: New module mpsort.
74301         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
74302
74303         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
74304         a circularity problem with HP-UX ia64 reported by Bob Proulx in
74305         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
74306         All uses changed.
74307         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
74308         All uses changed.
74309         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
74310         to _Restrict_.
74311         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
74312         the parameter matches the prototype.
74313
74314 2007-01-28  Jim Meyering  <jim@meyering.net>
74315
74316         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
74317         sys/time.h here, reverting that part of the previous patch:
74318         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
74319
74320 2007-01-28  Bruno Haible  <bruno@clisp.org>
74321
74322         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
74323         value of $(SYS_TIME_H).
74324         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
74325         remove it conditionally, too. [added by Jim Meyering]
74326         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
74327         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
74328         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
74329         GETTIMEOFDAY_REPLACEMENT to 1.
74330
74331 2007-01-28  Bruno Haible  <bruno@clisp.org>
74332
74333         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
74334         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
74335         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
74336         Set UNISTD_H instead of UNISTD_H2.
74337         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
74338
74339 2007-01-28  Bruno Haible  <bruno@clisp.org>
74340
74341         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
74342         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
74343
74344 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74345
74346         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
74347         (func_create_testdir): Ensure C locale for `grep' and `tr'
74348         character ranges.
74349         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
74350         ACLOCAL_AMFLAGS parsing state machine.
74351
74352 2007-01-27  Bruno Haible  <bruno@clisp.org>
74353
74354         * modules/unistr/base: Update.
74355
74356 2007-01-27  Bruno Haible  <bruno@clisp.org>
74357
74358         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
74359         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
74360         * modules/unistr/u32-mbtouc-unsafe: Renamed from
74361         modules/unistr/u32-mbtouc.
74362         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
74363         * lib/unistr.h: Update.
74364         * lib/linebreak.c: Update.
74365         * modules/unistr/u32-mbtouc: Renamed from
74366         modules/unistr/u32-mbtouc-safe.
74367         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
74368         * lib/unistr.h: Update.
74369         * lib/unistr/u32-to-u8.c: Update.
74370         * lib/unistr/u32-to-u16.c: Update.
74371
74372 2007-01-27  Bruno Haible  <bruno@clisp.org>
74373
74374         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
74375         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
74376         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
74377         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
74378         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
74379         * modules/unistr/u16-mbtouc-unsafe: Renamed from
74380         modules/unistr/u16-mbtouc.
74381         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
74382         * lib/unistr.h: Update.
74383         * lib/linebreak.c: Update.
74384         * modules/linebreak: Update.
74385         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
74386         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
74387         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
74388         * modules/unistr/u16-mbtouc: Renamed from
74389         modules/unistr/u16-mbtouc-safe.
74390         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
74391         * lib/unistr.h: Update.
74392         * lib/unistr/u16-to-u8.c: Update.
74393         * modules/unistr/u16-to-u8: Update.
74394         * lib/unistr/u16-to-u32.c: Update.
74395         * modules/unistr/u16-to-u32: Update.
74396
74397 2007-01-27  Bruno Haible  <bruno@clisp.org>
74398
74399         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
74400         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
74401         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
74402         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
74403         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
74404         * modules/unistr/u8-mbtouc-unsafe: Renamed from
74405         modules/unistr/u8-mbtouc.
74406         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
74407         * lib/unistr.h: Update.
74408         * lib/striconveh.c: Update.
74409         * modules/striconveh: Update.
74410         * lib/linebreak.c: Update.
74411         * modules/linebreak: Update.
74412         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
74413         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
74414         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
74415         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
74416         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
74417         * lib/unistr.h: Update.
74418         * lib/striconveh.c: Update.
74419         * modules/striconveh: Update.
74420         * lib/unistr/u8-to-u16.c: Update.
74421         * modules/unistr/u8-to-u16: Update.
74422         * lib/unistr/u8-to-u32.c: Update.
74423         * modules/unistr/u8-to-u32: Update.
74424
74425 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74426
74427         Sync from Libtool.
74428         * lib/argz.c: Do not include strings.h nor memory.h, include
74429         string.h unconditionally.  Patch by Simon Josefsson.
74430
74431 2007-01-27  Bruno Haible  <bruno@clisp.org>
74432
74433         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
74434         from gl_HEADER_STRING_H_BODY.
74435         (gl_HEADER_STRING_H_BODY): Require it.
74436         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
74437         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
74438         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
74439         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
74440         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
74441         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
74442         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
74443         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
74444         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
74445         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
74446         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
74447         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
74448         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
74449         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
74450         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
74451
74452 2007-01-27  Bruno Haible  <bruno@clisp.org>
74453
74454         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
74455         check_PROGRAMS into noinst_PROGRAMS.
74456         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
74457         check_PROGRAMS in this case.
74458         (func_import): Set for_test to false.
74459         (func_create_testdir): Set for_test to true.
74460
74461 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
74462             Bruno Haible  <bruno@clisp.org>
74463
74464         * modules/strcasestr (Files): Remove lib/strcasestr.h.
74465         (Depends-on): Add string.
74466         (Includes): Use <string.h> instead of strcasestr.h.
74467         * modules/string (Makefile.am): Also substitute the value of
74468         REPLACE_STRCASESTR.
74469         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
74470         assume strcasestr is declared in <string.h> not <strings.h>. Also
74471         set REPLACE_STRCASESTR.
74472         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
74473         REPLACE_STRCASESTR.
74474         * lib/strcasestr.h: Remove file.
74475         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
74476         * lib/string_.h (strcasestr): New declaration.
74477
74478 2007-01-27  Bruno Haible  <bruno@clisp.org>
74479
74480         * lib/string_.h: Use 'extern'.
74481
74482 2007-01-27  Jim Meyering  <jim@meyering.net>
74483
74484         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
74485         of set-but-not-used local, "q".
74486
74487         * lib/mempcpy.c: Include <config.h> before <string.h>.
74488         This fixes a compilation error on HP-UX, due to the system's
74489         "restrict"-using mempcpy prototype.
74490
74491 2007-01-26  Bruno Haible  <bruno@clisp.org>
74492
74493         Small optimization.
74494         * lib/javacomp.c: Include c-strstr.h.
74495          (is_envjavac_gcj): Use c_strstr instead of strstr.
74496         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
74497
74498 2007-01-26  Bruno Haible  <bruno@clisp.org>
74499
74500         * MODULES.html.sh (Unicode string functions): Add the new modules.
74501
74502         * modules/uniconv/u32-strconv-to-locale: New file.
74503         * lib/uniconv/u32-strconv-to-locale.c: New file.
74504
74505         * modules/uniconv/u16-strconv-to-locale: New file.
74506         * lib/uniconv/u16-strconv-to-locale.c: New file.
74507
74508         * modules/uniconv/u8-strconv-to-locale: New file.
74509         * lib/uniconv/u8-strconv-to-locale.c: New file.
74510
74511         * modules/uniconv/u32-strconv-from-locale: New file.
74512         * lib/uniconv/u32-strconv-from-locale.c: New file.
74513
74514         * modules/uniconv/u16-strconv-from-locale: New file.
74515         * lib/uniconv/u16-strconv-from-locale.c: New file.
74516
74517         * modules/uniconv/u8-strconv-from-locale: New file.
74518         * lib/uniconv/u8-strconv-from-locale.c: New file.
74519
74520         * modules/uniconv/u32-strconv-to-enc: New file.
74521         * lib/uniconv/u32-strconv-to-enc.c: New file.
74522         * modules/uniconv/u32-strconv-to-enc-tests: New file.
74523         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
74524
74525         * modules/uniconv/u16-strconv-to-enc: New file.
74526         * lib/uniconv/u16-strconv-to-enc.c: New file.
74527         * lib/uniconv/u-strconv-to-enc.h: New file.
74528         * modules/uniconv/u16-strconv-to-enc-tests: New file.
74529         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
74530
74531         * modules/uniconv/u8-strconv-to-enc: New file.
74532         * lib/uniconv/u8-strconv-to-enc.c: New file.
74533         * modules/uniconv/u8-strconv-to-enc-tests: New file.
74534         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
74535
74536         * modules/uniconv/u32-strconv-from-enc: New file.
74537         * lib/uniconv/u32-strconv-from-enc.c: New file.
74538         * modules/uniconv/u32-strconv-from-enc-tests: New file.
74539         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
74540
74541         * modules/uniconv/u16-strconv-from-enc: New file.
74542         * lib/uniconv/u16-strconv-from-enc.c: New file.
74543         * modules/uniconv/u16-strconv-from-enc-tests: New file.
74544         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
74545
74546         * modules/uniconv/u8-strconv-from-enc: New file.
74547         * lib/uniconv/u8-strconv-from-enc.c: New file.
74548         * lib/uniconv/u-strconv-from-enc.h: New file.
74549         * modules/uniconv/u8-strconv-from-enc-tests: New file.
74550         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
74551
74552         * modules/uniconv/u32-conv-from-enc: New file.
74553         * lib/uniconv/u32-conv-from-enc.c: New file.
74554         * modules/uniconv/u32-conv-from-enc-tests: New file.
74555         * tests/uniconv/test-u32-conv-from-enc.c: New file.
74556
74557         * modules/uniconv/u16-conv-from-enc: New file.
74558         * lib/uniconv/u16-conv-from-enc.c: New file.
74559         * lib/uniconv/u-conv-from-enc.h: New file.
74560         * modules/uniconv/u16-conv-from-enc-tests: New file.
74561         * tests/uniconv/test-u16-conv-from-enc.c: New file.
74562
74563         * modules/uniconv/u8-conv-from-enc: New file.
74564         * lib/uniconv/u8-conv-from-enc.c: New file.
74565         * modules/uniconv/u8-conv-from-enc-tests: New file.
74566         * tests/uniconv/test-u8-conv-from-enc.c: New file.
74567
74568         * modules/uniconv/base: New file.
74569         * lib/uniconv.h: New file.
74570
74571 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
74572
74573         * doc/gnulib-tool.texi (Initial import): Update to match current
74574         behavior with strdup module.
74575         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
74576         * lib/memmem.h: Remove; all uses removed.  This is now done
74577         by <string.h>.
74578         * lib/mempcpy.h: Likewise.
74579         * lib/memrchr.h: Likewise.
74580         * lib/stpcpy.h: Likewise.
74581         * lib/stpncpy.h: Likewise.
74582         * lib/strcase.h: Likewise.
74583         * lib/strchrnul.h: Likewise.
74584         * lib/strdup.h: Likewise.
74585         * lib/strndup.h: Likewise.
74586         * lib/strnlen.h: Likewise.
74587         * lib/strpbrk.h: Likewise.
74588         * lib/strsep.h: Likewise.
74589         * lib/strstr.h: Likewise.
74590         * lib/strtok_r.h: Likewise.
74591         * lib/string_.h: New file.
74592         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
74593         Rely on <string.h> instead.
74594         * lib/canon-host.c: Likewise.
74595         * lib/chdir-long.c: Likewise.
74596         * lib/concatpath.c: Likewise.
74597         * lib/exclude.c: Likewise.
74598         * lib/fchdir.c: Likewise.
74599         * lib/getaddrinfo.c: Likewise.
74600         * lib/getcwd.c: Likewise.
74601         * lib/getsubopt.c: Likewise.
74602         * lib/glob.c: Likewise.
74603         * lib/hard-locale.c: Likewise.
74604         * lib/iconvme.c: Likewise.
74605         * lib/javacomp.c: Likewise.
74606         * lib/mempcpy.c: Likewise.
74607         * lib/memrchr.c: Likewise.
74608         * lib/regex_internal.h: Likewise.
74609         * lib/stpncpy.c: Likewise.
74610         * lib/strcasecmp.c: Likewise.
74611         * lib/strchrnul.c: Likewise.
74612         * lib/strdup.c: Likewise.
74613         * lib/striconv.c: Likewise.
74614         * lib/striconveh.c: Likewise.
74615         * lib/striconveha.c: Likewise.
74616         * lib/strncasecmp.c: Likewise.
74617         * lib/strndup.c: Likewise.
74618         * lib/strnlen.c: Likewise.
74619         * lib/strsep.c: Likewise.
74620         * lib/strstr.c: Likewise.
74621         * lib/strtok_r.c: Likewise.
74622         * lib/userspec.c: Likewise.
74623         * lib/w32spawn.h: Likewise.
74624         * lib/xstrndup.c: Likewise.
74625         * lib/mountlist.c (strstr): Remove decl.
74626         * m4/string_h.m4: New file.
74627         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
74628         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
74629         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
74630         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
74631         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
74632         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
74633         Set REPLACE_STRCASECMP if necessary.
74634         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
74635         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
74636         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
74637         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
74638         HAVE_DECL_STRDUP if necessary.
74639         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
74640         since gl_FUNC_STRNDUP does that now.
74641         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
74642         Check for decl here...
74643         (gl_PREREQ_STRNLEN): ... not here.
74644         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
74645         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
74646         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
74647         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
74648         necessary.
74649         * modules/string: New file.
74650         * modules/memmem (Files): Remove special-purpose include file.
74651         (Depends-on): Add string.
74652         (Include): Include <string.h>, not the removed file.
74653         * modules/mempcpy: Likewise.
74654         * modules/memrchr: Likewise.
74655         * modules/stpcpy: Likewise.
74656         * modules/stpncpy: Likewise.
74657         * modules/strcase: Likewise.
74658         * modules/strchrnul: Likewise.
74659         * modules/strdup: Likewise.
74660         * modules/strndup: Likewise.
74661         * modules/strnlen: Likewise.
74662         * modules/strpbrk: Likewise.
74663         * modules/strsep: Likewise.
74664         * modules/strstr: Likewise.
74665         * modules/strtok_r: Likewise.
74666         * tests/test-dirname.c: Don't include "strdup.h", since
74667         <string.h> now suffices.
74668         * tests/test-memmem.c: Don't include "memmem.h", since
74669         <string.h> now suffices.
74670
74671 2007-01-25  Bruno Haible  <bruno@clisp.org>
74672
74673         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
74674         *resultp is 0.
74675
74676         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
74677         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
74678         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
74679         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
74680
74681         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
74682         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
74683         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
74684         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
74685         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
74686         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
74687
74688 2007-01-24  Bruno Haible  <bruno@clisp.org>
74689
74690         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
74691         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
74692         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
74693         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
74694         gl_FUNC_FTS_CORE.
74695         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
74696         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
74697         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
74698         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
74699         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
74700         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
74701         gl_FUNC_FCHOWNAT.
74702         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
74703         gl_FUNC_STRFTIME.
74704         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
74705         Reported by Ralf Wildenhues.
74706
74707 2007-01-24  Bruno Haible  <bruno@clisp.org>
74708
74709         Drop AC_REQUIRE calls that are redundant with the module dependencies.
74710         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
74711         gl_GETADDRINFO.
74712         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
74713         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
74714         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
74715
74716 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
74717
74718         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
74719         Don't use 'exit'; just return from 'main'.
74720         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
74721
74722         * lib/fnmatch_.h: Readjust white space and comments to match
74723         glibc, to avoid spurious diffs.
74724
74725 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74726
74727         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
74728         2004-12-01 change by Jakub Jelinek, since this code won't compile
74729         if !LIBC.  Problem reported by Bob Proulx.
74730
74731 2007-01-23  Bruno Haible  <bruno@clisp.org>
74732
74733         * lib/striconveh.c: Include c-strcaseeq.h.
74734         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
74735         * modules/striconveh (Depends-on): Add c-strcaseeq.
74736
74737 2007-01-23  Bruno Haible  <bruno@clisp.org>
74738
74739         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
74740
74741         * modules/c-strcaseeq: New file.
74742         * lib/c-strcaseeq.h: New file.
74743
74744         * modules/streq: New file.
74745         * lib/streq.h: New file.
74746
74747 2007-01-23  Bruno Haible  <bruno@clisp.org>
74748
74749         * modules/striconveha-tests: New file.
74750         * tests/test-striconveha.c: New file.
74751
74752         * lib/striconveha.h: Include <stdbool.h>.
74753         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
74754         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
74755         (mem_iconveha_notranslit): Renamed from mem_iconveha.
74756         (mem_iconveha): New function.
74757         (str_iconveha_notranslit): Renamed from str_iconveha.
74758         (str_iconveha): New function.
74759         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
74760         c-strcase.
74761
74762 2007-01-23  Bruno Haible  <bruno@clisp.org>
74763
74764         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
74765         encodings without forgiving before trying any encoding with handler.
74766         (str_iconveha): Try all encodings without forgiving before trying any
74767         encoding with handler.
74768
74769 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74770
74771         Import the following changes from libc.
74772
74773         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
74774
74775         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
74776
74777         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
74778
74779         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
74780         normal_bracket label.
74781
74782         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
74783
74784         [BZ #361]
74785         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
74786         to normal_bracket after fetching the next character.
74787
74788 2007-01-22  Bruno Haible  <bruno@clisp.org>
74789
74790         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
74791         argument.
74792         * lib/striconveh.c (iconv_carefully_1): New function.
74793         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
74794         argument.
74795         (str_cd_iconveh): Update.
74796         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
74797         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
74798         * tests/test-striconveh.c (MAGIC): New macro.
74799         (new_offsets): New function.
74800         (main): Test call with and without offsets.
74801
74802 2007-01-22  Bruno Haible  <bruno@clisp.org>
74803
74804         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
74805         * modules/sys_select (Makefile.am): Likewise.
74806         * modules/sys_socket (Makefile.am): Likewise.
74807         * modules/sys_time (Makefile.am): Likewise.
74808
74809 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
74810
74811         * modules/gettimeofday (License): Change from GPL to LGPL, since
74812         gettimeofday is a library function.
74813
74814 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74815
74816         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
74817
74818 2007-01-21  Bruno Haible  <bruno@clisp.org>
74819
74820         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
74821
74822 2007-01-21  Bruno Haible  <bruno@clisp.org>
74823
74824         * modules/striconveha: New file.
74825         * lib/striconveha.h: New file.
74826         * lib/striconveha.c: New file.
74827         * MODULES.html.sh (Internationalization functions): Add striconveha.
74828         * lib/striconv.c (str_iconv): Optimize the case of an empty input
74829         string.
74830         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
74831
74832 2007-01-21  Bruno Haible  <bruno@clisp.org>
74833
74834         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
74835         * lib/striconveh.c (str_iconveh): Likewise.
74836
74837 2007-01-21  Bruno Haible  <bruno@clisp.org>
74838
74839         * lib/striconveh.h (mem_iconveh): New declaration.
74840         * lib/striconveh.c (mem_iconveh): New function.
74841         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
74842
74843 2007-01-21  Bruno Haible  <bruno@clisp.org>
74844
74845         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
74846
74847         * lib/striconveh.h (mem_cd_iconveh): Change specification.
74848         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
74849         original result buffer.
74850         (str_cd_iconveh): Update.
74851         * tests/test-striconveh.c (main): Update.
74852
74853         * lib/striconv.h (mem_cd_iconv): Change specification.
74854         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
74855         result buffer.
74856         (str_cd_iconv): Update.
74857         * tests/test-striconv.c (main): Update.
74858
74859 2007-01-21  Bruno Haible  <bruno@clisp.org>
74860
74861         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
74862
74863 2007-01-20  Jim Meyering  <jim@meyering.net>
74864
74865         * lib/userspec.c (parse_with_separator): If a user or group string
74866         starts with "+", skip the corresponding name-to-ID look-up, since
74867         such a look-up must fail: user and group names may not include "+".
74868
74869 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
74870
74871         * lib/poll.c: Include sys/time.h and time.h unconditionally,
74872         since we now assume the sys_time module.
74873         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
74874         check for sys/time.h; no longer needed.
74875         * modules/poll (Depends-on): Depend on sys_time.
74876
74877 2007-01-18  Bruno Haible  <bruno@clisp.org>
74878
74879         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
74880         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
74881
74882         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
74883         gettimeofday.
74884
74885         * tests/test-gettimeofday.c: Include <time.h>.
74886         (dummy): Remove variable.
74887
74888         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
74889         gl_HEADER_SYS_TIME_H.
74890         (gl_HEADER_SYS_TIME_H): New macro.
74891
74892         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
74893         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74894         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
74895         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
74896         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74897         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
74898         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
74899         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74900         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
74901         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
74902         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74903
74904         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
74905         last change; it caused a compilation error when cross-compiling to
74906         Cygwin.
74907
74908 2007-01-18  Jim Meyering  <jim@meyering.net>
74909
74910         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
74911         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
74912         than the race-prone "test -d sys || mkdir sys".
74913         (configure.ac): Use AC_PROG_MKDIR_P.
74914         * modules/sys_select: Likewise.
74915         * modules/sys_socket: Likewise.
74916         * modules/sys_time: Likewise.
74917
74918 2007-01-18  Eric Blake  <ebb9@byu.net>
74919
74920         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
74921         replace gettimeofday.
74922         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
74923         name, to avoid infinite recursion.
74924
74925 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
74926
74927         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
74928         module sys_time.
74929         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
74930         assume timespec.h defines struct timeval.
74931         * lib/settime.c: Likewise.
74932         * lib/utimens.c: Likewise.
74933         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
74934         since we now assume the gettimeofday module.
74935         * lib/tempname.c (__gen_tempname): Likewise.
74936         * lib/gettimeofday.h: Remove.
74937         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
74938         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
74939         Include <time.h>, for 'time()'.
74940         (localtime_buffer_addr): Also use this workaround if
74941         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
74942         to simplify the uses.  All uses changed.
74943         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
74944         that #undef is inside {}, and 'const' follows type name consistently.
74945         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
74946         (gettimeofday): Do not use the maximum possible value for
74947         tv->tv_usec, since that might break usages other than ls.c.
74948         Instead, we'll leave ls.c alone.  This undoes today's patch
74949         by Bruno.  Add a compile-time warning for 1s-clock resolution;
74950         we've never observed the problem but might as well keep the
74951         canary.
74952         * lib/nanosleep.c: Include timespec.h first, for interface check.
74953         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
74954         now assume the sys_time module.
74955         * lib/tempname.c: Likewise.
74956         * lib/timespec.h: Likewise.
74957         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
74958         needed.
74959         * lib/strftime.c: Likewise.
74960         * lib/timespec.h: Likewise.
74961         * lib/posixtm.c: Include posixtm.h first, for interface check.
74962         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
74963         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
74964         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
74965         * lib/sys_time_.h: New file.
74966         * lib/timespec.h (struct timespec): Use long int, not long.
74967         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
74968         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
74969         Remove obsolescent call to AC_HEADER_TIME.
74970         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
74971         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
74972         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
74973         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
74974         Likewise.
74975         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
74976         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
74977         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
74978         into the sys_time module.  Check for gettimeofday just once.
74979         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
74980         for gettimeofday signature to just check the signature.  Merely
74981         compile it, since linking doesn't test signature.  Improve test for
74982         whether gettimeofday.o is actually needed.
74983         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
74984         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
74985         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
74986         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74987         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
74988         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
74989         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
74990         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
74991         than worrying about sys/time.h.
74992         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
74993         Don't bother worrying about TIME_WITH_SYS_TIME.
74994         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
74995         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
74996         * m4/sys_time_h.m4: New file.
74997         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
74998         Don't include sys/time.h.  Return from main rather than exiting.
74999         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
75000         all uses changed.
75001         * modules/gethrxtime (Depends-on): Add sys_time.
75002         * modules/gettime (Depends-on): Likewise.
75003         * modules/gettimeofday (Depends-on): Likewise.
75004         * modules/nanosleep (Depends-on): Likewise.
75005         * modules/settime (Depends-on): Likewise.
75006         * modules/tempname (Depends-on): Likewise.
75007         * modules/utimens (Depends-on): Likewise.
75008         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
75009         (Include): Change back to <sys/time.h>.
75010         (Maintainer): Add self.
75011         * modules/sys_time: New file.
75012         * modules/tempname (Depends-on): Add gettimeofday.
75013         * tests/test-gettimeofday.c: Include <sys/time.h>
75014         rather than gettimeofday.h.
75015
75016 2007-01-17  Bruno Haible  <bruno@clisp.org>
75017
75018         * gnulib-tool (func_get_license): Revert last patch. Instead, let
75019         the license default to GPL.
75020         (func_create_testdir): Don't complain if a module is LGPL and its
75021         tests module depends on GPLed modules.
75022
75023 2007-01-17  Bruno Haible  <bruno@clisp.org>
75024
75025         * lib/gettimeofday.c (gettimeofday): Add code for the case
75026         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
75027         maximum possible value for tv->tv_usec, rather than the minimum one.
75028
75029 2005-10-08  Martin Lambers  <marlam@marlam.de>
75030 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
75031 2007-01-16  Bruno Haible  <bruno@clisp.org>
75032
75033         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
75034         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
75035         gl_FUNC_GETTIMEOFDAY.
75036         (Include): Add gettimeofday.h.
75037         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
75038         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
75039         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
75040         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
75041         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
75042         * lib/gettimeofday.h: New file.
75043         * lib/gettimeofday.c: Include <sys/timeb.h>.
75044         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
75045         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75046         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
75047         fall back on time().
75048
75049         * tests/test-gettimeofday.c: New file.
75050         * modules/gettimeofday-tests: New file.
75051
75052 2007-01-16  Eric Blake  <ebb9@byu.net>
75053
75054         * modules/fnmatch (Depends-on): Depend on wchar.
75055         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
75056         * m4/fnmatch.m4: Likewise.
75057         * modules/mbchar (Makefile.am): Assume <wchar.h>.
75058         * m4/mbchar.m4: Likewise.
75059         * modules/mbswidth (Depends-on): Depend on wchar.
75060         * lib/mbswidth.c: Assume <wchar.h>.
75061         * m4/mbswidth.m4: Likewise.
75062         * modules/quotearg (Depends-on): Depend on wchar.
75063         * lib/quotearg.c: Assume <wchar.h>.
75064         * m4/quotearg.m4: Likewise.
75065         * modules/regex (Depends-on): Depend on wchar.
75066         * lib/regex_internal.h: Assume <wchar.h>.
75067         * m4/regex.m4: Likewise.
75068         * modules/stdint (Depends-on): Depend on wchar.
75069         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
75070         * m4/stdint.m4: Likewise.
75071         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
75072         * modules/strftime (Depends-on): Depend on wchar.
75073         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
75074         * modules/strtol (Depends-on): Depend on wchar.
75075         * lib/strtol.c: Assume <wchar.h>.
75076         * modules/wcwidth (Depends-on): Depend on wchar.
75077         * lib/wcwidth.h: Assume <wchar.h>.
75078         * m4/wcwidth.m4: Likewise.
75079
75080 2007-01-16  Bruno Haible  <bruno@clisp.org>
75081
75082         * modules/csharpexec-script: New, created from...
75083         * modules/csharpexec: ... this.
75084
75085 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
75086
75087         * modules/javaexec-script: New, created from...
75088         * modules/javaexec: ... this.
75089
75090 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75091
75092         * modules/poll (Dependencies): Add sys_select.
75093
75094 2007-01-15  Jim Meyering  <jim@meyering.net>
75095
75096         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
75097         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
75098         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
75099         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
75100
75101 2007-01-15  Bruno Haible  <bruno@clisp.org>
75102
75103         * modules/striconveh: New file.
75104         * lib/striconveh.h: New file.
75105         * lib/striconveh.c: New file.
75106         * MODULES.html.sh (Internationalization functions): Add striconveh.
75107
75108         * modules/striconveh-tests: New file.
75109         * tests/test-striconveh.c: New file.
75110
75111 2007-01-15  Bruno Haible  <bruno@clisp.org>
75112
75113         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
75114         not from GNU libiconv or GNU libc.
75115
75116 2007-01-15  Bruno Haible  <bruno@clisp.org>
75117
75118         * doc/gnulib-intro.texi (Copyright): Explain the different license
75119         terms for module descriptions, autoconf macros, tests, documentation.
75120
75121 2007-01-14  Bruno Haible  <bruno@clisp.org>
75122
75123         * modules/striconv-tests: New file.
75124         * tests/test-striconv.c: New file.
75125
75126 2007-01-14  Bruno Haible  <bruno@clisp.org>
75127
75128         * modules/iconv-tests: New file.
75129         * tests/test-iconv.c: New file.
75130
75131 2007-01-14  Bruno Haible  <bruno@clisp.org>
75132
75133         * gnulib-tool (func_get_license): For test modules, use the license of
75134         the main module.
75135
75136 2007-01-14  Bruno Haible  <bruno@clisp.org>
75137
75138         * modules/iconv (Include): Clarify that <iconv.h> can only be included
75139         if iconv is found to exist.
75140
75141 2007-01-14  Bruno Haible  <bruno@clisp.org>
75142
75143         * modules/c-ctype-tests: New file.
75144         * tests/test-c-ctype.c: New file.
75145
75146 2007-01-14  Bruno Haible  <bruno@clisp.org>
75147
75148         * modules/binary-io-tests: New file.
75149         * tests/test-binary-io.sh: New file.
75150         * tests/test-binary-io.c: New file.
75151
75152 2007-01-14  Bruno Haible  <bruno@clisp.org>
75153
75154         * modules/array-oset-tests: New file.
75155         * tests/test-array_oset.c: New file.
75156
75157 2007-01-14  Bruno Haible  <bruno@clisp.org>
75158
75159         * modules/array-list-tests: New file.
75160         * tests/test-array_list.c: New file.
75161
75162 2007-01-14  Bruno Haible  <bruno@clisp.org>
75163
75164         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
75165         and make.
75166         Reported by Simon Josefsson in
75167         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
75168
75169 2007-01-14  Bruno Haible  <bruno@clisp.org>
75170
75171         * modules/allocsa-tests: New file.
75172         * tests/test-allocsa.c: New file.
75173
75174 2007-01-14  Bruno Haible  <bruno@clisp.org>
75175
75176         * modules/fchdir (Depends-on): Add absolute-header.
75177         * modules/unistd (Depends-on): Likewise.
75178
75179 2006-12-30  Bruno Haible  <bruno@clisp.org>
75180
75181         * modules/fchdir: New file.
75182         * modules/unistd (Files): Add lib/unistd_.h.
75183         (Makefile.am): Generate unistd.h from unistd_.h.
75184         * lib/fchdir.c: New file.
75185         * lib/dirent_.h: New file.
75186         * lib/unistd_.h: New file.
75187         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
75188         * m4/fchdir.m4: New file.
75189         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
75190         (gl_HEADER_UNISTD): Invoke it.
75191         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
75192         function.
75193         * lib/backupfile.c (opendir, closedir): Undefine.
75194         * lib/chown.c (open, close): Undefine.
75195         * lib/clean-temp.c (open, close): Undefine.
75196         * lib/copy-file.c (open, close): Undefine.
75197         * lib/execute.c (open, close): Undefine.
75198         * lib/fsusage.c (open, close): Undefine.
75199         * lib/gc-gnulib.c (open, close): Undefine.
75200         * lib/getcwd.c (opendir, closedir): Undefine.
75201         * lib/glob.c (opendir, closedir): Undefine.
75202         * lib/javacomp.c (open, close): Undefine.
75203         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
75204         * lib/openat-proc.c (open, close): Undefine.
75205         * lib/pagealign_alloc.c (open, close): Undefine.
75206         * lib/pipe.c (open, close): Undefine.
75207         * lib/progreloc.c (open, close): Undefine.
75208         * lib/savedir.c (opendir, closedir): Undefine.
75209         * lib/utime.c (open, close): Undefine.
75210         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
75211
75212 2007-01-10  Bruno Haible  <bruno@clisp.org>
75213
75214         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
75215
75216 2007-01-12  Eric Blake  <ebb9@byu.net>
75217
75218         Provide a robust <wchar.h>.  Further simplifications are now
75219         possible in other modules, but not included here.
75220         * modules/wchar: New module.
75221         * m4/wchar.m4: New file.
75222         * lib/wchar_.h: Likewise.
75223         * modules/mbchar (Depends-on): Depend on wchar, as the first use
75224         of the new module.
75225         * MODULES.html.sh (Extended multibyte and wide character utilities):
75226         New section.
75227
75228 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
75229
75230         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
75231         to a reasonable default for memory allocation.
75232         (xreadlink): Don't allocate a huge buffer, to work around a buggy
75233         file system that reports garbage st_size values for symlinks.
75234         Problem reported by Liyang Hu.
75235
75236 2007-01-11  Simon Josefsson  <simon@josefsson.org>
75237
75238         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
75239         Emacs .#* auto-save files).
75240
75241 2007-01-11  Bruno Haible  <bruno@clisp.org>
75242
75243         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
75244         directory.
75245
75246 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
75247
75248         Use @...@ consistently in lib/wctype_.h.
75249         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
75250         on it being set to 1 or 0.
75251         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
75252         go back to AC_SUBSTing it.
75253         * modules/wctype (Makefile.am): Undo previous change.
75254
75255 2007-01-10  Eric Blake  <ebb9@byu.net>
75256
75257         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
75258         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
75259         * modules/wctype (Makefile.am): Likewise.
75260         Reported by Chris McGuire.
75261
75262 2007-01-10  Jim Meyering  <jim@meyering.net>
75263
75264         fts.c: a small readability/maintainability improvement
75265         * lib/fts.c (fts_read): Make this code slightly more readable and
75266         maintainable by hoisting the "sp->fts_cur = p" assignments to
75267         immediately follow the statements that set P.  Derived from
75268         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
75269
75270 2007-01-10  Eric Blake  <ebb9@byu.net>
75271
75272         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
75273         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
75274         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
75275         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
75276         Reported by Chris McGuire.
75277
75278 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75279
75280         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
75281         in sed script.
75282
75283 2007-01-09  Bruno Haible  <bruno@clisp.org>
75284
75285         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
75286         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
75287         variables.
75288         (func_module): Use them.
75289
75290 2007-01-09  Bruno Haible  <bruno@clisp.org>
75291
75292         * modules/unistr/base: New file.
75293         * lib/unistr.h: New file.
75294
75295         * modules/unistr/u8-to-u16: New file.
75296         * lib/unistr/u8-to-u16.c: New file.
75297
75298         * modules/unistr/u8-to-u32: New file.
75299         * lib/unistr/u8-to-u32.c: New file.
75300
75301         * modules/unistr/u16-to-u8: New file.
75302         * lib/unistr/u16-to-u8.c: New file.
75303
75304         * modules/unistr/u16-to-u32: New file.
75305         * lib/unistr/u16-to-u32.c: New file.
75306
75307         * modules/unistr/u32-to-u8: New file.
75308         * lib/unistr/u32-to-u8.c: New file.
75309
75310         * modules/unistr/u32-to-u16: New file.
75311         * lib/unistr/u32-to-u16.c: New file.
75312
75313         * modules/unistr/u8-check: New file.
75314         * modules/unistr/u16-check: New file.
75315         * modules/unistr/u32-check: New file.
75316         * lib/unistr/u8-check.c: New file.
75317         * lib/unistr/u16-check.c: New file.
75318         * lib/unistr/u32-check.c: New file.
75319
75320         * modules/unistr/u8-chr: New file.
75321         * modules/unistr/u16-chr: New file.
75322         * modules/unistr/u32-chr: New file.
75323         * lib/unistr/u8-chr.c: New file.
75324         * lib/unistr/u16-chr.c: New file.
75325         * lib/unistr/u32-chr.c: New file.
75326
75327         * modules/unistr/u8-cmp: New file.
75328         * modules/unistr/u16-cmp: New file.
75329         * modules/unistr/u32-cmp: New file.
75330         * lib/unistr/u8-cmp.c: New file.
75331         * lib/unistr/u16-cmp.c: New file.
75332         * lib/unistr/u32-cmp.c: New file.
75333
75334         * modules/unistr/u8-cpy: New file.
75335         * modules/unistr/u16-cpy: New file.
75336         * modules/unistr/u32-cpy: New file.
75337         * lib/unistr/u8-cpy.c: New file.
75338         * lib/unistr/u16-cpy.c: New file.
75339         * lib/unistr/u32-cpy.c: New file.
75340         * lib/unistr/u-cpy.h: New file.
75341
75342         * modules/unistr/u8-cpy-alloc: New file.
75343         * modules/unistr/u16-cpy-alloc: New file.
75344         * modules/unistr/u32-cpy-alloc: New file.
75345         * lib/unistr/u8-cpy-alloc.c: New file.
75346         * lib/unistr/u16-cpy-alloc.c: New file.
75347         * lib/unistr/u32-cpy-alloc.c: New file.
75348         * lib/unistr/u-cpy-alloc.h: New file.
75349
75350         * modules/unistr/u8-endswith: New file.
75351         * modules/unistr/u16-endswith: New file.
75352         * modules/unistr/u32-endswith: New file.
75353         * lib/unistr/u8-endswith.c: New file.
75354         * lib/unistr/u16-endswith.c: New file.
75355         * lib/unistr/u32-endswith.c: New file.
75356         * lib/unistr/u-endswith.h: New file.
75357
75358         * modules/unistr/u8-mblen: New file.
75359         * modules/unistr/u16-mblen: New file.
75360         * modules/unistr/u32-mblen: New file.
75361         * lib/unistr/u8-mblen.c: New file.
75362         * lib/unistr/u16-mblen.c: New file.
75363         * lib/unistr/u32-mblen.c: New file.
75364
75365         * modules/unistr/u8-mbtouc: New file.
75366         * modules/unistr/u16-mbtouc: New file.
75367         * modules/unistr/u32-mbtouc: New file.
75368         * lib/unistr/u8-mbtouc.c: New file.
75369         * lib/unistr/u16-mbtouc.c: New file.
75370         * lib/unistr/u32-mbtouc.c: New file.
75371
75372         * modules/unistr/u8-mbtouc-safe: New file.
75373         * modules/unistr/u16-mbtouc-safe: New file.
75374         * modules/unistr/u32-mbtouc-safe: New file.
75375         * lib/unistr/u8-mbtouc-safe.c: New file.
75376         * lib/unistr/u16-mbtouc-safe.c: New file.
75377         * lib/unistr/u32-mbtouc-safe.c: New file.
75378
75379         * modules/unistr/u8-move: New file.
75380         * modules/unistr/u16-move: New file.
75381         * modules/unistr/u32-move: New file.
75382         * lib/unistr/u8-move.c: New file.
75383         * lib/unistr/u16-move.c: New file.
75384         * lib/unistr/u32-move.c: New file.
75385         * lib/unistr/u-move.h: New file.
75386
75387         * modules/unistr/u8-next: New file.
75388         * modules/unistr/u16-next: New file.
75389         * modules/unistr/u32-next: New file.
75390         * lib/unistr/u8-next.c: New file.
75391         * lib/unistr/u16-next.c: New file.
75392         * lib/unistr/u32-next.c: New file.
75393
75394         * modules/unistr/u8-prev: New file.
75395         * modules/unistr/u16-prev: New file.
75396         * modules/unistr/u32-prev: New file.
75397         * lib/unistr/u8-prev.c: New file.
75398         * lib/unistr/u16-prev.c: New file.
75399         * lib/unistr/u32-prev.c: New file.
75400
75401         * modules/unistr/u8-set: New file.
75402         * modules/unistr/u16-set: New file.
75403         * modules/unistr/u32-set: New file.
75404         * lib/unistr/u8-set.c: New file.
75405         * lib/unistr/u16-set.c: New file.
75406         * lib/unistr/u32-set.c: New file.
75407         * lib/unistr/u-set.h: New file.
75408
75409         * modules/unistr/u8-startswith: New file.
75410         * modules/unistr/u16-startswith: New file.
75411         * modules/unistr/u32-startswith: New file.
75412         * lib/unistr/u8-startswith.c: New file.
75413         * lib/unistr/u16-startswith.c: New file.
75414         * lib/unistr/u32-startswith.c: New file.
75415         * lib/unistr/u-startswith.h: New file.
75416
75417         * modules/unistr/u8-stpcpy: New file.
75418         * modules/unistr/u16-stpcpy: New file.
75419         * modules/unistr/u32-stpcpy: New file.
75420         * lib/unistr/u8-stpcpy.c: New file.
75421         * lib/unistr/u16-stpcpy.c: New file.
75422         * lib/unistr/u32-stpcpy.c: New file.
75423         * lib/unistr/u-stpcpy.h: New file.
75424
75425         * modules/unistr/u8-stpncpy: New file.
75426         * modules/unistr/u16-stpncpy: New file.
75427         * modules/unistr/u32-stpncpy: New file.
75428         * lib/unistr/u8-stpncpy.c: New file.
75429         * lib/unistr/u16-stpncpy.c: New file.
75430         * lib/unistr/u32-stpncpy.c: New file.
75431         * lib/unistr/u-stpncpy.h: New file.
75432
75433         * modules/unistr/u8-strcat: New file.
75434         * modules/unistr/u16-strcat: New file.
75435         * modules/unistr/u32-strcat: New file.
75436         * lib/unistr/u8-strcat.c: New file.
75437         * lib/unistr/u16-strcat.c: New file.
75438         * lib/unistr/u32-strcat.c: New file.
75439         * lib/unistr/u-strcat.h: New file.
75440
75441         * modules/unistr/u8-strchr: New file.
75442         * modules/unistr/u16-strchr: New file.
75443         * modules/unistr/u32-strchr: New file.
75444         * lib/unistr/u8-strchr.c: New file.
75445         * lib/unistr/u16-strchr.c: New file.
75446         * lib/unistr/u32-strchr.c: New file.
75447
75448         * modules/unistr/u8-strcmp: New file.
75449         * modules/unistr/u16-strcmp: New file.
75450         * modules/unistr/u32-strcmp: New file.
75451         * lib/unistr/u8-strcmp.c: New file.
75452         * lib/unistr/u16-strcmp.c: New file.
75453         * lib/unistr/u32-strcmp.c: New file.
75454
75455         * modules/unistr/u8-strcpy: New file.
75456         * modules/unistr/u16-strcpy: New file.
75457         * modules/unistr/u32-strcpy: New file.
75458         * lib/unistr/u8-strcpy.c: New file.
75459         * lib/unistr/u16-strcpy.c: New file.
75460         * lib/unistr/u32-strcpy.c: New file.
75461         * lib/unistr/u-strcpy.h: New file.
75462
75463         * modules/unistr/u8-strcspn: New file.
75464         * modules/unistr/u16-strcspn: New file.
75465         * modules/unistr/u32-strcspn: New file.
75466         * lib/unistr/u8-strcspn.c: New file.
75467         * lib/unistr/u16-strcspn.c: New file.
75468         * lib/unistr/u32-strcspn.c: New file.
75469         * lib/unistr/u-strcspn.h: New file.
75470
75471         * modules/unistr/u8-strdup: New file.
75472         * modules/unistr/u16-strdup: New file.
75473         * modules/unistr/u32-strdup: New file.
75474         * lib/unistr/u8-strdup.c: New file.
75475         * lib/unistr/u16-strdup.c: New file.
75476         * lib/unistr/u32-strdup.c: New file.
75477         * lib/unistr/u-strdup.h: New file.
75478
75479         * modules/unistr/u8-strlen: New file.
75480         * modules/unistr/u16-strlen: New file.
75481         * modules/unistr/u32-strlen: New file.
75482         * lib/unistr/u8-strlen.c: New file.
75483         * lib/unistr/u16-strlen.c: New file.
75484         * lib/unistr/u32-strlen.c: New file.
75485         * lib/unistr/u-strlen.h: New file.
75486
75487         * modules/unistr/u8-strmblen: New file.
75488         * modules/unistr/u16-strmblen: New file.
75489         * modules/unistr/u32-strmblen: New file.
75490         * lib/unistr/u8-strmblen.c: New file.
75491         * lib/unistr/u16-strmblen.c: New file.
75492         * lib/unistr/u32-strmblen.c: New file.
75493
75494         * modules/unistr/u8-strmbtouc: New file.
75495         * modules/unistr/u16-strmbtouc: New file.
75496         * modules/unistr/u32-strmbtouc: New file.
75497         * lib/unistr/u8-strmbtouc.c: New file.
75498         * lib/unistr/u16-strmbtouc.c: New file.
75499         * lib/unistr/u32-strmbtouc.c: New file.
75500
75501         * modules/unistr/u8-strncat: New file.
75502         * modules/unistr/u16-strncat: New file.
75503         * modules/unistr/u32-strncat: New file.
75504         * lib/unistr/u8-strncat.c: New file.
75505         * lib/unistr/u16-strncat.c: New file.
75506         * lib/unistr/u32-strncat.c: New file.
75507         * lib/unistr/u-strncat.h: New file.
75508
75509         * modules/unistr/u8-strncmp: New file.
75510         * modules/unistr/u16-strncmp: New file.
75511         * modules/unistr/u32-strncmp: New file.
75512         * lib/unistr/u8-strncmp.c: New file.
75513         * lib/unistr/u16-strncmp.c: New file.
75514         * lib/unistr/u32-strncmp.c: New file.
75515
75516         * modules/unistr/u8-strncpy: New file.
75517         * modules/unistr/u16-strncpy: New file.
75518         * modules/unistr/u32-strncpy: New file.
75519         * lib/unistr/u8-strncpy.c: New file.
75520         * lib/unistr/u16-strncpy.c: New file.
75521         * lib/unistr/u32-strncpy.c: New file.
75522         * lib/unistr/u-strncpy.h: New file.
75523
75524         * modules/unistr/u8-strnlen: New file.
75525         * modules/unistr/u16-strnlen: New file.
75526         * modules/unistr/u32-strnlen: New file.
75527         * lib/unistr/u8-strnlen.c: New file.
75528         * lib/unistr/u16-strnlen.c: New file.
75529         * lib/unistr/u32-strnlen.c: New file.
75530         * lib/unistr/u-strnlen.h: New file.
75531
75532         * modules/unistr/u8-strpbrk: New file.
75533         * modules/unistr/u16-strpbrk: New file.
75534         * modules/unistr/u32-strpbrk: New file.
75535         * lib/unistr/u8-strpbrk.c: New file.
75536         * lib/unistr/u16-strpbrk.c: New file.
75537         * lib/unistr/u32-strpbrk.c: New file.
75538         * lib/unistr/u-strpbrk.h: New file.
75539
75540         * modules/unistr/u8-strrchr: New file.
75541         * modules/unistr/u16-strrchr: New file.
75542         * modules/unistr/u32-strrchr: New file.
75543         * lib/unistr/u8-strrchr.c: New file.
75544         * lib/unistr/u16-strrchr.c: New file.
75545         * lib/unistr/u32-strrchr.c: New file.
75546
75547         * modules/unistr/u8-strspn: New file.
75548         * modules/unistr/u16-strspn: New file.
75549         * modules/unistr/u32-strspn: New file.
75550         * lib/unistr/u8-strspn.c: New file.
75551         * lib/unistr/u16-strspn.c: New file.
75552         * lib/unistr/u32-strspn.c: New file.
75553         * lib/unistr/u-strspn.h: New file.
75554
75555         * modules/unistr/u8-strstr: New file.
75556         * modules/unistr/u16-strstr: New file.
75557         * modules/unistr/u32-strstr: New file.
75558         * lib/unistr/u8-strstr.c: New file.
75559         * lib/unistr/u16-strstr.c: New file.
75560         * lib/unistr/u32-strstr.c: New file.
75561         * lib/unistr/u-strstr.h: New file.
75562
75563         * modules/unistr/u8-strtok: New file.
75564         * modules/unistr/u16-strtok: New file.
75565         * modules/unistr/u32-strtok: New file.
75566         * lib/unistr/u8-strtok.c: New file.
75567         * lib/unistr/u16-strtok.c: New file.
75568         * lib/unistr/u32-strtok.c: New file.
75569         * lib/unistr/u-strtok.h: New file.
75570
75571         * modules/unistr/u8-uctomb: New file.
75572         * modules/unistr/u16-uctomb: New file.
75573         * modules/unistr/u32-uctomb: New file.
75574         * lib/unistr/u8-uctomb.c: New file.
75575         * lib/unistr/u16-uctomb.c: New file.
75576         * lib/unistr/u32-uctomb.c: New file.
75577
75578         * MODULES.html.sh (Unicode string functions): Add the new modules.
75579
75580 2007-01-08  Bruno Haible  <bruno@clisp.org>
75581
75582         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
75583         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
75584         subdirectories.
75585
75586 2007-01-08  Karl Berry  <karl@gnu.org>
75587
75588         * doc/error.texi: mention that main() fns must set program_name
75589         when progname is used.
75590
75591 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
75592
75593         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
75594         WCTYPE_H is empty, for the benefit of builds from non-distclean
75595         directories.  Problem reported by Eric Blake in
75596         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
75597
75598 2007-01-08  Bruno Haible  <bruno@clisp.org>
75599
75600         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
75601         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
75602         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
75603         PROVIDE_CANONICALIZE_FILENAME_MODE.
75604         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
75605
75606 2007-01-08  Bruno Haible  <bruno@clisp.org>
75607
75608         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
75609         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
75610         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
75611         * lib/fts.c: Likewise.
75612         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
75613
75614 2006-12-25  Bruno Haible  <bruno@clisp.org>
75615
75616         * modules/utf8-ucs4-safe: New file.
75617         * lib/utf8-ucs4-safe.h: New file.
75618         * lib/unistr/utf8-ucs4-safe.c: New file.
75619
75620         * modules/utf16-ucs4-safe: New file.
75621         * lib/utf16-ucs4-safe.h: New file.
75622         * lib/unistr/utf16-ucs4-safe.c: New file.
75623
75624         * MODULES.html.sh (Unicode string functions): Add the new modules.
75625
75626 2007-01-08  Bruno Haible  <bruno@clisp.org>
75627
75628         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
75629         (Depends-on): Add unitypes.
75630         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
75631         (u8_mbtouc_aux): Move out to separate file.
75632         (u8_mbtouc): Use ucs4_t, uint8_t types.
75633         * lib/unistr/utf8-ucs4.c: New file.
75634
75635         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
75636         (Depends-on): Add unitypes.
75637         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
75638         (u16_mbtouc_aux): Move out to separate file.
75639         (u16_mbtouc): Use ucs4_t, uint16_t types.
75640         * lib/unistr/utf16-ucs4.c: New file.
75641
75642         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
75643         (Depends-on): Add unitypes.
75644         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
75645         (u8_uctomb_aux): Move out to separate file.
75646         (u8_uctomb): Use ucs4_t, uint8_t types.
75647         * lib/unistr/ucs4-utf8.c: New file.
75648
75649         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
75650         (Depends-on): Add unitypes.
75651         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
75652         (u16_uctomb_aux): Move out to separate file.
75653         (u16_uctomb): Use ucs4_t, uint16_t types.
75654         * lib/unistr/ucs4-utf16.c: New file.
75655
75656 2006-12-25  Bruno Haible  <bruno@clisp.org>
75657
75658         * modules/unitypes: New file.
75659         * lib/unitypes.h: New file.
75660         * MODULES.html.sh (func_all_modules): New section "Unicode string
75661         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
75662         this section. Add unitypes.
75663
75664 2007-01-08  Bruno Haible  <bruno@clisp.org>
75665
75666         Avoid variable names that conflict with those from libtool.
75667         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
75668         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
75669         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
75670         library_names_spec to acl_library_names_spec, hardcode_* to
75671         acl_hardcode_*.
75672         Reported by Ralf Wildenhues.
75673
75674 2007-01-08  Bruno Haible  <bruno@clisp.org>
75675
75676         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
75677         definition.
75678         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
75679         definition.
75680         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
75681         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
75682         definition.
75683         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
75684         definition.
75685         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
75686         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
75687         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
75688         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
75689         definition.
75690         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
75691         definition.
75692         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
75693         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
75694         GC_USE_<algorithm>.
75695         * lib/gc-libgcrypt.c: Likewise.
75696         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
75697         * modules/gc-arctwo (configure.ac): Likewise.
75698         * modules/gc-des (configure.ac): Likewise.
75699         * modules/gc-hmac-md5 (configure.ac): Likewise.
75700         * modules/gc-hmac-sha1 (configure.ac): Likewise.
75701         * modules/gc-md2 (configure.ac): Likewise.
75702         * modules/gc-md4 (configure.ac): Likewise.
75703         * modules/gc-md5 (configure.ac): Likewise.
75704         * modules/gc-random (configure.ac): Likewise.
75705         * modules/gc-rijndael (configure.ac): Likewise.
75706         * modules/gc-sha1 (configure.ac): Likewise.
75707
75708 2007-01-08  Bruno Haible  <bruno@clisp.org>
75709
75710         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
75711         macro definition.
75712         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
75713         definition.
75714         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
75715         definition.
75716         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
75717         * modules/fcntl-safer (configure.ac): Likewise.
75718         * modules/fopen-safer (configure.ac): Likewise.
75719         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
75720         GNULIB_FWRITEERROR macro definition.
75721
75722 2007-01-08  Bruno Haible  <bruno@clisp.org>
75723
75724         * m4/gnulib-common.m4: New file.
75725         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
75726         (func_get_filelist): Add m4/gnulib-common.m4.
75727
75728 2007-01-08  Bruno Haible  <bruno@clisp.org>
75729
75730         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
75731         command.
75732
75733 2007-01-08  Jim Meyering  <jim@meyering.net>
75734
75735         Use a more robust test for a "can't happen" condition.
75736         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
75737         narrowed the st_size value.  Presuming the "can't happen" condition
75738         is true, that narrowing could conceivably convert an invalid st_size
75739         value into a valid one.  Instead, use a change based on Matthew
75740         Woehlke's original patch.
75741
75742         Slight readability improvement: use an assert-like macro
75743         in place of literal "abort ()" uses.
75744         * lib/fts.c (fts_assert): Define.
75745         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
75746         Use this macro instead of a bare 'abort'.
75747
75748 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
75749
75750         Don't worry about using IRIX 5.3's wctype.h broken definitions;
75751         simply work around them.
75752         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
75753         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
75754         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
75755         declaring.
75756         Don't bother to define as macros, since the standard doesn't require it.
75757         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
75758         longer worry about IRIX 5.3.
75759         (HAVE_WCTYPE_CTMP_BUG): Remove.
75760
75761 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
75762
75763         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
75764         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
75765         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
75766         Problems reported by Georg Schwarz for IRIX 5.3.
75767
75768         * gnulib-tool (autoconf_minversion): Take the maximum version number
75769         found, not the minimum.  Problem reported by James Youngman.
75770
75771 2007-01-03  Karl Berry  <karl@gnu.org>
75772
75773         * doc/error.texi: new file, explaining interaction with progname.
75774         * doc/gnulib.texi: include it.  Update copyright.
75775
75776 2007-01-03  Simon Josefsson  <simon@josefsson.org>
75777
75778         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
75779         AC_CANONICAL_HOST, to improve autobuild outputs.
75780
75781 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
75782             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
75783
75784         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
75785         sockets, server sockets, and other file descriptors.  Count errors
75786         to compute the return value.  Reorder the code a bit to be easier
75787         to follow.  Don't set event bits that were not requested (except
75788         POLLERR and POLLHUP).
75789
75790 2007-01-01  Bruno Haible  <bruno@clisp.org>
75791
75792         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
75793
75794 2007-01-03  Jim Meyering  <jim@meyering.net>
75795
75796         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
75797
75798 2007-01-02  Bruno Haible  <bruno@clisp.org>
75799
75800         * modules/settime (Include): Require timespec.h.
75801         * modules/nanosleep (Include): Likewise.
75802
75803 2007-01-01  Bruno Haible  <bruno@clisp.org>
75804
75805         * gnulib-tool (func_emit_copyright_notice): Bump year.
75806         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
75807
75808 2007-01-01  Bruno Haible  <bruno@clisp.org>
75809
75810         Improve support for OpenBSD.
75811         * build-aux/config.rpath (libname_spec): Export.
75812         (library_names_spec): New variable. Export.
75813         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
75814         library_names_spec from the config.rpath output. Locate shared library
75815         through the name pattern in library_names_spec.
75816
75817 2007-01-01  Eric Blake  <ebb9@byu.net>
75818
75819         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
75820
75821 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
75822
75823         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
75824         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
75825         assume the C locale, and avoid an "eval" that could cause trouble.
75826         Problem with SORT reported by Bob Proulx.
75827
75828         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
75829         Define.  Trivial patch from Henning Nielsen Lund, originally
75830         sent to bug-grep@gnu.org today.
75831
75832 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
75833
75834         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
75835         struct stat.  Problem reported by Henning Nielsen Lund.
75836         * lib/acl.c: Include acl.h first, to check interface.  Don't
75837         bother to include sys/types.h and sys/stat.h again.
75838
75839 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
75840
75841         Import the following change from libc; problem reported by
75842         Sven Verdoolaege.
75843
75844         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
75845
75846         [BZ #1373]
75847         * lib/argp.h: Remove __NTH for __argp_usage inline function.
75848
75849 2006-12-28  Jim Meyering  <jim@meyering.net>
75850
75851         * build-aux/announce-gen: Do not assume that the package
75852         builds any of tar.gz, tar.bz2, and .xdelta files.
75853         Suggestion from Simon Josefsson.
75854
75855 2006-12-28  Simon Josefsson  <simon@josefsson.org>
75856
75857         * modules/announce-gen: New file.
75858
75859 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
75860
75861         * lib/mbchar.h: Just include <wctype.h>; the wctype module
75862         handles its gotchas now.
75863         * lib/mbswidth.c: Likewise.
75864         * lib/wcwidth.h: Likewise.
75865         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
75866         and iswcntrl; the wctype module does this stuff now.
75867         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
75868         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
75869         * modules/mbchar (Depends-on): Add wctype.
75870         * modules/mbswidth (Depends-on): Likewise.
75871         * modules/wcwidth (Depends-on): Likewise.
75872
75873 2006-12-27  Eric Blake  <ebb9@byu.net>
75874
75875         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
75876         module uses more than what <wctype.h> is required to provide.
75877
75878 2006-12-26  Eric Blake  <ebb9@byu.net>
75879
75880         * gnulib-tool (sed_extract_prog): Avoid space-tab.
75881
75882 2006-12-26  Eric Blake  <ebb9@byu.net>
75883
75884         * modules/absolute-header: New module.
75885         * modules/fcntl (Depends-on): Depend on it.
75886         * modules/inttypes (Depends-on): Likewise.
75887         * modules/stdint (Depends-on): Likewise.
75888         * modules/sys_stat (Depends-on): Likewise.
75889         * modules/wctype (Depends-on): Likewise.
75890         * MODULES.html.sh (Support for building libraries and
75891         executables): Document it.
75892
75893 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
75894
75895         * gnulib-tool (SED): Remove, undoing previous change.
75896         The problem was that it broke coreutils on Solaris, because
75897         "sed --posix" leaked into a makefile.
75898         (sed): New alias, if 'alias' and GNU sed.
75899
75900 2006-12-24  Jim Meyering  <jim@meyering.net>
75901
75902         Work around an fchownat bug in glibc-2.4:
75903         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
75904         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
75905         in spite of the -P option.
75906         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
75907         New macros.
75908         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
75909         * modules/openat (Files): Add lib/fchownat.c.
75910         * lib/openat.c (fchownat): Don't define here.  Move to...
75911         * lib/fchownat.c: ...this new file.
75912
75913 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75914
75915         Fix bug reported by Bruno Haible in
75916         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
75917         where quotearg.c didn't compile on Mac OS X 10.2 because it
75918         lacks <wchar.h> and wint_t.
75919         * lib/wctype_.h (__wctype_wint_t): New type.
75920         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
75921         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
75922         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
75923         Arg is now of type __wctype_wint_t, not wint_t.
75924         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
75925         substitute HAVE_WINT_T.
75926         * modules/wctype (Files): Add m4/wint_t.m4.
75927         (wctype.h): Substitute HAVE_WINT_T.
75928
75929 2006-12-23  Bruno Haible  <bruno@clisp.org>
75930
75931         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
75932
75933 2006-12-23  Bruno Haible  <bruno@clisp.org>
75934
75935         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
75936         S_ISLNK.
75937         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
75938         mingw.
75939
75940 2006-12-22  Bruno Haible  <bruno@clisp.org>
75941
75942         * lib/copy-file.c: Include acl.h.
75943         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
75944         Close the file descriptors only after being done with copy_acl.
75945         * modules/copy-file (Depends-on): Add acl.
75946
75947 2006-12-22  Bruno Haible  <bruno@clisp.org>
75948
75949         * gnulib-tool (SED): New variable.
75950         Use $SED instead of sed everywhere.
75951
75952 2006-12-22  Bruno Haible  <bruno@clisp.org>
75953
75954         * modules/no-c++: New file.
75955         * m4/no-c++.m4: New file.
75956         * MODULES.html.sh (Support for building libraries and executables):
75957         Add no-c++.
75958
75959 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
75960
75961         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
75962         Include <limits.h>, and use its INT_MAX to rewrite the
75963         j loop so that it does not overflow 'int'.  Problem reported by
75964         Ralf Wildenhues in
75965         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
75966         Play it safe by shifting left by 1 rather than multiplying by 2,
75967         as GCC is less likely to optimize this away when the value
75968         is signed (when it assumes overflow leads to undefined behavior).
75969         Also, don't assume time_t uses two's complement.
75970
75971 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
75972
75973         * MODULES.html.sh: New module wctype.
75974         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
75975         * lib/fnmatch.c: Don't bother to include <wchar.h> before
75976         <wctype.h>, since the new wctype module should fix this.
75977         * lib/quotearg.c: Include <wctype.h> unconditionally, since
75978         the wctype module should arrange for it.
75979         * lib/regex_internal.h: Likewise.
75980         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
75981         since the wctype module should handle this now.
75982         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
75983         * modules/fnmatch (Depends-on): Add wctype.
75984         * modules/quotearg (Depends-on): Likewise.
75985         * modules/regex (Depends-on): Likewise.
75986
75987 2006-12-19  Bruno Haible  <bruno@clisp.org>
75988
75989         * lib/strdup.h [C++]: Wrap definitions in extern "C".
75990         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
75991
75992 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75993
75994         * modules/savewd (Depends-on): Fix dependency on fcntl.
75995
75996 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
75997
75998         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
75999         conforms to C99, rather than relying on the user's environment
76000         setting of STDINT_H.
76001
76002 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
76003         and Eric Blake  <ebb9@byu.net>
76004
76005         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
76006         This is more consistent with the other defines here.
76007         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
76008         Port to z/OS.  Problem reported by Paul Gilmartin.
76009         Change local vars to use gl_ prefix rather than ac_.
76010         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
76011         with other defines.
76012         * modules/double-slash-root: New module.
76013         * modules/dirname (Files): Remove m4/double-slash-root.m4.
76014         (Depends-on): Add double-slash-root.
76015         * MODULES.html.sh (File system functions): Mention new module.
76016
76017 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
76018
76019         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
76020         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
76021         This is for the benefit of gzip, which doesn't do i18n.
76022
76023 2006-12-12  Jim Meyering  <jim@meyering.net>
76024
76025         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
76026         Reported by Andreas Schwab <schwab@suse.de>.
76027
76028 2006-12-12  Bruno Haible  <bruno@clisp.org>
76029
76030         Merge these changes.
76031         2006-09-05  Bruno Haible  <bruno@clisp.org>
76032         * lib/iconvme.c (iconv_string): No need to save and restore errno when
76033         iconv_alloc succeeded.
76034         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
76035         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
76036         test for " && dest " at the end - dest is always != NULL there. Call
76037         iconv with 4xNULL arguments initially, to reset the state. Call iconv
76038         with 2xNULL arguments, also to flush the state storage. Handle the
76039         IRIX iconv behaviour. Realloc the final result, to throw away unused
76040         memory.
76041
76042 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
76043
76044         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
76045         and fchmodat unconditionally, since glibc 2.4 has them.
76046         Problem reported by Arkadiusz Miskiewicz.
76047
76048 2006-12-10  Bruno Haible  <bruno@clisp.org>
76049
76050         * gnulib-tool (func_import): Show the include files only for those
76051         modules that are copied and specified.
76052         Reported by Karl Berry.
76053
76054 2006-12-08  Jim Meyering  <jim@meyering.net>
76055
76056         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
76057         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
76058
76059         * build-aux/announce-gen: Add two new options, both optional:
76060         --bootstrap-tools=TOOL_LIST
76061               a comma-separated list of tools, e.g.,
76062               autoconf,automake,bison,gnulib
76063         --gnulib-snapshot-date=DATE
76064               if gnulib is in the bootstrap tool list,
76065               then report this as the snapshot date.
76066               If not specified, use the current date/time.
76067               If you specify a date here, be sure it's UTC.
76068
76069 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76070
76071         * tests/test-argp-2.sh: Fix test to match actual output.
76072         (func_compare): Fix sed script to be portable.
76073
76074 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
76075
76076         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
76077         workaround for this case.  It is not autoconfigured now; offhand
76078         it's hard to see how to autoconfigure it.
76079
76080 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
76081
76082         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
76083         a directory that is about to be chowned.  Such a directory's
76084         initial file permissions should permit the owner only and this
76085         should not be changed until after the chown, since the group and
76086         other bits would be incorrect if they granted permission before
76087         the chown.
76088
76089         Fix porting problem for iswctype reported by Georg Schwarz in:
76090         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
76091         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
76092         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
76093         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
76094         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
76095
76096 2006-12-03  Jim Meyering  <jim@meyering.net>
76097
76098         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
76099         p->fts_statp may not yet be defined.
76100         (fts_read): Instead, set it in the caller, once p->fts_statp is
76101         sure to be defined, and corresponds to a top-level directory.
76102         This bug made du -x fail.  Here's the coreutils test case:
76103         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
76104         Reported by Mike Frysinger.
76105
76106 2006-12-01  Jim Meyering  <jim@meyering.net>
76107
76108         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
76109         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
76110         Reported by Simon Josefsson.
76111
76112 2006-11-30  Jim Meyering  <jim@meyering.net>
76113
76114         * m4/warning.m4: Use the all-permissive copyright notice
76115         recommended by RMS (rather than LGPL).
76116         * m4/vararrays.m4: Likewise.
76117         * m4/flexmember.m4: Likewise.
76118
76119 2006-11-29  Bruno Haible  <bruno@clisp.org>
76120
76121         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
76122         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
76123         using +=.
76124         Reported by Simon Josefsson <simon@josefsson.org>.
76125
76126 2006-11-28  James Youngman <jay@gnu.org>
76127
76128         * README: Advise users that they might find the bug-gnulib@gnu.org
76129         and autotools-announce@gnu.org mailing lists useful.
76130
76131 2006-11-28  Bruno Haible  <bruno@clisp.org>
76132
76133         * m4/ptrdiff_max.m4: Remove file.
76134
76135 2006-11-21  Bruno Haible  <bruno@clisp.org>
76136
76137         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
76138         _AC_COMPUTE_INT.
76139         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76140         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
76141         _AC_COMPUTE_INT.
76142         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76143         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
76144         _AC_COMPUTE_INT.
76145         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76146
76147 2006-11-28  Jim Meyering  <jim@meyering.net>
76148
76149         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
76150         warning from "gcc -Wshadow" about shadowing the builtin.
76151
76152 2006-11-27  Bruno Haible  <bruno@clisp.org>
76153
76154         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
76155         _AC_COMPUTE_INT.
76156         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76157
76158 2006-11-27  Bruno Haible  <bruno@clisp.org>
76159             Paul Eggert  <eggert@cs.ucla.edu>
76160
76161         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
76162
76163 2006-11-26  Bruno Haible  <bruno@clisp.org>
76164
76165         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
76166         noinst_LTLIBRARIES.
76167
76168 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
76169             Bruno Haible  <bruno@clisp.org>
76170
76171         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
76172         if compiling with "gcc -ansi".
76173
76174 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
76175
76176         Fix some incompatibilities with gcc -ansi -pedantic.
76177         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
76178         if compiling pedantically with GCC, unless it's C99 or later.
76179         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
76180         it mishandles gcc -ansi -pedantic as well.
76181         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
76182         if gcc -pedantic.
76183         * lib/regexec.c (check_node_accept_bytes): Don't use auto
76184         initializers for struct if -pedantic, unless it's C99 or later.
76185
76186 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
76187
76188         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
76189         Don't close an fd more than once. Identical atimes indicate
76190         success, not failure.
76191
76192 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
76193
76194         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
76195
76196 2006-11-23  Jim Meyering  <jim@meyering.net>
76197
76198         * build-aux/announce-gen: New file.  From coreutils.
76199
76200 2006-11-22  Jim Meyering  <jim@meyering.net>
76201
76202         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
76203         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
76204         (fts_read): Use a temporary to narrow the overused st_size member
76205         before using it in a switch statement.  Reported by Matthew Woehlke.
76206
76207         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
76208         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
76209
76210 2006-11-20  Bruno Haible  <bruno@clisp.org>
76211
76212         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
76213         changequote instead of pairs of brackets.
76214         Reported by Andreas Schwab <schwab@suse.de>.
76215
76216 2006-11-21  Jim Meyering  <jim@meyering.net>
76217
76218         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
76219         so as to remain compatible with older compilers.
76220         Patch from Michael Deutschmann.
76221
76222 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
76223
76224         * MODULES.html.sh (File system functions): Add openat.
76225
76226         * lib/openat.h (rpl_fstatat): New macro, if
76227         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
76228         (fstatat): Define to rpl_fstatat under the same conditions,
76229         unless COMPILING_FSTATAT.
76230         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
76231         seems to have the bug.
76232         * lib/fstatat.c: New file.
76233         * modules/openat (Files): Add it.
76234
76235 2006-11-20  Bruno Haible  <bruno@clisp.org>
76236
76237         * Makefile: New file.
76238
76239 2006-11-20  Jim Meyering  <jim@meyering.net>
76240
76241         The beginnings of syntax-related checks for gnulib.
76242         * lib/Makefile: New file.
76243         * lib/t-idcache: New script.  Ensure that the two halves of
76244         idcache.c stay in sync.
76245
76246         * lib/idcache.c: Adjust comments in user- and group- portions to
76247         be more accurate, and to be consistent with one another.
76248
76249 2006-11-20  Jim Meyering  <jim@meyering.net>
76250
76251         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
76252         continue using the flexible array member (thus, this module performs
76253         half as many malloc calls), with the addition that...
76254         (getgroup, getuser): Consistently record a non-match via an empty
76255         "name" string, and map an empty string match to a NULL return value.
76256         * modules/idcache (Depends-on): Re-add flexmember.
76257
76258         * lib/idcache.c (getuser): Remove all uses of the register keyword.
76259         (getuidbyname, getgroup, getgidbyname): Likewise.
76260
76261         Use cleaner syntax: NULL rather than 0.
76262         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
76263
76264 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
76265
76266         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
76267         It mishandled the case where the group was missing.
76268         Problem reported by Greg Schafer.
76269         * modules/idcache: Likewise.
76270
76271 2006-11-18  Jim Meyering  <jim@meyering.net>
76272
76273         * check-module (%exempt_header): Add exception for some
76274         conditionally-included headers.
76275
76276         * modules/i-ring (Depends-on): Add verify.
76277         (License): Change to LGPL.
76278
76279 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
76280
76281         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
76282         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
76283         and inttostr.h.  Use snprintf rather than uinttostr, so that
76284         LGPLed code doesn't depend on GPLed.
76285
76286 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
76287
76288         * modules/inline (License): Change from GPL to LGPL.
76289
76290 2006-11-17  Jim Meyering  <jim@meyering.net>
76291
76292         * modules/d-type (License): Switch to LGPL.
76293
76294 2006-11-15  Bruno Haible  <bruno@clisp.org>
76295
76296         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
76297
76298 2006-11-15  Eric Blake  <ebb9@byu.net>
76299
76300         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
76301         the module dependency.
76302
76303 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76304             Bruno Haible  <bruno@clisp.org>
76305
76306         * gnulib-tool (func_create_testdir): Add license consistency check.
76307
76308 2006-11-15  Eric Blake  <ebb9@byu.net>
76309
76310         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
76311         random "(cached)" in configure output.
76312
76313 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76314
76315         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
76316         test for conforming inttypes.h is both announced and cached.
76317
76318         * MODULES.html.sh (seen_modules, seen_files): New variables.
76319         (func_module): Rewrite to use a few less gnulib-tool and sed
76320         invocations.  Avoid a couple of quadratic algorithms for ...
76321         (missed_modules, missed_files): ... these, with ...
76322         (func_append, func_tmpdir): ... these new functions, from
76323         gnulib-tool.  Analogously, install traps for cleanup.
76324
76325         * tests/test-gc.c (main): Remove unused variables.
76326         * tests/test-read-file.c: Include stdlib.h, for 'free'.
76327
76328 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
76329
76330         * modules/inttostr (License): Change to LGPL.
76331
76332 2006-11-14  Eric Blake  <ebb9@byu.net>
76333
76334         * modules/tempname (License): Change to LGPL.
76335
76336 2006-11-14  Eric Blake  <ebb9@byu.net>
76337
76338         * doc/functions.texi (Function Portability): *printf functions on
76339         Cygwin now understand all POSIX size specifiers.
76340
76341 2006-11-14  Bruno Haible  <bruno@clisp.org>
76342
76343         * modules/c-ctype (License): Change to LGPL.
76344
76345 2006-11-12  Bruno Haible  <bruno@clisp.org>
76346
76347         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
76348         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
76349         for GNOME libraries, for which the include files are installed in
76350         subdirectories of $prefix/include.
76351
76352 2006-11-12  Bruno Haible  <bruno@clisp.org>
76353
76354         * m4/lib-link.m4: Require at least autoconf-2.54.
76355         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
76356         name to underscores for the --with option.
76357
76358 2006-11-13  Bruno Haible  <bruno@clisp.org>
76359
76360         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
76361         the tests directory.
76362         Reported by Ralf Wildenhues.
76363
76364 2006-11-13  Bruno Haible  <bruno@clisp.org>
76365
76366         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
76367         (func_emit_initmacro_end): Undo the override here.
76368         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
76369         Works around the famous automake error in coreutils.
76370
76371 2006-11-13  Eric Blake  <ebb9@byu.net>
76372
76373         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
76374         element, not its node.
76375
76376 2006-11-12  Bruno Haible  <bruno@clisp.org>
76377
76378         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
76379         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
76380
76381 2006-11-12  Bruno Haible  <bruno@clisp.org>
76382
76383         * gnulib-tool: New option --local-symlink.
76384         (func_usage): Document it.
76385         (lsymbolic): New variable.
76386         (func_import, func_create_testdir): If --symlink was not specified,
76387         test whether --local-symlink was specified and the file comes from
76388         the local_gnulib_dir.
76389
76390 2006-11-12  Bruno Haible  <bruno@clisp.org>
76391
76392         * gnulib-tool (func_ln): New function.
76393         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
76394
76395 2006-11-12  Bruno Haible  <bruno@clisp.org>
76396
76397         Finish support for source files in subdirectories.
76398         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
76399         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
76400         AUTOMAKE_OPTIONS.
76401         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
76402
76403 2006-11-12  Bruno Haible  <bruno@clisp.org>
76404
76405         * gnulib-tool (func_get_automake_snippet): Synthesize also an
76406         EXTRA_lib_SOURCES augmentation.
76407         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
76408
76409 2006-11-12  Jim Meyering  <jim@meyering.net>
76410
76411         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
76412         file descriptors.  This also averts a failure on systems with
76413         native openat support when a traversed directory lacks "x" access.
76414         * lib/fts_.h: Include "i-ring.h"
76415         (struct FTS) [fts_fd_ring]: New member.
76416         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
76417         (FCHDIR): Add parentheses.
76418         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
76419         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
76420         When descending, rather than simply closing the previous
76421         fts_cwd_fd value, push that file descriptor onto the ring.
76422         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
76423         (fts_open): Initialize the new fd_ring member.
76424         (fts_close): Clear the ring.
76425         (fts_safe_changedir): When possible, use our new fd_ring to skip
76426         the diropen and fstat and dev/ino comparison that would normally
76427         accompany a virtual `chdir ("..")'.
76428
76429         * modules/fts (Depends-on): Add i-ring.
76430         * modules/i-ring: New module.
76431         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
76432         * m4/i-ring.m4: New file.
76433
76434 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76435
76436         * gnulib-tool (func_create_testdir): Fix replacement of
76437         `build-aux' in configure.ac.  Run autotools in gltests
76438         subdirectory.
76439         (func_create_testdir, func_create_megatestdir, test): There is
76440         no need for '--force' in most autotool invocations in a new
76441         tree.  Actually fail the whole test if any of the tools, or the
76442         configure or make stages fail.
76443
76444         Sync from Automake.
76445         * build-aux/gnupload: Revert last change.  Add pointer to upload
76446         instructions of the GNU Maintenance Instructions.
76447         Suggestion by Karl Berry.
76448
76449 2006-11-10  Jim Meyering  <jim@meyering.net>
76450
76451         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
76452
76453 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
76454
76455         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
76456         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
76457         (bind_textdomain_codeset) [! ENABLE_NLS]:
76458         Evaluate all the arguments.  That way, callers get compatible behavior
76459         if the arguments have side effects.  Also, it avoids some GCC
76460         diagnostics in some cases; Joel E. Denny reported problems when Bison
76461         was configured with --enable-gcc-warnigs.
76462
76463 2006-11-10  Jim Meyering  <jim@meyering.net>
76464
76465         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
76466         relevant options in CFLAGS (like -O, -fno-inline) are taken into
76467         account.
76468
76469 2006-11-10  Jim Meyering  <jim@meyering.net>
76470
76471         * modules/inline: New file/module.
76472         * modules/xalloc (Files): Remove m4/inline.m4.
76473         (Depends-on): Add inline, instead.
76474         * modules/oset: Likewise.
76475         * modules/list: Likewise.
76476
76477 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
76478
76479         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
76480         Problem reported by Matthew Woehlke.
76481
76482 2006-11-09  Bruno Haible  <bruno@clisp.org>
76483
76484         * lib/tempname.c (gen_tempname): Remove variant that invokes
76485         __gen_tempname.
76486         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
76487         __gen_tempname.
76488
76489 2006-11-08  Bruno Haible  <bruno@clisp.org>
76490
76491         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
76492         to 'yes' instead of 'cross-compiling'.
76493
76494 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
76495
76496         * lib/quotearg.h (quotearg_free): New decl.
76497         * lib/quotearg.c (quotearg_free): New function.
76498         (slot0, nslots, slotvec0, slotvec):
76499         Now file-scope so that quotearg_free can get at them.
76500
76501 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76502
76503         Sync from Automake.
76504         * build-aux/gnupload: Add missing 'gnu' to example URL.
76505         Report by Karl Berry.
76506
76507 2006-11-08  Bruno Haible  <bruno@clisp.org>
76508
76509         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
76510         Suggested by Paul Eggert.
76511
76512 2006-11-08  Jim Meyering  <jim@meyering.net>
76513
76514         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
76515         It's already included if !_LIBC.
76516         (fts_safe_changedir): Add a comment.
76517
76518 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
76519
76520         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
76521         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
76522         Matthew Woehlke.
76523
76524         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
76525         definitions up, to avoid colliding with change below.
76526         (static_inline) [HAVE_INLINE]: New macro.
76527         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
76528         Provide extern decls when !HAVE_INLINE.  Do not define unless
76529         static_inline is defined, either by us or by xmalloc.c.  Use
76530         static_inline rather than static inline.
76531         (XCALLOC): Optimize sizeof(T) = 1 case.
76532         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
76533
76534 2006-11-07  Bruno Haible  <bruno@clisp.org>
76535
76536         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
76537         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
76538         AC_C_INLINE.
76539         * modules/xalloc (Files): Add m4/inline.m4.
76540
76541 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76542
76543         * README: Fix typo.
76544         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
76545         (Miscellanous Notes): ...from this.
76546
76547 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
76548
76549         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
76550         Mention that offsetof should be used instead of sizeof.
76551         From Bruno Haible.
76552
76553 2006-11-07  Bruno Haible  <bruno@clisp.org>
76554
76555         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
76556
76557 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
76558
76559         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
76560         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
76561         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
76562         (gl_tree_add_before, gl_tree_add_after):
76563         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
76564         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
76565         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
76566         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
76567         (gl_linked_add_after, gl_linked_add_at): Likewise.
76568         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
76569         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
76570         (gl_tree_add_before, gl_tree_add_after): Likewise.
76571         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
76572         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
76573         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
76574
76575 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76576
76577         * lib/gl_oset.h: Use C comment style, not C++ comment style.
76578
76579 2006-11-06  Bruno Haible  <bruno@clisp.org>
76580
76581         * m4/inline.m4: New file.
76582         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
76583         * modules/list (Files): Add m4/inline.m4.
76584         * modules/oset (Files): Likewise.
76585
76586 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
76587
76588         * lib/idcache.c: Include <stddef.h>, for offsetof.
76589         (struct userid.name): Change from char * to a flexible array member.
76590         All uses changed.
76591         * modules/idcache (Depends-on): Add flexmember.
76592
76593         * MODULES.html.sh (Core language properties): New module flexmember.
76594         * modules/flexmember, m4/flexmember.m4: New files.
76595
76596         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
76597         inline functions that are identical with the old xnmalloc_inline,
76598         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
76599         that we can avoid some unnecessary integer multiplications and
76600         divisions in the common case where the element size is known at
76601         compile time.
76602         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
76603         needed.
76604         (xnboundedmalloc): Remove.
76605         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
76606         arguments, for consistency with rest of this header.
76607         (xcharalloc): Rewrite using XNMALLOC.
76608         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
76609         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
76610         versions have been moved to lib/xalloc.h and renamed to be the
76611         non-*_inline versions.
76612         (xmalloc, xrealloc): Implement without reference to the xnmalloc
76613         and xnrealloc functions, since those functions are now inline and
76614         now call us.
76615         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
76616         renaming described above.
76617         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
76618         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
76619         captures the dependency in AC_C_INLINE.
76620
76621         New module canonicalize-lgpl, proposed by Charles Wilson in
76622         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
76623         with a few small changes afterwards.
76624         * MODULES.html.sh (File system functions): New module
76625         canonicalize-lgpl.
76626         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
76627         and canonicalize_file_name.
76628         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
76629         * modules/canonicalize-lgpl: New files.
76630
76631 2006-11-05  Bruno Haible  <bruno@clisp.org>
76632
76633         * gnulib-tool (func_import, func_create_testdir): Create directories
76634         also for files in subdirectories of lib/.
76635
76636 2006-11-05  Bruno Haible  <bruno@clisp.org>
76637
76638         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
76639         ANSI C compliant.
76640
76641 2006-11-03  Bruno Haible  <bruno@clisp.org>
76642
76643         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
76644         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
76645         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
76646         (xnboundedmalloc): New inline function.
76647         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
76648         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
76649         xmalloc.
76650         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
76651         xmalloc.
76652         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
76653         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
76654         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
76655         xmalloc.
76656         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
76657         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
76658         xmalloc.
76659         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
76660         gl_tree_add_after): Use XMALLOC instead of xmalloc.
76661         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
76662         xmalloc.
76663         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
76664         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
76665         gl_tree_add_after): Use XMALLOC instead of xmalloc.
76666         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
76667         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
76668         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
76669         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
76670
76671 2006-11-03  Bruno Haible  <bruno@clisp.org>
76672
76673         * lib/c-ctype.h [C++]: Define functions without name mangling.
76674         * lib/fwriteerror.h [C++]: Likewise.
76675         * lib/gcd.h [C++]: Likewise.
76676         * lib/linebreak.h [C++]: Likewise.
76677
76678 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
76679
76680         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
76681         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
76682         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
76683         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
76684         Check for functions and headers just once.
76685         Check for declaration of canonicalize_file_name.
76686         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
76687
76688 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76689
76690         * gnulib-tool (func_import): Fix typo in actioncmd.
76691
76692 2006-11-02  Bruno Haible  <bruno@clisp.org>
76693
76694         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
76695         newline sequence in the Makefile.am snippet as a space, like "make"
76696         does.
76697         Reported by Roger Persson <perrog@gmail.com>.
76698
76699 2006-11-01  Bruno Haible  <bruno@clisp.org>
76700
76701         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
76702         already declared in <string.h>.
76703         * lib/strcase.h (strncasecmp): Don't declare it if yes.
76704
76705 2006-11-01  Bruno Haible  <bruno@clisp.org>
76706
76707         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
76708         * lib/strcase.h: Include <string.h>.
76709         (strcasecmp): Define to rpl_strcasecmp here.
76710
76711 2006-11-01  Bruno Haible  <bruno@clisp.org>
76712
76713         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
76714
76715 2006-11-01  Eric Blake  <ebb9@byu.net>
76716
76717         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
76718
76719         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
76720
76721 2006-10-29  Bruno Haible  <bruno@clisp.org>
76722
76723         Make it compile in C++ mode.
76724         * lib/full-write.c (full_rw): Add a cast.
76725
76726 2006-11-01  Bruno Haible  <bruno@clisp.org>
76727
76728         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
76729         be POSIX compliant.
76730         Reported by Roger Persson <perrog@gmail.com>.
76731
76732 2006-11-01  Eric Blake  <ebb9@byu.net>
76733
76734         * lib/getopt_.h: Fix comments.
76735
76736 2006-10-31  Eric Blake  <ebb9@byu.net>
76737
76738         * modules/tmpdir (Depends-on): Add sys_stat.
76739         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
76740         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
76741         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
76742         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
76743         tempname.
76744
76745 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
76746
76747         Avoid some C++ diagnostics reported by Bruno Haible.
76748         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
76749         xmalloc.
76750         (quotearg_alloc): Use xcharalloc rather than xmalloc.
76751         (struct slotvec): Move to top level.
76752         (quotearg_n_options): Rewrite to avoid xmalloc.
76753         * lib/xalloc.h (xcharalloc): New function.
76754         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
76755         [defined __cplusplus]: Add function template that provides result
76756         type propagation.  This part of the change is from Bruno Haible.
76757
76758 2006-10-29  Bruno Haible  <bruno@clisp.org>
76759
76760         Make it compile in C++ mode.
76761         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
76762         * lib/strnlen1.c (strnlen1): Cast memchr result.
76763         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
76764         * lib/clean-temp.c (string_equals, string_hash): Add casts.
76765         (create_temp_dir): Rename local variable 'template'.
76766         (compile_csharp_using_sscli): Add cast.
76767         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
76768         * lib/findprog.c (find_in_path): Likewise.
76769         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
76770         * lib/wait-process.c (register_slave_subprocess): Likewise.
76771
76772 2006-10-22  Bruno Haible  <bruno@clisp.org>
76773
76774         * modules/tsearch: New file.
76775         * lib/tsearch.h: New file.
76776         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
76777         * m4/tsearch.m4: New file.
76778         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
76779
76780 2006-10-29  Eric Blake  <ebb9@byu.net>
76781
76782         * lib/arcfour.c: Assume config.h.
76783         * lib/arctwo.c: Likewise.
76784         * lib/base64.c: Likewise.
76785         * lib/check-version.c: Likewise.
76786         * lib/crc.c: Likewise.
76787         * lib/des.c: Likewise.
76788         * lib/gc-gnulib.c: Likewise.
76789         * lib/gc-libgcrypt.c: Likewise.
76790         * lib/gc-pbkdf2-sha1.c: Likewise.
76791         * lib/getaddrinfo.c: Likewise.
76792         * lib/getdelim.c: Likewise.
76793         * lib/getline.c: Likewise.
76794         * lib/hmac-md5.c: Likewise.
76795         * lib/hmac-sha1.c: Likewise.
76796         * lib/iconvme.c: Likewise.
76797         * lib/md2.c: Likewise.
76798         * lib/md4.c: Likewise.
76799         * lib/memxor.c: Likewise.
76800         * lib/read-file.c: Likewise.
76801         * lib/readline.c: Likewise.
76802         * lib/rijndael-alg-fst.c: Likewise.
76803         * lib/rijndael-api-fst.c: Likewise.
76804         * lib/xgetdomainname.c: Likewise.
76805
76806 2006-10-28  Eric Blake  <ebb9@byu.net>
76807
76808         * lib/xstrndup.c: Assume config.h.
76809
76810 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
76811
76812         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
76813         stat-macros.h is now for our own macros, whereas stat_h is for
76814         macros in the <sys/stat.h> name space.
76815         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
76816         (STAT_MACROS_H): Remove.
76817         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
76818         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
76819         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
76820         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
76821         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
76822         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
76823         Move these macros to ...
76824         * lib/stat_.h: here.  Don't include stat-macros.h.
76825         * lib/canonicalize.c: Don't include stat-macros.h.
76826         * lib/chown.c: Likewise.
76827         * lib/euidaccess.c: Likewise.
76828         * lib/file-type.c: Likewise.
76829         * lib/filemode.c: Likewise.
76830         * lib/glob.c: Likewise.
76831         * lib/isapipe.c: Likewise.
76832         * lib/lchown.c: Likewise.
76833         * lib/lstat.c: Likewise.
76834         * lib/mkdir-p.c: Likewise.
76835         * lib/rmdir.c: Likewise.
76836         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
76837         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
76838         unless mkdir isn't declared, to speed up 'configure'.
76839         Always create sys/stat.h, since it's unlikely any real sys/stat.h
76840         would define all the S_* symbols.
76841         * modules/canonicalize (Depends-on):
76842         Depend on sys_stat, not stat-macros.
76843         * modules/chown: Likewise.
76844         * modules/euidaccess: Likewise.
76845         * modules/filemode: Likewise.
76846         * modules/file-type: Likewise.
76847         * modules/glob: Likewise.
76848         * modules/isapipe: Likewise.
76849         * modules/lchown: Likewise.
76850         * modules/lstat: Likewise.
76851         * modules/mkancesdirs: Likewise.
76852         * modules/rmdir: Likewise.
76853         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
76854         * modules/modechange: Likewise.
76855         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
76856         (configure.ac): Remove gl_STAT_MACROS.
76857         * modules/sys_stat (Depends-on): Remove stat-macros.
76858
76859 2006-10-27  Bruno Haible  <bruno@clisp.org>
76860
76861         * m4/signed.m4: Remove file.
76862         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
76863         invocation.
76864         * modules/vasnprintf (Files): Remove m4/signed.m4.
76865
76866 2006-10-27  Bruno Haible  <bruno@clisp.org>
76867
76868         Update to GNU gettext 0.16.
76869         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
76870         m4/inttypes-h.m4, m4/signed.m4.
76871         * m4/gettext.m4: Update to GNU gettext 0.16.
76872         * m4/intl.m4: New file, from GNU gettext.
76873         * m4/intldir.m4: New file, from GNU gettext.
76874         * config/srclist.txt: Update
76875
76876 2006-10-27  Eric Blake  <ebb9@byu.net>
76877
76878         * MODULES.html.sh: Document tempname.
76879         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
76880         dependencies.
76881         (Files): Move lib/tempname.c...
76882         * modules/tempname: ...to this new module.
76883         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
76884         (gl_PREREQ_TEMPNAME): Move...
76885         * m4/tempname.m4: ...to this new file.
76886         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
76887         * modules/sys_stat (Depends-on): Add stat-macros.
76888         * lib/stat_.h (includes): Pick up stat macros.
76889         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
76890         if stat macros are broken.
76891         * lib/tempname.c (includes): No need to include "stat-macros.h".
76892         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
76893         (direxists, __path_search) [!_LIBC]: Don't compile these in
76894         gnulib; the tmpdir module covers that.
76895         * lib/tempname.h: New file.
76896
76897 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
76898
76899         * COPYING: Explain how gnulib-tool converts licence headers.
76900         Almost all wording by Eric Blake.
76901
76902 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
76903
76904         * lib/mbchar.h (is_basic_table): Make read-only.
76905         * lib/mbchar.c (is_basic_table): Likewise.
76906         Reported by John Darrington.
76907
76908 2006-10-25  Bruno Haible  <bruno@clisp.org>
76909
76910         * lib/progname.h (set_program_name): Undefine before defining.
76911
76912 2006-10-25  Bruno Haible  <bruno@clisp.org>
76913
76914         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
76915         false for non-gcc C++ compilers.
76916         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
76917
76918 2006-10-24  Bruno Haible  <bruno@clisp.org>
76919
76920         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
76921         iconv implementations like Irix iconv.
76922
76923 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76924
76925         * modules/vararrays: New file.
76926         * m4/vararrays.m4: New file, taken from diffutils.
76927         * MODULES.html.sh: New module vararrays.
76928
76929 2006-10-24  Karl Berry  <karl@gnu.org>
76930
76931         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
76932         Don't call GNU Unix.
76933
76934 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76935
76936         * users.txt: Add Libtool.
76937
76938         Sync from Libtool:
76939
76940         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76941
76942         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
76943         to gnulib's policy of including config.h unconditionally.
76944
76945 2006-10-24  Bruno Haible  <bruno@clisp.org>
76946
76947         * modules/wcwidth (Files): Add m4/wint_t.m4.
76948         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
76949         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
76950
76951 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76952
76953         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
76954         to pacify GCC with some -W flags enabled.  Problem reported by
76955         Bruno Haible.
76956
76957 2006-10-24  Jim Meyering  <jim@meyering.net>
76958
76959         * MODULES.html.sh: Remove uinttostr.  It's not a module.
76960         Reported by Karl Berry.
76961
76962 2006-10-23  Bruno Haible  <bruno@clisp.org>
76963
76964         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
76965
76966 2006-10-24  Bruno Haible  <bruno@clisp.org>
76967
76968         * lib/gl_list.h: Use C comment style, not C++ comment style.
76969
76970 2006-10-23  Eric Blake  <ebb9@byu.net>
76971
76972         * lib/getaddrinfo.c (includes): Add missing include.
76973
76974 2006-10-23  Bruno Haible  <bruno@clisp.org>
76975             Paul Eggert  <eggert@cs.ucla.edu>
76976
76977         Ability to rename obstack_free.
76978         * lib/obstack.h (__obstack_free): New macro. Declare instead of
76979         obstack_free.
76980         (obstack_free): Invoke the __obstack_free macro.
76981         * lib/obstack.c (obstack_free): Use __obstack_free macro.
76982
76983 2006-10-23  Bruno Haible  <bruno@clisp.org>
76984             Paul Eggert  <eggert@cs.ucla.edu>
76985
76986         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
76987         __argc, __argv from the declaration. (They are defined as macros on
76988         mingw.)
76989
76990 2006-10-22  Bruno Haible  <bruno@clisp.org>
76991
76992         * doc/gnulib-intro.texi: New file.
76993         * doc/gnulib.texi: Include it.
76994
76995 2006-10-21  Bruno Haible  <bruno@clisp.org>
76996
76997         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
76998         "Introduction", "Miscellanous Notes", "Particular Modules".
76999
77000 2006-10-21  Bruno Haible  <bruno@clisp.org>
77001
77002         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77003         Change mostlyclean-local rule to avoid sh syntax error from bash
77004         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
77005
77006 2006-10-23  Jim Meyering  <jim@meyering.net>
77007
77008         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
77009         in place of snprintf.
77010
77011         * modules/inttostr (Files): Add lib/uinttostr.c.
77012         * lib/uinttostr.c (inttostr): New file/function.
77013         * lib/inttostr.h (uinttostr): Declare.
77014         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
77015         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
77016         Add uinttostr.
77017         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
77018
77019 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
77020
77021         * lib/canonicalize.c (ELOOP): Define if not already defined.
77022         Problem reported by Bruno Haible in
77023         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
77024
77025 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
77026
77027         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
77028         Problem reported by Perry Smith and Ville Laurikari.
77029
77030         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
77031         uses.
77032
77033 2006-10-19  Bruno Haible  <bruno@clisp.org>
77034
77035         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
77036         for mingw.
77037
77038 2006-10-19  Bruno Haible  <bruno@clisp.org>
77039
77040         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
77041         Needed for mingw.
77042
77043 2006-10-19  Bruno Haible  <bruno@clisp.org>
77044
77045         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
77046
77047 2006-10-19  Bruno Haible  <bruno@clisp.org>
77048
77049         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
77050         it.
77051
77052 2006-10-19  Bruno Haible  <bruno@clisp.org>
77053
77054         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
77055         invocation.
77056
77057 2006-10-19  Bruno Haible  <bruno@clisp.org>
77058
77059         * gnulib-tool (func_create_testdir): Don't include ftruncate and
77060         mountlist by default.
77061
77062 2006-10-16  Bruno Haible  <bruno@clisp.org>
77063
77064         * lib/c-strstr.c: Include c-strstr.h.
77065
77066 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
77067
77068         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
77069         in a slash.
77070
77071 2006-10-18  Bruno Haible  <bruno@clisp.org>
77072
77073         * lib/lock.h [C++]: Wrap definitions in extern "C".
77074
77075 2006-10-18  Bruno Haible  <bruno@clisp.org>
77076
77077         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
77078         gl_LIBOBJS list.
77079
77080 2006-10-18  Bruno Haible  <bruno@clisp.org>
77081
77082         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
77083
77084 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
77085
77086         * lib/xstrtol.h: Include gettext.h.
77087         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
77088         Problem reported by Eric Blake.
77089         * modules/xstrtol (Depends-on): Add gettext-h.
77090
77091 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
77092
77093         * lib/strftime.c (advance): New macro.
77094         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
77095         incomplete type, so you can't add 0 to it.  Problem and patch
77096         reported by Eelco Dolstra for dietlibc.
77097
77098 2006-10-18  Jim Meyering  <jim@meyering.net>
77099
77100         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
77101         type for a local, and rename it: s/up/user_proc/.
77102
77103 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
77104
77105         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
77106         READ_UTMP_USER_PROCESS.
77107         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
77108
77109 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
77110
77111         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
77112         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
77113
77114 2006-10-17  Eric Blake  <ebb9@byu.net>
77115
77116         * lib/sigprocmask.c (sigprocmask): Fix typo.
77117
77118         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
77119
77120         * modules/clean-temp (Makefile.am): Don't add to make output...
77121         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
77122         config.h.
77123
77124 2006-10-17  Bruno Haible  <bruno@clisp.org>
77125
77126         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
77127         differently if DEFAULT_TEXT_DOMAIN is set.
77128
77129 2006-10-16  Bruno Haible  <bruno@clisp.org>
77130
77131         * lib/clean-temp.c: Include fwriteerror.h.
77132
77133 2006-10-16  Bruno Haible  <bruno@clisp.org>
77134
77135         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
77136
77137 2006-10-16  Bruno Haible  <bruno@clisp.org>
77138
77139         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
77140         * lib/sigprocmask.h: Include <sys/types.h>.
77141         (sigset_t): Use the system's definition if present.
77142
77143 2006-10-17  Eric Blake  <ebb9@byu.net>
77144
77145         * lib/xvasprintf.c (includes): Assume config.h.
77146         * lib/xasprintf.c (includes): Likewise.
77147
77148 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
77149
77150         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
77151         at least as wide as intmax_t.
77152
77153 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
77154
77155         (Imported from Automake.)
77156         * build-aux/gnupload: Update to version 1.1 of directive file.
77157
77158 2006-10-16  Eric Blake  <ebb9@byu.net>
77159
77160         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
77161         match Automake 1.10a.
77162
77163 2006-10-14  Bruno Haible  <bruno@clisp.org>
77164
77165         * modules/sigprocmask: New file.
77166         * lib/sigprocmask.h: New file.
77167         * lib/sigprocmask.c: New file.
77168         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
77169         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
77170         request sigprocmask.o.
77171         (gl_PREREQ_SIGPROCMASK): New macro.
77172         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
77173         (Depends-on): Add sigprocmask.
77174         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
77175         gt_SIGNALBLOCKING. Test for 'raise' only once.
77176         * lib/fatal-signal.c: Include sigprocmask.h.
77177         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
77178         unblock_fatal_signals): Define always.
77179         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77180         sigprocmask.
77181
77182 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
77183
77184         Sync from Automake.
77185         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
77186         which incorrectly sets the mode of an existing destination
77187         directory.  In some cases the unpatched install-sh could do the
77188         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
77189         system.  We hope this is rare in practice, but it's clearly worth
77190         fixing.  Problem reported by Alex Unleashed in
77191         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
77192         Also, don't bother to check for -m bugs unless we're using -m;
77193         suggested by Stepan Kasal.
77194
77195 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77196
77197         Sync from Automake.
77198         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
77199         `-c' flag, so they appear at the same position as in %FASTDEP%
77200         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
77201         which ignores unknown options only after the first non-option.
77202         Bug report against M4 by Nelson H. F. Beebe.
77203
77204 2006-10-13  Jim Meyering  <jim@meyering.net>
77205
77206         Fix a bug in yesterday's change.
77207         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
77208         p->fts_statp->st_dev would be used uninitialized.
77209         Ensures that we always call fts_stat on the very first entry.
77210         Miklos Szeredi reported that find -xdev stopped working.
77211
77212 2006-10-12  Bruno Haible  <bruno@clisp.org>
77213
77214         * gnulib-tool (func_get_automake_snippet): Append an automatically
77215         computed EXTRA_DIST augmentation.
77216         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
77217         * modules/alloca-opt (Makefile.am): Likewise.
77218         * modules/allocsa (Makefile.am): Likewise.
77219         * modules/arcfour (Makefile.am): Likewise.
77220         * modules/arctwo (Makefile.am): Likewise.
77221         * modules/argmatch (Makefile.am): Likewise.
77222         * modules/argz (Makefile.am): Likewise.
77223         * modules/atexit (Makefile.am): Likewise.
77224         * modules/backupfile (Makefile.am): Likewise.
77225         * modules/byteswap (Makefile.am): Likewise.
77226         * modules/c-strtod (Makefile.am): Likewise.
77227         * modules/c-strtold (Makefile.am): Likewise.
77228         * modules/calloc (Makefile.am): Likewise.
77229         * modules/canon-host (Makefile.am): Likewise.
77230         * modules/canonicalize (Makefile.am): Likewise.
77231         * modules/chdir-long (Makefile.am): Likewise.
77232         * modules/chdir-safer (Makefile.am): Likewise.
77233         * modules/check-version (Makefile.am): Likewise.
77234         * modules/chown (Makefile.am): Likewise.
77235         * modules/cloexec (Makefile.am): Likewise.
77236         * modules/close-stream (Makefile.am): Likewise.
77237         * modules/closeout (Makefile.am): Likewise.
77238         * modules/crc (Makefile.am): Likewise.
77239         * modules/csharpexec (Makefile.am): Likewise.
77240         * modules/cycle-check (Makefile.am): Likewise.
77241         * modules/des (Makefile.am): Likewise.
77242         * modules/dev-ino (Makefile.am): Likewise.
77243         * modules/dirfd (Makefile.am): Likewise.
77244         * modules/dirname (Makefile.am): Likewise.
77245         * modules/dup2 (Makefile.am): Likewise.
77246         * modules/eealloc (Makefile.am): Likewise.
77247         * modules/error (Makefile.am): Likewise.
77248         * modules/euidaccess (Makefile.am): Likewise.
77249         * modules/exclude (Makefile.am): Likewise.
77250         * modules/exitfail (Makefile.am): Likewise.
77251         * modules/fcntl-safer (Makefile.am): Likewise.
77252         * modules/fcntl (Makefile.am): Likewise.
77253         * modules/file-type (Makefile.am): Likewise.
77254         * modules/fileblocks (Makefile.am): Likewise.
77255         * modules/filemode (Makefile.am): Likewise.
77256         * modules/filenamecat (Makefile.am): Likewise.
77257         * modules/fnmatch (Makefile.am): Likewise.
77258         * modules/fopen-safer (Makefile.am): Likewise.
77259         * modules/fpending (Makefile.am): Likewise.
77260         * modules/fprintftime (Makefile.am): Likewise.
77261         * modules/free (Makefile.am): Likewise.
77262         * modules/fsusage (Makefile.am): Likewise.
77263         * modules/ftruncate (Makefile.am): Likewise.
77264         * modules/fts (Makefile.am): Likewise.
77265         * modules/gc-arcfour (Makefile.am): Likewise.
77266         * modules/gc-des (Makefile.am): Likewise.
77267         * modules/gc-hmac-md5 (Makefile.am): Likewise.
77268         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
77269         * modules/gc-md4 (Makefile.am): Likewise.
77270         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
77271         * modules/gc-sha1 (Makefile.am): Likewise.
77272         * modules/gc (Makefile.am): Likewise.
77273         * modules/getaddrinfo (Makefile.am): Likewise.
77274         * modules/getcwd (Makefile.am): Likewise.
77275         * modules/getdelim (Makefile.am): Likewise.
77276         * modules/getdomainname (Makefile.am): Likewise.
77277         * modules/getgroups (Makefile.am): Likewise.
77278         * modules/gethostname (Makefile.am): Likewise.
77279         * modules/gethrxtime (Makefile.am): Likewise.
77280         * modules/getline (Makefile.am): Likewise.
77281         * modules/getloadavg (Makefile.am): Likewise.
77282         * modules/getlogin_r (Makefile.am): Likewise.
77283         * modules/getndelim2 (Makefile.am): Likewise.
77284         * modules/getopt (Makefile.am): Likewise.
77285         * modules/getpagesize (Makefile.am): Likewise.
77286         * modules/getpass-gnu (Makefile.am): Likewise.
77287         * modules/getpass (Makefile.am): Likewise.
77288         * modules/getsubopt (Makefile.am): Likewise.
77289         * modules/gettime (Makefile.am): Likewise.
77290         * modules/gettimeofday (Makefile.am): Likewise.
77291         * modules/getugroups (Makefile.am): Likewise.
77292         * modules/getusershell (Makefile.am): Likewise.
77293         * modules/glob (Makefile.am): Likewise.
77294         * modules/group-member (Makefile.am): Likewise.
77295         * modules/hard-locale (Makefile.am): Likewise.
77296         * modules/hash (Makefile.am): Likewise.
77297         * modules/hmac-md5 (Makefile.am): Likewise.
77298         * modules/hmac-sha1 (Makefile.am): Likewise.
77299         * modules/human (Makefile.am): Likewise.
77300         * modules/idcache (Makefile.am): Likewise.
77301         * modules/imaxabs (Makefile.am): Likewise.
77302         * modules/imaxdiv (Makefile.am): Likewise.
77303         * modules/inet_ntop (Makefile.am): Likewise.
77304         * modules/inet_pton (Makefile.am): Likewise.
77305         * modules/intprops (Makefile.am): Likewise.
77306         * modules/inttostr (Makefile.am): Likewise.
77307         * modules/inttypes (Makefile.am): Likewise.
77308         * modules/isapipe (Makefile.am): Likewise.
77309         * modules/javaversion (Makefile.am): Likewise.
77310         * modules/lchmod (Makefile.am): Likewise.
77311         * modules/lchown (Makefile.am): Likewise.
77312         * modules/localcharset (Makefile.am): Likewise.
77313         * modules/long-options (Makefile.am): Likewise.
77314         * modules/lstat (Makefile.am): Likewise.
77315         * modules/malloc (Makefile.am): Likewise.
77316         * modules/mathl (Makefile.am): Likewise.
77317         * modules/mbchar (Makefile.am): Likewise.
77318         * modules/md2 (Makefile.am): Likewise.
77319         * modules/md4 (Makefile.am): Likewise.
77320         * modules/md5 (Makefile.am): Likewise.
77321         * modules/memcasecmp (Makefile.am): Likewise.
77322         * modules/memchr (Makefile.am): Likewise.
77323         * modules/memcmp (Makefile.am): Likewise.
77324         * modules/memcoll (Makefile.am): Likewise.
77325         * modules/memcpy (Makefile.am): Likewise.
77326         * modules/memmem (Makefile.am): Likewise.
77327         * modules/memmove (Makefile.am): Likewise.
77328         * modules/mempcpy (Makefile.am): Likewise.
77329         * modules/memrchr (Makefile.am): Likewise.
77330         * modules/memset (Makefile.am): Likewise.
77331         * modules/memxor (Makefile.am): Likewise.
77332         * modules/mkancesdirs (Makefile.am): Likewise.
77333         * modules/mkdir-p (Makefile.am): Likewise.
77334         * modules/mkdir (Makefile.am): Likewise.
77335         * modules/mkdtemp (Makefile.am): Likewise.
77336         * modules/mkstemp (Makefile.am): Likewise.
77337         * modules/mktime (Makefile.am): Likewise.
77338         * modules/modechange (Makefile.am): Likewise.
77339         * modules/mountlist (Makefile.am): Likewise.
77340         * modules/nanosleep (Makefile.am): Likewise.
77341         * modules/obstack (Makefile.am): Likewise.
77342         * modules/openat (Makefile.am): Likewise.
77343         * modules/pagealign_alloc (Makefile.am): Likewise.
77344         * modules/pathmax (Makefile.am): Likewise.
77345         * modules/physmem (Makefile.am): Likewise.
77346         * modules/poll (Makefile.am): Likewise.
77347         * modules/posixtm (Makefile.am): Likewise.
77348         * modules/posixver (Makefile.am): Likewise.
77349         * modules/putenv (Makefile.am): Likewise.
77350         * modules/quote (Makefile.am): Likewise.
77351         * modules/quotearg (Makefile.am): Likewise.
77352         * modules/raise (Makefile.am): Likewise.
77353         * modules/read-file (Makefile.am): Likewise.
77354         * modules/readline (Makefile.am): Likewise.
77355         * modules/readlink (Makefile.am): Likewise.
77356         * modules/readtokens (Makefile.am): Likewise.
77357         * modules/readutmp (Makefile.am): Likewise.
77358         * modules/realloc (Makefile.am): Likewise.
77359         * modules/regex (Makefile.am): Likewise.
77360         * modules/rename-dest-slash (Makefile.am): Likewise.
77361         * modules/rename (Makefile.am): Likewise.
77362         * modules/rijndael (Makefile.am): Likewise.
77363         * modules/rmdir (Makefile.am): Likewise.
77364         * modules/rpmatch (Makefile.am): Likewise.
77365         * modules/safe-read (Makefile.am): Likewise.
77366         * modules/safe-write (Makefile.am): Likewise.
77367         * modules/same-inode (Makefile.am): Likewise.
77368         * modules/same (Makefile.am): Likewise.
77369         * modules/save-cwd (Makefile.am): Likewise.
77370         * modules/savedir (Makefile.am): Likewise.
77371         * modules/setenv (Makefile.am): Likewise.
77372         * modules/settime (Makefile.am): Likewise.
77373         * modules/sha1 (Makefile.am): Likewise.
77374         * modules/sig2str (Makefile.am): Likewise.
77375         * modules/snprintf (Makefile.am): Likewise.
77376         * modules/stat-macros (Makefile.am): Likewise.
77377         * modules/stat-time (Makefile.am): Likewise.
77378         * modules/stdbool (Makefile.am): Likewise.
77379         * modules/stdint (Makefile.am): Likewise.
77380         * modules/stdlib-safer (Makefile.am): Likewise.
77381         * modules/stpcpy (Makefile.am): Likewise.
77382         * modules/stpncpy (Makefile.am): Likewise.
77383         * modules/strcase (Makefile.am): Likewise.
77384         * modules/strcasestr (Makefile.am): Likewise.
77385         * modules/strchrnul (Makefile.am): Likewise.
77386         * modules/strcspn (Makefile.am): Likewise.
77387         * modules/strdup (Makefile.am): Likewise.
77388         * modules/strerror (Makefile.am): Likewise.
77389         * modules/strftime (Makefile.am): Likewise.
77390         * modules/strndup (Makefile.am): Likewise.
77391         * modules/strnlen (Makefile.am): Likewise.
77392         * modules/strpbrk (Makefile.am): Likewise.
77393         * modules/strsep (Makefile.am): Likewise.
77394         * modules/strstr (Makefile.am): Likewise.
77395         * modules/strtod (Makefile.am): Likewise.
77396         * modules/strtoimax (Makefile.am): Likewise.
77397         * modules/strtok_r (Makefile.am): Likewise.
77398         * modules/strtol (Makefile.am): Likewise.
77399         * modules/strtoll (Makefile.am): Likewise.
77400         * modules/strtoul (Makefile.am): Likewise.
77401         * modules/strtoull (Makefile.am): Likewise.
77402         * modules/strtoumax (Makefile.am): Likewise.
77403         * modules/strverscmp (Makefile.am): Likewise.
77404         * modules/sys_socket (Makefile.am): Likewise.
77405         * modules/sys_stat (Makefile.am): Likewise.
77406         * modules/sysexits (Makefile.am): Likewise.
77407         * modules/time_r (Makefile.am): Likewise.
77408         * modules/timegm (Makefile.am): Likewise.
77409         * modules/timespec (Makefile.am): Likewise.
77410         * modules/tmpfile-safer (Makefile.am): Likewise.
77411         * modules/trim (Makefile.am): Likewise.
77412         * modules/unistd-safer (Makefile.am): Likewise.
77413         * modules/unlinkdir (Makefile.am): Likewise.
77414         * modules/unlocked-io (Makefile.am): Likewise.
77415         * modules/userspec (Makefile.am): Likewise.
77416         * modules/utime (Makefile.am): Likewise.
77417         * modules/utimecmp (Makefile.am): Likewise.
77418         * modules/utimens (Makefile.am): Likewise.
77419         * modules/vasnprintf (Makefile.am): Likewise.
77420         * modules/vasprintf (Makefile.am): Likewise.
77421         * modules/vsnprintf (Makefile.am): Likewise.
77422         * modules/xalloc (Makefile.am): Likewise.
77423         * modules/xgetcwd (Makefile.am): Likewise.
77424         * modules/xnanosleep (Makefile.am): Likewise.
77425         * modules/xreadlink (Makefile.am): Likewise.
77426         * modules/xstrtod (Makefile.am): Likewise.
77427         * modules/xstrtol (Makefile.am): Likewise.
77428         * modules/xstrtold (Makefile.am): Likewise.
77429         * modules/yesno (Makefile.am): Likewise.
77430         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
77431
77432 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
77433
77434         * modules/error (Makefile.am): Distribute files through
77435         EXTRA_DIST, not lib_SOURCES.
77436
77437 2006-10-12  Eric Blake  <ebb9@byu.net>
77438
77439         * modules/error (Makefile.am): Distribute files in /lib.
77440         * modules/obstack (Makefile.am): Likewise.
77441
77442 2006-10-12  Bruno Haible  <bruno@clisp.org>
77443
77444         * modules/acl (Makefile.am): Distribute all files in lib/ through
77445         EXTRA_DIST.
77446         * modules/arcfour (Makefile.am): Likewise.
77447         * modules/arctwo (Makefile.am): Likewise.
77448         * modules/argmatch (Makefile.am): Likewise.
77449         * modules/argz (Makefile.am): Likewise.
77450         * modules/atexit (Makefile.am): Likewise.
77451         * modules/backupfile (Makefile.am): Likewise.
77452         * modules/c-strtod (Makefile.am): Likewise.
77453         * modules/c-strtold (Makefile.am): Likewise.
77454         * modules/calloc (Makefile.am): Likewise.
77455         * modules/canon-host (Makefile.am): Likewise.
77456         * modules/canonicalize (Makefile.am): Likewise.
77457         * modules/chdir-long (Makefile.am): Likewise.
77458         * modules/chdir-safer (Makefile.am): Likewise.
77459         * modules/check-version (Makefile.am): Likewise.
77460         * modules/chown (Makefile.am): Likewise.
77461         * modules/cloexec (Makefile.am): Likewise.
77462         * modules/close-stream (Makefile.am): Likewise.
77463         * modules/closeout (Makefile.am): Likewise.
77464         * modules/crc (Makefile.am): Likewise.
77465         * modules/cycle-check (Makefile.am): Likewise.
77466         * modules/des (Makefile.am): Likewise.
77467         * modules/dirfd (Makefile.am): Likewise.
77468         * modules/dirname (Makefile.am): Likewise.
77469         * modules/dup2 (Makefile.am): Likewise.
77470         * modules/euidaccess (Makefile.am): Likewise.
77471         * modules/exclude (Makefile.am): Likewise.
77472         * modules/exitfail (Makefile.am): Likewise.
77473         * modules/fcntl-safer (Makefile.am): Likewise.
77474         * modules/file-type (Makefile.am): Likewise.
77475         * modules/fileblocks (Makefile.am): Likewise.
77476         * modules/filemode (Makefile.am): Likewise.
77477         * modules/filenamecat (Makefile.am): Likewise.
77478         * modules/fnmatch (Makefile.am): Likewise.
77479         * modules/fopen-safer (Makefile.am): Likewise.
77480         * modules/fpending (Makefile.am): Likewise.
77481         * modules/fprintftime (Makefile.am): Likewise.
77482         * modules/free (Makefile.am): Likewise.
77483         * modules/fsusage (Makefile.am): Likewise.
77484         * modules/ftruncate (Makefile.am): Likewise.
77485         * modules/fts (Makefile.am): Likewise.
77486         * modules/gc (Makefile.am): Likewise.
77487         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
77488         * modules/getaddrinfo (Makefile.am): Likewise.
77489         * modules/getcwd (Makefile.am): Likewise.
77490         * modules/getdelim (Makefile.am): Likewise.
77491         * modules/getdomainname (Makefile.am): Likewise.
77492         * modules/getgroups (Makefile.am): Likewise.
77493         * modules/gethostname (Makefile.am): Likewise.
77494         * modules/gethrxtime (Makefile.am): Likewise.
77495         * modules/getline (Makefile.am): Likewise.
77496         * modules/getloadavg (Makefile.am): Likewise.
77497         * modules/getlogin_r (Makefile.am): Likewise.
77498         * modules/getopt (Makefile.am): Likewise.
77499         * modules/getpass (Makefile.am): Likewise.
77500         * modules/getpass-gnu (Makefile.am): Likewise.
77501         * modules/getsubopt (Makefile.am): Likewise.
77502         * modules/gettime (Makefile.am): Likewise.
77503         * modules/gettimeofday (Makefile.am): Likewise.
77504         * modules/getugroups (Makefile.am): Likewise.
77505         * modules/getusershell (Makefile.am): Likewise.
77506         * modules/glob (Makefile.am): Likewise.
77507         * modules/group-member (Makefile.am): Likewise.
77508         * modules/hard-locale (Makefile.am): Likewise.
77509         * modules/hash (Makefile.am): Likewise.
77510         * modules/hmac-md5 (Makefile.am): Likewise.
77511         * modules/hmac-sha1 (Makefile.am): Likewise.
77512         * modules/human (Makefile.am): Likewise.
77513         * modules/idcache (Makefile.am): Likewise.
77514         * modules/imaxabs (Makefile.am): Likewise.
77515         * modules/imaxdiv (Makefile.am): Likewise.
77516         * modules/inet_ntop (Makefile.am): Likewise.
77517         * modules/inet_pton (Makefile.am): Likewise.
77518         * modules/inttostr (Makefile.am): Likewise.
77519         * modules/isapipe (Makefile.am): Likewise.
77520         * modules/lchown (Makefile.am): Likewise.
77521         * modules/long-options (Makefile.am): Likewise.
77522         * modules/lstat (Makefile.am): Likewise.
77523         * modules/malloc (Makefile.am): Likewise.
77524         * modules/mathl (Makefile.am): Likewise.
77525         * modules/mbchar (Makefile.am): Likewise.
77526         * modules/md2 (Makefile.am): Likewise.
77527         * modules/md4 (Makefile.am): Likewise.
77528         * modules/md5 (Makefile.am): Likewise.
77529         * modules/memcasecmp (Makefile.am): Likewise.
77530         * modules/memchr (Makefile.am): Likewise.
77531         * modules/memcmp (Makefile.am): Likewise.
77532         * modules/memcoll (Makefile.am): Likewise.
77533         * modules/memcpy (Makefile.am): Likewise.
77534         * modules/memmem (Makefile.am): Likewise.
77535         * modules/memmove (Makefile.am): Likewise.
77536         * modules/mempcpy (Makefile.am): Likewise.
77537         * modules/memrchr (Makefile.am): Likewise.
77538         * modules/memset (Makefile.am): Likewise.
77539         * modules/memxor (Makefile.am): Likewise.
77540         * modules/mkancesdirs (Makefile.am): Likewise.
77541         * modules/mkdir (Makefile.am): Likewise.
77542         * modules/mkdir-p (Makefile.am): Likewise.
77543         * modules/mkdtemp (Makefile.am): Likewise.
77544         * modules/mkstemp (Makefile.am): Likewise.
77545         * modules/mktime (Makefile.am): Likewise.
77546         * modules/modechange (Makefile.am): Likewise.
77547         * modules/mountlist (Makefile.am): Likewise.
77548         * modules/nanosleep (Makefile.am): Likewise.
77549         * modules/openat (Makefile.am): Likewise.
77550         * modules/pagealign_alloc (Makefile.am): Likewise.
77551         * modules/physmem (Makefile.am): Likewise.
77552         * modules/poll (Makefile.am): Likewise.
77553         * modules/posixtm (Makefile.am): Likewise.
77554         * modules/posixver (Makefile.am): Likewise.
77555         * modules/putenv (Makefile.am): Likewise.
77556         * modules/quote (Makefile.am): Likewise.
77557         * modules/quotearg (Makefile.am): Likewise.
77558         * modules/raise (Makefile.am): Likewise.
77559         * modules/read-file (Makefile.am): Likewise.
77560         * modules/readline (Makefile.am): Likewise.
77561         * modules/readlink (Makefile.am): Likewise.
77562         * modules/readtokens (Makefile.am): Likewise.
77563         * modules/readutmp (Makefile.am): Likewise.
77564         * modules/realloc (Makefile.am): Likewise.
77565         * modules/regex (Makefile.am): Likewise.
77566         * modules/rename (Makefile.am): Likewise.
77567         * modules/rename-dest-slash (Makefile.am): Likewise.
77568         * modules/rijndael (Makefile.am): Likewise.
77569         * modules/rmdir (Makefile.am): Likewise.
77570         * modules/rpmatch (Makefile.am): Likewise.
77571         * modules/safe-read (Makefile.am): Likewise.
77572         * modules/safe-write (Makefile.am): Likewise.
77573         * modules/same (Makefile.am): Likewise.
77574         * modules/save-cwd (Makefile.am): Likewise.
77575         * modules/savedir (Makefile.am): Likewise.
77576         * modules/setenv (Makefile.am): Likewise.
77577         * modules/settime (Makefile.am): Likewise.
77578         * modules/sha1 (Makefile.am): Likewise.
77579         * modules/sig2str (Makefile.am): Likewise.
77580         * modules/snprintf (Makefile.am): Likewise.
77581         * modules/stdlib-safer (Makefile.am): Likewise.
77582         * modules/stpcpy (Makefile.am): Likewise.
77583         * modules/stpncpy (Makefile.am): Likewise.
77584         * modules/strcase (Makefile.am): Likewise.
77585         * modules/strcasestr (Makefile.am): Likewise.
77586         * modules/strchrnul (Makefile.am): Likewise.
77587         * modules/strcspn (Makefile.am): Likewise.
77588         * modules/strdup (Makefile.am): Likewise.
77589         * modules/strerror (Makefile.am): Likewise.
77590         * modules/strftime (Makefile.am): Likewise.
77591         * modules/strndup (Makefile.am): Likewise.
77592         * modules/strnlen (Makefile.am): Likewise.
77593         * modules/strpbrk (Makefile.am): Likewise.
77594         * modules/strsep (Makefile.am): Likewise.
77595         * modules/strstr (Makefile.am): Likewise.
77596         * modules/strtod (Makefile.am): Likewise.
77597         * modules/strtoimax (Makefile.am): Likewise.
77598         * modules/strtok_r (Makefile.am): Likewise.
77599         * modules/strtol (Makefile.am): Likewise.
77600         * modules/strtoll (Makefile.am): Likewise.
77601         * modules/strtoul (Makefile.am): Likewise.
77602         * modules/strtoull (Makefile.am): Likewise.
77603         * modules/strtoumax (Makefile.am): Likewise.
77604         * modules/strverscmp (Makefile.am): Likewise.
77605         * modules/time_r (Makefile.am): Likewise.
77606         * modules/timegm (Makefile.am): Likewise.
77607         * modules/tmpfile-safer (Makefile.am): Likewise.
77608         * modules/unistd-safer (Makefile.am): Likewise.
77609         * modules/unlinkdir (Makefile.am): Likewise.
77610         * modules/userspec (Makefile.am): Likewise.
77611         * modules/utime (Makefile.am): Likewise.
77612         * modules/utimecmp (Makefile.am): Likewise.
77613         * modules/utimens (Makefile.am): Likewise.
77614         * modules/vasnprintf (Makefile.am): Likewise.
77615         * modules/vasprintf (Makefile.am): Likewise.
77616         * modules/vsnprintf (Makefile.am): Likewise.
77617         * modules/xalloc (Makefile.am): Likewise.
77618         * modules/xgetcwd (Makefile.am): Likewise.
77619         * modules/xnanosleep (Makefile.am): Likewise.
77620         * modules/xreadlink (Makefile.am): Likewise.
77621         * modules/xstrtod (Makefile.am): Likewise.
77622         * modules/xstrtol (Makefile.am): Likewise.
77623         * modules/xstrtold (Makefile.am): Likewise.
77624         * modules/yesno (Makefile.am): Likewise.
77625
77626 2006-10-12  Jim Meyering  <jim@meyering.net>
77627
77628         * m4/getloadavg.m4: Revert the change below.
77629
77630         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
77631         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
77632         fail with a symlink, which is what coreutils' ./bootstrap now
77633         creates by default.
77634
77635 2006-10-12  Bruno Haible  <bruno@clisp.org>
77636
77637         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
77638         mingw.
77639         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
77640         MSVC and mingw explicitly.
77641
77642 2006-10-11  Simon Josefsson  <jas@extundo.com>
77643             Bruno Haible  <bruno@clisp.org>
77644
77645         Add support for multiple gnulib-tool invocations in the scope of a
77646         single configure.ac file.
77647         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
77648         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
77649         with the same contents as the _LIBADD variable.
77650         (func_emit_initmacro_start, func_emit_initmacro_end,
77651         func_emit_initmacro_done): New functions.
77652         (func_import, func_create_testdir): Invoke them. Allow the identifiers
77653         gl_LIBOBJS and gl_LTLIBOBJS.
77654
77655 2006-10-11  Bruno Haible  <bruno@clisp.org>
77656
77657         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
77658         (func_create_testdir): Don't create po/Makefile.am, don't invoke
77659         autoreconf. Instead, invoke autopoint explicitly but move back the
77660         *.m4 files from gnulib.
77661
77662 2006-10-11  Bruno Haible  <bruno@clisp.org>
77663
77664         * gnulib-tool (func_usage): Make module names after --create-testdir
77665         optional.
77666         (func_create_testdir): If no module was specified, use nearly all
77667         modules.
77668
77669 2006-10-12  Jim Meyering  <jim@meyering.net>
77670
77671         Big performance improvement for fts-based tools that use FTS_NOSTAT.
77672         Avoid spurious inode-mismatch problems on non-POSIX file systems.
77673         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
77674         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
77675         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
77676         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
77677         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
77678         (fts_set_stat_required): New function.
77679         (fts_open): Defer the calls to fts_stat, if possible or requested.
77680         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
77681         into fts_stat itself.
77682         (fts_read): Perform any required (deferred) fts_stat call.
77683         (fts_build): Likewise, for the directory we're about to open and read.
77684         In the readdir loop, carefully decide whether each entry will require
77685         an eventual call to fts_stat, using dirent.d_type info if available.
77686         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
77687         a command line argument into this function.  Update all callers.
77688         Map a return value of FTS_DOT to FTS_D for a command line argument.
77689         * modules/fts (Depends-on): Add d-type.  Alphabetize.
77690         Thanks to Miklos Szeredi for his tenacity and for the initial
77691         bug report about "find" failing on a FUSE-based file system.
77692
77693         * lib/fts.c (fts_open): Use consistent indentation.
77694
77695 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
77696
77697         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
77698         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
77699         reported by Jim Meyering.  All uses of cache variables renamed
77700         to match Autoconf's.
77701         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
77702         the other one.
77703
77704         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
77705         Fix misspelling in diagnostic.
77706
77707 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
77708
77709         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
77710         defined.  Problem reported by Matthew Woehlke.
77711
77712         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
77713         Add support for Tandem NonStop R series.
77714         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
77715         Use new macro.
77716
77717         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
77718         (has_trailing_slash): Omit size arg; all callers changed.
77719         Omit 'inline', since it doesn't help performance and we'd
77720         need to configure it.
77721         Don't count //, ///, etc. as having a trailing slash.
77722         As a side effect, this removes a C99ism reported by Matthew Woehlke.
77723         (rpl_rename_dest_slash): On failure, use rename's errno rather
77724         than (in some cases) an incorrect or junk errno.
77725         Simplify code by removing need to compute length; this does
77726         cause it to make two passes instead of one over the file name,
77727         but it's worth it.
77728
77729         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
77730         change, since Autoconf's version may no longer be appropriate now
77731         that we are using CVS Autoconf's version.  Add support for Tandem.
77732
77733 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
77734             Bruno Haible  <bruno@clisp.org>
77735
77736         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
77737         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
77738         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
77739         gl_AC_TYPE_LONG_LONG.
77740
77741         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
77742         instead of HAVE_LONG_LONG.
77743         * lib/printf-args.c (printf_fetchargs): Likewise.
77744         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
77745         * lib/vasnprintf.c (VASNPRINTF): Likewise.
77746         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
77747         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
77748         gl_AC_TYPE_LONG_LONG.
77749
77750 2006-10-11  Bruno Haible  <bruno@clisp.org>
77751
77752         * m4/longlong.m4: Add comments.
77753         * m4/ulonglong.m4: Likewise.
77754
77755 2006-10-10  Bruno Haible  <bruno@clisp.org>
77756
77757         Make it possible to #define stpcpy, strdup to aliases.
77758         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
77759         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
77760
77761 2006-10-10  Bruno Haible  <bruno@clisp.org>
77762
77763         Make it possible to #define gcd to an alias.
77764         * lib/gcd.c: Include config.h.
77765
77766 2006-10-10  Bruno Haible  <bruno@clisp.org>
77767
77768         Make it possible to #define c_isascii to an alias.
77769         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
77770         defined. Undefine the macros before defining them, to avoid gcc
77771         warnings.
77772         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
77773         define NO_C_CTYPE_MACROS early.
77774
77775 2006-10-10  Bruno Haible  <bruno@clisp.org>
77776
77777         Make it possible to #define set_program_name to an alias.
77778         * lib/progname.c: Don't undefine set_program_name; instead, undefine
77779         ENABLE_RELOCATABLE early.
77780
77781 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
77782
77783         Port to Tandem NSK OSS, which has 64-bit signed int but at most
77784         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
77785         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
77786         More generally, don't assume that 64-bit signed int is available
77787         if unsigned int is, and vice versa.
77788         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
77789         unsigned symbols, not on their signed counterparts.
77790         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
77791         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
77792         (UINT64_C, UINTMAX_C):
77793         Likewise.
77794         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
77795         unsigned counterparts.
77796         (Have_long_long, Unsigned): New macros.
77797         (Int): Renamed from INT.
77798         (strtoimax): Use the new macros.
77799         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
77800         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
77801         * modules/inttypes (inttypes.h): Substitute
77802         HAVE_UNSIGNED_LONG_LONG_INT.
77803         * modules/stdint (stdint.h): Likewise.
77804         (Files): Add m4/ulonglong.m4.
77805
77806 2006-10-10  Bruno Haible  <bruno@clisp.org>
77807
77808         Fix a gcc -Wshadow warning.
77809         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
77810         to 'bucket'.
77811         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
77812         gl_linked_indexof_from_to): Likewise.
77813         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
77814         Likewise.
77815         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
77816         Likewise.
77817         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
77818         Reported by Eric Blake.
77819
77820 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
77821
77822         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
77823         for NetBSD.  Problem reported by Bruno Haible.
77824
77825 2006-10-09  Jim Meyering  <jim@meyering.net>
77826
77827         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
77828         Patch from Bruno Haible.
77829
77830 2006-10-09  Jim Meyering  <jim@meyering.net>
77831
77832         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
77833         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
77834         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
77835
77836 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
77837
77838         Don't include <config.h> twice; this doesn't work in some cases,
77839         e.g., when config.h has "#define intmax_t long long int" and
77840         we include <config.h>, <inttypes.h>, <config.h> in that order.
77841         Problem reported by Matthew Woehlke in:
77842         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
77843         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
77844         * lib/fts-cycle.c: Don't include config.h.
77845         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
77846         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
77847         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
77848         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
77849         inttypes.h.
77850         * lib/xstrtoumax.c: Likewise.
77851         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
77852         __strtol and the like, so that this module is more like its siblings.
77853         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
77854         Remove; no longer needed now that we assume gnulib inttypes.h.
77855
77856 2006-10-08  Bruno Haible  <bruno@clisp.org>
77857
77858         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
77859         option.
77860
77861 2006-10-07  Jim Meyering  <jim@meyering.net>
77862
77863         * modules/inttypes (inttypes.h): Revert what seems to have been
77864         an inadvertent part of today's change: use "|", not "/" in the
77865         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
77866
77867 2006-10-07  Bruno Haible  <bruno@clisp.org>
77868
77869         * modules/sublist: New file.
77870
77871 2006-10-07  Bruno Haible  <bruno@clisp.org>
77872
77873         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
77874         * modules/argz (argz.h): Likewise.
77875         * modules/arpa_inet (arpa/inet.h): Likewise.
77876         * modules/byteswap (byteswap.h): Likewise.
77877         * modules/configmake (configmake.h): Likewise.
77878         * modules/fcntl (fcntl.h): Likewise.
77879         * modules/fnmatch (fnmatch.h): Likewise.
77880         * modules/getopt (getopt.h): Likewise.
77881         * modules/glob (glob.h): Likewise.
77882         * modules/inttypes (inttypes.h): Likewise.
77883         * modules/netinet_in (netinet/in.h): Likewise.
77884         * modules/poll (poll.h): Likewise.
77885         * modules/stdbool (stdbool.h): Likewise.
77886         * modules/stdint (stdint.h): Likewise.
77887         * modules/sys_select (sys/select.h): Likewise.
77888         * modules/sys_socket (sys/socket.h): Likewise.
77889         * modules/sys_stat (sys/stat.h): Likewise.
77890         * modules/sysexits (sysexits.h): Likewise.
77891         * modules/unistd (unistd.h): Likewise.
77892         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77893         Add a "DO NOT EDIT" comment to the generated file.
77894         (func_import): Likewise for gnulib-comp.m4.
77895
77896 2006-10-07  Bruno Haible  <bruno@clisp.org>
77897
77898         * lib/gl_sublist.h: New file.
77899         * lib/gl_sublist.c: New file.
77900
77901 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
77902
77903         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
77904         name (relative to the original working directory) and the file
77905         name component (relative to the temporary working directory).  All
77906         callers changed.
77907         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
77908         * lib/mkdir-p.c (make_dir_parents): Likewise.
77909         * lib/mkdir-p.h (make_dir_parents): Likewise.
77910
77911 2006-10-06  Eric Blake  <ebb9@byu.net>
77912
77913         Define several macros for use by the clean-temp module.
77914         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
77915         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
77916         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
77917
77918         * lib/clean-temp.h (close_stream_temp): New declaration.
77919         * lib/clean-temp.c (includes): Pull in headers according to what
77920         other modules are in use.
77921         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
77922
77923 2006-10-06  Bruno Haible  <bruno@clisp.org>
77924
77925         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
77926         instead of fopen, fwriteerror.
77927
77928 2006-10-06  Bruno Haible  <bruno@clisp.org>
77929
77930         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
77931         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
77932         int.
77933         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
77934         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
77935         Return an error indicator.
77936         Suggested by Eric Blake.
77937
77938 2006-10-06  Bruno Haible  <bruno@clisp.org>
77939
77940         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
77941         Reported by Eric Blake.
77942
77943 2006-10-06  Bruno Haible  <bruno@clisp.org>
77944
77945         * modules/closeout (Description): Mention stderr too.
77946
77947 2006-10-06  Bruno Haible  <bruno@clisp.org>
77948         and Paul Eggert  <eggert@cs.ucla.edu>
77949
77950         * lib/closeout.c (close_stdout): Also close stderr.
77951         * lib/closeout.h: Update comment.
77952
77953 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
77954
77955         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
77956         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
77957         * lib/dirchownmod.c: Include lchown.h.
77958         * lib/lchown.c: Don't include files that lchown.h now includes.
77959         Don't declare chown, since lchown.h now does that.
77960         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
77961         (lchown): Define to rpl_chown if lchown is declared but
77962         does not exist.  Declare using a prototype if lchown is not
77963         declared.  Add a copyright notice.
77964         * lib/mkstemp.h: Include <unistd.h>.
77965         * lib/openat.c: Include lchown.h.
77966
77967         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
77968         we now test for that separately.
77969         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
77970         rather than O_NOFOLLOW, when testing whether it's possible to
77971         avoid a race condition reliably.
77972         * lib/savewd.c (savewd_chdir): Likewise.
77973
77974         Remove macros that are no longer needed now that stdint.h is
77975         reliable.
77976         * lib/fsusage.c (UINTMAX_MAX): Remove.
77977         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
77978         * lib/utimecmp.c (SIZE_MAX): Remove.
77979
77980         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
77981
77982         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
77983         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
77984         O_NOATIME works.
77985
77986 2006-10-05  Bruno Haible  <bruno@clisp.org>
77987
77988         * lib/gl_list.h (gl_sortedlist_search_from_to,
77989         gl_sortedlist_indexof_from_to): New declarations.
77990         (gl_list_implementation): New fields sortedlist_search_from_to,
77991         sortedlist_indexof_from_to.
77992         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
77993         inline functions.
77994         * lib/gl_list.c (gl_sortedlist_search_from_to,
77995         gl_sortedlist_indexof_from_to): New functions.
77996         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
77997         function.
77998         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
77999         (gl_array_sortedlist_search_from_to): New function.
78000         (gl_array_list_implementation): Update.
78001         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
78002         function.
78003         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
78004         (gl_carray_sortedlist_search_from_to): New function.
78005         (gl_carray_list_implementation): Update.
78006         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
78007         gl_linked_sortedlist_indexof_from_to): New functions.
78008         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
78009         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
78010         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
78011         gl_tree_sortedlist_indexof_from_to): New functions.
78012         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
78013         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
78014         Update.
78015         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
78016         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
78017         Update.
78018
78019 2006-10-05  Bruno Haible  <bruno@clisp.org>
78020
78021         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
78022         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
78023         (struct gl_list_implementation): Add fields search_from_to,
78024         indexof_from_to. Remove fields search, indexof.
78025         (gl_list_search): Use the search_from_to method.
78026         (gl_list_search_from, gl_list_search_from_to): New functions.
78027         (gl_list_indexof): Use the indexof_from_to method.
78028         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
78029         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
78030         (gl_list_search_from, gl_list_search_from_to): New functions.
78031         (gl_list_indexof): Use the indexof_from_to method.
78032         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
78033         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
78034         gl_array_indexof. Add start_index, end_index arguments.
78035         (gl_array_search_from_to): Renamed from gl_array_search. Add
78036         start_index, end_index arguments.
78037         (gl_array_remove, gl_array_list_implementation): Update.
78038         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
78039         gl_carray_indexof. Add start_index, end_index arguments.
78040         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
78041         start_index, end_index arguments.
78042         (gl_carray_remove, gl_carray_list_implementation): Update.
78043         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
78044         gl_linked_search. Add start_index, end_index arguments.
78045         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
78046         start_index, end_index arguments.
78047         (gl_linked_remove): Update.
78048         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
78049         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
78050         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
78051         field to 'size_t'.
78052         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
78053         gl_tree_search. Add start_index, end_index arguments.
78054         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
78055         start_index, end_index arguments.
78056         (gl_tree_remove): Update.
78057         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
78058         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
78059         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
78060         function.
78061         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
78062         gl_tree_search. Add start_index, end_index arguments.
78063         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
78064         start_index, end_index arguments.
78065         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
78066         Update.
78067         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
78068
78069 2006-10-05  Bruno Haible  <bruno@clisp.org>
78070
78071         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
78072
78073         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
78074         fwriteerror_temp): New declarations.
78075         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
78076         (descriptors): New variable.
78077         (cleanup): First, close the descriptors.
78078         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
78079         fclose_temp, fwriteerror_temp): New functions.
78080
78081 2006-10-04  Jim Meyering  <jim@meyering.net>
78082
78083         * lib/fts.c (fts_open): Tiny comment change.
78084
78085 2006-10-04  Bruno Haible  <bruno@clisp.org>
78086
78087         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
78088         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
78089         gl_LOCK_BODY.
78090         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
78091         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
78092         gl_LOCK_EARLY_BODY.
78093         (gl_LOCK): Require gl_LOCK_BODY.
78094
78095 2006-10-04  Bruno Haible  <bruno@clisp.org>
78096
78097         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
78098         (gl_oset_search_atleast): New declaration.
78099         (struct gl_oset_implementation): Add field 'search_atleast'.
78100         (gl_oset_search_atleast): New inline function.
78101         * lib/gl_oset.c (gl_oset_search_atleast): New function.
78102         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
78103         (gl_array_oset_implementation): Update.
78104         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
78105         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
78106         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
78107
78108 2006-10-04  Bruno Haible  <bruno@clisp.org>
78109
78110         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
78111
78112 2006-10-03  Bruno Haible  <bruno@clisp.org>
78113
78114         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
78115         from gl_avltreehash_list_implementation.
78116
78117 2006-10-03  Bruno Haible  <bruno@clisp.org>
78118
78119         * lib/gl_oset.c (gl_oset_add): Fix return type.
78120
78121 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
78122
78123         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
78124
78125 2006-10-02  Eric Blake  <ebb9@byu.net>
78126
78127         * modules/strnlen (Depends-on): Add extensions.
78128
78129 2006-10-02  Eric Blake  <ebb9@byu.net>
78130
78131         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
78132         definition in 2.60+.
78133
78134 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
78135
78136         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
78137         checks.
78138
78139 2006-10-02  Bruno Haible  <bruno@clisp.org>
78140
78141         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
78142         to the AUTOMAKE_OPTIONS.
78143         Reported by Jim Meyering.
78144
78145 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
78146
78147         Work around bug in Solaris 10 /proc file system:
78148         /proc/self/fd/NNN/.. isn't the parent directory of
78149         the directory whose file descriptor is NNN.  This needs to
78150         be worked around at run time, not compile time, since a
78151         program might be built on Solaris 8, where things work, and
78152         run on Solaris 10.
78153         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
78154         to use the following interface instead:
78155         (OPENAT_BUFFER_SIZE): New macro.
78156         (openat_proc_name): New function.
78157         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
78158         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
78159         Likewise.
78160         * lib/openat-proc.c: New file.
78161         * modules/openat (Files): Add lib/openat-proc.c.
78162         (Depends-on): Add same-inode, stdbool.
78163         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
78164
78165 2006-09-29  Bruno Haible  <bruno@clisp.org>
78166
78167         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
78168         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
78169         argument. Set stdout_closed before testing for ferror, not after.
78170         (fwriteerror, fwriteerror_no_ebadf): New functions.
78171
78172 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78173
78174         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
78175
78176 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
78177
78178         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
78179         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
78180
78181 2006-09-28  Jim Meyering  <jim@meyering.net>
78182
78183         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
78184         Include <unistd.h>.
78185
78186 2006-09-28  Bruno Haible  <bruno@clisp.org>
78187
78188         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
78189         * modules/linkedhash-list (Depends-on): Likewise.
78190         * modules/rbtreehash-list (Depends-on): Likewise.
78191
78192 2006-09-28  Bruno Haible  <bruno@clisp.org>
78193
78194         * lib/strndup.h: Simplify the redefinition of strndup.
78195         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
78196         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
78197
78198 2006-09-28  Bruno Haible  <bruno@clisp.org>
78199
78200         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
78201         * lib/gl_linkedhash_list.c: Likewise.
78202         * lib/gl_rbtreehash_list.c: Likewise.
78203
78204 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
78205
78206         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
78207         getaddrinfo.
78208
78209         * lib/__fpending.h: Don't include <stdio_ext.h> unless
78210         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
78211         it causes <stdio_ext.h> to cause a compile-time error.
78212         Problem reported by Nelson H. F. Beebe.
78213         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
78214         of HAVE_DECL___PENDING.
78215
78216         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
78217         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
78218         declaration.
78219
78220 2006-09-27  Jim Meyering  <jim@meyering.net>
78221
78222         This file could end up with a definition for a function
78223         named __strndup, rather than rpl_strndup on a system with
78224         incomplete weak_alias support.
78225         * lib/strndup.c (strndup): Rename from __strndup.
78226         Remove #defines that used to map __strndup to strndup.
78227         Don't use K&R prototypes.
78228         Remove LIBC-related code, since this file is not sync'd with glibc.
78229         * lib/strndup.h: Revamp, accordingly.
78230         * m4/strndup.m4: Modernize.
78231
78232 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
78233
78234         * modules/savewd (Depends-on): Add 'raise'.
78235         * lib/savewd.c: Include <signal.h>, for 'raise'.
78236
78237 2006-09-26  Jim Meyering  <jim@meyering.net>
78238
78239         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
78240         when we detect Darwin 8.7.0's acl_get_file bug.
78241         Rearrange to perform the new (below) run-test while $LIBS
78242         contains any acl-related library.  Set USE_ACL at the end.
78243         (gl_ACL_GET_FILE): New function.
78244
78245 2006-09-26  Eric Blake  <ebb9@byu.net>
78246
78247         * lib/verror.c: Include <config.h> unconditionally.
78248
78249 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
78250
78251         * modules/clock-time (Maintainer): Add self.
78252         * modules/getlogin_r (Depends-on): Add extensions.
78253
78254 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78255
78256         * modules/clock-time: New module.
78257         * modules/nanosleep (Depends-on): Add clock-time.
78258         * modules/gethrxtime (Depends-on): Likewise.
78259         * modules/gettime (Depends-on): Likewise.
78260         * modules/settime (Depends-on): Likewise.
78261
78262         * modules/fts-lgpl: Depend on openat.
78263         * modules/mkancesdirs: Depend on savewd.
78264         * modules/mkdir-p: Likewise.
78265
78266 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78267
78268         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
78269
78270         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
78271         `gl_have_arbitrary_file_name_length_limit' to
78272         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
78273         actually works between configure runs.
78274
78275 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78276             Bruno Haible  <bruno@clisp.org>
78277
78278         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
78279
78280 2006-09-25  Jim Meyering  <jim@meyering.net>
78281
78282         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
78283         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
78284
78285 2006-09-25  Eric Blake  <ebb9@byu.net>
78286
78287         * gnulib-tool (func_import, func_create_testdir): Fix typos in
78288         exec's in 2006-09-18 patch when shuffling fds.
78289
78290 2006-09-25  Bruno Haible  <bruno@clisp.org>
78291
78292         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
78293         Reported by Jim Meyering.
78294
78295 2006-09-24  Jim Meyering  <jim@meyering.net>
78296
78297         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
78298         compare a pointer against a literal "0".  That caused failures with
78299         at least HP-UX's hpcc.
78300
78301 2006-09-22  Simon Josefsson  <jas@extundo.com>
78302
78303         * modules/gc-sha1:
78304         * modules/gc-md4:
78305         * modules/gc-hmac-sha1:
78306         * modules/gc-hmac-md5:
78307         * modules/gc-des:
78308         * modules/gc-arcfour: Distribute more files.
78309
78310 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78311
78312         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
78313         (gl_linked_iterator_from_to): Initialize struct completely.
78314         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
78315         (gl_tree_iterator_from_to): Likewise
78316         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
78317         * lib/gl_array_list.c [lint] (gl_array_iterator)
78318         (gl_array_iterator_from_to): Likewise.
78319         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
78320         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
78321         (gl_carray_iterator_from_to): Likewise.
78322
78323         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
78324         * lib/md4.c (md4_process_block): Remove unused variable.
78325         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
78326         parentheses for clarity.
78327
78328 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78329
78330         * modules/bison-i18n (Depends-on): Add gettext.
78331
78332 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78333
78334         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
78335         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
78336         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
78337         also add missing comma that caused broken test.
78338         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
78339         stdlib.h, for `abort'.
78340         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
78341         variables.
78342         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
78343         include unistd.h if present, for `rmdir'.
78344         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
78345         variables.
78346         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
78347         in the process include standard headers for prototypes.
78348         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
78349         gets declared on GNU/Linux.
78350         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
78351         unistd.h, for `rmdir'.
78352         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
78353
78354         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
78355         always true.
78356         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
78357
78358         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
78359
78360 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78361
78362         * gnulib-tool (func_version): Create output all at once.  This
78363         may help avoid triggering unnecessary SIGPIPEs, and at any
78364         rate it doesn't hurt.
78365
78366 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78367             Bruno Haible  <bruno@clisp.org>
78368
78369         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
78370         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
78371         * m4/signed.m4 (bh_C_SIGNED): Likewise.
78372
78373         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
78374         (gl_FUNC_VASPRINTF): Invoke it.
78375
78376 2006-09-22  Bruno Haible  <bruno@clisp.org>
78377
78378         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
78379         getloadavg.c as first argument.
78380
78381 2006-09-22  Bruno Haible  <bruno@clisp.org>
78382
78383         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
78384         at the beginning of the gl_INIT macro.
78385         * modules/getloadavg (configure.ac): Pass $gl_source_base to
78386         gl_GETLOADAVG.
78387
78388 2006-09-22  Bruno Haible  <bruno@clisp.org>
78389
78390         * gnulib-tool (func_create_megatestdir): Don't include the config-h
78391         module.
78392         Suggested by Ralf Wildenhues.
78393
78394 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
78395
78396         Import this patch from libc:
78397
78398         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
78399
78400         * lib/regex_internal.c (re_string_reconstruct): Handle
78401         offset < pstr->valid_raw_len && pstr->offsets_needed case.
78402         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
78403         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
78404         re_string_context_at.
78405
78406         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
78407         now requires it.
78408         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
78409         gl_REGEX now does it for us.
78410         (gl_REGEX): Add test taken from
78411         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
78412
78413         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
78414         Check that large offsets work.  Modernize Autoconf usages.
78415         Prefer "yes" to mean a good thing rather than a bad.
78416         Don't put "#define mkstemp" in config.h, as this might interfere
78417         with standard system headers that "#define mkstemp mkstemp64".
78418
78419         * modules/mkstemp (Depends-on): Add extensions, so that
78420         mkstemp is visible on some platforms.
78421         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
78422         (Include): Change to "mkstemp.h" from <stdlib.h>.
78423         (Files): Add mkstemp.h.
78424
78425         * lib/mkstemp.h: New file, since some standard headers
78426         #define mkstemp.
78427         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
78428         Include "mkstemp.h".
78429         Make the _LIBC code resemble glibc original more,
78430         e.g., use K&R style.
78431         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
78432         (mkstemp): Remove, since mkstemp.h does this for us.
78433         * lib/stdlib--.h: Include mkstemp.h.
78434
78435         Import this patch from libc:
78436
78437         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
78438
78439         * lib/tempname.c (__gen_tempname): Change attempts_min
78440         into a macro.  Use preprocessor to decide how to initialize
78441         attempts [Coverity CID 67].
78442
78443 2006-09-20  Bruno Haible  <bruno@clisp.org>
78444
78445         * lib/mkdtemp.c: Import from libc.
78446         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
78447                 * sysdeps/posix/tempname.c (__gen_tempname): Change
78448                 attempts_min into a macro.  Use preprocessor to decide how to
78449                 initialize attempts [Coverity CID 67].
78450         2001-11-27  Paul Eggert  <eggert@twinsun.com>
78451                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
78452                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
78453
78454 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78455
78456         * gnulib-tool (func_exit): New function, to allow to pass the
78457         exit status portably through the trap.  Use everywhere.
78458         (--help, --version): Signal a write error.
78459         (trap): catch SIGPIPE, for write errors.
78460         Exit at the end of the trap, with the correct exit status.
78461
78462 2006-09-19  Karl Berry  <karl@gnu.org>
78463
78464         * doc/gnulib.texi: note about the license texinfo files.
78465
78466 2006-09-19  Eric Blake  <ebb9@byu.net>
78467
78468         * gnulib-tool: Avoid space-tab.
78469
78470 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
78471
78472         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
78473         that prevented coreutils 6.1 from building.  Problem reported
78474         by Petter Reinholdtsen.
78475
78476 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
78477
78478         * gnulib-tool (avoidlist): Fix typo that broke options like
78479         --avoid=lock that are used by coreutils bootstrap.
78480
78481 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
78482
78483         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
78484         more systematically.
78485
78486 2006-09-18  Jim Meyering  <jim@meyering.net>
78487
78488         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
78489
78490 2006-09-18  Bruno Haible  <bruno@clisp.org>
78491
78492         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
78493
78494 2006-09-18  Bruno Haible  <bruno@clisp.org>
78495
78496         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
78497         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
78498         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
78499         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
78500         * m4/gettext.m4: Require autoconf >= 2.52.
78501         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
78502         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
78503         of gl_cv_header_inttypes_h.
78504
78505 2006-09-18  Bruno Haible  <bruno@clisp.org>
78506
78507         * lib/javaversion.c: Include configmake.h.
78508
78509 2006-09-18  Bruno Haible  <bruno@clisp.org>
78510
78511         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
78512         avoid that the while loops be executed in a subshell.
78513
78514 2006-09-18  Bruno Haible  <bruno@clisp.org>
78515
78516         * MODULES.html.sh (func_module): Break long lines.
78517         Suggested by Bruce Korb <bkorb@gnu.org>.
78518
78519 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78520
78521         Speed up by a factor of 1.12.
78522         * gnulib-tool (nl): New variable.
78523         (func_import): Rewrite include directive extraction to only read each
78524         directive once.
78525
78526 2006-09-17  Bruno Haible  <bruno@clisp.org>
78527
78528         * modules/javaversion (Makefile.am): Remove DEFS setting.
78529         (Depends-on): Add configmake, for PKGDATADIR definition.
78530
78531 2006-09-17  Bruno Haible  <bruno@clisp.org>
78532
78533         * gnulib-tool (func_create_testdir): Rewrite all files at once.
78534
78535 2006-09-17  Bruno Haible  <bruno@clisp.org>
78536
78537         * gnulib-tool (func_append): New function, stolen from libtool.m4.
78538         (func_modules_transitive_closure, func_modules_add_dummy,
78539         func_modules_to_filelist, func_import, func_create_testdir,
78540         func_create_megatestdir, ...): Use it wherever possible.
78541         Suggested by Ralf Wildenhues.
78542
78543 2006-09-16  Karl Berry  <karl@gnu.org>
78544
78545         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
78546         to avoid sectioning errors.
78547         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
78548         [ifinfo]: blank line after @center-ed titles.
78549         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
78550         Spell FSF address consistently with others.
78551         (These changes approved by rms.)
78552
78553 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78554
78555         Speed up by a factor of 1.61.
78556         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
78557         already checked module names again.
78558
78559 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78560
78561         Speed up by a factor of 1.13.
78562         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
78563         for new_files, and the input to func_add_or_update.
78564
78565 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78566
78567         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
78568         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
78569
78570 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
78571
78572         * modules/mkancesdirs (Depends-on): Add fcntl.
78573         * modules/savewd: New file.
78574         * MODULES.html.sh (File system functions): Add savewd.
78575
78576         * modules/configmake (Makefile.am): Add support for the
78577         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
78578
78579 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
78580
78581         * m4/savewd.m4: New file.
78582
78583 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
78584
78585         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
78586         (dirchownmod): New arg FD.  All callers changed.
78587         Use FD rather than opening the directory ourself, as opening is
78588         now the caller's responsibility.
78589         * lib/dirchownmod.h: Likewise.
78590         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
78591         hosts that require <sys/types.h> before <sys/stat.h>.  Include
78592         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
78593         (test_dir): Remove.
78594         (mkancesdirs): Return length of prefix of FILE that has already
78595         been made, or -2 if there is a child doing the work.  Redo
78596         algorithm so that it is O(N) rather than O(N**2).  Optimize away
78597         ".", and treat ".." specially since it might stray back into
78598         already-created areas.  Use a subprocess if necessary.  New arg
78599         WD; all users changed.  MAKE_DIR function should now return 1
78600         if it creates a directory that is not readable.  Return -2 if
78601         a child process is spun off.
78602         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
78603         Adjust signature to match code.
78604         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
78605         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
78606         all users changed.
78607         * lib/savewd.c, lib/savewd.h: New files.
78608
78609 2006-09-15  Jim Meyering  <jim@meyering.net>
78610
78611         * modules/rename-dest-slash: New module.
78612         * MODULES.html.sh (posix_compat): Add it here.
78613
78614         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
78615
78616 2006-09-15  Jim Meyering  <jim@meyering.net>
78617
78618         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
78619         file.
78620
78621         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
78622
78623 2006-09-15  Jim Meyering  <jim@meyering.net>
78624
78625         * lib/rename-dest-slash.c (has_trailing_slash): Use
78626         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
78627         (rpl_rename_dest_slash): Perform the cheaper trailing slash
78628         test before testing whether SRC is a directory.
78629         Suggestions from Bruno Haible.
78630
78631         Avoid a warning about an unused variable.
78632         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
78633         into the #ifdef block where it's used.
78634
78635         * lib/rename-dest-slash.c: New file.
78636
78637 2006-09-14  Bruno Haible  <bruno@clisp.org>
78638
78639         * lib/allocsa.c: Include <config.h> unconditionally.
78640         * lib/asnprintf.c: Likewise.
78641         * lib/asprintf.c: Likewise.
78642         * lib/c-strcasecmp.c: Likewise.
78643         * lib/c-strcasestr.c: Likewise.
78644         * lib/c-strncasecmp.c: Likewise.
78645         * lib/c-strstr.c: Likewise.
78646         * lib/classpath.c: Likewise.
78647         * lib/clean-temp.c: Likewise.
78648         * lib/concatpath.c: Likewise.
78649         * lib/copy-file.c: Likewise.
78650         * lib/csharpcomp.c: Likewise.
78651         * lib/csharpexec.c: Likewise.
78652         * lib/execute.c: Likewise.
78653         * lib/fatal-signal.c: Likewise.
78654         * lib/findprog.c: Likewise.
78655         * lib/fwriteerror.c: Likewise.
78656         * lib/gl_array_list.c: Likewise.
78657         * lib/gl_array_oset.c: Likewise.
78658         * lib/gl_avltree_list.c: Likewise.
78659         * lib/gl_avltree_oset.c: Likewise.
78660         * lib/gl_avltreehash_list.c: Likewise.
78661         * lib/gl_carray_list.c: Likewise.
78662         * lib/gl_linked_list.c: Likewise.
78663         * lib/gl_linkedhash_list.c: Likewise.
78664         * lib/gl_list.c: Likewise.
78665         * lib/gl_oset.c: Likewise.
78666         * lib/gl_rbtree_list.c: Likewise.
78667         * lib/gl_rbtree_oset.c: Likewise.
78668         * lib/gl_rbtreehash_list.c: Likewise.
78669         * lib/imaxabs.c: Likewise.
78670         * lib/imaxdiv.c: Likewise.
78671         * lib/javacomp.c: Likewise.
78672         * lib/javaexec.c: Likewise.
78673         * lib/javaversion.c: Likewise.
78674         * lib/linebreak.c: Likewise.
78675         * lib/localcharset.c: Likewise.
78676         * lib/lock.c: Likewise.
78677         * lib/mbchar.c: Likewise.
78678         * lib/mbswidth.c: Likewise.
78679         * lib/mkdtemp.c: Likewise.
78680         * lib/pipe.c: Likewise.
78681         * lib/printf-args.c: Likewise.
78682         * lib/printf-parse.c: Likewise.
78683         * lib/progname.c: Likewise.
78684         * lib/progreloc.c: Likewise.
78685         * lib/readlink.c: Likewise.
78686         * lib/sh-quote.c: Likewise.
78687         * lib/stpcpy.c: Likewise.
78688         * lib/stpncpy.c: Likewise.
78689         * lib/strcasecmp.c: Likewise.
78690         * lib/strcasestr.c: Likewise.
78691         * lib/strcspn.c: Likewise.
78692         * lib/striconv.c: Likewise.
78693         * lib/strncasecmp.c: Likewise.
78694         * lib/strnlen1.c: Likewise.
78695         * lib/strstr.c: Likewise.
78696         * lib/strtok_r.c: Likewise.
78697         * lib/tls.c: Likewise.
78698         * lib/tmpdir.c: Likewise.
78699         * lib/unicodeio.c: Likewise.
78700         * lib/unsetenv.c: Likewise.
78701         * lib/vasnprintf.c: Likewise.
78702         * lib/vasprintf.c: Likewise.
78703         * lib/wait-process.c: Likewise.
78704         * lib/xallocsa.c: Likewise.
78705         * lib/xsetenv.c: Likewise.
78706         * lib/xstriconv.c: Likewise.
78707
78708 2006-09-13  Simon Josefsson  <jas@extundo.com>
78709
78710         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
78711         that internally, suggested by Ralf Wildenhues
78712         <Ralf.Wildenhues@gmx.de>.
78713
78714 2006-09-13  Simon Josefsson  <jas@extundo.com>
78715
78716         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
78717         @LIBOBJS@.
78718         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78719
78720 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
78721
78722         * lib/_fpending.c: Include <config.h> unconditionally, since we no
78723         longer worry about uses that don't define HAVE_CONFIG_H.
78724         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
78725         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
78726         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
78727         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
78728         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
78729         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
78730         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
78731         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
78732         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
78733         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
78734         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
78735         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
78736         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
78737         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
78738         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
78739         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
78740         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
78741         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
78742         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
78743         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
78744         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
78745         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
78746         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
78747         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
78748         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
78749         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
78750         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
78751         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
78752         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
78753         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
78754         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
78755         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
78756         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
78757         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
78758         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
78759         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
78760         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
78761         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
78762         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
78763         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
78764         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
78765         Likewise.
78766
78767 2006-09-13  Eric Blake  <ebb9@byu.net>
78768
78769         * lib/getopt.c: Fix typo in last commit.
78770
78771 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
78772
78773         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
78774         dgettext.
78775
78776 2006-09-12  Jim Meyering  <jim@meyering.net>
78777
78778         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
78779         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
78780         Reported by Nelson H. F. Beebe.
78781
78782 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78783
78784         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
78785         program_invocation_name and program_invocation_short_name are
78786         initialized.
78787         * lib/argp-namefrob.h: Move declarations of program_invocation_name
78788         and program_invocation_short_name to argp.h, so they are visible
78789         to user programs.
78790         * lib/argp.h: Likewise
78791
78792 2006-09-10  Bruno Haible  <bruno@clisp.org>
78793
78794         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
78795         m4/inttypes_h.m4, m4/uintmax_t.m4.
78796
78797 2006-09-10  Bruno Haible  <bruno@clisp.org>
78798
78799         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
78800         gl_AC_TYPE_UINTMAX_T.
78801
78802 2006-09-10  Bruno Haible  <bruno@clisp.org>
78803
78804         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
78805
78806 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78807
78808         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
78809         convention.  Text proposed by Bruno Haible.
78810         (struct argp_option): Document the use of N_() wrappers.
78811
78812         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
78813         '\v', and translate the two parts separately, instead of feeding
78814         the whole string to gettext.  This allows to exclude
78815         '\v' from the strings visible to the translator by writing doc
78816         strings as N_("..") "\v" N_("..").
78817
78818 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
78819
78820         * config/srclist.txt: Undo latest change; the bug was fixed.
78821
78822 2006-09-09  Bruno Haible  <bruno@clisp.org>
78823
78824         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
78825         assignments if building a library without libtool.
78826         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
78827         in func_emit_lib_Makefile_am.
78828         (func_import): When building a static library libfoo.a, arrange to
78829         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
78830         (func_create_testdir): Likewise.
78831         * modules/gc (configure.ac, Makefile.am): If building statically,
78832         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
78833         * modules/iconvme (configure.ac, Makefile.am): Likewise.
78834         * modules/striconv (configure.ac, Makefile.am): Likewise.
78835         Based on a suggestion by Ralf Wildenhues.
78836
78837 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78838
78839         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
78840         Check for unistd.h too, since Autoconf doesn't assume POSIX.
78841         Also:
78842
78843         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78844         Add year_2050_test to catch glibc bug 2821
78845         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
78846
78847         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78848         Prefer #ifdef to #if.
78849
78850         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
78851         Return from 'main' instead of calling 'exit'.
78852
78853 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78854
78855         * lib/mktime.c (guess_time_tm): Fix bug where mktime
78856         returned the maximum time_t value rather than (time_t) -1.
78857         Problem originally reported by William Bardwell
78858         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
78859
78860         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
78861         Moved to here ...
78862         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
78863         ... from here.
78864
78865 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78866
78867         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
78868         2821 is fixed.
78869
78870 2006-09-08  Jim Meyering  <jim@meyering.net>
78871
78872         Don't make generated files read-only.  That would bother too many
78873         people.  However, do retain the ability to work when targets are
78874         read-only: remove the destination and temporary files before writing
78875         them (when generated via sed or echo), or by using the -f option for
78876         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
78877         * modules/alloca-opt, modules/argz, modules/arpa_inet:
78878         * modules/byteswap, modules/configmake, modules/fcntl:
78879         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
78880         * modules/localcharset, modules/netinet_in, modules/poll:
78881         * modules/stdbool, modules/stdint, modules/sys_select:
78882         * modules/sys_socket, modules/sys_stat, modules/sysexits:
78883
78884 2006-09-08  Jim Meyering  <jim@meyering.net>
78885
78886         Avoid new build failure on FreeBSD 6.0.
78887         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
78888         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
78889         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
78890
78891 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78892
78893         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
78894
78895 2006-09-07  Jim Meyering  <jim@meyering.net>
78896
78897         Fix global typo in last change: use chmod u-w, not chmod u-x.
78898         Spotted by Paul Eggert and Bruce Korb.
78899         * modules/alloca-opt, modules/argz, modules/arpa_inet:
78900         * modules/byteswap, modules/configmake, modules/fcntl:
78901         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
78902         * modules/localcharset, modules/netinet_in, modules/poll:
78903         * modules/stdbool, modules/stdint, modules/sys_select:
78904         * modules/sys_socket, modules/sys_stat, modules/sysexits:
78905
78906 2006-09-06  Jim Meyering  <jim@meyering.net>
78907
78908         Make generated files be read-only.
78909         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
78910         Ensure that each generated file is now read-only.
78911         * modules/argz: Likewise.
78912         * modules/arpa_inet: Likewise.
78913         * modules/byteswap: Likewise.
78914         * modules/configmake: Likewise.
78915         * modules/fcntl: Likewise.
78916         * modules/fnmatch: Likewise.
78917         * modules/getopt: Likewise.
78918         * modules/glob: Likewise.
78919         * modules/inttypes: Likewise.
78920         * modules/netinet_in: Likewise.
78921         * modules/poll: Likewise.
78922         * modules/stdbool: Likewise.
78923         * modules/stdint: Likewise.
78924         * modules/sys_select: Likewise.
78925         * modules/sys_socket: Likewise.
78926         * modules/sys_stat: Likewise.
78927         * modules/sysexits: Likewise.
78928         * modules/localcharset: Same as above, but continue using temporary
78929         file named "t-$@" (why different?) rather than the "$@-t" used
78930         everywhere else.
78931
78932         * modules/sysexits (Makefile.am): Replace literal occurrences
78933         of "sysexit.h" more readable, and more consistent, "$@".
78934
78935 2006-09-06  Bruno Haible  <bruno@clisp.org>
78936
78937         * modules/striconv: New file.
78938         * modules/xstriconv: New file.
78939         * MODULES.html.sh (Internationalization functions): Add striconv,
78940         xstriconv.
78941
78942 2006-09-06  Bruno Haible  <bruno@clisp.org>
78943
78944         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
78945         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
78946         not using libtool correctly.
78947
78948 2006-09-06  Bruno Haible  <bruno@clisp.org>
78949
78950         * lib/striconv.h: New file.
78951         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
78952         iconvstring.c.
78953         * lib/xstriconv.h: New file.
78954         * lib/xstriconv.c: New file.
78955
78956 2006-09-06  Bruno Haible  <bruno@clisp.org>
78957
78958         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
78959         lib_..._LDFLAGS.
78960
78961 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78962
78963         * lib/argz_.h: Sync from Libtool.
78964
78965         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
78966                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
78967
78968         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
78969
78970 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
78971
78972         * modules/trim: New file.
78973
78974 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
78975
78976         * lib/trim.h: New file.
78977         * lib/trim.c: New file.
78978
78979 2006-09-05  Bruno Haible  <bruno@clisp.org>
78980
78981         * MODULES.html.sh (String handling): Add trim.
78982
78983 2006-09-04  Karl Berry  <karl@gnu.org>
78984
78985         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
78986         until next release.
78987
78988 2006-09-03  Bruno Haible  <bruno@clisp.org>
78989
78990         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
78991         correctly.
78992
78993 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78994
78995         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
78996         not gl_GETLOADAVG.  Omit unneeded semicolons.
78997         Problems reported by Ralf Wildenhues in
78998         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
78999         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
79000         at the end, which is the usual gnulib style.
79001
79002         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
79003         of doing all the work ourselves.
79004         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
79005         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
79006
79007 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79008
79009         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
79010         Problem reported by Ralf Wildenhues in
79011         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
79012
79013         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
79014         HAVE_STRUCT_STATFS_F_FSTYPENAME.
79015
79016 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79017
79018         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
79019         yesterday's patch by changing test -n to test -z.
79020
79021 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79022
79023         * modules/getloadavg (Files): Add m4/getloadavg.m4.
79024         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
79025         the former is now obsolescent.
79026
79027         * modules/chdir-long (Depends-on): Add fcntl.
79028
79029 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79030
79031         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
79032         obsolescent, and programs should use gnulib instead.
79033         * m4/getloadavg.m4: New file, with contents taken from Autoconf
79034         but with prefixes changed.
79035
79036 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79037
79038         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
79039         or stdbool.h, because they might not exist while configuring.
79040
79041         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
79042         Don't include unistd.h or limits.h; not needed, since chdir-long.h
79043         does that for us.
79044         (O_DIRECTORY): Remove.
79045
79046 2006-08-31  Eric Blake  <ebb9@byu.net>
79047
79048         * gnulib-tool: Don't let emacs change spaces to TAB.
79049
79050 2006-08-31  Bruno Haible  <bruno@clisp.org>
79051
79052         * gnulib-tool: When calling func_import more than once, do it in a
79053         subshell.
79054         Reported by Eric Blake <ebb9@byu.net>.
79055
79056 2006-08-31  Bruno Haible  <bruno@clisp.org>
79057
79058         * gnulib-tool (nl): Remove variable.
79059         (sed_transform_lib_file): Use more robust test for config-h module.
79060         (func_import): Fix typo in 2006-08-25 patch.
79061
79062 2006-08-31  Bruno Haible  <bruno@clisp.org>
79063
79064         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
79065         specified, augment Makefile.am variables instead of assigning them.
79066
79067 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79068
79069         Work around a bug in both the Linux and SunOS 64-bit kernels:
79070         nanosleep mishandles sleeps for longer than 2**31 seconds.
79071         Problem reported by Frank v Waveren in
79072         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
79073         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
79074         Check for nanosleep bug.
79075         (LIB_NANOSLEEP): Append clock_gettime library if needed.
79076
79077 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79078
79079         Work around a bug in both the Linux and SunOS 64-bit kernels:
79080         nanosleep mishandles sleeps for longer than 2**31 seconds.
79081         Problem reported by Frank v Waveren in
79082         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
79083         * lib/nanosleep.c (BILLION): New constant.
79084         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
79085         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
79086         implementation.
79087
79088 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79089
79090         * modules/nanosleep (Depends-on): Add gettime.
79091
79092 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79093         and Simon Josefsson  <jas@extundo.com>
79094         and Oskar Liljeblad  <oskar@osk.mine.nu>
79095
79096         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
79097         * gnulib-tool (func_import): New license type 'unmodifiable license
79098         text'.
79099         * modules/fdl: Use it.  Longer description.
79100         * module/gpl, module/lgpl: New files.
79101
79102 2006-08-30  Jim Meyering  <jim@meyering.net>
79103
79104         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
79105         shadowing the parameter.
79106
79107 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79108
79109         Sync from Libtool:
79110
79111         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79112
79113         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
79114         sharing with gnulib.  Report by Eric Blake.
79115
79116 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79117
79118         * modules/isapipe: New file.
79119         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
79120
79121 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79122
79123         * modules/configmake (Makefile.am): Add a comment, and omit
79124         the CONFIGMAKE_ prefix from generated macro names.  Suggested
79125         by Bruno Haible.
79126
79127 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79128
79129         * m4/isapipe.m4: New file.
79130
79131 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79132
79133         * lib/isapipe.c, lib/isapipe.h: New files.
79134
79135 2006-08-29  Jim Meyering  <jim@meyering.net>
79136
79137         * modules/configmake (Makefile.am): Make configmake.h depend on
79138         Makefile.  Otherwise, a stale configmake.h could hang around.
79139
79140 2006-08-29  Eric Blake  <ebb9@byu.net>
79141
79142         * lib/error.c (error_at_line, print_errno_message): Match libc, after
79143         resolution of upstream bug 3044.
79144
79145 2006-08-29  Bruno Haible  <bruno@clisp.org>
79146
79147         * modules/localcharset (Depends-on): Add configmake.
79148         (Makefile.am): Remove setting of LIBDIR through DEFS.
79149
79150 2006-08-29  Bruno Haible  <bruno@clisp.org>
79151
79152         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
79153         defined.
79154
79155 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79156
79157         * modules/fcntl: New file.
79158         * modules/chdir-safer (Depends-on): Add fcntl.
79159         * modules/fts: Likewise.
79160         * modules/mkdir-p: Likewise.
79161
79162         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
79163         This undoes the most recent change, since we're now addressing the
79164         problem in a different way.
79165
79166         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
79167         into output, since the output might be called Makefile.am even
79168         if $makefile_name is something different.
79169         (func_import): Use $makefile_am rather than
79170         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
79171         empty.
79172
79173         * modules/inttypes (Files): Add m4/inttypes-h.m4.
79174
79175 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79176
79177         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
79178         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
79179         recent change to stdint.m4, since we're now addressing the problem in a
79180         different way.
79181
79182 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79183
79184         * m4/fcntl_h.m4: New file.
79185
79186 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79187
79188         * lib/fcntl_.h: New file.
79189         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
79190         the fcntl module.
79191         * lib/dirchownmod.c: Likewise.
79192         * lib/fts.c: Likewise.
79193
79194         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
79195         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
79196         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
79197         just before including <inttypes.h>, to avoid circular inclusion.
79198
79199 2006-08-28  Jim Meyering  <jim@meyering.net>
79200
79201         * doc/visibility.texi: Actually read and correct the grammar of the
79202         sentence affected by yesterday's change.
79203
79204 2006-08-28  Eric Blake  <ebb9@byu.net>
79205
79206         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
79207         needs wrapper.
79208
79209 2006-08-28  Eric Blake  <ebb9@byu.net>
79210
79211         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
79212
79213 2006-08-28  Eric Blake  <ebb9@byu.net>
79214
79215         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
79216
79217 2006-08-28  Bruno Haible  <bruno@clisp.org>
79218
79219         * modules/c-strstr: New file, from GNU gettext.
79220         * MODULES.html.sh (String handling): Add c-strstr.
79221
79222 2006-08-28  Bruno Haible  <bruno@clisp.org>
79223
79224         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
79225         macros.
79226         Reported by Eric Blake.
79227
79228 2006-08-28  Bruno Haible  <bruno@clisp.org>
79229
79230         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
79231         (VASNPRINTF): Return a string of length > INT_MAX without failing.
79232         * lib/vasprintf.c: Include errno.h, limits.h.
79233         (EOVERFLOW): New fallback definition.
79234         (vasprintf): Test here whether the string length is > INT_MAX.
79235         * lib/vsnprintf.c: Include errno.h, limits.h.
79236         (EOVERFLOW): New fallback definition.
79237         (vsnprintf): Fix bug when generated string was too long for the buffer.
79238         Test here whether the string length is > INT_MAX.
79239
79240 2006-08-28  Bruno Haible  <bruno@clisp.org>
79241
79242         * lib/inttypes_.h (SCNX*): Remove definitions.
79243         Reported by Eric Blake.
79244
79245 2006-08-28  Bruno Haible  <bruno@clisp.org>
79246
79247         * lib/c-strstr.h: New file, from GNU gettext.
79248         * lib/c-strstr.c: New file, from GNU gettext.
79249
79250 2006-08-28  Bruno Haible  <bruno@clisp.org>
79251
79252         * gnulib-tool: Reorder some statements.
79253
79254 2006-08-28  Bruno Haible  <bruno@clisp.org>
79255
79256         * gnulib-tool: New option --makefile-name.
79257         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
79258         $makefile_name.
79259         (func_import): Write $makefile_name to the cache file, and read it from
79260         there unless explicitly specified. Use $makefile_name as file name
79261         instead of Makefile.am. Adjust the recommendations accordingly.
79262
79263 2006-08-28  Bruno Haible  <bruno@clisp.org>
79264
79265         * gnulib-tool (func_verify_module): Check against misapplying patch.
79266
79267 2006-08-28  Bruno Haible  <bruno@clisp.org>
79268
79269         * gnulib-tool (func_relativize, func_relconcat): New functions.
79270         Give an error if --local-dir is given with --update.
79271         Remove trailing slashes from $local_gnulib_dir.
79272         (func_import): Store the relativized $local_gnulib_dir in
79273         gnulib-cache.m4, and read it from there if not specified explicitly.
79274
79275 2006-08-28  Bruno Haible  <bruno@clisp.org>
79276
79277         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
79278         is the current directory. Respect also $local_gnulib_dir.
79279
79280 2006-08-28  Bruno Haible  <bruno@clisp.org>
79281             Simon Josefsson  <jas@extundo.com>
79282
79283         BeOS portability.
79284         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
79285
79286 2006-08-27  Jim Meyering  <jim@meyering.net>
79287
79288         * doc/visibility.texi: Remove duplicate word: "pointer".
79289
79290 2006-08-26  Bruno Haible  <bruno@clisp.org>
79291
79292         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
79293         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
79294         (Makefile.am): Create inttypes.h from inttypes_.h.
79295         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
79296
79297         * modules/imaxabs: New file.
79298
79299         * modules/imaxdiv: New file.
79300
79301 2006-08-26  Bruno Haible  <bruno@clisp.org>
79302
79303         * m4/inttypes.m4: New file.
79304         * m4/_inttypes_h.m4: Remove file.
79305         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
79306         PRI_MACROS_BROKEN.
79307         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
79308
79309         * m4/imaxabs.m4: New file.
79310
79311         * m4/imaxdiv.m4: New file.
79312
79313 2006-08-26  Bruno Haible  <bruno@clisp.org>
79314
79315         * lib/inttypes_.h: New file.
79316         * lib/inttypes.h: Remove file.
79317         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
79318
79319         * lib/imaxabs.c: New file.
79320
79321         * lib/imaxdiv.c: New file.
79322
79323 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
79324
79325         New config-h module, so that "make" output needn't be cluttered
79326         by -DHAVE_CONFIG_H.
79327         * MODULES.html.sh (Support for building libraries and executables):
79328         Add config-h.
79329         * modules/config-h: New file.
79330         * gnulib-tool (nl, sed_transform_lib_file): New vars.
79331         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
79332         the config-h module is used.
79333
79334         New configmake module, so that "make" output needn't be cluttered
79335         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
79336         * MODULES.html.sh (Support for building libraries and executables):
79337         Add configmake.
79338         * modules/configmake: New file.
79339
79340 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
79341
79342         * m4/config-h.m4: New file.
79343
79344 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
79345
79346         * config/srclist.txt: Add elisp-comp.
79347
79348 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
79349
79350         * MODULES.html.sh (Support for building libraries and executables):
79351         Add elisp-comp.
79352         * build-aux/elisp-comp: New file.
79353         * modules/elisp-comp: New file.
79354
79355 2006-08-24  Bruno Haible  <bruno@clisp.org>
79356
79357         * gnulib-tool (func_create_testdir): Use non-default values of
79358         sourcebase and m4base.
79359
79360 2006-08-24  Bruno Haible  <bruno@clisp.org>
79361
79362         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
79363         HTML structure.
79364
79365 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
79366
79367         * modules/openat (Depends-on): Add lchown.
79368
79369 2006-08-23  Bruno Haible  <bruno@clisp.org>
79370
79371         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
79372         of gl_LOCK_EARLY instead of gl_LOCK.
79373
79374 2006-08-23  Bruno Haible  <bruno@clisp.org>
79375
79376         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
79377         on OSF/1 to no.
79378         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
79379
79380 2006-08-23  Bruno Haible  <bruno@clisp.org>
79381
79382         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
79383         as unusable.
79384
79385         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
79386         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
79387         (gl_LOCK): New macro.
79388
79389 2006-08-22  Simon Josefsson  <jas@extundo.com>
79390
79391         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
79392         to md5 module.
79393
79394 2006-08-22  Simon Josefsson  <jas@extundo.com>
79395
79396         * MODULES.html.sh: Add "Support for maintaining and release
79397         projects".
79398
79399         * build-aux/gnupload: New file, from coreutils.
79400
79401 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
79402
79403         Avoid the need for AC_LIBSOURCES in m4 macros.
79404         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
79405         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
79406         * modules/check-version (EXTRA_DIST): Add check-version.h.
79407         * modules/crc (EXTRA_DIST): Add crc.h.
79408         * modules/des (EXTRA_DIST): Add des.h.
79409         * modules/gc (EXTRA_DIST): Add gc.h.
79410         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
79411         * modules/getline (EXTRA_DIST): Add getline.h.
79412         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
79413         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
79414         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
79415         * modules/md2 (EXTRA_DIST): Add md2.h.
79416         * modules/md4 (EXTRA_DIST): Add md4.h.
79417         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
79418         * modules/read-file (EXTRA_DIST): Add read-file.h.
79419         * modules/readline (EXTRA_DIST): Add readline.h.
79420         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
79421         rijndael-api-fst.h.
79422
79423 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
79424
79425         * m4/rijndael.m4 (gl_ARCFOUR):
79426         * m4/arctwo.m4 (gl_ARCTWO):
79427         * m4/check-version.m4 (gl_CHECK_VERSION):
79428         * m4/crc.m4 (gl_CRC):
79429         * m4/des.m4 (gl_DES):
79430         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
79431         * m4/gc.m4 (gl_GC):
79432         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
79433         * m4/getline.m4 (gl_FUNC_GETLINE):
79434         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
79435         * m4/hmac-md5.m4 (gl_HMAC_MD5):
79436         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
79437         * m4/md2.m4 (gl_MD2):
79438         * m4/md4.m4 (gl_MD4):
79439         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
79440         * m4/read-file.m4 (gl_FUNC_READ_FILE):
79441         * m4/readline.m4 (gl_FUNC_READLINE):
79442         * m4/rijndael.m4 (gl_RIJNDAEL):
79443         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
79444         to get the necessary .h files and whatnot.
79445
79446 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
79447
79448         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
79449         gnulib rather than the other way around.
79450         * config/srclistvars.sh (COREUTILS): Remove.
79451
79452 2006-08-22  Jim Meyering  <jim@meyering.net>
79453
79454         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
79455
79456         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
79457
79458 2006-08-22  Eric Blake  <ebb9@byu.net>
79459
79460         * modules/regexprops-generic: New file.
79461         * MODULES.html.sh (Support for building documentation): List it.
79462
79463 2006-08-22  Eric Blake  <ebb9@byu.net>
79464
79465         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
79466         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
79467         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
79468         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
79469
79470 2006-08-22  Bruno Haible  <bruno@clisp.org>
79471
79472         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
79473         and lib_LTLIBRARIES like the other lib_* variables.
79474
79475 2006-08-22  Bruno Haible  <bruno@clisp.org>
79476
79477         * build-aux/x-to-1.in: New file, from GNU gettext.
79478
79479 2006-08-22  Bruno Haible  <bruno@clisp.org>
79480
79481         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
79482         <utmpx.h> exists.
79483
79484 2006-08-22  Bruno Haible  <bruno@clisp.org>
79485
79486         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
79487         <utmpx.h> exists.
79488
79489 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
79490
79491         BeOS portability.
79492         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
79493         exist.
79494         Problem reported by Bruno Haible.
79495
79496 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
79497
79498         Avoid the need for AC_LIBSOURCES in m4 macros.
79499         * modules/acl (EXTRA_DIST): Add acl.h.
79500         * modules/argmatch (Files): Add m4/argmatch.m4.
79501         (configure.ac): Add gl_ARGMATCH.
79502         (EXTRA_DIST): Renamed from lib_SOURCES, for
79503         consistency with the other modules.  Remove argmatch.c.
79504         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
79505         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
79506         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
79507         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
79508         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
79509         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
79510         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
79511         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
79512         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
79513         * modules/closeout (EXTRA_DIST): Add closeout.h.
79514         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
79515         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
79516         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
79517         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
79518         dirname.h; remove basename.c and stripslash.c.
79519         * modules/exclude (EXTRA_DIST): Add exclude.h.
79520         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
79521         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
79522         * modules/file-type (EXTRA_DIST): Add file-type.h.
79523         * modules/filemode (EXTRA_DIST): Add filemode.h.
79524         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
79525         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
79526         * modules/fpending (EXTRA_DIST): Add __fpending.h.
79527         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
79528         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
79529         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
79530         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
79531         * modules/getdate (EXTRA_DIST): Add getdate.c.
79532         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
79533         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
79534         * modules/getpass (EXTRA_DIST): Add getpass.h.
79535         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
79536         * modules/group-member (EXTRA_DIST): Add group-member.h.
79537         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
79538         * modules/hash (EXTRA_DIST): Add hash.h.
79539         * modules/human (EXTRA_DIST): Add human.h.
79540         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
79541         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
79542         * modules/lchown (EXTRA_DIST): Add lchown.h.
79543         * modules/long-options (EXTRA_DIST): Add long-options.h.
79544         * modules/lstat (EXTRA_DIST): Add lstat.h.
79545         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
79546         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
79547         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
79548         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
79549         * modules/memxor (EXTRA_DIST): Add memxor.h.
79550         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
79551         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
79552         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
79553         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
79554         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
79555         * modules/physmem (EXTRA_DIST): Add physmem.h.
79556         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
79557         * modules/posixver (EXTRA_DIST): Add posixver.h.
79558         * modules/quote (EXTRA_DIST): Add quote.h.
79559         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
79560         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
79561         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
79562         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
79563         regex_internal.h regexec.c.
79564         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
79565         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
79566         * modules/same (EXTRA_DIST): Add same.h.
79567         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
79568         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
79569         * modules/savedir (EXTRA_DIST): Add savedir.h.
79570         * modules/sha1 (EXTRA_DIST): Add sha1.h.
79571         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
79572         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
79573         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
79574         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
79575         * modules/strdup (EXTRA_DIST): Add strdup.h.
79576         * modules/strftime (EXTRA_DIST): Add strftime.h.
79577         * modules/strndup (EXTRA_DIST): Add strndup.h.
79578         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
79579         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
79580         * modules/time_r (EXTRA_DIST): Add time_r.h.
79581         * modules/timespec (EXTRA_DIST): Add timespec.h.
79582         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
79583         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
79584         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
79585         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
79586         * modules/userspec (EXTRA_DIST): Add userspec.h.
79587         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
79588         * modules/utimens (EXTRA_DIST): Add utimens.h.
79589         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
79590         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
79591         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
79592         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
79593         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
79594         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
79595         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
79596         * modules/yesno (EXTRA_DIST): Add yesno.h.
79597
79598 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
79599
79600         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
79601
79602         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
79603         * m4/dev-ino.m4, same-inode.m4: Remove.
79604
79605         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
79606         * m4/acl.m4 (AC_FUNC_ACL):
79607         * m4/backupfile.m4 (gl_BACKUPFILE):
79608         * m4/c-strtod.m4 (gl_C99_STRTOLD):
79609         * m4/canon-host.m4 (gl_CANON_HOST):
79610         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
79611         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
79612         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
79613         * m4/cloexec.m4 (gl_CLOEXEC):
79614         * m4/close-stream.m4 (gl_CLOSE_STREAM):
79615         * m4/closeout.m4 (gl_CLOSEOUT):
79616         * m4/dirfd.m4 (gl_FUNC_DIRFD):
79617         * m4/dirname.m4 (gl_DIRNAME):
79618         * m4/exclude.m4 (gl_EXCLUDE):
79619         * m4/exitfail.m4 (gl_EXITFAIL):
79620         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
79621         * m4/file-type.m4 (gl_FILE_TYPE):
79622         * m4/filemode.m4 (gl_FILEMODE):
79623         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
79624         * m4/fpending.m4 (gl_FUNC_FPENDING):
79625         * m4/fprintftime.m4 (gl_FPRINTFTIME):
79626         * m4/fts.m4 (gl_FUNC_FTS):
79627         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
79628         * m4/getdate.m4 (gl_GETDATE):
79629         * m4/gethrxtime.m4 (gl_GETHRXTIME):
79630         * m4/getpagesize.m4 (gl_GETPAGESIZE):
79631         * m4/getpass.m4 (gl_FUNC_GETPASS):
79632         * m4/gettime.m4 (gl_GETTIME):
79633         * m4/getugroups.m4 (gl_GETUGROUPS):
79634         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
79635         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
79636         * m4/hard-locale.m4 (gl_HARD_LOCALE):
79637         * m4/hash.m4 (gl_HASH):
79638         * m4/idcache.m4 (gl_IDCACHE):
79639         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
79640         * m4/lchown.m4 (gl_FUNC_LCHOWN):
79641         * m4/long-options.m4 (gl_LONG_OPTIONS):
79642         * m4/lstat.m4 (gl_FUNC_LSTAT):
79643         * m4/md5.m4 (gl_MD5):
79644         * m4/memcasecmp.m4 (gl_MEMCASECMP):
79645         * m4/memcoll.m4 (gl_MEMCOLL):
79646         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
79647         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
79648         * m4/memxor.m4 (gl_MEMXOR):
79649         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
79650         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
79651         * m4/modechange.m4 (gl_MODECHANGE):
79652         * m4/mountlist.m4 (gl_MOUNTLIST):
79653         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
79654         * m4/openat.m4 (gl_FUNC_OPENAT):
79655         * m4/pathmax.m4 (gl_PATHMAX):
79656         * m4/physmem.m4 (gl_PHYSMEM):
79657         * m4/posixtm.m4 (gl_POSIXTM):
79658         * m4/posixver.m4 (gl_POSIXVER):
79659         * m4/quote.m4 (gl_QUOTE):
79660         * m4/quotearg.m4 (gl_QUOTEARG):
79661         * m4/readtokens.m4 (gl_READTOKENS):
79662         * m4/readutmp.m4 (gl_READUTMP):
79663         * m4/regex.m4 (gl_REGEX):
79664         * m4/safe-read.m4 (gl_SAFE_READ):
79665         * m4/safe-write.m4 (gl_SAFE_WRITE):
79666         * m4/same.m4 (gl_SAME):
79667         * m4/save-cwd.m4 (gl_SAVE_CWD):
79668         * m4/savedir.m4 (gl_SAVEDIR):
79669         * m4/settime.m4 (gl_SETTIME):
79670         * m4/sha1.m4 (gl_SHA1):
79671         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
79672         * m4/stat-macros.m4 (gl_STAT_MACROS):
79673         * m4/stat-time.m4 (gl_STAT_TIME):
79674         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
79675         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
79676         * m4/strdup.m4 (gl_FUNC_STRDUP):
79677         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
79678         * m4/strndup.m4 (gl_FUNC_STRNDUP):
79679         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
79680         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
79681         * m4/time_r.m4 (gl_TIME_R):
79682         * m4/timespec.m4 (gl_TIMESPEC):
79683         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
79684         * m4/unlinkdir.m4 (gl_UNLINKDIR):
79685         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
79686         * m4/userspec.m4 (gl_USERSPEC):
79687         * m4/utimecmp.m4 (gl_UTIMECMP):
79688         * m4/utimens.m4 (gl_UTIMENS):
79689         * m4/xalloc.m4 (gl_XALLOC):
79690         * m4/xgetcwd.m4 (gl_XGETCWD):
79691         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
79692         * m4/xreadlink.m4 (gl_XREADLINK):
79693         * m4/xstrtod.m4 (gl_XSTRTOD):
79694         * m4/yesno.m4 (gl_YESNO):
79695         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
79696         to get the necessary .h files and whatnot.
79697
79698 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
79699             Bruno Haible  <bruno@clisp.org>
79700
79701         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
79702         /bin/sh understanding of '!' conditional negation.
79703
79704 2006-08-21  Jim Meyering  <jim@meyering.net>
79705
79706         * modules/openat (Depends-on): Really alphabetize.
79707
79708         * modules/acl (Depends-on): Add error and quote.
79709
79710         * check-module (find_included_lib_files): Add at-func.c to the
79711         ok-to-include-more-than-once white list.
79712
79713         * modules/openat (Depends-on): Add lstat.  Alphabetize.
79714
79715 2006-08-21  Bruno Haible  <bruno@clisp.org>
79716
79717         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79718         Emit a pkgdata_DATA variable only if some snippets add contents to it.
79719         Reported by Martin Lambers <marlam@marlam.de>.
79720
79721 2006-08-21  Bruno Haible  <bruno@clisp.org>
79722
79723         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
79724         specify an installation location, don't emit a noinst_LIBRARIES or
79725         noinst_LTLIBRARIES assignment.
79726
79727 2006-08-21  Bruno Haible  <bruno@clisp.org>
79728
79729         BeOS portability.
79730         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
79731         BeOS has mbrtowc() but no <wctype.h>.
79732
79733 2006-08-21  Bruno Haible  <bruno@clisp.org>
79734
79735         BeOS portability.
79736         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
79737         exist.
79738
79739 2006-08-21  Bruno Haible  <bruno@clisp.org>
79740
79741         BeOS portability.
79742         * lib/mbchar.h: Include <wctype.h> only if it exists.
79743
79744 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
79745
79746         Remove files that are no longer needed by their respective modules.
79747         * m4/obstack.m4: Remove.
79748         * m4/strerror_r.m4: Remove.
79749         * m4/uint32_t.m4: Remove.
79750         * m4/uintptr_t.m4: Remove.
79751         * m4/ullong_max.m4: Remove.
79752         * m4/xstrtoimax.m4: Remove.
79753         * m4/xstrtoumax.m4: Remove.
79754
79755         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
79756         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
79757         dependencies now capture this.
79758
79759         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
79760         Do not use AC_LIBSOURCES, since gnulib modules now do this.
79761         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
79762         * m4/human.m4 (gl_HUMAN): Likewise.
79763         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
79764         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
79765
79766         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
79767
79768         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
79769         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
79770         stdint.
79771         * m4/human.m4 (gl_HUMAN): Likewise.
79772         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
79773         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
79774         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
79775         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
79776         * m4/xstrtol (gl_XSTRTOL): Likewise.
79777
79778         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
79779         AC_TYPE_LONG_LONG_INT.
79780         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
79781         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
79782         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
79783         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
79784
79785         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
79786         on stdbool.
79787
79788         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
79789         (gl_PREREQ_XSTRTOUL): Remove.
79790
79791         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
79792
79793         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
79794         mode.
79795
79796 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
79797
79798         Add and change modules to make it easier for coreutils to use
79799         gnulib-tool.
79800         * modules/backupfile (Files): Remove m4/d-ino.m4.
79801         (Depends-on): Add d-ino.
79802         * modules/cycle-check (Depends-on): Add stdint.
79803         (lib_SOURCES): Add cycle-check.h.
79804         * modules/d-ino: New module.
79805         * modules/d-type: New module.
79806         * modules/error (Files): Remove m4/strerror_r.m4.
79807         * modules/filemode (Files): Add m4/st_dm_mode.m4.
79808         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
79809         m4/inttypes_h.m4, m4/uintmax_t.m4.
79810         (Depends-on): Add stdint.
79811         (lib_SOURCES): Add fsusage.h.
79812         * modules/getcwd (Files): Remove d-ino.m4.
79813         (Depends-on): Add d-ino.
79814         * modules/getndelim2 (Depends-on): Add stdint.
79815         * modules/glob (Files): Remove m4/d-type.m4.
79816         (Depends-on): Add d-type.
79817         * modules/host-os: New module.
79818         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
79819         m4/inttypes_h.m4, m4/uintmax_t.m4.
79820         * Depends-on: Add stdint.
79821         (lib_SOURCES): Add human.h.
79822         * modules/inttostr (Files): Remove m4/intmax_t.m4,
79823         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
79824         m4/uintmax_t.m4, m4/ulonglong.m4.
79825         (Depends-on): Add stdint.
79826         (EXTRA_DIST): Add inttostr.h.
79827         * modules/lchmod: New module.
79828         * modules/link-follow: New module.
79829         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
79830         (Depends-on): Add lchmod.
79831         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
79832         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
79833         (Depends-on): Add stdint.
79834         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
79835         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
79836         (Depends-on): Add stdint.
79837         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
79838         * modules/perl: New module.
79839         * modules/regex (Depends-on): Add stdint.
79840         * modules/rmdir-errno: New module.
79841         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
79842         m4/intmax_t.m4.
79843         (Depends-on): Add stdint.
79844         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
79845         m4/uintmax_t.m4.
79846         (Depends-on): Add stdint.
79847         * modules/unlink-busy: New module.
79848         * modules/utimecmp (Depends-on): Add stdint.
79849         * modules/uptime: New module.
79850         * modules/winsz-ioctl: New module.
79851         * modules/winsz-termios: New module.
79852         * modules/xnanosleep (Depends-on): Add nanosleep.
79853         * modules/ullong_max: Remove.
79854         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
79855         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
79856         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
79857         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
79858         (Depends-on): Add inttypes.
79859         (lib_SOURCES): Add xstrtol.h.
79860         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
79861         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
79862         * MODULES.html.sh: Move 'assert' into the assert section.
79863         Move 'dummy' into the linking section.
79864         Remove ullong_max.
79865         Add section for compatibility checks for POSIX:2001 functions,
79866         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
79867         winsz-ioctl, and winsz-termios into it.
79868         Add lchmod.
79869         Add top-level Misc section and put host-os, perl, and uptime
79870         into it.
79871
79872 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
79873
79874         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
79875         now assume the stdint module.  Do not include inttypes.h.
79876         * lib/fsusage.h: Likewise.
79877         * lib/getndelim2.c: Likewise.
79878         * lib/human.h: Likewise.
79879         * lib/inttostr.h: Likewise.
79880         * lib/obstack.c: Likewise.
79881         * lib/regex_internal.h: Likewise.
79882         * lib/tempname.c: Likewise.
79883         * lib/utimecmp.c: Likewise.
79884         * lib/xstrtol.h: Likewise.
79885
79886         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
79887
79888         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
79889         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
79890         * lib/xtime.h: Likewise.
79891
79892 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79893
79894         * modules/openat (Files): Add lib/fchmodat.c.
79895         Fixes problem reported by Jay Youngman.
79896
79897 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79898
79899         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
79900         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
79901
79902 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
79903             Bruno Haible  <bruno@clisp.org>
79904
79905         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
79906         and is a script that invokes bison. Tighten the code. Add comments.
79907
79908 2006-08-18  Jim Meyering  <jim@meyering.net>
79909
79910         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
79911         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
79912         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
79913         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
79914
79915 2006-08-18  Bruno Haible  <bruno@clisp.org>
79916
79917         * modules/bison-i18n: New file.
79918         * MODULES.html.sh (Internationalization functions): Add it.
79919
79920 2006-08-18  Bruno Haible  <bruno@clisp.org>
79921
79922         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
79923         sys/statvfs.h. When getmntinfo was found, check its declaration and
79924         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
79925
79926 2006-08-18  Bruno Haible  <bruno@clisp.org>
79927
79928         * m4/bison-i18n.m4: New file, from bison.
79929
79930 2006-08-18  Bruno Haible  <bruno@clisp.org>
79931
79932         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
79933         (ME_DUMMY): Treat "kernfs" as a dummy.
79934         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
79935
79936 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79937
79938         Update from coreutils.
79939
79940         2006-08-15  Jim Meyering  <jim@meyering.net>
79941
79942         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
79943
79944         2006-01-17  Jim Meyering  <jim@meyering.net>
79945
79946         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
79947
79948         2006-01-11  Jim Meyering  <jim@meyering.net>
79949
79950         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
79951         Check for the lchmod function.
79952
79953 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79954
79955         Update from coreutils.
79956
79957         * lib/__fpending.h: Add copyright notice.
79958         * lib/fprintftime.h: Likewise.
79959         * lib/savedir.c: Use (C) in copyright notice.
79960         * lib/savedir.h: Likewise.
79961
79962         2006-08-15  Jim Meyering  <jim@meyering.net>
79963
79964         * lib/at-func.c: New file, with the logic of all emulated at-functions.
79965         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
79966         in support of the EXPECTED_ERRNO macro.
79967         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
79968         definitions.  Instead, define the appropriate symbols and include
79969         "at-func.c".
79970         * lib/mkdirat.c (mkdirat): Likewise.
79971         * lib/fchmodat.c (fchmodat): Likewise.
79972         (ENOSYS): Remove definition.
79973         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
79974         it.  Don't include "unistd--.h" -- it wasn't ever used.
79975
79976         2006-01-17  Jim Meyering  <jim@meyering.net>
79977
79978         Rewrite fts.c not to change the current working directory,
79979         by using openat, fstatat, fdopendir, etc..
79980
79981         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
79982         (HAVE_OPENAT_SUPPORT): Define.
79983         [_LIBC] (fchdir): Don't undef or define; no longer used.
79984         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
79985         Now, this `function' always succeeds, and consumes its file descriptor
79986         parameter -- so callers must not close such FDs.  Update callers.
79987         (diropen_fd, opendirat, cwd_advance_fd): New functions.
79988         (diropen): Add parameter, SP.  Adjust all callers.
79989         Implement using diropen_fd, rather than open.
79990         (fts_open): Initialize new member, fts_cwd_fd.
79991         Remove fts_rft-setting code.
79992         (fts_close): Close fts_cwd_fd, if necessary.
79993         (__opendir2): Define in terms of opendir or opendirat,
79994         depending on whether the FST_NOCHDIR flag is set.
79995         (fts_build): Since fts_safe_changedir consumes its FD, and since
79996         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
79997         and close the dup'd file descriptor upon failure.
79998         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
79999         (fts_safe_changedir): Tweak semantics to reflect that this function
80000         now calls cwd_advance_fd and hence consumes its FD argument.
80001         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
80002         [struct FTS] (fts_rft): Remove now-unused member.
80003         [struct FTS] (fts_cycle.state): Improve comment.
80004
80005         * lib/openat.c (openat_needs_fchdir): New function.
80006         * lib/openat.h (openat_needs_fchdir): Declare it.
80007
80008 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
80009
80010         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
80011         Problem and fix reported by Pádraig Brady in
80012         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
80013
80014 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80015
80016         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
80017
80018 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80019
80020         * lib/memcoll.c (memcoll): Optimize for the common case where the
80021         arguments are bytewise equal.
80022
80023 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80024
80025         * doc/regexprops-generic.texi: Add a copyright notice.
80026
80027 2006-08-15  Bruno Haible  <bruno@clisp.org>
80028
80029         * modules/tmpdir (License): Change to LGPL.
80030
80031 2006-08-15  Bruno Haible  <bruno@clisp.org>
80032
80033         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
80034         module.
80035
80036 2006-08-14  Simon Josefsson  <jas@extundo.com>
80037
80038         * config/srclist.txt: Add gnupload.
80039
80040 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80041
80042         Change copyright notice from LGPL 2 to GPL 2, since that's the
80043         standard form used in the gnulib repository.
80044         * tests/test-lock.c: Likewise.
80045         * tests/test-stdint.c: Likewise.
80046         * tests/test-tls.c: Likewise.
80047
80048         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
80049         prelude-manager.  User shorter URLs for GNU projects, without '?'.
80050         Add copyright notice.
80051
80052         * check-module: Add copyright notice.  Output a copyright
80053         notice if "--version" is specified.
80054         * modules/COPYING: New file.
80055         * tests/test-getaddrinfo.c: Add copyright notice.
80056         * tests/test-verify.c: Likewise.
80057
80058 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80059
80060         Change copyright notice from LGPL 2 to GPL 2, since that's the
80061         standard form used in the gnulib repository.
80062         * lib/lock.c: LGPL -> GPL.
80063         * lib/lock.h: Likewise.
80064         * lib/strnlen1.c: Likewise.
80065         * lib/strnlen1.h: Likewise.
80066         * lib/tls.c: Likewise.
80067         * lib/tls.h: Likewise.
80068         * lib/tmpdir.c: Likewise.
80069
80070         * lib/TODO: Remove; this belongs only in coreutils.
80071
80072 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80073
80074         Add copyright notices to long-enough files that lack them, since
80075         otherwise the files aren't clearly free.  Use the same notice that
80076         getdate.texi already uses.
80077         * doc/alloca-opt.texi: Add copyright notice.
80078         * doc/alloca.texi: Likewise.
80079         * doc/ctime.texi: Likewise.
80080         * doc/functions.texi: Likewise.
80081         * doc/gcd.texi: Likewise.
80082         * doc/gnulib-tool.texi: Likewise.
80083         * doc/inet_ntoa.texi: Likewise.
80084         * doc/visibility.texi: Likewise.
80085
80086         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
80087         * doc/quote.texi: Add copyright notice.
80088
80089         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
80090         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
80091         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
80092         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
80093         is now obsolete, and give a pointer to the Sun list.
80094         Add copyright notice.
80095
80096 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80097
80098         * config/srclistvars.sh: Add copyright notice.
80099
80100 2006-08-14  Eric Blake  <ebb9@byu.net>
80101
80102         Import the following change from libc:
80103
80104         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
80105
80106         Upstream bug 2997.
80107         * lib/misc/error.c: Add space between program name and message if file
80108         name is missing.
80109
80110 2006-08-12  Karl Berry  <karl@gnu.org>
80111
80112         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
80113         remove, these originate in gnulib now.
80114
80115 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80116
80117         * doc/Makefile (standards.info standards.html standards.dvi):
80118         Also depend on make-stds.texi.
80119
80120 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80121
80122         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
80123         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
80124
80125         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
80126         in wchar_t.  Problem reported by Eric Blake.
80127
80128         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
80129         LEN is smaller than SIZE.  Suggested by Bruno Haible.
80130         Also, help the compiler to keep LEN in a register.
80131
80132 2006-08-11  Eric Blake  <ebb9@byu.net>
80133
80134         * users.txt: Sort.  Add tar.
80135
80136 2006-08-11  Bruno Haible  <bruno@clisp.org>
80137
80138         * users.txt: New file.
80139
80140 2006-08-11  Bruno Haible  <bruno@clisp.org>
80141
80142         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
80143         before <wchar.h>. Needed for OSF/1 and BSD/OS.
80144
80145 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
80146
80147         * modules/snprintf (Depends-on): Remove minmax.
80148         (Maintainer): Add self and Bruno.
80149
80150 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
80151
80152         * lib/.cppi-disable: Add snprintf.h, socket_.h.
80153         * lib/snprintf.c: Include <errno.h> and <limits.h>.
80154         (EOVERFLOW): Define if the system does not.
80155         Do not include "minmax.h"; it wasn't used.
80156         (snprintf): Don't assume size_t promotes to an unsigned type.
80157         Fix bug when generated string was too long for the buffer: the
80158         buffer's contents are supposed to be the initial prefix of the
80159         output.  Don't assume vasnprintf returns EOVERFLOW if the size
80160         exceeds INT_MAX; do the check ourselves.
80161
80162         Import the following changes from libc:
80163
80164         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
80165
80166         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
80167         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
80168         set wc to the byte which couldn't be converted.
80169         (re_string_reconstruct): Don't clear valid_raw_len before calling
80170         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
80171         tip_context using re_string_context_at.
80172
80173         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
80174
80175         * lib/posix/regex.h: g++ still cannot handled [restrict].
80176
80177         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
80178
80179         * lib/posix/regex.h: Remove special handling for VMS.
80180
80181 2006-08-10  Jim Meyering  <jim@meyering.net>
80182
80183         * modules/same-inode: New module.
80184         * modules/dev-ino: New module.
80185         * modules/cycle-check: Depend on these modules, rather than simply
80186         including their .h files.
80187         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
80188         required via m4/cycle-check.m4.
80189         * modules/same: Depend on new same-inode module, rather than
80190         including same-inode.h.
80191         * modules/chdir-safer: New file.
80192
80193         * modules/chown (Depends-on): Add stat-macros.
80194
80195 2006-08-10  Jim Meyering  <jim@meyering.net>
80196
80197         * m4/cycle-check.m4: New file.
80198         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
80199         * m4/dev-ino.m4, m4/same-inode.m4: New files.
80200
80201 2006-08-10  Eric Blake  <ebb9@byu.net>
80202
80203         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
80204         in from original proposal.
80205
80206 2006-08-10  Eric Blake  <ebb9@byu.net>
80207         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
80208
80209         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
80210         namespace.
80211
80212 2006-08-10  Bruno Haible  <bruno@clisp.org>
80213
80214         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
80215         as well.
80216
80217 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80218
80219         Sync from coreutils.
80220
80221         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
80222
80223         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
80224         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
80225
80226 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80227
80228         * modules/restrict: Remove; no longer needed now that we assume
80229         Autoconf 2.59 or later.
80230         * MODULES.html.sh: Remove 'restrict'.
80231         * modules/argp (Depends-on): Remove 'restrict'.
80232         * modules/base64 (Depends-on): Likewise.
80233         * modules/gc (Depends-on): Likewise.
80234         * modules/getaddrinfo (Depends-on): Likewise.
80235         * modules/glob (Depends-on): Likewise.
80236         * modules/inet_ntop (Depends-on): Likewise.
80237         * modules/inet_pton (Depends-on): Likewise.
80238         * modules/memxor (Depends-on): Likewise.
80239         * modules/regex (Depends-on): Likewise.
80240         * modules/strtok_r (Depends-on): Likewise.
80241         * modules/time_r (Depends-on): Likewise.
80242
80243 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80244
80245         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
80246         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
80247         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
80248         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
80249         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
80250         * m4/memxor.m4 (gl_MEMXOR): Likewise.
80251         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
80252         gl_C_RESTRICT replaced by AC_C_RESTRICT.
80253
80254         Merge from coreutils.
80255         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
80256         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
80257         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
80258         * m4/time_r.m4 (gl_TIME_R): Likewise.
80259
80260 2006-08-09  Karl Berry  <karl@gnu.org>
80261
80262         * config/srclist.txt: no more gettext-tools, per Bruno.
80263
80264 2006-08-08  Eric Blake  <ebb9@byu.net>
80265
80266         * modules/verror: New module.
80267         * MODULES.html.sh: Document it.
80268
80269 2006-08-08  Eric Blake  <ebb9@byu.net>
80270
80271         * lib/verror.h, lib/verror.c: New files.
80272
80273 2006-08-08  Eric Blake  <ebb9@byu.net>
80274
80275         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
80276         verror_at_line output complies with GNU Coding Standards even when
80277         file is NULL.
80278
80279 2006-08-07  Bruno Haible  <bruno@clisp.org>
80280
80281         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
80282         versions of AIX.
80283         Reported by Ralf Wildenhues.
80284
80285 2006-08-07  Bruno Haible  <bruno@clisp.org>
80286
80287         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
80288         in an AC_DEFUN. Needed so that the autoconf snippets can use
80289         AC_REQUIRE.
80290
80291 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80292
80293         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80294         Initialize pkgdata_DATA.
80295         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
80296         overriding it.
80297
80298 2006-08-06  Eric Blake  <ebb9@byu.net>
80299
80300         * lib/error.h: Fold in some upstream changes from glibc.
80301         * lib/error.c: Likewise.
80302
80303 2006-08-04  Bruno Haible  <bruno@clisp.org>
80304
80305         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80306         Make the mostlyclean-local rule depend on mostlyclean-generic.
80307         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
80308
80309 2006-07-31  Bruno Haible  <bruno@clisp.org>
80310
80311         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
80312         <stdlib.h>, <string.h>.
80313
80314 2006-07-30  Bruno Haible  <bruno@clisp.org>
80315
80316         * modules/readlink (License): Change to LGPL.
80317
80318 2006-07-30  Bruno Haible  <bruno@clisp.org>
80319
80320         * modules/javaversion (Makefile.am): Distribute javaversion.java and
80321         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
80322         set PKGDATADIR to point to it.
80323
80324 2006-07-30  Bruno Haible  <bruno@clisp.org>
80325
80326         * modules/csharpexec (configure.ac): Comment out macro invocation.
80327         * modules/javaexec (configure.ac): Likewise.
80328         * modules/javacomp-script (configure.ac): Likewise.
80329
80330         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
80331
80332 2006-07-30  Bruno Haible  <bruno@clisp.org>
80333
80334         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
80335         linked-list.
80336
80337 2006-07-30  Bruno Haible  <bruno@clisp.org>
80338
80339         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
80340
80341 2006-07-30  Bruno Haible  <bruno@clisp.org>
80342
80343         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80344         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
80345         get removed.
80346
80347 2006-07-29  Bruno Haible  <bruno@clisp.org>
80348
80349         Make it possible for gnulib-tool to work with locally modified or
80350         augmented gnulib repositories.
80351         * gnulib-tool (func_usage): Document --local-dir option.
80352         (local_gnulib_dir): New variable.
80353         Handle --local-dir option.
80354         (func_lookup_file): New function.
80355         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
80356         (func_get_description, func_get_filelist, func_get_description,
80357         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
80358         func_get_automake_snippet, func_get_include_directive,
80359         func_get_license, func_get_maintainer): Use func_lookup_file.
80360         (func_import, func_create_testdir): Use func_lookup_file.
80361
80362 2006-07-29  Bruno Haible  <bruno@clisp.org>
80363
80364         * modules/setenv (Depends-on): Add unistd.
80365
80366 2006-07-29  Bruno Haible  <bruno@clisp.org>
80367
80368         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
80369
80370 2006-07-29  Bruno Haible  <bruno@clisp.org>
80371
80372         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
80373
80374 2006-07-29  Bruno Haible  <bruno@clisp.org>
80375
80376         * gnulib-tool (import, update): If there is no Makefile.am, look at
80377         aclocal.m4, instead of bailing out.
80378
80379 2006-07-29  Bruno Haible  <bruno@clisp.org>
80380
80381         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
80382         Categorize the options by when they are useful.
80383
80384 2006-07-29  Bruno Haible  <bruno@clisp.org>
80385
80386         * gnulib-tool (func_usage): Document option --no-libtool.
80387         Handle option --no-libtool.
80388         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
80389         for changed semantics of $libtool variable.
80390         (func_import): Likewise. If libtool is not used, show this through
80391         an option --no-libtool.
80392         (func_create_testdir): Update.
80393
80394 2006-07-29  Bruno Haible  <bruno@clisp.org>
80395
80396         * gnulib-tool (func_import): Extend error message about missing
80397         --doc-base.
80398
80399 2006-07-29  Bruno Haible  <bruno@clisp.org>
80400
80401         * gnulib-tool (func_import): Don't create the $docbase directory if
80402         there is no file to store there.
80403
80404 2006-07-29  Bruno Haible  <bruno@clisp.org>
80405
80406         * gnulib-tool (autoconf_minversion): If a --dir option is given and
80407         relevant, look for configure.ac there, not in the current directory.
80408         Also use a simple search for AC_PREREQ, not "autoconf --trace".
80409
80410 2006-07-29  Bruno Haible  <bruno@clisp.org>
80411
80412         * gnulib-tool (SORT): New variable.
80413         (func_usage): Undocument --assume-autoconf option.
80414         Remove --assume-autoconf option handling.
80415         (autoconf_minversion): Determine from the contents of configure.ac.
80416         (func_import): Remove autoconf_minversion handling.
80417         Suggested by Eric Blake.
80418
80419 2006-07-29  Bruno Haible  <bruno@clisp.org>
80420
80421         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
80422
80423 2006-07-29  Bruno Haible  <bruno@clisp.org>
80424
80425         * config/srclist.txt (*setenv.[ch]): Remove rules.
80426
80427 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80428
80429         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
80430
80431 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80432
80433         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
80434         arpa/inet.h.
80435
80436 2006-07-28  Simon Josefsson  <jas@extundo.com>
80437
80438         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
80439         * modules/inet_pton (Depends-on): Likewise.
80440
80441 2006-07-28  Simon Josefsson  <jas@extundo.com>
80442
80443         * m4/netinet_in_h.m4: New file.
80444
80445 2006-07-28  Simon Josefsson  <jas@extundo.com>
80446
80447         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
80448         #include's.
80449
80450 2006-07-28  Simon Josefsson  <jas@extundo.com>
80451
80452         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
80453         #include's.
80454
80455 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
80456
80457         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
80458         setgid on directories only if they set these bits.
80459         * lib/modechange.h: Remove obsolete comment about masks.
80460
80461 2006-07-28  Eric Blake  <ebb9@byu.net>
80462
80463         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
80464         macro expansion.
80465
80466 2006-07-28  Bruno Haible  <bruno@clisp.org>
80467
80468         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
80469
80470 2006-07-28  Bruno Haible  <bruno@clisp.org>
80471
80472         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
80473
80474 2006-07-28  Bruno Haible  <bruno@clisp.org>
80475
80476         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
80477         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
80478         Define fallbacks.
80479         Avoids link error on FreeBSD 4.x.
80480         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
80481
80482         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
80483         encoding.
80484         * lib/mbswidth.c (iswcntrl): Likewise.
80485
80486 2006-07-27  Bruno Haible  <bruno@clisp.org>
80487
80488         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
80489         test.
80490
80491 2006-07-27  Bruno Haible  <bruno@clisp.org>
80492
80493         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
80494         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
80495         defined.
80496
80497 2006-07-26  Eric Blake  <ebb9@byu.net>
80498
80499         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
80500
80501 2006-07-26  Eric Blake  <ebb9@byu.net>
80502
80503         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
80504         like mingw that lack mkstemp.
80505         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
80506         avoid compilation warning on mingw.
80507
80508 2006-07-26  Bruno Haible  <bruno@clisp.org>
80509
80510         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
80511         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
80512         INT_FAST*_MIN, INTPTR_MIN.
80513
80514 2006-07-25  Bruno Haible  <bruno@clisp.org>
80515
80516         * modules/version-etc (Depends-on): Add stdarg.
80517
80518 2006-07-25  Bruno Haible  <bruno@clisp.org>
80519
80520         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
80521         complex commands.
80522
80523 2006-07-25  Bruno Haible  <bruno@clisp.org>
80524
80525         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
80526         defined in <stdarg.h> or config.h.
80527
80528 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
80529
80530         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
80531         (gl_STDIO_SAFER): Remove.
80532
80533 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
80534
80535         * MODULES.html.sh (File stream based Input/Output):
80536         Add fopen-safer, tmpfile-safer; remove stdio-safer.
80537         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
80538         * modules/fopen-safer, modules/tmpfile-safer: New files.
80539         * modules/stdio-safer: Remove.
80540
80541 2006-07-24  Bruno Haible  <bruno@clisp.org>
80542
80543         * modules/tmpdir: New file.
80544         * MODULES.html.sh (File system functions): Add it.
80545
80546 2006-07-24  Bruno Haible  <bruno@clisp.org>
80547
80548         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
80549         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
80550
80551 2006-07-24  Bruno Haible  <bruno@clisp.org>
80552
80553         * modules/clean-temp: New file.
80554
80555 2006-07-24  Bruno Haible  <bruno@clisp.org>
80556
80557         * m4/tmpdir.m4: New file, from GNU gettext.
80558
80559 2006-07-24  Bruno Haible  <bruno@clisp.org>
80560
80561         * lib/tmpdir.h: New file, from GNU gettext.
80562         * lib/tmpdir.c: New file, from GNU gettext.
80563
80564 2006-07-24  Bruno Haible  <bruno@clisp.org>
80565
80566         * lib/clean-temp.h: New file, from GNU gettext.
80567         * lib/clean-temp.c: New file, from GNU gettext.
80568
80569 2006-07-23  Eric Blake  <ebb9@byu.net>
80570
80571         * modules/stdio-safer (Files): Add tmpfile-safer.c.
80572         (Depends-on): Add binary-io.
80573
80574 2006-07-23  Eric Blake  <ebb9@byu.net>
80575
80576         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
80577
80578 2006-07-23  Eric Blake  <ebb9@byu.net>
80579
80580         * lib/tmpfile-safer.c: New file.
80581         * lib/stdio-safer.h (fopen_safer): Add prototype.
80582         * lib/stdio--.h (tmpfile): Make safer.
80583
80584 2006-07-23  Bruno Haible  <bruno@clisp.org>
80585
80586         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
80587         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
80588         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
80589         gl_linked_remove_at): Use it.
80590
80591 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80592         and Simon Josefsson <jas@extundo.com>
80593
80594         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
80595
80596         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
80597
80598 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
80599
80600         * modules/close-stream: New file.
80601         * modules/closeout (Description): Make it clear that it exits
80602         with a diagnostic on error.
80603         (Depends-on): Add close-stream.  Remove fpending, stdbool.
80604         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
80605
80606 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
80607
80608         * m4/close-stream.m4: New file.
80609
80610 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
80611
80612         * lib/close-stream.c, lib/close-stream.h: New files.
80613
80614 2006-07-22  Bruno Haible  <bruno@clisp.org>
80615
80616         Merge from GNU gettext 0.15.
80617
80618         2006-05-01  Bruno Haible  <bruno@clisp.org>
80619
80620                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
80621
80622         2006-07-22  Bruno Haible  <bruno@clisp.org>
80623
80624                 * modules/javaversion: New file.
80625                 * MODULES.html.sh (Java): Add javaversion.
80626
80627         2006-03-12  Bruno Haible  <bruno@clisp.org>
80628
80629                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
80630
80631         2005-12-04  Bruno Haible  <bruno@clisp.org>
80632
80633                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
80634                 (untested).
80635
80636         2006-06-21  Bruno Haible  <bruno@clisp.org>
80637
80638                 Avoid warnings from recent versions of mcs.
80639                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
80640                 -o, -L, -r any more. Use options documented since mcs-1.0
80641                 instead. Similarly for -g.
80642
80643         2005-12-04  Bruno Haible  <bruno@clisp.org>
80644
80645                 * build-aux/csharpcomp.sh.in: Suffix for resources is
80646                 .resources, not .resource.
80647
80648         2005-07-09  Bruno Haible  <bruno@clisp.org>
80649
80650                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
80651                 add a .dll suffix.
80652                 Reported by Mark Junker <mjscod@gmx.de>.
80653
80654         2006-07-22  Bruno Haible  <bruno@clisp.org>
80655
80656                 * modules/gettext: Upgrade to gettext-0.15.
80657                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
80658                 m4/visibility.m4.
80659                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
80660
80661 2006-07-22  Bruno Haible  <bruno@clisp.org>
80662
80663         Merge from GNU gettext 0.15.
80664
80665         2006-03-25  Bruno Haible  <bruno@clisp.org>
80666
80667                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
80668
80669         2006-07-21  Bruno Haible  <bruno@clisp.org>
80670
80671                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
80672                 "1.1".
80673
80674         2006-05-09  Bruno Haible  <bruno@clisp.org>
80675
80676                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
80677                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
80678                 for the conftestver execution.
80679
80680         2006-05-01  Bruno Haible  <bruno@clisp.org>
80681
80682                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
80683                 optional target-version argument. Verify that the compiler
80684                 groks source of the specified source-version, or add -source
80685                 option as necessary. Verify that the compiler produces
80686                 bytecode in the specified target-version, or add -target and
80687                 -source options as necessary. Make the result of the test
80688                 available as variable CONF_JAVAC. Also log error output in
80689                 config.log.
80690
80691         2006-03-11  Bruno Haible  <bruno@clisp.org>
80692
80693                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
80694
80695         2006-05-09  Bruno Haible  <bruno@clisp.org>
80696
80697                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
80698                 CLASSPATH_SEPARATOR to a semicolon.
80699
80700         2006-03-12  Bruno Haible  <bruno@clisp.org>
80701
80702                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
80703                 available as variable CONF_JAVA, for subsequent autoconf
80704                 tests. Also log error output in config.log.
80705
80706         2006-07-19  Bruno Haible  <bruno@clisp.org>
80707
80708                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
80709                 that getline works on glibc2 systems. Needed to avoid trouble
80710                 in relocatable.c.
80711                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
80712
80713         2005-12-04  Bruno Haible  <bruno@clisp.org>
80714
80715                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
80716                 launcher (untested).
80717
80718         2005-12-04  Bruno Haible  <bruno@clisp.org>
80719
80720                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
80721
80722         2006-07-22  Bruno Haible  <bruno@clisp.org>
80723
80724                 * gettext.m4: Update from GNU gettext-0.15.
80725                 * nls.m4: Likewise.
80726                 * po.m4: Likewise.
80727                 * inttypes-pri.m4: Likewise.
80728                 * inttypes-h.m4: Renamed from inttypes.m4.
80729                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
80730
80731 2006-07-22  Bruno Haible  <bruno@clisp.org>
80732
80733         Merge from GNU gettext 0.15.
80734
80735         2005-07-05  Bruno Haible  <bruno@clisp.org>
80736
80737                 * printf-args.c (printf_fetchargs): Work around broken
80738                 definition of wint_t on mingw.
80739
80740         2005-02-12  Bruno Haible  <bruno@clisp.org>
80741
80742                 * xallocsa.h: Add extern "C" for C++.
80743
80744         2006-05-17  Bruno Haible  <bruno@clisp.org>
80745
80746                 Cygwin portability.
80747                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
80748
80749         2006-04-30  Bruno Haible  <bruno@clisp.org>
80750
80751                 * progreloc.c: Include <mach-o/dyld.h> if available.
80752                 (find_executable): Use _NSGetExecutablePath when possible.
80753
80754         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
80755
80756                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
80757                 function.
80758
80759         2005-12-29  Bruno Haible  <bruno@clisp.org>
80760
80761                 * progreloc.c (set_program_name_and_installdir): Fix
80762                 compilation error.
80763
80764         2005-12-04  Bruno Haible  <bruno@clisp.org>
80765
80766                 Cygwin portability.
80767                 * progreloc.c: Include <windows.h> also on Cygwin.
80768                 (find_executable): Add support for Cygwin.
80769                 (set_program_name_and_installdir): Handle also platforms with
80770                 nonempty EXEEXT.
80771
80772         2006-07-11  Bruno Haible  <bruno@clisp.org>
80773
80774                 * javacomp.c: Fix a comment.
80775                 Reported by Jim Meyering.
80776
80777         2006-04-30  Bruno Haible  <bruno@clisp.org>
80778
80779                 * javacomp.h (compile_java_class): Add source_version,
80780                 target_version arguments.
80781                 * javacomp.c: Rewritten to choose only a compiler that
80782                 respects the specified source_version and target_version.
80783
80784         2006-06-27  Bruno Haible  <bruno@clisp.org>
80785
80786                 Assume correct S_ISDIR macro.
80787                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
80788
80789         2006-07-22  Bruno Haible  <bruno@clisp.org>
80790
80791                 * javaversion.h: New file, from GNU gettext.
80792                 * javaversion.c: New file, from GNU gettext.
80793                 * javaversion.java: New file, from GNU gettext.
80794                 * javaversion.class: New file, from GNU gettext.
80795
80796         2006-05-17  Bruno Haible  <bruno@clisp.org>
80797
80798                 Cygwin portability.
80799                 * javaexec.c (execute_java_class): Test for jview program
80800                 also on Cygwin.
80801
80802         2006-04-09  Bruno Haible  <bruno@clisp.org>
80803
80804                 * fatal-signal.c: Don't include string.h.
80805                 (at_fatal_signal): Use a copying loop instead of memcpy.
80806
80807         2005-12-04  Bruno Haible  <bruno@clisp.org>
80808
80809                 * csharpexec.c: Add support for 'clix' launcher (untested).
80810                 (execute_csharp_using_sscli): New function.
80811                 (execute_csharp_program): Call it.
80812
80813         2006-06-21  Bruno Haible  <bruno@clisp.org>
80814
80815                 Avoid warnings from recent versions of mcs.
80816                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
80817                 -o, -L, -r any more. Use options documented since mcs-1.0
80818                 instead. Similarly for -g.
80819
80820         2005-07-09  Bruno Haible  <bruno@clisp.org>
80821
80822                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
80823                 add a .dll suffix.
80824                 Reported by Mark Junker <mjscod@gmx.de>.
80825
80826         2006-06-17  Bruno Haible  <bruno@clisp.org>
80827
80828                 * config.charset: Update for NetBSD 3.0.
80829
80830         2006-05-17  Bruno Haible  <bruno@clisp.org>
80831
80832                 Cygwin portability.
80833                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
80834
80835         2006-05-16  Bruno Haible  <bruno@clisp.org>
80836
80837                 * localcharset.c [CYGWIN]: Include <windows.h>.
80838                 (get_charset_aliases): For Cygwin, return the same CPxxx
80839                 aliases list as under WIN32.
80840                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
80841                 the environment variables. Fall back to GetACP().
80842
80843         2006-04-05  Bruno Haible  <bruno@clisp.org>
80844
80845                 * config.charset: Update Juan Manuel Guerrero's address.
80846
80847         2005-02-12  Bruno Haible  <bruno@clisp.org>
80848
80849                 * allocsa.h: Add extern "C" for C++.
80850
80851         2005-02-10  Bruno Haible  <bruno@clisp.org>
80852
80853                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
80854                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
80855
80856         2006-07-22  Bruno Haible  <bruno@clisp.org>
80857
80858                 * gettext.h: Update to GNU gettext-0.15.
80859
80860 2006-07-22  Bruno Haible  <bruno@clisp.org>
80861
80862         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
80863         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
80864         lib-prefix.m4, longdouble.m4, ssize_t.m4.
80865
80866 2006-07-21  Eric Blake  <ebb9@byu.net>
80867
80868         * modules/stdlib-safer: New file.
80869         * MODULES.html.sh (File stream based Input/Output): Add
80870         stdlib-safer.
80871
80872 2006-07-21  Eric Blake  <ebb9@byu.net>
80873
80874         * lib/stdlib-safer.h: New file from coreutils, required by
80875         stdlib--.h.
80876
80877 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
80878
80879         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
80880
80881 2006-07-20  Bruno Haible  <bruno@clisp.org>
80882
80883         * gnulib-tool: Recognize new option --assume-autoconf.
80884         (autoconf_minversion): New variable.
80885         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
80886
80887 2006-07-20  Bruno Haible  <bruno@clisp.org>
80888
80889         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
80890
80891 2006-07-19  Derek R. Price  <derek@ximbiot.com>
80892
80893         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
80894         Reindent and repaginate.
80895
80896 2006-07-19  Derek Price  <derek@ximbiot.com>
80897
80898         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
80899         Correct grammar.
80900
80901 2006-07-17  Bruno Haible  <bruno@clisp.org>
80902
80903         * modules/list: New file.
80904         * modules/array-list: New file.
80905         * modules/carray-list, modules/carray-list-tests: New files.
80906         * modules/linked-list, modules/linked-list-tests: New files.
80907         * modules/avltree-list, modules/avltree-list-tests: New files.
80908         * modules/rbtree-list, modules/rbtree-list-tests: New files.
80909         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
80910         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
80911         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
80912         * modules/oset: New file.
80913         * modules/array-oset: New file.
80914         * modules/avltree-oset, modules/avltree-oset-tests: New files.
80915         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
80916         * tests/test-carray_list.c: New file.
80917         * tests/test-linked_list.c: New file.
80918         * tests/test-avltree_list.c: New file.
80919         * tests/test-rbtree_list.c: New file.
80920         * tests/test-linkedhash_list.c: New file.
80921         * tests/test-avltreehash_list.c: New file.
80922         * tests/test-rbtreehash_list.c: New file.
80923         * tests/test-avltree_oset.c: New file.
80924         * tests/test-rbtree_oset.c: New file.
80925         * MODULES.html.sh (Container data structures): New section.
80926
80927 2006-07-17  Bruno Haible  <bruno@clisp.org>
80928
80929         * m4/gl_list.m4: New file.
80930
80931 2006-07-17  Bruno Haible  <bruno@clisp.org>
80932
80933         * lib/gl_list.h: New file.
80934         * lib/gl_list.c: New file.
80935         * lib/gl_array_list.h: New file.
80936         * lib/gl_array_list.c: New file.
80937         * lib/gl_carray_list.h: New file.
80938         * lib/gl_carray_list.c: New file.
80939         * lib/gl_linked_list.h: New file.
80940         * lib/gl_linked_list.c: New file.
80941         * lib/gl_anylinked_list1.h: New file.
80942         * lib/gl_anylinked_list2.h: New file.
80943         * lib/gl_avltree_list.h: New file.
80944         * lib/gl_avltree_list.c: New file.
80945         * lib/gl_anyavltree_list1.h: New file.
80946         * lib/gl_anyavltree_list2.h: New file.
80947         * lib/gl_rbtree_list.h: New file.
80948         * lib/gl_rbtree_list.c: New file.
80949         * lib/gl_anyrbtree_list1.h: New file.
80950         * lib/gl_anyrbtree_list2.h: New file.
80951         * lib/gl_anytree_list1.h: New file.
80952         * lib/gl_anytree_list2.h: New file.
80953         * lib/gl_linkedhash_list.h: New file.
80954         * lib/gl_linkedhash_list.c: New file.
80955         * lib/gl_anyhash_list1.h: New file.
80956         * lib/gl_anyhash_list2.h: New file.
80957         * lib/gl_avltreehash_list.h: New file.
80958         * lib/gl_avltreehash_list.c: New file.
80959         * lib/gl_rbtreehash_list.h: New file.
80960         * lib/gl_rbtreehash_list.c: New file.
80961         * lib/gl_anytreehash_list1.h: New file.
80962         * lib/gl_anytreehash_list2.h: New file.
80963
80964         * lib/gl_oset.h: New file.
80965         * lib/gl_oset.c: New file.
80966         * lib/gl_array_oset.h: New file.
80967         * lib/gl_array_oset.c: New file.
80968         * lib/gl_avltree_oset.h: New file.
80969         * lib/gl_avltree_oset.c: New file.
80970         * lib/gl_rbtree_oset.h: New file.
80971         * lib/gl_rbtree_oset.c: New file.
80972         * lib/gl_anytree_oset.h: New file.
80973
80974 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
80975
80976         * m4/mkancesdirs.m4: New file.
80977         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
80978         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
80979         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
80980         it.
80981
80982 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
80983
80984         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
80985         * lib/mkancesdirs.h: New files.
80986         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
80987         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
80988         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
80989         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
80990         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
80991         callers changed.  Revamp internals significantly, by not
80992         attempting to create directories that are temporarily more
80993         permissive than the final results.  Do not attempt to use
80994         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
80995         This removes some race conditions, fixes some bugs, and simplifies
80996         things.  Use new dirchownmod function to do owner and mode changes.
80997         * lib/mkdir-p.h: Likewise.
80998         * lib/modechange.c (octal_to_mode): New function.
80999         (struct mode_change): New member mentioned.
81000         (make_node_op_equals): New arg mentioned.  All callers changed.
81001         (mode_compile): Keep track of which mode bits the user has explicitly
81002         mentioned.
81003         (mode_adjust): New arg DIR, so that we implement the X op correctly.
81004         New arg PMODE_BITS, to keep track of which mode bits the user
81005         mentioned; it treats S_ISUID and S_ISGID speciall.
81006         All callers changed.
81007         * lib/modechange.h: Likewise.
81008
81009 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
81010
81011         * MODULES.html.sh: Add mkancestors.
81012         * modules/mkancesdirs: New module.
81013         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
81014         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
81015         The chdir-safer and afs files are now orphans; I'll remove them
81016         unless someone speaks up.
81017         Add lib/dirchownmod.c, lib/dirchownmod.h.
81018         (Depends-on): Remove alloca, chown, save-cwd, dirname.
81019         Add lchown, mkancesdirs.
81020         (Maintainer): Add self.
81021
81022 2006-07-15  Karl Berry  <karl@gnu.org>
81023
81024         * gnulib-tool: help message wording/arrangement.
81025
81026 2006-07-14  Simon Josefsson  <jas@extundo.com>
81027
81028         * doc/gnulib.texi (Libtool and Windows): New section.
81029
81030 2006-07-12  Simon Josefsson  <jas@extundo.com>
81031
81032         * modules/gendocs (License): Fix license, approved by Karl.
81033
81034 2006-07-12  Eric Blake  <ebb9@byu.net>
81035
81036         * MODULES.html.sh: Add gendocs.
81037
81038 2006-07-11  Eric Blake  <ebb9@byu.net>
81039
81040         * modules/fdl: New module, to install doc/fdl.texi.
81041         * MODULES.html.sh: Add new section for documentation modules.
81042         * gnulib-tool: Avoid space-tab.
81043         (--doc-base): New option, to manage files from doc.
81044
81045 2006-07-11  Eric Blake  <ebb9@byu.net>
81046
81047         * m4/absolute-header.m4: Fix comments to match recent change.
81048
81049 2006-07-11  Eric Blake  <ebb9@byu.net>
81050
81051         * gnulib-tool: List --doc-base before --tests-base.
81052
81053 2006-07-11  Derek R. Price  <derek@ximbiot.com>
81054
81055         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
81056
81057 2006-07-11  Bruno Haible  <bruno@clisp.org>
81058
81059         * README: Mention where to put documentation.
81060
81061 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81062
81063         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
81064
81065 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
81066
81067         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
81068         to stdint.m4.
81069
81070 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
81071
81072         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
81073         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
81074         "no/such/file/stdint.h" when there is no such file, so that
81075         the resulting C code can be parsed by dodgy compilers.
81076         Problems reported by Bob Proulx.
81077
81078 2006-07-10  Derek R. Price  <derek@ximbiot.com>
81079
81080         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
81081         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
81082         macros into the GNU _D_EXACT_NAMLEN.
81083         * lib/savedir.c:  Likewise.
81084         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
81085
81086 2006-07-10  Derek R. Price  <derek@ximbiot.com>
81087         and Paul Eggert  <eggert@cs.ucla.edu>
81088
81089         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
81090         * m4/savedir.m4:
81091         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
81092         macros into the GNU _D_EXACT_NAMLEN.
81093
81094 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81095
81096         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
81097         around the absolute name, to work around a problem with the HP-UX
81098         11.23 native C compiler, reported by Bob Proulx.
81099
81100 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81101
81102         * doc/maintain.texi, make-stds.texi: Sync from
81103         <http://savannah.gnu.org/projects/gnustandards>.
81104
81105 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81106
81107         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
81108
81109 2006-07-09  Jim Meyering  <jim@meyering.net>
81110
81111         * m4/glob.m4: Remove a doubled word in a comment.
81112
81113 2006-07-09  Jim Meyering  <jim@meyering.net>
81114
81115         * lib/argp-pv.c: Remove a doubled word in a comment.
81116         * lib/check-version.c (check_version): Likewise.
81117         * lib/javacomp.c (compile_java_class): Likewise.
81118
81119 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
81120
81121         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
81122         for the benefit of people using Autoconf 2.60.  If you want to
81123         support older Autoconf versions you can copy m4/onceonly_2_57.m4
81124         (or m4/onceonly.m4, if pre-2.57) manually.
81125
81126 2006-07-08  Jim Meyering  <jim@meyering.net>
81127
81128         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
81129         comment.
81130         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
81131         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
81132         comment.
81133
81134 2006-07-08  Jim Meyering  <jim@meyering.net>
81135
81136         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
81137
81138 2006-07-07  Simon Josefsson  <jas@extundo.com>
81139
81140         * tests/test-crc.c: Change expected crc value, the test vector
81141         were probably computed using the old broken crc.c?
81142
81143 2006-07-06  Simon Josefsson  <jas@extundo.com>
81144
81145         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
81146         now the canonical place for the M4 file).
81147
81148         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
81149         from the sys_socket dependency now.
81150
81151         * modules/inet_pton (Files): Ditto.
81152
81153         * modules/inet_ntop (Files): Ditto.
81154
81155 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81156
81157         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
81158         not gl_PREREQ_GETUSERSHELL.
81159
81160 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81161
81162         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
81163         with only one argument, for Autoconf 2.60.
81164         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
81165         expand to nothing, so add a shell command to avoid syntax error.
81166         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
81167
81168 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81169
81170         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
81171
81172 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81173
81174         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
81175         no longer needed.  Check for isblank decl.
81176         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
81177         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
81178         of existence.
81179
81180 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81181
81182         * lib/getloadavg.c: Use __VMS, not VMS.
81183         * lib/getopt.c: Likewise.
81184         * lib/getpagesize.h: Likewise.
81185         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
81186         and probably does not work.
81187
81188 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81189
81190         * lib/.cppi-disable: Add wcwidth.
81191         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
81192         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
81193         (ISGRAPH): Remove.  All uses changed to isgraph.
81194         (FOLD) [!defined _LIBC]: Remove special case.
81195         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
81196         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
81197         HAVE_ISBLANK.
81198         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
81199         case.
81200
81201 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
81202
81203         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
81204         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
81205         brackets.  Other minor changes to suppress some compiler
81206         warnings.
81207
81208 2006-07-06  Derek R. Price  <derek@ximbiot.com>
81209         and Paul Eggert  <eggert@cs.ucla.edu>
81210
81211         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
81212         of invoking obsolescent AC_HEADER_DIRENT macro.
81213         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
81214         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
81215         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
81216         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
81217         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
81218         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
81219         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
81220         * m4/readdir.m4: Remove; no longer needed.
81221
81222 2006-07-06  Derek R. Price  <derek@ximbiot.com>
81223         and Paul Eggert  <eggert@cs.ucla.edu>
81224
81225         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
81226         Don't worry about this obsolete case any more.
81227         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
81228         directories.
81229         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
81230         worry about this obsolete case any more.
81231         * lib/fts.c: Likewise.
81232         * lib/getcwd.c: Likewise.
81233         * lib/glob.h: Likewise.
81234         * lib/savedir.c: Likewise.
81235
81236 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81237
81238         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
81239         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
81240         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
81241         needed.
81242         All uses removed.
81243         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
81244         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
81245         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
81246         needed.
81247         * m4/getdate.m4 (gl_GETDATE): Likewise.
81248         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
81249         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
81250         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
81251         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
81252         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
81253         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81254         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
81255         needed.
81256
81257 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81258
81259         * lib/memcasecmp.c: Include <limits.h>.
81260         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
81261         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
81262         Don't assume isdigit succeeds only on '0' through '9'.
81263
81264 2006-07-05  Eric Blake  <ebb9@byu.net>
81265
81266         * modules/getaddrinfo (Depends-on): Add snprintf.
81267
81268 2006-07-05  Eric Blake  <ebb9@byu.net>
81269
81270         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
81271         to avoid 'header present but could not be compiled' on cygwin.
81272
81273 2006-07-05  Eric Blake  <ebb9@byu.net>
81274
81275         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
81276         missing from netdb.h.
81277         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
81278
81279 2006-07-05  Derek R. Price  <derek@ximbiot.com>
81280
81281         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
81282         no longer needed.
81283         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
81284         * m4/getdate.m4 (gl_GETDATE): Likewise.
81285         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
81286         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
81287         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
81288         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
81289         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81290
81291 2006-07-05  Derek R. Price  <derek@ximbiot.com>
81292
81293         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
81294         All uses of is_space replaced by isspace.
81295         * lib/exit.h: Don't talk about STDC_HEADERS.
81296         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
81297         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
81298         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
81299         replaced by isprint etc.
81300         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
81301         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
81302         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
81303         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
81304         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
81305         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
81306
81307 2006-07-05  Bruno Haible  <bruno@clisp.org>
81308
81309         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
81310         the function exists, before testing against AIX.
81311         Reported by Martin Lambers <marlam@marlam.de>.
81312
81313 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
81314
81315         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
81316         From Mark D. Baushke.
81317
81318 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
81319
81320         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
81321         to the absolute name, not just one, to bypass Sun C 5.8's
81322         "warning: #include of /usr/include/... may be non-portable".
81323
81324 2006-07-04  Eric Blake  <ebb9@byu.net>
81325
81326         * modules/dirname-tests: New test module.
81327         * tests/test-dirname.c: New file, replacing dirname.c
81328         TEST_DIRNAME section that was recently deleted.
81329
81330 2006-07-04  Bruno Haible  <bruno@clisp.org>
81331
81332         Assume ANSI C header files and <ctype.h> functions.
81333         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
81334         (mbsnwidth): Use isprint, iscntrl instead.
81335
81336 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81337
81338         Merge from coreutils.
81339         * MODULES.html.sh: Add xstrtold.
81340         * modules/xstrtold: New file.
81341         * modules/cycle-check (Files): Add lib/same-inode.h.
81342         * modules/dirname (Files): Add m4/double-slash-root.m4.
81343         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
81344         * modules/mkdir-p (Files): Add lib/same-inode.h.
81345         * modules/same (Files): Add lib/same-inode.h.
81346
81347 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81348
81349         * m4/absolute-header.m4: Renamed from full-header-path.m4.
81350         This is to keep the terminology clean; POSIX talks about
81351         "absolute pathnames", not "full pathnames", but the GNU
81352         Coding Standards say to use "path" for something else;
81353         so use "absolute" to keep both sides happy.
81354         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
81355         Set gl_absolute_header, not gl_full_header_path.
81356         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
81357         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
81358         All uses changed.
81359
81360         Merge from coreutils.
81361
81362         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
81363
81364         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
81365         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
81366         want to require the building of c-strtod.o.
81367         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
81368         needs -lm directly.
81369         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
81370
81371         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
81372
81373         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
81374         --as-needed option if available.  Problem reported by Albert Chin in
81375         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
81376         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
81377         cc merely issues a bunch of annoying warnings for --as-needed
81378         (this problem was reported by Bob Proulx).  Also, try linking with
81379         -lm to detect a bug in binutils 2.16 (this problem was reported
81380         by Ralf Wildenhues).
81381
81382         2006-06-18  Jim Meyering  <jim@meyering.net>
81383
81384         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
81385         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
81386         macro.
81387         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
81388         also check for glibc-2.4's abort-inducing bug.
81389
81390         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
81391         Low-probability clean-up should be to use rmdir to get rid of
81392         the just-created directory, not unlink.
81393
81394         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
81395         configure fail, and request a bug report to inform us about it.
81396         Add a comment that, barring reports to the contrary, in 2007 we'll
81397         assume ftruncate is universally available.
81398
81399         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
81400
81401         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
81402
81403         2006-03-12  Jim Meyering  <jim@meyering.net>
81404
81405         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
81406         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
81407         * m4/same.m4 (gl_SAME): Likewise.
81408         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
81409
81410         2006-03-11  Eric Blake  <ebb9@byu.net>
81411
81412         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
81413         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
81414         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
81415         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
81416
81417 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81418
81419         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
81420         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
81421         reported by Mark D. Baushke, one in
81422         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
81423
81424         Merge from coreutils.
81425
81426         * lib/.cppi-disable: Add stdint_.h.
81427         * lib/.cvsignore: Add stdint.h.
81428
81429         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
81430
81431         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
81432         both double and long double versions.
81433         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
81434         * lib/xstrtold.c: New file.
81435         * lib/xstrtod.h (xstrtold): New decl.
81436
81437         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
81438
81439         * lib/filemode.c (setst): Remove.
81440         (strmode): Rewrite to avoid setst.  This makes the code shorter,
81441         (arguably) clearer, and the generated code is a bit smaller on my
81442         Debian GNU/Linux stable x86 host.
81443
81444         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
81445
81446         * lib/filemode.c: Include "filemode.h" first, to test the interface.
81447         Assume that filemode.h includes sys/types.h and sys/stat.h.
81448         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
81449         (ftypelet): Reorder to put common cases first, for efficiency.
81450         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
81451         to do 'M'.
81452         (strmode): Renamed from mode_string, and now stores 12 bytes instead
81453         of 10, for compatibility with FreeBSD.  All callers changed.
81454         (filemodestring): Now stores 12 bytes instead of 10, and sets file
81455         types that can't be deduced solely from st_mode.  First arg is now a
81456         const pointer.
81457         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
81458         (strmode): Renamed from mode_string.
81459         (filemodestring): New decl.
81460         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
81461         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
81462         needed.
81463         (S_ISPORT, S_ISWHT): New macros, if not already defined.
81464
81465         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
81466
81467         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
81468         fsusage.h now does that.  Include fsusage.h first, to test interface.
81469         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
81470         at most one method (the old code could have generated decls that
81471         didn't conform to C89, not that this was ever exercised).
81472         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
81473
81474         2006-03-19  Jim Meyering  <jim@meyering.net>
81475
81476         Work even in a chroot where d_ino values for entries in "/"
81477         don't match the stat.st_ino values for the same names.
81478         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
81479         number, iterate through all entries again, using lstat instead.
81480         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
81481         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
81482
81483         * lib/getcwd.c (__getcwd): Clarify a comment.
81484         Use memcpy in place of a call to strcpy.
81485
81486         2006-03-12  Jim Meyering  <jim@meyering.net>
81487
81488         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
81489         matches that of the current directory (which we're about to chdir ".."
81490         out of), then save the dev-ino of the parent, instead.
81491
81492         * lib/same-inode.h (SAME_INODE): New file/macro.
81493         * lib/chdir-safer.c (SAME_INODE): Remove definition.
81494         Include "same-inode.h", instead.
81495         * lib/same.c: Likewise.
81496         * lib/cycle-check.h: Include "same-inode.h".
81497         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
81498         * lib/cycle-check.c (SAME_INODE): Remove definition.
81499         * lib/root-dev-ino.h: Include "same-inode.h".
81500
81501         2006-03-11  Eric Blake  <ebb9@byu.net>
81502
81503         * lib/same.c (same_name): s/base_name/last_component/
81504         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
81505         * lib/filenamecat.c (file_name_concat): Likewise.
81506
81507         2006-03-11  Eric Blake  <ebb9@byu.net>,
81508                     Paul Eggert  <eggert@cs.ucla.edu>
81509
81510         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
81511         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
81512         drive prefix.
81513         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
81514         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
81515         (last_component): New method.
81516         * lib/dirname.c (dir_len): Determine when drive letters need a
81517         subsequent slash.  Preserve // when it is special.
81518         (dir_name): Don't append dot when drive letter is absolute.
81519         [TEST_DIRNAME]: Move into a full-blown gnulib test.
81520         * lib/basename.c (base_name): New semantics - malloc the result.
81521         Preserve // when it is special.  Preserve relative files that look
81522         like drive letters.
81523         (base_len): Preserve // when it is special.
81524         (last_component): New method, similar to old base_name semantics.
81525         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
81526         base_name.  Strip redundant slashes from ///.
81527
81528 2006-07-03  Jim Meyering  <jim@meyering.net>
81529
81530         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
81531         macro is used before the first cycle_check call.
81532
81533 2006-07-03  Eric Blake  <ebb9@byu.net>
81534
81535         * modules/dirname (Depends-on): Add xstrndup.
81536
81537 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
81538
81539         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
81540         test cases, so that config.log is a bit easier to follow.
81541
81542 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
81543
81544         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
81545         both are 64 bits, since this seems to be the tradition, and this
81546         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
81547         we ever run into a host that prefers long long to long in this
81548         case, we'll need another configure-time test.  Problem reported by
81549         Jim Meyering.
81550
81551 2006-07-02  Eric Blake  <ebb9@byu.net>
81552
81553         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
81554
81555 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81556
81557         * modules/inttypes (Depends-on): No longer depends on stdint.
81558         * modules/stdint (Description): Say more about assumptions.
81559         Say that the fast types might differ.  Say macros are used.
81560         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
81561         (Makefile.am): Revise list of substituted symbols to match
81562         new stdint.m4.
81563         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
81564         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
81565         * tests/test-stdint.c (verify_same_types)
81566         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
81567         the code conforms to C99/C89.
81568         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
81569         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
81570
81571 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81572
81573         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
81574         but fix a bug, by requiring at least 64 bits.
81575         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
81576         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
81577         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
81578         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
81579
81580         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
81581         changes.  Make 2.59 a prerequisite.  Check and substitute for
81582         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
81583         inttypes.h.  Do not use special include files; just use the
81584         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
81585         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
81586         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
81587         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
81588         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
81589         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
81590         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
81591         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
81592         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
81593         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
81594         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
81595         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
81596         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
81597         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
81598         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
81599         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
81600         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
81601         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
81602         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
81603         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
81604         WINT_MAX.  Check for C99 conformance more strictly, by detecting
81605         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
81606         not check for things that C99 does not require, e.g., int8_t.  If
81607         a test isn't needed unless <stdint.h> isn't working, and is
81608         unlikely to be needed for any other reason, then don't do it
81609         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
81610         size_t, since we assume C89 freestanding at least.  Do not check
81611         for sig_atomic_t, wchar_t, or wint_t, since the code now does
81612         the right thing even if the types are not defined.  Instead use:
81613         (gl_STDINT_TYPE_PROPERTIES): New macro.
81614         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
81615         testing whether <sys/types.h> clashes, as Autoconf does this for
81616         us now.  All uses removed.
81617         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
81618         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
81619         (gl_CHECK_TYPE_SAME):
81620         Remove; no longer needed.
81621         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
81622         exists, since we'll return 0 anyway in that case.
81623         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
81624
81625 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81626
81627         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
81628         possible collision with system files.
81629         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
81630         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
81631         WCHAR_MIN and WCHAR_MAX in this case.
81632         (<stddef.h>): Do not include; no longer needed.
81633         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
81634         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
81635         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
81636         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
81637         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
81638         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
81639         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
81640         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
81641         !defined(__c99))]: Include in this case too, since it's harmless
81642         now.
81643         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
81644         dangerous to do so.
81645         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
81646         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
81647         (_STDINT_MIN, _STDINT_MAX): New macros.
81648         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
81649         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
81650         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
81651         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
81652         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
81653         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
81654         macros, not typedefs; this simplifies things quite a bit.
81655         Use long int for all types narrower than int64_t.
81656         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
81657         Define in terms of long long int or int64_t or long int,
81658         not int64_t or int32_t.  This saves some compile-time testing.
81659         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
81660         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
81661         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
81662         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
81663         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
81664         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
81665         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
81666         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
81667         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
81668         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
81669         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
81670         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
81671         undef any previous version and define our own version, for
81672         simplicity and consistency with the new macros for types.
81673         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
81674         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
81675         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
81676         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
81677         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
81678         @WINT_T_SUFFIX@ to keep things simple here.
81679         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
81680         Simplify by assuming typical 8/16/32/64 host, since we're
81681         already doing that elsewhere anyway.
81682         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
81683         and assume long long int is 64 bits if available.  This
81684         speeds up 'configure'.
81685
81686 2006-07-01  Eric Blake  <ebb9@byu.net>
81687
81688         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
81689         Reported by Andreas Buening.
81690
81691 2006-07-01  Eric Blake  <ebb9@byu.net>
81692
81693         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
81694
81695 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
81696
81697         * lib/getaddrinfo.c: fixed typo
81698
81699 2006-06-29  Jim Meyering  <jim@meyering.net>
81700
81701         * modules/strftime (Maintainer): Add my name, since with the
81702         FPRINTFTIME changes strftime.c has forked from glibc.
81703
81704 2006-06-29  Eric Blake  <ebb9@byu.net>
81705
81706         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
81707
81708 2006-06-29  Eric Blake  <ebb9@byu.net>
81709
81710         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
81711
81712 2006-06-29  Eric Blake  <ebb9@byu.net>
81713
81714         * lib/stat_.h: New file.
81715
81716 2006-06-29  Eric Blake  <ebb9@byu.net>
81717
81718         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
81719         unused static function.
81720
81721 2006-06-29  Eric Blake  <ebb9@byu.net>
81722
81723         * doc/functions.texi (Function Portability): Document missing lstat
81724         on mingw.
81725
81726 2006-06-29  Eric Blake  <ebb9@byu.net>
81727
81728         * MODULES.html.sh: Add sys_stat.
81729         * modules/sys_stat: New module.
81730         * modules/mkstemp (Depends-on): Add sys_stat.
81731
81732 2006-06-29  Derek R. Price  <derek@ximbiot.com>
81733
81734         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
81735
81736 2006-06-29  Derek R. Price  <derek@ximbiot.com>
81737
81738         * m4/c-bs-a.m4: Removed.
81739
81740 2006-06-29  Derek R. Price  <derek@ximbiot.com>
81741
81742         * lib/strftime.c: Assume strftime() exists.
81743
81744 2006-06-29  Derek Price  <derek@ximbiot.com>
81745
81746         * modules/c-bs-a: Removed - \a is C89.
81747         * MODULES.html.sh: Remove c-bs-a.
81748
81749 2006-06-29  Bruno Haible  <bruno@clisp.org>
81750
81751         * modules/wcwidth (License): Change to LGPL.
81752
81753 2006-06-28  Simon Josefsson  <jas@extundo.com>
81754
81755         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
81756         on _WIN32.
81757
81758         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
81759         getnameinfo.
81760
81761 2006-06-28  Simon Josefsson  <jas@extundo.com>
81762
81763         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
81764
81765 2006-06-28  Simon Josefsson  <jas@extundo.com>
81766
81767         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
81768         functions there.  It will succeed on Windows XP, but on Windows
81769         2000 and (presumably) earlier, it will fail, and use the internal
81770         re-implementation.
81771         (use_win32_p): New function.
81772         (getaddrinfo): Use strtoul on servname, to support numeric ports.
81773         Support AI_NUMERICSERV to disable getservbyname.
81774         (getnameinfo): New function, only supports
81775         NI_NUMERICHOST|NI_NUMERICSERV for now.
81776
81777         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
81778         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
81779         getnameinfo.
81780
81781 2006-06-28  Eric Blake  <ebb9@byu.net>
81782
81783         * modules/wcwidth: New file.
81784         * modules/mbchar (Depends-on): Add wcwidth.
81785         * modules/mbswidth (Depends-on): Add wcwidth.
81786         * MODULES.html.sh: Add wcwidth.
81787
81788 2006-06-28  Eric Blake  <ebb9@byu.net>
81789
81790         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
81791         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
81792
81793 2006-06-28  Eric Blake  <ebb9@byu.net>
81794
81795         * lib/xvasprintf.h: Fix comments.
81796
81797 2006-06-28  Eric Blake  <ebb9@byu.net>
81798
81799         * lib/mbchar.h (wcwidth): Include wcwidth.h.
81800         * lib/mbswidth.c (wcwidth): Move from here...
81801         * lib/wcwidth.h: ...to this new file.
81802
81803 2006-06-28  Derek R. Price  <derek@ximbiot.com>
81804
81805         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
81806
81807         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
81808         it's obsolete.
81809         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
81810
81811 2006-06-28  Derek R. Price  <derek@ximbiot.com>
81812
81813         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
81814         Autoconf 2.60 says this stuff was obsolete.
81815
81816 2006-06-28  Bruno Haible  <bruno@clisp.org>
81817
81818         * modules/wcwidth (Files): Add m4/wchar_t.m4.
81819
81820 2006-06-28  Bruno Haible  <bruno@clisp.org>
81821
81822         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
81823         gt_TYPE_WCHAR_T.
81824
81825 2006-06-28  Bruno Haible  <bruno@clisp.org>
81826
81827         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
81828         declaration for wcwidth.
81829         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
81830
81831 2006-06-28  Bruno Haible  <bruno@clisp.org>
81832
81833         * lib/mkdtemp.c [MINGW]: Include <io.h>.
81834         (mkdir): Define using _mkdir.
81835
81836 2006-06-28  Bruno Haible  <bruno@clisp.org>
81837
81838         * lib/getaddrinfo.h: Fix POSIX URL.
81839         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
81840         _WIN32.
81841         (use_win32_p): Make static.
81842         (getaddrinfo): Reject service name if it is empty or does not consist
81843         solely of decimal digits, or if its value is > 65535.
81844         (getnameinfo): Remove useless casts.
81845
81846 2006-06-27  Simon Josefsson  <jas@extundo.com>
81847
81848         * modules/sys_select: New file, suggested by Bruno Haible, Paul
81849         Eggert and Martin Lambers.
81850
81851 2006-06-27  Simon Josefsson  <jas@extundo.com>
81852
81853         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
81854         Eggert and Martin Lambers.
81855
81856 2006-06-27  Bruno Haible  <bruno@clisp.org>
81857
81858         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
81859         result to 0, not to empty.
81860         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
81861
81862 2006-06-27  Bruno Haible  <bruno@clisp.org>
81863
81864         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
81865
81866 2006-06-26  Simon Josefsson  <jas@extundo.com>
81867
81868         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
81869         present.
81870
81871 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
81872
81873         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
81874         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
81875         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
81876
81877 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
81878
81879         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
81880
81881 2006-06-26  Bruno Haible  <bruno@clisp.org>
81882
81883         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
81884
81885 2006-06-26  Bruno Haible  <bruno@clisp.org>
81886
81887         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
81888
81889 2006-06-26  Bruno Haible  <bruno@clisp.org>
81890
81891         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
81892         SGI C compiler in pre-C99 mode.
81893         Suggested by Mark D. Baushke and Larry Jones.
81894
81895 2006-06-26  Bruno Haible  <bruno@clisp.org>
81896
81897         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
81898         WCHAR_MAX.
81899         Reported by Mark D. Baushke and Larry Jones.
81900
81901 2006-06-26  Bruno Haible  <bruno@clisp.org>
81902
81903         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
81904         in pre-C99 mode.
81905         Suggested by Mark D. Baushke and Larry Jones.
81906
81907 2006-06-23  Simon Josefsson  <jas@extundo.com>
81908             Bruno Haible  <bruno@clisp.org>
81909
81910         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
81911         Emit mostlyclean-local rule.
81912         (func_emit_tests_Makefile_am): Likewise.
81913         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
81914
81915 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
81916
81917         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
81918
81919 2006-06-23  Bruno Haible  <bruno@clisp.org>
81920
81921         * tests/test-stdint.c: Update to match ISO C 99 Technical
81922         Corrigendum 1.
81923
81924 2006-06-23  Bruno Haible  <bruno@clisp.org>
81925
81926         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
81927
81928 2006-06-23  Bruno Haible  <bruno@clisp.org>
81929
81930         * lib/stdint_.h: Treat IRIX like OpenBSD.
81931
81932 2006-06-23  Bruno Haible  <bruno@clisp.org>
81933
81934         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
81935         ISO C 99 Technical Corrigendum 1.
81936
81937 2006-06-22  Simon Josefsson  <jas@extundo.com>
81938
81939         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
81940         MinGW.
81941
81942 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81943
81944         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
81945         needed.  Some compiler complained about some of them.  Problem reported
81946         by Larry Jones in
81947         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
81948
81949 2006-06-21  Simon Josefsson  <jas@extundo.com>
81950
81951         * tests/test-getaddrinfo.c: New file.
81952
81953         * modules/getaddrinfo-tests: New file.
81954
81955         * MODULES.html.sh: Add inet_pton.
81956
81957         * modules/inet_pton: New file.
81958
81959 2006-06-21  Simon Josefsson  <jas@extundo.com>
81960
81961         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
81962         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
81963         of using the (limited) gnulib implementation on Windows XP.
81964
81965         * m4/inet_pton.m4: New file.
81966
81967 2006-06-21  Simon Josefsson  <jas@extundo.com>
81968
81969         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
81970         variable.
81971
81972         * lib/socket_.h: Don't define WINVER.
81973
81974         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
81975         slightly modified to work in gnulib.
81976
81977 2006-06-21  Simon Josefsson  <jas@extundo.com>
81978
81979         * doc/gnulib.texi (Windows sockets): Add.
81980
81981 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
81982
81983         * lib/read-file.c (fread_file): Start with buffer allocation of
81984         0 bytes rather than 1 byte; this simplifies the code.
81985         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
81986         code to free buffer and save/restore errno.
81987         (internal_read_file): Remove unused local.
81988
81989 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
81990
81991         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
81992         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
81993         Problem reported by Denis Excoffier in
81994         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
81995
81996 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81997
81998         * modules/sys_socket, modules/socklen: Include sys/types since
81999         FreeBSD 4.x's sys/socket.h needs it.
82000
82001 2006-06-19  Simon Josefsson  <jas@extundo.com>
82002
82003         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
82004
82005 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
82006
82007         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
82008
82009 2006-06-19  Bruno Haible  <bruno@clisp.org>
82010
82011         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
82012         and FULL_PATH_INTTYPES_H in angle brackets.
82013         Reported by Mark D. Baushke <mdb@gnu.org>.
82014
82015 2006-06-17  Eric Blake  <ebb9@byu.net>
82016
82017         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
82018         errno.
82019
82020 2006-06-17  Bruno Haible  <bruno@clisp.org>
82021
82022         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
82023         <sys/inttypes.h>.
82024
82025 2006-06-17  Bruno Haible  <bruno@clisp.org>
82026
82027         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
82028         whether errno is declared. Assume <errno.h> declares errno.
82029
82030 2006-06-17  Bruno Haible  <bruno@clisp.org>
82031
82032         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
82033
82034 2006-06-17  Bruno Haible  <bruno@clisp.org>
82035
82036         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
82037         problem on Solaris 2.5.1.
82038
82039 2006-06-16  Eric Blake  <ebb9@byu.net>
82040
82041         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
82042         * lib/unicodeio.c [!defined errno]: Likewise.
82043         * lib/strtol.c [!defined errno]: Likewise.
82044         * lib/strtod.c [!defined errno]: Likewise.
82045
82046 2006-06-15  Eric Blake  <ebb9@byu.net>
82047
82048         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
82049
82050 2006-06-15  Eric Blake  <ebb9@byu.net>
82051
82052         * config/srclist.txt (ssize_t.m4): Lose sync.
82053
82054 2006-06-15  Bruno Haible  <bruno@clisp.org>
82055
82056         * modules/stdint (Files): Include m4/full-header-path.m4,
82057         m4/size_max.m4, m4/wchar_t.m4.
82058         (Makefile.am): Many more substitutions.
82059         * modules/stdint-tests: New file.
82060         * tests/test-stdint.c: New file.
82061
82062 2006-06-15  Bruno Haible  <bruno@clisp.org>
82063
82064         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
82065         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
82066         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
82067         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
82068         gl_CHECK_TYPE_SAME): New macros.
82069
82070 2006-06-15  Bruno Haible  <bruno@clisp.org>
82071
82072         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
82073
82074 2006-06-15  Bruno Haible  <bruno@clisp.org>
82075
82076         * lib/stdint_.h: Rewritten to be fully auto-configured.
82077         Fixes bug on HP-UX/IA64.
82078
82079 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
82080
82081         * lib/getdate.y (__attribute__): Don't define if already defined.
82082         Problem reported by Larry Jones.
82083         * lib/utimens.c (__attribute__): Likewise.
82084
82085 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
82086
82087         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
82088         reported by Andreas Schwab.
82089
82090 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82091             Bruno Haible  <bruno@clisp.org>
82092
82093         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
82094         check for the declaration of strnlen and a run test that exposes the
82095         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
82096         rpl_strndup.
82097
82098 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82099             Bruno Haible  <bruno@clisp.org>
82100
82101         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
82102
82103 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82104
82105         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
82106         compile test, for Tru64 4.0D.
82107
82108 2006-05-28  Karl Berry  <karl@gnu.org>
82109
82110         * config/srclist.txt (printf-args.c): lose sync.
82111
82112 2006-05-26  Martin Lambers  <marlam@marlam.de>
82113
82114         * lib/getpass.c: Updates the test for the native W32 API, and adds
82115         missing includes, thus fixing compilation warnings.
82116
82117 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82118
82119         * lib/exclude.c (exclude_fnmatch): New function.
82120         (excluded_file_name): Call exclude_fnmatch.
82121         * lib/exclude.h (excluded_file_name): New prototype
82122
82123 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
82124
82125         * lib/tempname.c (small_open, large_open): New macros.
82126         (__open, __open64) [!_LIBC]: Remove.
82127         (__gen_tempname): Use small_open and large_open instead of __open
82128         and __open64.  This fixes a portability bug on HP-UX 11.11i
82129         reported by Simon Wing-Tang in
82130         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
82131
82132 2006-05-24  Bruno Haible  <bruno@clisp.org>
82133
82134         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
82135         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
82136         Reported by Thorsten Maerz <torte@netztorte.de> via
82137         Aaron Stone <aaron@serendipity.cx>.
82138
82139 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
82140
82141         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
82142         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
82143         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
82144         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
82145         not really conditional on the cache.
82146         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
82147
82148 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
82149
82150         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
82151         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
82152         (my_usleep): Don't mishandle maximum value.
82153
82154 2006-05-19  Jim Meyering  <jim@meyering.net>
82155
82156         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
82157
82158 2006-05-17  Bruno Haible  <bruno@clisp.org>
82159
82160         Cygwin portability.
82161         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
82162
82163 2006-05-17  Bruno Haible  <bruno@clisp.org>
82164
82165         * lib/stdint_.h: Fix recognition of Cygwin.
82166
82167 2006-05-15  Bruno Haible  <bruno@clisp.org>
82168
82169         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
82170         on libtool patch by Ralf Wildenhues.
82171
82172 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82173
82174         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
82175         test for C99 conformance; (bool) 0.5 is an integer constant
82176         expression, but (bool) -0.5 is not.  Problem reported by Fedor
82177         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
82178
82179 2006-05-11  Simon Josefsson  <jas@extundo.com>
82180
82181         * m4/xvasprintf.m4: Fix obvious typo.
82182
82183 2006-05-11  Jim Meyering  <jim@meyering.net>
82184
82185         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
82186         James Lemley.
82187
82188 2006-05-10  Simon Josefsson  <jas@extundo.com>
82189
82190         * lib/md4.c: Typo fix, update copyright years.
82191         (K1, K2): Don't use L because it turn computations into 64-bit on
82192         64-bit platforms.
82193
82194 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
82195
82196         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
82197         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
82198         unwanted sign propagation, e.g., on hosts with 64-bit int.
82199         There still are some problems with reeelly weird theoretical hosts
82200         (e.g., 33-bit int) but it's not worth worrying about now.
82201         * lib/sha1.c (rol): Likewise.
82202         (K1, K2, K3, K4): Remove unnecessary L suffix.
82203
82204 2006-05-10  Bruno Haible  <bruno@clisp.org>
82205
82206         * lib/des.c: Cast to avoid warnings.
82207
82208 2006-05-09  Bruno Haible  <bruno@clisp.org>
82209
82210         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
82211         (Depends-on): Depend also on xsize, stdarg.
82212         (configure.ac): Add gl_XVASPRINTF.
82213
82214 2006-05-09  Bruno Haible  <bruno@clisp.org>
82215
82216         * m4/xvasprintf.m4: New file.
82217
82218 2006-05-09  Bruno Haible  <bruno@clisp.org>
82219
82220         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
82221         (EOVERFLOW): Define fallback value.
82222         (xstrcat): New function.
82223         (xvasprintf): Recognize the special case of a string concatenation.
82224
82225 2006-05-08  Eric Blake  <ebb9@byu.net>
82226
82227         * gnulib-tool (func_version): Base copyright year on CVS date.
82228         (func_emit_copyright_notice): New function.
82229         (func_emit_lib_Makefile_am): Use it.
82230         (func_emit_tests_Makefile_am): Likewise.
82231         (func_import): Likewise.
82232
82233 2006-05-08  Bruno Haible  <bruno@clisp.org>
82234
82235         * modules/stdarg: New file.
82236         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
82237
82238 2006-05-08  Bruno Haible  <bruno@clisp.org>
82239
82240         * m4/stdarg.m4: New file, from GNU gettext.
82241
82242 2006-05-08  Bruno Haible  <bruno@clisp.org>
82243
82244         * config/srclist.txt (build-aux/config.rpath): different from latest
82245         release.
82246
82247 2006-05-08  Bruno Haible  <bruno@clisp.org>
82248
82249         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
82250
82251 2006-05-05  Jim Meyering  <jim@meyering.net>
82252
82253         * m4/warning.m4: New file, derived from bison's file by the same name.
82254
82255 2006-05-03  Bruno Haible  <bruno@clisp.org>
82256
82257         * lib/stdint_.h: Shorter URL.
82258         * lib/inttypes.h: Likewise.
82259
82260 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82261
82262         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
82263
82264 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82265
82266         * lib/verify.h: Document the internals better.  Most of this change
82267         was written by Bruno Haible.
82268
82269 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82270
82271         * doc/verify.texi: New file, partly based on a proposal by
82272         Bruno Haible.
82273
82274 2006-05-02  Bruno Haible  <bruno@clisp.org>
82275
82276         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
82277         test from here...
82278         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
82279
82280 2006-04-29  Bruno Haible  <bruno@clisp.org>
82281
82282         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
82283         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
82284
82285 2006-04-29  Bruno Haible  <bruno@clisp.org>
82286
82287         * gnulib-tool: Make --update option actually work.
82288
82289 2006-04-29  Bruno Haible  <bruno@clisp.org>
82290
82291         * doc/gcd.texi: New file.
82292         * doc/gnulib.texi: Include it.
82293
82294 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
82295
82296         * lib/getdate.y (get_date): When adding relative date, start with the
82297         initial time, not with the result of the first mktime call.
82298
82299 2006-04-25  Bruno Haible  <bruno@clisp.org>
82300
82301         * gnulib-tool (func_import): Output the include directives in three
82302         blocks, sorted separately.
82303         Reported by Ben Pfaff <blp@cs.stanford.edu>.
82304
82305 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
82306
82307         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
82308         to define main with arguments, for C++.  Reported by Eric Blake.
82309         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
82310         Prefer 'int main ()' to 'int main (void)', for C++.
82311         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
82312         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
82313         for 'main', for C99 and C++.
82314
82315 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
82316
82317         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
82318         Don't assume that exit status -1 is valid.
82319         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
82320         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
82321         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
82322         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
82323         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
82324         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
82325         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
82326         functions can be used without declaring them, or that you can
82327         exit with status -1.
82328         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
82329
82330 2006-04-24  Karl Berry  <karl@gnu.org>
82331
82332         * config/srclist.txt (longdouble.m4): sync lost.
82333
82334 2006-04-24  Eric Blake  <ebb9@byu.net>
82335
82336         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
82337
82338 2006-04-24  Bruno Haible  <bruno@clisp.org>
82339
82340         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
82341         poll() implementation in AIX.
82342         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82343
82344 2006-04-24  Bruno Haible  <bruno@clisp.org>
82345
82346         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
82347         assigned exactly once.
82348
82349 2006-04-23  Claudio Fontana  <claudio@gnu.org>
82350             Bruno Haible  <bruno@clisp.org>
82351
82352         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
82353         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
82354         for AM_CPPFLAGS.
82355
82356 2006-04-23  Bruno Haible  <bruno@clisp.org>
82357
82358         * modules/copy-file: Depend on unistd.
82359         * modules/execute: Likewise.
82360         * modules/fatal-signal: Likewise.
82361         * modules/findprog: Likewise.
82362         * modules/mkdtemp : Likewise.
82363         * modules/pipe: Likewise.
82364         * modules/wait-process: Likewise.
82365
82366 2006-04-23  Bruno Haible  <bruno@clisp.org>
82367
82368         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
82369         condition was already detected.
82370         Reported by Ben Pfaff <blp@cs.stanford.edu>.
82371
82372 2006-04-23  Bruno Haible  <bruno@clisp.org>
82373
82374         * lib/copy-file.c: Include <unistd.h> unconditionally.
82375         * lib/execute.c: Likewise.
82376         * lib/fatal-signal.c: Likewise.
82377         * lib/findprog.c: Likewise.
82378         * lib/mkdtemp.c: Likewise.
82379         * lib/pipe.h: Likewise.
82380         * lib/pipe.c: Likewise.
82381         * lib/wait-process.h: Likewise.
82382
82383 2006-04-23  Bruno Haible  <bruno@clisp.org>
82384
82385         * gnulib-tool (func_usage): Fix --import description. Document
82386         --update.
82387         (func_import): Create temporary file in a temporary directory, if
82388         --dry-run is specified. Silence errors from 'grep' when there are no
82389         m4 files in $m4dir.
82390         (func_create_testdir): Silence errors from 'grep' when there are no
82391         m4 files in $m4dir.
82392         Reported by Karl Berry <karl@freefriends.org>.
82393
82394 2006-04-20  Bruno Haible  <bruno@clisp.org>
82395
82396         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
82397         one argument, so that the code will be portable to Autoconf 2.60.
82398         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
82399         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
82400         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
82401
82402 2006-04-19  Derek Price  <derek@ximbiot.com>
82403             Eric Blake  <ebb9@byu.net>
82404
82405         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
82406         rather than "/full/path.h".  Update comment to match.  Shorten &
82407         generalize m4_translit call via AS_TR_CPP.
82408
82409 2006-04-19  Derek Price  <derek@ximbiot.com>
82410             Eric Blake  <ebb9@byu.net>
82411
82412         * lib/inttypes.h: Correct grammar in comment.
82413
82414 2006-04-18  Derek Price  <derek@ximbiot.com>
82415             Paul Eggert  <eggert@cs.ucla.edu>
82416
82417         * modules/inttypes: New file.
82418         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
82419
82420 2006-04-18  Derek Price  <derek@ximbiot.com>
82421             Paul Eggert  <eggert@cs.ucla.edu>
82422
82423         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
82424         New files.
82425
82426 2006-04-18  Derek Price  <derek@ximbiot.com>
82427             Paul Eggert  <eggert@cs.ucla.edu>
82428
82429         * lib/inttypes.h: New file.
82430         * lib/strtoimax.c: Assume <inttypes.h>.
82431
82432 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
82433
82434         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
82435         isn't mounted.  Problem reported by Kir Kolyshkin.
82436
82437 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
82438
82439         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
82440         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
82441         Derek R. Price.
82442         * lib/regex.h (RE_DUP_MAX): Update comment to match current
82443         implementation.
82444
82445 2006-04-12  Eric Blake  <ebb9@byu.net>
82446
82447         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
82448         is now done automatically by the corresponding Autoconf macro.
82449
82450 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
82451
82452         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
82453         time_r.h.
82454
82455 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82456
82457         Merge regex changes from libc, removing some of our
82458         POSIX-conformance changes that were rejected and redoing them in a
82459         less-intrusive way.
82460
82461         * lib/regcomp.c (re_compile_internal, init_dfa):
82462         Length arg is now size_t, not Idx.  All uses changed.
82463         (peek_token): Forward decl now says internal_function.
82464         (__re_error_msgid, __re_error_msgid_idx):
82465         Now static rather than extern with attribute_hidden.
82466         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
82467         For some reason libc prefers K&R style defns for external functions.
82468         (regerror) [!defined _LIBC]: Likewise.
82469         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
82470         (seek_collating_symbol_entry, lookup_collation_sequence_value):
82471         (build_range_exp, build_collating_symbol):
82472         Use K&R-style defn.
82473         (re_compile_fastmap): Use '\0' to memset, not 0.
82474         (utf8_sb_map): Make the calculations more obvious.
82475         (init_dfa, parse_bracket_exp, build_charclass_op):
82476         Call calloc and cast result, as glibc does.
82477         (init_word_char, fetch_token, peek_token, peek_token_bracket):
82478         (build_range_exp, build_collating_symbol):
82479         Now internal functions.
82480
82481         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
82482
82483         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
82484         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
82485         Don't depend on VMS; depend on __VMS instead, for POSIX
82486         namespace cleanness.
82487         (regoff_t): Define to ssize_t, not long int.
82488
82489         Remove the REG_ macros named below.  Instead, make the old names
82490         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
82491         __USE_GNU_REGEX.
82492         (REG_BACKSLASH_ESCAPE_IN_LISTS):
82493         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
82494         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
82495         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
82496         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
82497         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
82498         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
82499         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
82500         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
82501         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
82502         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
82503         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
82504         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
82505         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
82506         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
82507         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
82508         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
82509         (REG_NREGS):
82510         Remove.  All uses replaced by the old RE_* names.
82511         (RE_BACKSLASH_ESCAPE_IN_LISTS):
82512         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
82513         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
82514         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
82515         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
82516         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
82517         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
82518         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
82519         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
82520         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
82521         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
82522         Don't bother having these macros be independent of each others'
82523         values, since they no longer exist in the POSIX name space.
82524
82525         Rename the following member names back to their old names,
82526         unless !__USE_GNU_REGEX.  All uses changed back.
82527         (buffer): Renamed from re_buffer.
82528         (allocated): Renamed from re_allocated.
82529         (used): Renamed from re_used.
82530         (syntax): Renamed from re_syntax.
82531         (fastmap): Renamed from re_fastmap.
82532         (translate): Renamed from re_translate.
82533         (can_be_null): Renamed from re_can_be_null.
82534         (regs_allocated): Renamed from re_regs_allocated.
82535         (fastmap_accurate): Renamed from re_fastmap_accurate.
82536         (no_sub): Renamed from re_no_sub.
82537         (not_bol): Renamed from re_not_bol.
82538         (not_eol): Renamed from re_not_eol.
82539         (newline_anchor): Renamed from re_newline_anchor.
82540         (num_regs): Renamed from rm_num_regs.
82541         (start): Renamed from rm_start.
82542         (end): Renamed from rm_end.
82543
82544         (free_state): Move up a bit.
82545
82546         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
82547         #define to be empty.
82548         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
82549         when that is what is intended.
82550         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
82551         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
82552         (MAX): New macro.
82553         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
82554         All uses changed back to re_malloc, etc.  It's now the caller's
82555         responsibility to check for overflow; all callers changed.
82556         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
82557         (re_x2nrealloc): Remove.
82558         (free_state): Remove decl.
82559
82560         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
82561         (re_set_registers, re_exec):
82562         Use K&R-style defn.
82563
82564         2006-01-31  Roland McGrath  <roland@redhat.com>
82565
82566         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
82567         Reported by Mike Frysinger <vapier@gentoo.org>.
82568
82569         2006-01-15  Andreas Jaeger  <aj@suse.de>
82570
82571         [BZ #1950]
82572         * lib/regex_internal.c (re_string_reconstruct): Adjust for
82573         build_wcs_upper_buffer change.
82574         (build_wcs_upper_buffer): Change return type.
82575
82576         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
82577
82578         * lib/regex_internal.h: Include <stdint.h> if available.
82579
82580         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
82581
82582         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
82583
82584         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
82585
82586         * lib/regcomp.c: Adjust for changed secondary hash function.
82587
82588         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
82589
82590         * lib/regex.h: Pretty printing.
82591         Clean up namespace a bit.
82592
82593         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
82594
82595         * lib/regexec.c (update_cur_sifted_state, check_arrival,
82596         check_arrival_add_next_nodes): Avoid using uninitialized variable.
82597
82598         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
82599                     Ulrich Drepper  <drepper@redhat.com>
82600
82601         [BZ #1302]
82602         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
82603         changed.
82604         (bitset_word_t): Renamed from bitset_word.  All uses changed.
82605
82606         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
82607
82608         [BZ #281]
82609         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
82610         * lib/regcomp.c: Remove unnecessary uses of
82611         unsigned RE_TRANSLATE_TYPE.
82612         * lib/regex_internal.h: Likewise.
82613         * lib/regex_internal.c: Likewise.
82614         * lib/regexec.c: Likewise.
82615         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
82616
82617         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
82618
82619         * lib/regexec.c (find_recover_state): Remove unnecessary
82620         initialization.
82621         (transit_state_bkref): Make DFA a const pointer.
82622         (get_subexp): Likewise.
82623         (check_arrival): Likewise.
82624         (update_cur_sifted_state): Likewise.
82625         (re_search_internal): Likewise.
82626         (prune_impossible_nodes): Likewise.
82627         (acquire_init_state_context): Likewise.
82628         (proceed_next_node): Likewise.
82629         (set_regs): Likewise.
82630         (free_fail_stack_return): Likewise.
82631         (check_arrival_expand_ecl): Mark DFA parameter as const.
82632         (check_arrival_expand_ecl_sub): Likewise.
82633         (check_subexp_limits): Likewise.
82634         (sub_epsilon_src_nodes):  Likewise.
82635         (add_epsilon_src_nodes):  Likewise.
82636         (merge_state_array): Likewise.
82637         (update_regs): Likewise.
82638         (build_trtable): Likewise.
82639         (sift_states_backward): Mark MCTX parameter as const.
82640         (build_sifted_states): Likewise.
82641         (update_cur_sifted_state): Likewise.
82642         (sift_states_mkref): Likewise.
82643         (check_arrival_expand_ecl): Mark eclosure as const.
82644         (check_dst_limits_calc_pos_1): Likewise.
82645         * lib/regex_internal.h (re_match_context_t): Make dfa a const
82646         pointer.
82647
82648         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
82649
82650         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
82651         (transit_state_sb): Likewise.
82652         (transit_state_mb): Likewise.
82653         (sift_states_iter_mb): Likewise.
82654         (check_arrival_add_next_nodes): Likewise.
82655         (check_node_accept_bytes): Change first parameter to pointer-to-const.
82656         [_LIBC] (re_search_2_stub): Use mempcpy.
82657
82658         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
82659         mbrtowc for very simple UTF-8 case.
82660
82661         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
82662         a pointer-to-const.
82663         (re_acquire_state_context): Likewise.
82664         * lib/regex_internal.h: Adjust prototypes.
82665
82666         * lib/regex.c: Prevent using C++ compilers.
82667
82668         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
82669         (re_acquire_state_context): Likewise.
82670
82671 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82672
82673         * modules/regex (Depends-on): Add ssize_t.
82674
82675 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82676
82677         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
82678         translation table.
82679
82680 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82681
82682         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
82683
82684 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
82685             Bruno Haible  <bruno@clisp.org>
82686
82687         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
82688         <sys/types.h> and <inttypes.h>.
82689
82690 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82691
82692         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
82693         `__error_t_defined', so argp.h will not typedef the former.
82694
82695 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
82696
82697         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
82698         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
82699         glibc names.  Even if glibc is changed to conform to POSIX, the
82700         traditional names will be available anyway, since regex depends on
82701         the extensions module.  Also, fix a longstanding typo in the
82702         implementation of Spencer ERE test #75 from grep 2.3.  Problems
82703         reported by Emanuele Giaquinta.  Also, change sense of cached
82704         variable, so that the message makes sense.
82705
82706 2006-03-24  Simon Josefsson  <jas@extundo.com>
82707
82708         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
82709         including some doc fixes.
82710         (base64_encode_alloc): Fix +1 bug on allocation failures.
82711
82712 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82713
82714         * lib/base64.c (base64_encode): Do not read past end of array with
82715         unsanitized input on systems with CHAR_BIT > 8.
82716
82717 2006-03-24  Eric Blake  <ebb9@byu.net>
82718
82719         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
82720
82721 2006-03-22  Karl Berry  <karl@gnu.org>
82722
82723         * config/srclist.txt (*setenv.[ch]): get from coreutils.
82724         * config/srclistvars.sh (COREUTILS): new var.
82725
82726 2006-03-17  Jim Meyering  <jim@meyering.net>
82727
82728         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
82729         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
82730
82731 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
82732
82733         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
82734         no longer needs it.  Instead, check that regoff_t is as least
82735         as wide as ptrdiff_t.
82736
82737         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
82738         so that our regex.h stays compatible with the installed regex.
82739         This is helpful for installers who configure --without-included-regex.
82740         Problem reported by Emanuele Giaquinta.
82741
82742 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
82743
82744         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
82745         Typedef to long int, not to off_, as POSIX will likely change
82746         in that direction.
82747
82748 2006-03-15  Eric Blake  <ebb9@byu.net>
82749
82750         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
82751
82752 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
82753
82754         * lib/argp-help.c (validate_uparams): Fix typo
82755         * lib/argp-parse.c (argp_default_options): Consistently begin help
82756         messages with a lowercase letter.
82757
82758 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
82759
82760         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
82761         overrun buffers and shouldn't be used (much as gets shouldn't be
82762         used).
82763         * lib/time_r.c (asctime_r, ctime_r): Likewise.
82764
82765 2006-03-08  Simon Josefsson  <jas@extundo.com>
82766
82767         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
82768         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82769
82770 2006-03-08  Simon Josefsson  <jas@extundo.com>
82771
82772         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
82773         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82774
82775 2006-03-08  Simon Josefsson  <jas@extundo.com>
82776
82777         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
82778         signal that configure disabled the device.
82779
82780 2006-03-08  Simon Josefsson  <jas@extundo.com>
82781
82782         * build-aux/maint.mk: Fix refresh-po, to handle no translated
82783         languages.
82784
82785 2006-03-07  Simon Josefsson  <jas@extundo.com>
82786
82787         * modules/getopt (Depends-on): Add unistd.
82788
82789         * modules/unistd: New file.
82790
82791 2006-03-07  Simon Josefsson  <jas@extundo.com>
82792
82793         * modules/gc-random: New file.
82794
82795 2006-03-07  Simon Josefsson  <jas@extundo.com>
82796
82797         * m4/unistd_h.m4: New file.
82798
82799 2006-03-07  Simon Josefsson  <jas@extundo.com>
82800
82801         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
82802         test to be side-effect free by storing the result in the cache
82803         variable gl_cv_lib_readline, and moving the assignment of
82804         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
82805         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82806
82807 2006-03-07  Simon Josefsson  <jas@extundo.com>
82808
82809         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
82810         error on missing devices (the functions will return an error).
82811
82812         * m4/gc.m4: Move random stuff to gc-random.m4
82813
82814 2006-03-07  Simon Josefsson  <jas@extundo.com>
82815
82816         * lib/unistd_.h: New file.
82817
82818 2006-03-07  Simon Josefsson  <jas@extundo.com>
82819
82820         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
82821
82822 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
82823
82824         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
82825         Problem reported by Juan Manuel Guerrero.
82826
82827 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
82828
82829         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
82830         the unistd module.
82831         * lib/getlogin_r.c: Likewise.
82832         * lib/getlogin_r.h: Likewise.
82833         * lib/glob.c: Likewise.
82834         * lib/pagealign_alloc.c: Likewise.
82835         * lib/unistd_.h: Remove; no longer needed.
82836
82837 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
82838
82839         * MODULES.html.sh (Support for systems lacking POSIX:2001):
82840         Add unistd.
82841         * modules/c-stack (Depends-on): Add unistd.
82842         * modules/getlogin_r: Likewise.
82843         * modules/glob: Likewise.
82844         * modules/pagealign_alloc: Likewise.
82845         * modules/unistd (Files): Remove lib/unistd_.h.
82846         (EXTRA_DIST): Remove.
82847         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
82848         need unistd_.h.
82849         (MOSTLYCLEANFILES): Remove unistd.h-t.
82850
82851 2006-03-03  Simon Josefsson  <jas@extundo.com>
82852
82853         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
82854
82855 2006-03-03  Simon Josefsson  <jas@extundo.com>
82856
82857         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
82858         libidn and bison.
82859
82860 2006-03-03  Simon Josefsson  <jas@extundo.com>
82861
82862         * build-aux/maint.mk: Add indent target.
82863
82864 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
82865
82866         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
82867         our replacement poll.h in any case, to avoid a differing
82868         declaration from a system header.  Seen on AIX.
82869
82870 2006-03-01  Simon Josefsson  <jas@extundo.com>
82871
82872         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
82873         <kasal@ucw.cz>.
82874
82875 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82876
82877         * modules/gettime (Depends-on): Add extensions module.
82878         * modules/nanosleep (Depends-on): Likewise.
82879         * modules/settime (Depends-on): Likewise.
82880
82881 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82882
82883         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
82884         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
82885         pedantically.
82886         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
82887         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
82888
82889         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
82890         not "==".  Reported by Ralf Wildenhues.
82891
82892 2006-03-01  Karl Berry  <karl@gnu.org>
82893
82894         * doc/Copyright/request-*: new files, synced from gnuorg.
82895
82896 2006-03-01  Karl Berry  <karl@gnu.org>
82897
82898         * config/srclist.txt (Copyright/*): new entries.
82899
82900 2006-02-28  Simon Josefsson  <jas@extundo.com>
82901
82902         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
82903
82904 2006-02-27  Simon Josefsson  <jas@extundo.com>
82905
82906         * lib/base64.h: Indent #define's.  From Jim Meyering
82907         <jim@meyering.net>.
82908
82909 2006-02-27  Jim Meyering  <jim@meyering.net>
82910
82911         Revert the change of 2006-02-24, so these files can continue
82912         to be sync'd from gettext.
82913         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
82914         of `config.h'.
82915
82916 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
82917
82918         * modules/intprops: New file.
82919         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
82920         Add intprops.
82921         * modules/getloadavg (Files): Remove lib/intprops.h.
82922         (Depends-on): Add intprops.
82923         * modules/human: Likewise.
82924         * modules/inttostr: Likewise.
82925         * modules/openat: Likewise.
82926         * modules/sig2str: Likewise.
82927         * modules/userspec: Likewise.
82928         * modules/utimecmp: Likewise.
82929         * modules/xnanosleep: Likewise.
82930         * modules/xstrtol: Likewise.
82931
82932 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
82933
82934         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
82935         * modules/lock-tests (TESTS): Use $(EXEEXT).
82936         * modules/tls-tests: Likewise.
82937         * modules/argp-tests: Likewise.
82938         (check_PROGRAMS): New var, replacing...
82939         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
82940
82941 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82942
82943         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
82944         `config.h'.
82945
82946 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
82947
82948         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
82949
82950 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82951
82952         Sync from coreutils.
82953         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
82954         gl_CHDIR_SAFER.
82955
82956 2006-02-22  Jim Meyering  <jim@meyering.net>
82957
82958         Sync from coreutils.
82959         * m4/chdir-safer.m4: New file.
82960
82961 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
82962
82963         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
82964         AT_FDCWD exceeds INT_MAX.
82965         * lib/openat.h (AT_FDCWD): Likewise.
82966
82967 2006-02-17  Eric Blake  <address@hidden>
82968
82969         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
82970
82971 2006-02-16  Simon Josefsson  <jas@extundo.com>
82972
82973         * modules/getaddrinfo (Depends-on): Add sys_socket.
82974
82975 2006-02-15  Simon Josefsson  <jas@extundo.com>
82976
82977         * build-aux/maint.mk: Add dsyntax-check rule.
82978
82979 2006-02-15  Eric Blake  <ebb9@byu.net>
82980
82981         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
82982         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
82983         'present but cannot compile' warnings on cygwin.
82984         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
82985         use ws2tcpip.h if sys/socket.h works.
82986         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
82987         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
82988
82989 2006-02-14  Simon Josefsson  <jas@extundo.com>
82990
82991         * modules/maintainer-makefile (Files): Rename.
82992
82993         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
82994         and (the local) Makefile.cfg to maint-cfg.mk.
82995
82996         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
82997         to the latter.
82998
82999         * modules/maintainer-makefile: New module.
83000
83001         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
83002         severaly stripped to make it possible to build it up from scratch
83003         with reliable tests.
83004
83005         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
83006         fixes to permit overriding the default actions when configure and
83007         makefile are not available.
83008
83009 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
83010
83011         Sync from coreutils.
83012         * modules/lstat (Depends-on): Don't depend on xalloc.
83013         (License): Change from GPL to LGPL, since this is now simply a
83014         replacement for a libc function.
83015
83016 2006-02-14  Jim Meyering  <jim@meyering.net>
83017
83018         Sync from coreutils.
83019
83020         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
83021         failure on deficient systems, and simplify gnulib lgpl dependencies.
83022         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
83023         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
83024
83025         * lib/xalloc-die.c: Remove unused definition of N_.
83026
83027 2006-02-14  Jim Meyering  <jim@meyering.net>
83028
83029         Sync from coreutils.
83030         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
83031         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
83032         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
83033         double-quote uses of that variable, to accommodate the rare case in
83034         which getmntent is available in none of the libraries checked.  This
83035         happens at least on FreeBSD 5.0.
83036
83037 2006-02-13  Simon Josefsson  <jas@extundo.com>
83038
83039         * gnulib-tool (Usage): Fix --import, from
83040         karl@freefriends.org (Karl Berry).
83041
83042 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
83043
83044         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
83045
83046 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
83047
83048         * lib/argp-namefrob.h: Restore changes accidentally lost during the
83049         "autoupdate" on 2005-12-12.
83050
83051 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
83052
83053         * modules/closeout (Depends-on): Remove atexit.
83054
83055 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
83056
83057         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
83058         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
83059
83060 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
83061
83062         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
83063         __EXTENSIONS__ if this causes compilation to fail.  Problem
83064         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
83065         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
83066
83067 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
83068
83069         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
83070         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
83071         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
83072         All uses changed.
83073
83074 2006-01-26  Simon Josefsson  <jas@extundo.com>
83075
83076         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
83077         prototype is visible on mingw32.
83078
83079         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
83080         for mingw32.
83081
83082         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
83083         mingw32).
83084
83085 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
83086
83087         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
83088         attempt to open for write; this always fails, at least on POSIX
83089         hosts.  This reinstates the 2006-01-09 change, which was
83090         inadvertently removed.
83091
83092 2006-01-26  Bruno Haible  <bruno@clisp.org>
83093
83094         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
83095         Reported by Paul Eggert.
83096
83097 2006-01-26  Bruno Haible  <bruno@clisp.org>
83098             Paul Eggert  <eggert@cs.ucla.edu>
83099
83100         * lib/stdbool_.h (_Bool)
83101         [(! (defined __cplusplus || defined __BEOS__)
83102           && !defined __GNUC__
83103           && !(defined __HP_cc || defined __xlc__
83104                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
83105                || defined __sgi))]:
83106         #define to signed char in these cases too; this simplifies
83107         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
83108         etc., separately) and makes it more conservative.
83109
83110 2006-01-25  Simon Josefsson  <jas@extundo.com>
83111
83112         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
83113         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
83114         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
83115
83116 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
83117
83118         * lib/argp-namefrob.h: Bugfix. Remove stray #
83119
83120 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
83121
83122         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
83123         so that we test the test.
83124         Check for yet another HP-UX cc bug involving *bool |= bool.
83125
83126 2006-01-25  Karl Berry  <karl@gnu.org>
83127
83128         * config/srclist.txt (vasnprintf.c): sync lost.
83129
83130 2006-01-25  Jim Meyering  <jim@meyering.net>
83131
83132         Sync from the stable (b5) branch of coreutils:
83133
83134         * lib/fts.c (fts_children): Don't let close() clobber errno from
83135         failed fchdir().
83136
83137         * lib/fts.c (fts_stat): When following a symlink-to-directory,
83138         don't necessarily interpret stat-fails+lstat-succeeds as indicating
83139         a dangling symlink.  That can also happen at least for ELOOP.
83140         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
83141         FYI, this bug predates the inclusion of fts.c in coreutils.
83142
83143         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
83144         in their own block, so pre-c99 compilers don't object.
83145
83146         Avoid the double-free (first in fts_read, second in fts_close) that
83147         would occur when an `active' directory is made inaccessible (e.g.,
83148         via chmod a-x) during a traversal.
83149         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
83150         before returning.  Reproduce this failure by
83151         mkdir -p a/b; cd a; chmod a-x . b
83152         Reported by Stavros Passas.
83153
83154 2006-01-25  Jim Meyering  <jim@meyering.net>
83155
83156         * lib/fileblocks.c: Remove more useless parentheses.
83157         * lib/readutmp.h: Likewise.
83158
83159 2006-01-25  Bruno Haible  <bruno@clisp.org>
83160
83161         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
83162         warnings.
83163         Reported by Paul Eggert.
83164
83165 2006-01-25  Bruno Haible  <bruno@clisp.org>
83166
83167         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
83168         rid of a trap command. For Solaris sh.
83169         Reported by Mark D. Baushke <mdb@gnu.org>.
83170
83171 2006-01-24  Simon Josefsson  <jas@extundo.com>
83172
83173         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
83174         Bruno.
83175
83176 2006-01-24  Karl Berry  <karl@gnu.org>
83177
83178         * config/srclist.txt (argp-namefrob.h): sync lost.
83179
83180 2006-01-24  Jim Meyering  <jim@meyering.net>
83181
83182         * modules/openat (Files): Add lib/intprops.h.
83183         From Mark D. Baushke.
83184
83185 2006-01-24  Jim Meyering  <jim@meyering.net>
83186
83187         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
83188         Reported by Mark D. Baushke.
83189
83190 2006-01-24  Jim Meyering  <jim@meyering.net>
83191
83192         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
83193
83194 2006-01-24  Bruno Haible  <bruno@clisp.org>
83195
83196         * modules/strnlen (Maintainer): Change from glibc to all.
83197
83198 2006-01-24  Bruno Haible  <bruno@clisp.org>
83199
83200         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
83201         Patch by Paul Eggert.
83202
83203 2006-01-24  Bruno Haible  <bruno@clisp.org>
83204
83205         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
83206         already has it.
83207         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
83208         2005-11-26.
83209
83210         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
83211         'signed char' to avoid problems with the built-in _Bool type.
83212         Reported by Paul Eggert on 2005-11-26.
83213
83214 2006-01-24  Bruno Haible  <bruno@clisp.org>
83215
83216         * gnulib-tool (func_import): Avoid constructing complicated sed
83217         expressions inside backquote.
83218         Report and solution by Mark D. Baushke <mdb@gnu.org>.
83219
83220 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
83221
83222         These changes imported from libc.
83223         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
83224         test and two separate function calls.
83225         * lib/strndup.c (__strndup): Add libc_hidden_def.
83226
83227 2006-01-23  Simon Josefsson  <jas@extundo.com>
83228
83229         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
83230         Remove the test_*_SOURCES variable: automake infers it by default.
83231         * modules/tls-tests: Likewise.
83232
83233 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83234
83235         Work around porting bugs reported by Dieter in
83236         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
83237         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
83238         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
83239         Include "getopt.h" first, to check interface.
83240         (getenv): Declare only if defined HAVE_DECL_GETENV &&
83241         !HAVE_DECL_GETENV.
83242         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
83243         (__strndup): Revert to K&R-style function dfns, the glibc style.
83244         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
83245         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
83246         Include strnlen.h first, to get prototype properly.
83247         (strnlen): Renamed from __strnlen.
83248         Remove weak alias.
83249
83250 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83251
83252         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
83253
83254 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83255
83256         * config/srclist.txt: Adjust to reflect glibc reorganization.
83257         This affects only comments.
83258
83259 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
83260
83261          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
83262          Reported by Bruce Korb <bkorb@gnu.org>.
83263
83264 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
83265
83266         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
83267         to pacify gcc -Wswitch-default.
83268
83269 2006-01-22  Bruno Haible  <bruno@clisp.org>
83270
83271         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
83272         temporary buffer for sprintf, take into account the precision also
83273         for 'd', 'i', 'u', 'o', 'x', 'X'.
83274
83275 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
83276
83277         * modules/argp-tests: New module
83278         * tests/test-argp.c: New file
83279         * tests/test-argp-2.sh: New file
83280
83281 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
83282
83283         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
83284         (__argp_base_name): Removed
83285         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
83286         typo.
83287         (__argp_base_name): Provide macro definition or extern declaration
83288         depending on the configuration
83289
83290 2006-01-20  Simon Josefsson  <jas@extundo.com>
83291
83292         * modules/inet_ntop (Depends-on): Depend on sys_socket.
83293
83294 2006-01-20  Simon Josefsson  <jas@extundo.com>
83295
83296         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
83297
83298 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83299
83300         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
83301         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
83302         Suggested by Bruno Haible.
83303
83304 2006-01-20  Karl Berry  <karl@gnu.org>
83305
83306         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
83307         until changes propagate, I guess.
83308
83309 2006-01-19  Simon Josefsson  <jas@extundo.com>
83310
83311         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
83312
83313 2006-01-19  Simon Josefsson  <jas@extundo.com>
83314
83315         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
83316
83317 2006-01-19  Simon Josefsson  <jas@extundo.com>
83318
83319         * gnulib-tool: Set check_PROGRAMS.
83320
83321         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
83322         modules/des-tests, modules/gc-arcfour-tests,
83323         modules/gc-arctwo-tests, modules/gc-des-tests,
83324         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
83325         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
83326         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
83327         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
83328         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
83329         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
83330         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
83331         test_*_SOURCES.
83332
83333 2006-01-18  Simon Josefsson  <jas@extundo.com>
83334
83335         * modules/socklen (Depends-on): Depend on sys_socket.
83336
83337 2006-01-18  Simon Josefsson  <jas@extundo.com>
83338
83339         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
83340         modules/des-tests, modules/gc-arcfour-tests,
83341         modules/gc-arctwo-tests, modules/gc-des-tests,
83342         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
83343         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
83344         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
83345         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
83346         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
83347         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
83348         $(EXEEXT) to automake TESTS variable, for mingw32.
83349
83350 2006-01-17  Simon Josefsson  <jas@extundo.com>
83351
83352         * modules/socklen (Include): Need sys/socket.h.
83353
83354 2006-01-17  Bruno Haible  <bruno@clisp.org>
83355
83356         * modules/ssize_t (Include): Add <sys/types.h>.
83357
83358 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
83359
83360         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
83361         it's not portable and it doesn't work with cross-compiles.
83362         Problem reported by Bruno Haible.  Fix missing-$ typo in
83363         'test "gl_cv_ignore_unused_libraries" ...' that prevented
83364         -zignore from being used with Sun's C compiler.
83365
83366 2006-01-12  Simon Josefsson  <jas@extundo.com>
83367
83368         * lib/base64.c: Fix warning, reported by Bruno Haible
83369         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
83370
83371 2006-01-12  Bruno Haible  <bruno@clisp.org>
83372
83373         * modules/ldd: New file.
83374         * build-aux/ldd.sh.in: New file.
83375         * MODULES.html.sh (Support for building libraries and executables): Add
83376         ldd.
83377
83378 2006-01-12  Bruno Haible  <bruno@clisp.org>
83379
83380         * m4/ldd.m4: New file.
83381
83382 2006-01-12  Bruno Haible  <bruno@clisp.org>
83383
83384         * gnulib-tool (func_import, func_create_testdir): Don't go into an
83385         endless loop while replacing $auxdir with build-aux.
83386
83387 2006-01-11  Simon Josefsson  <jas@extundo.com>
83388
83389         * lib/stdint_.h (SIZE_MAX): Add missing (.
83390
83391 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
83392
83393         Sync from coreutils.
83394         * lib/md5.c: Fix commentary typos.
83395         (alignof, UNALIGNED_P): No need for a GCC-specific version.
83396         * lib/md5.h (__attribute__): Remove; unused.
83397         * lib/sha1.c: Fix commentary to match md5 better.
83398         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
83399         so that we don't need to worry about alignment.  All uses changed.
83400         This merges the 2005-10-28 md5 change into sha1.
83401
83402 2006-01-11  Jim Meyering  <jim@meyering.net>
83403
83404         Sync from coreutils.
83405         * lib/md5.c (OP): Fix spacing.
83406
83407 2006-01-11  Bruno Haible  <bruno@clisp.org>
83408
83409         Ensure automatic ordering between gl_LOCK and gl_ARGP.
83410         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
83411         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
83412
83413 2006-01-11  Bruno Haible  <bruno@clisp.org>
83414
83415         Ensure automatic ordering between gl_LOCK and gl_ARGP.
83416         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
83417         the "early" section as well.
83418
83419 2006-01-11  Bruno Haible  <bruno@clisp.org>
83420
83421         Avoid "ar: no archive members specified" error on MacOS X.
83422         * gnulib-tool (func_modules_add_dummy): New function.
83423         (func_import, func_create_testdir): Invoke it.
83424
83425 2006-01-11  Bruno Haible  <bruno@clisp.org>
83426
83427         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
83428         with $auxdir in AC_CONFIG_FILES statements.
83429
83430 2006-01-11  Bruno Haible  <bruno@clisp.org>
83431
83432         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
83433         Initialize also noinst_HEADERS to empty.
83434
83435 2006-01-11  Bruno Haible  <bruno@clisp.org>
83436
83437         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
83438         variables.
83439         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
83440         autoreconf.
83441
83442 2006-01-11  Bruno Haible  <bruno@clisp.org>
83443
83444         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
83445         overridable by the user.
83446         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83447
83448 2006-01-10  Simon Josefsson  <jas@extundo.com>
83449
83450         * modules/sys_socket: New file.
83451
83452 2006-01-10  Simon Josefsson  <jas@extundo.com>
83453
83454         * m4/sys_socket_h.m4: New file.
83455
83456 2006-01-10  Simon Josefsson  <jas@extundo.com>
83457
83458         * lib/socket_.h: New file.
83459
83460 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
83461
83462         * modules/readutmp (Maintainer): Add myself.
83463
83464 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
83465
83466         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
83467         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
83468         People who are still concerned with buggy memcmp implementations
83469         can invoke gl_FUNC_MEMCMP themselves.
83470
83471 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
83472
83473         * lib/regex_internal.h (BITSET_WORD_BITS):
83474         Work around a bug in 64-bit PGC (before version 6.1-2), where the
83475         preprocessor mishandles large unsigned values as if they were signed.
83476         Problem reported by Claudio Fontana in
83477         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
83478
83479 2006-01-10  Jim Meyering  <jim@meyering.net>
83480
83481         Avoid the double-free (first in fts_read, second in fts_close) that
83482         would occur when an `active' directory is made inaccessible (e.g.,
83483         via chmod a-x) during a traversal.
83484         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
83485         before returning.  Reproduce this failure by
83486         mkdir -p a/b; cd a; chmod a-x . b
83487         Reported by Stavros Passas.
83488
83489         Sync from coreutils.
83490         * lib/sha1.c: Tweak grammar in a comment.
83491
83492 2006-01-10  Jim Meyering  <jim@meyering.net>
83493
83494         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
83495         Patch by Joerg Sonnenberger.
83496
83497 2006-01-10  Bruno Haible  <bruno@clisp.org>
83498
83499         * modules/readutmp: Depend on module free.
83500         * modules/strtok_r: Depend on module restrict.
83501
83502 2006-01-10  Bruno Haible  <bruno@clisp.org>
83503
83504         * modules/gettext (configure.ac): Add an invocation of
83505         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
83506
83507 2006-01-10  Bruno Haible  <bruno@clisp.org>
83508
83509         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
83510         Reported by Werner Lemberg <wl@gnu.org>.
83511
83512 2006-01-10  Bruno Haible  <bruno@clisp.org>
83513
83514         * lib/localcharset.c: Update from GNU gettext.
83515
83516 2006-01-10  Bruno Haible  <bruno@clisp.org>
83517
83518         * lib/argp.h (__const): Remove macro. Use const instead.
83519         * lib/argp-fmtstream.h (__const): Likewise.
83520         * lib/glob_.h (__const): Remove macro.
83521         * lib/glob-libc.h: Use const instead of __const.
83522
83523 2006-01-10  Bruno Haible  <bruno@clisp.org>
83524
83525         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
83526         variable.
83527         Needed to avoid an automake error regarding the 'gettext' module.
83528
83529 2006-01-09  Simon Josefsson  <jas@extundo.com>
83530
83531         * modules/inet_ntop (Depends-on): Add restrict.
83532
83533 2006-01-09  Simon Josefsson  <jas@extundo.com>
83534
83535         * modules/gc-rijndael-tests (License): Put under LGPL.
83536
83537         * modules/gc-des-tests (License): Likewise.
83538
83539         * modules/gc-arcfour-tests (License): Likewise.
83540
83541         * modules/gc-arctwo-tests (License): Likewise.
83542
83543         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
83544
83545         * modules/gc-hmac-sha1-tests (Files): Likewise.
83546
83547         * modules/gc-hmac-md5-tests (License): Likewise.
83548
83549         * modules/gc-sha1-tests (License): Likewise.
83550
83551         * modules/gc-md5-tests (License): Likewise.
83552
83553         * modules/gc-md4-tests (License): Likewise.
83554
83555         * modules/gc-md2-tests (License): Likewise.
83556
83557         * modules/gc-tests (License): Likewise.
83558
83559         * modules/des-tests (License): Likewise.
83560
83561         * modules/md4-tests (License): Likewise.
83562
83563         * modules/md2-tests (License): Likewise.
83564
83565 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
83566
83567         Sync from coreutils:
83568
83569         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
83570         * modules/lib-ignore: New file.
83571         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
83572         chdir-safer.m4, lchmod.m4.
83573         * modules/openat: Add mkdirat.c, openat-priv.h.
83574
83575 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
83576
83577         Sync from coreutils.
83578         * m4/lib-ignore.m4: New file.
83579         * m4/lchmod.m4: New file.
83580
83581 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
83582
83583         Sync from coreutils.
83584         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
83585         for write access: POSIX says that must fail.
83586         * lib/fts.c (diropen): Likewise.
83587         * lib/save-cwd.c (save_cwd): Likewise.
83588         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
83589         well, for minor improvements on hosts that lack O_DIRECTORY.
83590         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
83591         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
83592         Fall back on chown if open failed with EACCES.
83593
83594         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
83595         Report an error at compile-time if only a 1-second nominal clock
83596         resolution is found.
83597
83598         * lib/lchmod.h: New file.
83599         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
83600         (make_dir_parents): Use lchown rather than chown, and
83601         lchmod rather than chmod.
83602
83603         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
83604         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
83605         "proc" reported by n0dalus.
83606
83607         * lib/mountlist.c: Include <limits.h>.
83608         (dev_from_mount_options)
83609         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
83610         New function.  It no longer assumes "dev=" has the System V meaning
83611         on Linux (since it doesn't).  It also parses "dev=" more carefully.
83612         (read_file_system_list)
83613         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
83614         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
83615         dev= in that case.
83616
83617         * lib/posixtm.h (PDS_PRE_2000): New macro.
83618         * lib/posixtm.c (year): Arg is now syntax_bits rather than
83619         allow_century.  All usages changed.  Reject dates outside the range
83620         1969-1999 if PDS_PRE_2000 is used.
83621
83622 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
83623
83624         Sync from coreutils.
83625         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
83626         (Time of day items): Mention the possibility of leap seconds.
83627         Problem reported by Dr. David Alan Gilbert.
83628
83629 2006-01-09  Jim Meyering  <jim@meyering.net>
83630
83631         Sync from coreutils.
83632
83633         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
83634
83635         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
83636
83637         * lib/modechange.c (mode_compile): Reject an invalid mode string
83638         that starts with an octal digit.  From Andreas Gruenbacher.
83639
83640         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
83641         and dup to open_safer and dup_safer, respectively.
83642         (openat_permissive): Fix typo in comment.
83643
83644         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
83645         "gettext.h"; either no longer needed or are guaranteed by openat.h.
83646         (_): Remove; no longer needed.
83647         (openat): Renamed from rpl_openat; no need for rpl_openat
83648         since openat.h renames openat for us.
83649         Replace most of the body with a call to openat_permissive,
83650         to avoid duplicate code.
83651         Port to (probably hypothetical) environments were mode_t is
83652         wider than int.
83653         (openat_permissive): Require mode arg, so that we can check
83654         types better.  Put it just after flags.  Change cwd failure
83655         indicator from pointer-to-bool to pointer-to-errno-value.
83656         All callers changed.
83657         Invoke openat_save_fail and/or openat_restore_fail if
83658         cwd_errno is null, so that openat can call us.
83659         (openat_permissive, fdopendir, fstatat, unlinkat):
83660         Simplify errno handling to avoid some duplicate code,
83661         as it's OK to set errno on success.
83662         * lib/openat.h: Revamp code so that function macros depend on
83663         __OPENAT_PREFIX only, not also on AT_FDCWD.
83664         (openat_ro): Remove.  Caller changed to use openat_permissive.
83665         (openat_permissive): Now a macro, if not a function.
83666         (openat_restore_fail, openat_save_fail): Now always functions,
83667         since mkdirat needs them even if __OPENAT_PREFIX is defined.
83668
83669         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
83670         and openat.c.
83671         * lib/mkdirat.c: Include openat-priv.h.
83672         Remove definitions of macros defined therein.
83673         * lib/openat.c: Likewise.
83674
83675         * lib/mkdirat.c (mkdirat): New file and function.
83676         * lib/openat.h (mkdirat): Declare.
83677
83678         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
83679
83680         * lib/openat.h (openat_permissive): Declare.
83681         (openat_ro): Define.
83682
83683         * lib/openat.c (EXPECTED_ERRNO): New macro.
83684         (openat_permissive): New function -- used in remove.c rewrite.
83685         (all functions): Set errno just before returning, only if there
83686         was an actual failure.
83687         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
83688
83689         Emulate openat-family functions using Linux's procfs, if possible.
83690         Idea and some code based on Ulrich Drepper's glibc changes.
83691
83692         * lib/openat.c: (BUILD_PROC_NAME): New macro.
83693         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
83694         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
83695         before falling back on save_cwd and restore_cwd.
83696         (fdopendir, fstatat, unlinkat): Likewise.
83697
83698         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
83699         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
83700
83701         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
83702         as second argument to va_arg.  Otherwise, some versions of gcc
83703         warn that `if this code is reached, the program will abort'.
83704
83705 2006-01-09  Jim Meyering  <jim@meyering.net>
83706
83707         Sync from coreutils.
83708         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
83709         Require openat-priv.h.
83710
83711 2006-01-09  Bruno Haible  <bruno@clisp.org>
83712
83713         * modules/strnlen (Include): Use strnlen.h.
83714
83715 2006-01-09  Bruno Haible  <bruno@clisp.org>
83716
83717         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
83718
83719 2006-01-09  Bruno Haible  <bruno@clisp.org>
83720
83721         * lib/sysexit_.h (EX_OK): New macro.
83722         Suggested by Martin Lambers <marlam@marlam.de>.
83723
83724 2006-01-09  Bruno Haible  <bruno@clisp.org>
83725
83726         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
83727         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
83728
83729 2006-01-09  Bruno Haible  <bruno@clisp.org>
83730
83731         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
83732         numbers.
83733
83734 2006-01-09  Bruno Haible  <bruno@clisp.org>
83735
83736         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
83737         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
83738         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
83739         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
83740
83741 2006-01-09  Bruno Haible  <bruno@clisp.org>
83742
83743         * build-aux/javacomp.sh.in: New file, moved from lib/.
83744         * modules/javacomp-script (Files): Update.
83745         (configure.ac): Add AC_CONFIG_FILES invocation.
83746         (EXTRA_DIST): Remove variable.
83747
83748         * build-aux/javaexec.sh.in: New file, moved from lib/.
83749         * modules/javaexec (Files): Update.
83750         (configure.ac): Add AC_CONFIG_FILES invocation.
83751         (EXTRA_DIST): Remove javaexec.sh.in.
83752
83753         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
83754         * modules/csharpcomp-script (Files): Update.
83755         (configure.ac): Add AC_CONFIG_FILES invocation.
83756         (EXTRA_DIST): Remove variable.
83757
83758         * build-aux/csharpexec.sh.in: New file, moved from lib/.
83759         * modules/csharpexec (Files): Update.
83760         (configure.ac): Add AC_CONFIG_FILES invocation.
83761         (EXTRA_DIST): Remove csharpexec.sh.in.
83762
83763 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
83764
83765         Sync from coreutils.
83766
83767         Add POSIX ACL support
83768         * lib/acl.h (copy_acl, set_acl): Add declarations.
83769         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
83770         systems other than Linux.
83771         (chmod_or_fchmod): New function: use fchmod when possible,
83772         and chmod otherwise.
83773         (file_has_acl): Add a POSIX ACL implementation, with a
83774         Linux-specific subcase.
83775         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
83776         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
83777         acls are unsupported.
83778         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
83779         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
83780         are unsupported.
83781
83782 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
83783
83784         Sync from coreutils.
83785         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
83786
83787 2006-01-07  Bruno Haible  <bruno@clisp.org>
83788
83789         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
83790         gl_EARLY.
83791
83792 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
83793
83794         * lib/strftime.c (tzname): Don't declare if it is already #defined.
83795         Problem reported for Mingw by Mark Junker.
83796
83797 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
83798
83799         * README: Gnulib normally doesn't generate a tarball.
83800
83801 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
83802
83803         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
83804         long int, not int, for nanosecond counts, so that people who are
83805         used to POSIX struct timespec won't be surprised.  Reported by Jim
83806         Meyering.
83807
83808 2005-12-28  Bruno Haible  <bruno@clisp.org>
83809
83810         * build-aux/config.rpath: Update from GNU gettext.
83811
83812 2005-12-16  Jim Meyering  <jim@meyering.net>
83813
83814         * modules/fprintftime: New module.
83815         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
83816
83817 2005-12-16  Jim Meyering  <jim@meyering.net>
83818
83819         * m4/fprintftime.m4: New file.
83820
83821 2005-12-16  Jim Meyering  <jim@meyering.net>
83822
83823         * lib/fprintftime.c, lib/fprintftime.h: New files.
83824
83825 2005-12-15  Simon Josefsson  <jas@extundo.com>
83826
83827         * modules/socklen (configure.ac): Fix M4 macro name, to align with
83828         new m4/socklen.m4.
83829
83830 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
83831
83832         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
83833         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
83834
83835 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
83836
83837         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
83838         * lib/argp-help.c (fill_in_uparams): Check if the constructed
83839         struct uparams is valid. Fall back to the default values if it is
83840         not.
83841
83842 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83843
83844         * modules/argp (Files): Add argp-pin.c
83845         (Depends-on): dirname
83846         (lib_SOURCES): Add argp-pin.c
83847
83848 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83849
83850         * m4/argp.m4:  Check if program_invocation_name and
83851         program_invocation_short_name are declared and define appropriate
83852         macros if they are not.
83853
83854 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83855
83856         * lib/argp-help.c (__argp_base_name): New function
83857         (__argp_short_program_name): Rewrite using __argp_base_name
83858         * lib/argp-namefrob.h: Define program_invocation_name and
83859         program_invocation_short_name if requested
83860         (__argp_base_name): Add prototype
83861         * lib/argp-parse.c (argp_def): Use gettext wrappers
83862         (argp_default_parser): Use __argp_base_name
83863         * lib/argp-pin.c: New file. Defines program_invocation_name and
83864         program_invocation_short_name on systems that lack them.
83865
83866 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
83867
83868         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
83869         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
83870         porting problem reported by Georg Schwarz in
83871         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
83872
83873 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
83874
83875         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
83876         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
83877         porting problem reported by Georg Schwarz in
83878         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
83879
83880 2005-12-05  Bruno Haible  <bruno@clisp.org>
83881
83882         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
83883         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
83884         Reported by Mark Junker <mjscod@gmx.de>.
83885
83886 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
83887
83888         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
83889         Use implementation from Albert Chin, with some
83890         comments/corrections by Stepan Kasal and myself.
83891
83892 2005-12-02  Bruno Haible  <bruno@clisp.org>
83893
83894         * gnulib-tool (func_import): Accept GPLed build tool modules when
83895         --lgpl is given.
83896         * modules/csharpcomp-script: New file.
83897         * modules/csharpcomp: Depend on it.
83898         * modules/javacomp-script: New file.
83899         * modules/javacomp: Depend on it.
83900         Suggested by Simon Josefsson.
83901
83902 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
83903
83904         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
83905         statement, to work around an HP-UX 10.20 compiler bug reported by
83906         Peter O'Gorman.
83907
83908 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
83909
83910         * modules/savedir (Depends-on): Add openat.
83911
83912 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
83913
83914         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
83915         (uintmax_t) [defined uintmax_t]: Do not declare.
83916         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
83917         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
83918         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
83919         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
83920         sake of portability to weird hosts that C allows (though we don't
83921         know of any practical examples).
83922
83923         * lib/savedir.h (fdsavedir): New decl.
83924         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
83925         contains most of the former guts of savedir.
83926         (savedir): Use savedirstream.
83927         Include "openat.h".
83928
83929 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83930
83931         * modules/obstack (Files): Add m4/ulonglong.m4.
83932         Problem reported by Davide Angelocola.
83933
83934 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
83935
83936         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
83937         coreutils no longer futzes with rounding modes.
83938
83939 2005-11-14  Jim Meyering  <jim@meyering.net>
83940
83941         * lib/mkstemp-safer.c: Include <config.h>, required for possible
83942         replacement of mkstemp.
83943
83944 2005-11-10  Simon Josefsson  <jas@extundo.com>
83945
83946         * lib/readline.c: Remove EOL.
83947
83948 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83949
83950         * modules/gethrxtime (Depends-on): Add gettime.
83951
83952 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83953
83954         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
83955         or gettimeofday; no longer needed.
83956
83957 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83958
83959         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
83960         time business.
83961         (gethrxtime) [! (HAVE_NANOUPTIME
83962         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
83963         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
83964         our own approximation.
83965
83966 2005-11-08  Eric Blake  <ebb9@byu.net>
83967
83968         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
83969
83970 2005-11-08  Eric Blake  <ebb9@byu.net>
83971
83972         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
83973
83974 2005-11-04  Bruno Haible  <bruno@clisp.org>
83975
83976         * gnulib-tool: Implement --update mode.
83977
83978 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
83979
83980         Fix porting problem reported by Theodoros V. Kalamatianos.
83981         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
83982         Don't assume that futimes failing means we must fail.
83983
83984 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
83985
83986         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
83987         variables to suggest the intended function of the PATH_MAX check.
83988
83989 2005-10-30  Kean Johnston  <jkj@sco.com>
83990
83991         Trivial changes to support SCO systems.
83992         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
83993         as PATH_MAX.
83994         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
83995         where __ptr is null when no I/O is pending.
83996
83997 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
83998
83999         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
84000         leave errno alone.  Problem reported by Dmitry V. Levin.
84001
84002 2005-10-28  Simon Josefsson  <jas@extundo.com>
84003
84004         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
84005         Test more.
84006
84007         * tests/test-gc-md2.c, tests/test-md2.c: New files.
84008
84009         * modules/md2, modules/md2-tests: New files.
84010
84011 2005-10-28  Simon Josefsson  <jas@extundo.com>
84012
84013         * m4/inet_ntop.m4: More tests.
84014
84015         * m4/gc-md2.m4, md2.m4: New file.
84016
84017 2005-10-28  Simon Josefsson  <jas@extundo.com>
84018
84019         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
84020         "restrict" keywords, as per POSIX.  Protect the function
84021         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
84022         Don't use K&R prototypes.  Check the sprintf return values.
84023         Re-define EAFNOSUPPORT if not present.  Indent.
84024
84025         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
84026         suggested by Bruno Haible <bruno@clisp.org>.
84027
84028         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
84029
84030         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
84031
84032         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
84033         libgcrypt).
84034
84035         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
84036
84037         * lib/md2.h, lib/md2.c: New files.
84038
84039 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
84040
84041         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
84042         errno alone.  Problem reported by Frederic Jolliton.
84043
84044 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
84045
84046         * modules/verify (License): Change from GPL to LGPL.  This is a
84047         tiny module and there are apparently near-equivalents that are
84048         under the BSD license.
84049
84050 2005-10-24  Simon Josefsson  <jas@extundo.com>
84051
84052         * modules/sha1: Relicense to LGPL.
84053
84054 2005-10-24  Simon Josefsson  <jas@extundo.com>
84055
84056         * lib/md4.h: Shrink buffer size, now that we changed the type.
84057
84058 2005-10-23  Simon Josefsson  <jas@extundo.com>
84059
84060         * gnulib-tool (func_import): Fix --tests-base.
84061
84062 2005-10-22  Simon Josefsson  <jas@extundo.com>
84063
84064         * modules/arcfour (Depends-on): Need stdint.
84065
84066 2005-10-22  Simon Josefsson  <jas@extundo.com>
84067
84068         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
84069         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
84070
84071 2005-10-22  Simon Josefsson  <jas@extundo.com>
84072
84073         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
84074         suggested by Bruno Haible <bruno@clisp.org>.
84075
84076 2005-10-22  Simon Josefsson  <jas@extundo.com>
84077
84078         * lib/crc.h: Include stddef.h, for size_t.
84079
84080 2005-10-22  Simon Josefsson  <jas@extundo.com>
84081
84082         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
84083         arcfour_context struct (simplify test vector testing in GNU
84084         Shishi).
84085
84086 2005-10-21  Simon Josefsson  <jas@extundo.com>
84087
84088         * modules/des, modules/des-tests: New files.
84089
84090         * modules/gc-des, modules/gc-des-tests: New files.
84091
84092         * tests/test-des.c, tests/test-gc-des.c: New file.
84093
84094 2005-10-21  Simon Josefsson  <jas@extundo.com>
84095
84096         * modules/arctwo, modules/arctwo-tests: New files.
84097
84098         * tests/test-arctwo.c: New file.
84099
84100         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
84101
84102         * tests/test-gc-arctwo.c: New file.
84103
84104 2005-10-21  Simon Josefsson  <jas@extundo.com>
84105
84106         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
84107         Bruno Haible <bruno@clisp.org>.
84108
84109         * m4/gc-des.m4: New file.
84110
84111 2005-10-21  Simon Josefsson  <jas@extundo.com>
84112
84113         * m4/arctwo.m4: New file.
84114
84115         * m4/gc-arctwo.m4: New file.
84116
84117 2005-10-21  Simon Josefsson  <jas@extundo.com>
84118
84119         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
84120         block.
84121
84122 2005-10-21  Simon Josefsson  <jas@extundo.com>
84123
84124         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
84125         <bruno@clisp.org>.
84126
84127         * lib/hmac-sha1.c (hmac_sha1): Likewise.
84128
84129         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
84130         Bruno Haible <bruno@clisp.org>.
84131
84132         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
84133         <bruno@clisp.org>.
84134
84135 2005-10-21  Simon Josefsson  <jas@extundo.com>
84136
84137         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
84138
84139 2005-10-21  Simon Josefsson  <jas@extundo.com>
84140
84141         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
84142
84143 2005-10-21  Simon Josefsson  <jas@extundo.com>
84144
84145         * lib/des.h, lib/des.c: New files.
84146
84147         * lib/gc-gnulib.c: Support DES.c
84148
84149 2005-10-21  Simon Josefsson  <jas@extundo.com>
84150
84151         * lib/arctwo.h, lib/arctwo.c: New files.
84152
84153         * lib/gc-gnulib.c: Support ARCTWO.
84154
84155 2005-10-21  Simon Josefsson  <jas@extundo.com>
84156
84157         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
84158         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
84159
84160 2005-10-21  Simon Josefsson  <jas@extundo.com>
84161
84162         * gnulib-tool (func_import, func_create_testdir): Define automake
84163         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
84164         Makefile.am snippet),
84165         suggested by Bruno Haible <bruno@clisp.org>.
84166
84167         * modules/gc (Makefile.am): Use it.
84168
84169 2005-10-21  Bruno Haible  <bruno@clisp.org>
84170
84171         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
84172         patch.
84173
84174 2005-10-19  Simon Josefsson  <jas@extundo.com>
84175
84176         * tests/test-gc-rijndael.c: New file.
84177
84178         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
84179
84180 2005-10-19  Simon Josefsson  <jas@extundo.com>
84181
84182         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
84183         interface too.
84184
84185 2005-10-19  Simon Josefsson  <jas@extundo.com>
84186
84187         * tests/test-gc-arcfour.c: New file.
84188
84189         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
84190
84191 2005-10-19  Simon Josefsson  <jas@extundo.com>
84192
84193         * modules/gc-md4, modules/gc-md4-tests: New file.
84194
84195         * tests/test-gc-md4.c: New file.
84196
84197 2005-10-19  Simon Josefsson  <jas@extundo.com>
84198
84199         * m4/gc-md4.m4: New file.
84200
84201 2005-10-19  Simon Josefsson  <jas@extundo.com>
84202
84203         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
84204         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
84205         <kasal@ucw.cz>.
84206
84207 2005-10-19  Simon Josefsson  <jas@extundo.com>
84208
84209         * m4/gc-arcfour.m4: New file.
84210
84211         * m4/gc-rijndael.m4: New file.
84212
84213 2005-10-19  Simon Josefsson  <jas@extundo.com>
84214
84215         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
84216
84217 2005-10-19  Simon Josefsson  <jas@extundo.com>
84218
84219         * lib/gc-gnulib.c: Support ARCFOUR.
84220
84221 2005-10-19  Simon Josefsson  <jas@extundo.com>
84222
84223         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
84224         support.
84225
84226         * lib/gc.h: Add ECB enum type.
84227
84228         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
84229
84230 2005-10-18  Simon Josefsson  <jas@extundo.com>
84231
84232         * tests/test-md5.c: New file.
84233
84234         * modules/md5-tests: New file.
84235
84236 2005-10-18  Simon Josefsson  <jas@extundo.com>
84237
84238         * tests/test-md4.c: New file.
84239
84240         * modules/md4, modules/md4-tests: New files.
84241
84242 2005-10-18  Simon Josefsson  <jas@extundo.com>
84243
84244         * m4/md4.m4: New file.
84245
84246 2005-10-18  Simon Josefsson  <jas@extundo.com>
84247
84248         * lib/md4.h, lib/md4.c: New files, based on md5.?.
84249
84250 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
84251
84252         * gnulib-tool (func_create_testdir): Omit the second check whether
84253         BUILT_SOURCES in nonempty.
84254
84255 2005-10-17  Simon Josefsson  <jas@extundo.com>
84256
84257         * tests/test-rijndael.c: New file.
84258
84259 2005-10-17  Simon Josefsson  <jas@extundo.com>
84260
84261         * modules/sha1: Depend on stdint instead of md5.
84262
84263         * modules/md5: Depend on stdint, remove uint32_t.
84264
84265 2005-10-17  Simon Josefsson  <jas@extundo.com>
84266
84267         * modules/gc-sha1-tests: New file.
84268
84269         * tests/test-gc-sha1.c: New file.
84270
84271 2005-10-17  Simon Josefsson  <jas@extundo.com>
84272
84273         * m4/md5.m4: Remove call to uint32_t.m4.
84274
84275 2005-10-17  Simon Josefsson  <jas@extundo.com>
84276
84277         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
84278
84279         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
84280         md5.h.
84281
84282         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
84283
84284         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
84285
84286 2005-10-17  Simon Josefsson  <jas@extundo.com>
84287
84288         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
84289
84290 2005-10-17  Simon Josefsson  <jas@extundo.com>
84291
84292         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
84293
84294 2005-10-17  Simon Josefsson  <jas@extundo.com>
84295
84296         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
84297
84298         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
84299
84300 2005-10-17  Bruno Haible  <bruno@clisp.org>
84301
84302         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
84303         that it can also be used in a test.
84304
84305 2005-10-16  Bruno Haible  <bruno@clisp.org>
84306
84307         * gnulib-tool (func_emit_tests_Makefile_am): Also define
84308         TESTS_ENVIRONMENT, so that individual tests can augment it.
84309
84310         * gnulib-tool (func_create_testdir): Use an intermediate target for
84311         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
84312         macros, like $(ALLOCA_H), which cannot be passed through the command
84313         line.
84314
84315 2005-10-15  Simon Josefsson  <jas@extundo.com>
84316
84317         * modules/rijndael-tests: New file.
84318
84319         * modules/rijndael: New file.
84320
84321 2005-10-15  Simon Josefsson  <jas@extundo.com>
84322
84323         * m4/rijndael.m4: New file.
84324
84325 2005-10-15  Simon Josefsson  <jas@extundo.com>
84326
84327         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
84328
84329         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
84330
84331 2005-10-14  Simon Josefsson  <jas@extundo.com>
84332
84333         * tests/test-arcfour.c: New file.
84334
84335         * modules/arcfour, modules/arcfour-tests: New files.
84336
84337 2005-10-14  Simon Josefsson  <jas@extundo.com>
84338
84339         * m4/arcfour.m4: New file.
84340
84341 2005-10-14  Simon Josefsson  <jas@extundo.com>
84342
84343         * lib/arcfour.h, lib/arcfour.c: New files.
84344
84345 2005-10-14  Roland McGrath  <roland@redhat.com>
84346
84347         Import from libc.  [BZ #1331]
84348         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
84349         macro argument.
84350         Reported by Matej Vela <vela@debian.org>.
84351
84352 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
84353
84354         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
84355         include <wchar.h>; no longer needed.
84356
84357 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
84358
84359         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
84360
84361 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
84362         and  Ulrich Drepper  <drepper@redhat.com>
84363
84364         Import from libc.
84365         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
84366         instead of inline stream orientation test and two separate
84367         function calls.  Pay no attention to USE_IN_LIBIO.
84368
84369 2005-10-13  Simon Josefsson  <jas@extundo.com>
84370
84371         * modules/gc-hmac-md5-tests: New file.
84372
84373         * tests/test-gc-hmac-sha1.c: New file.
84374
84375         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
84376
84377         * modules/gc-hmac-md5-tests: New file.
84378
84379         * tests/test-gc-md5.c: New file.
84380
84381         * modules/gc-md5-tests: New file.
84382
84383 2005-10-13  Simon Josefsson  <jas@extundo.com>
84384
84385         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
84386         Move memory allocation outside of loop.
84387
84388 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
84389
84390         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
84391         intermediate directory is in a read-only file system.  Problem
84392         reported by Eric Blake.
84393
84394 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
84395
84396         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
84397
84398 2005-10-12  Simon Josefsson  <jas@extundo.com>
84399
84400         * tests/test-hmac-sha1.c: New file.
84401
84402         * modules/hmac-sha1-tests: New file.
84403
84404         * modules/hmac-sha1: New file.
84405
84406 2005-10-12  Simon Josefsson  <jas@extundo.com>
84407
84408         * modules/gc-sha1: New file.
84409
84410 2005-10-12  Simon Josefsson  <jas@extundo.com>
84411
84412         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
84413
84414         * tests/test-gc-pbkdf2-sha1.c: New file.
84415
84416 2005-10-12  Simon Josefsson  <jas@extundo.com>
84417
84418         * modules/gc-md5, modules/gc-hmac-md5: New files.
84419
84420         * modules/gc (Files): Remove md5, memxor and hmac files.
84421
84422 2005-10-12  Simon Josefsson  <jas@extundo.com>
84423
84424         * m4/gc-pbkdf2-sha1.m4: New file.
84425
84426         * m4/gc-hmac-sha1.m4: New file.
84427
84428         * m4/gc-sha1: New file.
84429
84430         * m4/hmac-sha1.m4: New file.
84431
84432 2005-10-12  Simon Josefsson  <jas@extundo.com>
84433
84434         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
84435
84436         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
84437
84438 2005-10-12  Simon Josefsson  <jas@extundo.com>
84439
84440         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
84441         suggested by Bruno Haible <bruno@clisp.org>.
84442
84443 2005-10-12  Simon Josefsson  <jas@extundo.com>
84444
84445         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
84446
84447 2005-10-12  Simon Josefsson  <jas@extundo.com>
84448
84449         * lib/gc-pbkdf2-sha1.c: New file.
84450
84451         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
84452
84453 2005-10-12  Simon Josefsson  <jas@extundo.com>
84454
84455         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
84456
84457         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
84458
84459 2005-10-12  Simon Josefsson  <jas@extundo.com>
84460
84461         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
84462         GC_USE_HMAC_MD5, respectively.
84463
84464         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
84465         (gc_md5): Fix typo.
84466
84467         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
84468
84469         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
84470
84471         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
84472
84473 2005-10-12  Bruno Haible  <bruno@clisp.org>
84474
84475         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
84476         Reported by Stepan Kasal <kasal@ucw.cz>.
84477
84478 2005-10-11  Simon Josefsson  <jas@extundo.com>
84479
84480         * tests/test-crc.c: New file.
84481
84482         * modules/crc, modules/crc-tests: New files.
84483
84484 2005-10-11  Simon Josefsson  <jas@extundo.com>
84485
84486         * m4/crc.m4: New file.
84487
84488 2005-10-11  Simon Josefsson  <jas@extundo.com>
84489
84490         * lib/gc.h: Add gc_hash and gc_hash_buffer.
84491
84492         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
84493
84494         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
84495
84496 2005-10-11  Simon Josefsson  <jas@extundo.com>
84497
84498         * lib/crc.h, lib/crc.c: New files.
84499
84500         * lib/gc.h (gc_hash_buffer): Add doc.
84501
84502 2005-10-11  Bruno Haible  <bruno@clisp.org>
84503
84504         * modules/c-strcasestr: New file.
84505         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
84506
84507 2005-10-11  Bruno Haible  <bruno@clisp.org>
84508
84509         * modules/c-strcase: New file.
84510         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
84511
84512 2005-10-11  Bruno Haible  <bruno@clisp.org>
84513
84514         * lib/strcasecmp.c: Include limits.h.
84515         (strcasecmp): Avoid integer overflow on exotic platforms.
84516         * lib/strncasecmp.c: Include limits.h.
84517         (strncasecmp): Avoid integer overflow on exotic platforms.
84518         Reported by Paul Eggert.
84519
84520 2005-10-11  Bruno Haible  <bruno@clisp.org>
84521
84522         * lib/c-strcasestr.h: New file, from GNU gettext.
84523         * lib/c-strcasestr.c: New file, from GNU gettext.
84524
84525 2005-10-11  Bruno Haible  <bruno@clisp.org>
84526
84527         * lib/c-strcase.h: New file, from GNU gettext.
84528         * lib/c-strcasecmp.c: New file, from GNU gettext.
84529         * lib/c-strncasecmp.c: New file, from GNU gettext.
84530
84531 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
84532
84533         * modules/mempcpy (License): GPL -> LGPL.
84534         * modules/strchrnul (License): Likewise.
84535         * modules/sysexits (License): Likewise.
84536
84537 2005-10-08  Simon Josefsson  <jas@extundo.com>
84538
84539         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
84540
84541 2005-10-07  Simon Josefsson  <jas@extundo.com>
84542
84543         * m4/memxor.m4: Remove gl_C_RESTRICT call.
84544
84545 2005-10-06  Simon Josefsson  <jas@extundo.com>
84546
84547         * tests/test-hmac-md5.c: New file.
84548
84549         * modules/hmac-md5-tests: New file.
84550
84551         * modules/hmac-md5: New file.
84552
84553 2005-10-06  Simon Josefsson  <jas@extundo.com>
84554
84555         * m4/hmac-md5.m4: New file.
84556
84557         * m4/memxor.m4: Require gl_C_RESTRICT.
84558
84559 2005-10-06  Simon Josefsson  <jas@extundo.com>
84560
84561         * lib/memxor.c (memxor): Avoid casts and warnings.
84562
84563 2005-10-06  Simon Josefsson  <jas@extundo.com>
84564
84565         * lib/hmac-md5.c: New file.
84566
84567         * lib/hmac.h: New file.
84568
84569 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
84570
84571         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
84572         promotes to int, not unsigned int, to catch the AIX 5.3
84573         compiler bug.
84574
84575 2005-10-05  Simon Josefsson  <jas@extundo.com>
84576
84577         * modules/memxor: New file.
84578
84579         * modules/iconv (Files): Move config.rpath to havelib, it is used
84580         there.
84581
84582         * modules/havelib (Files): Add config.rpath.
84583
84584 2005-10-05  Simon Josefsson  <jas@extundo.com>
84585
84586         * m4/memxor.m4: New file.
84587
84588 2005-10-05  Simon Josefsson  <jas@extundo.com>
84589
84590         * lib/memxor.c (memxor): Fix compiler error.
84591
84592         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
84593         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
84594
84595         * lib/memxor.h, lib/memxor.c: New files.
84596
84597         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
84598         we assume all systems have it, suggested by Jim Meyering
84599         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
84600         any systems lack sys/socket.h; mingw32 is known to lack it, but we
84601         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
84602         same reasons.
84603
84604 2005-10-05  Simon Josefsson  <jas@extundo.com>
84605
84606         * config/srclist.txt: Add glibc bug 1423 for md5.h.
84607
84608 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
84609
84610         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
84611         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
84612         needed, since the source code now assumes these .h files.
84613
84614 2005-10-05  Derek Price  <derek@ximbiot.com>
84615
84616         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
84617
84618 2005-10-05  Bruno Haible  <bruno@clisp.org>
84619
84620         * modules/stdint (License): Change to LGPL.
84621
84622 2005-10-04  Simon Josefsson  <jas@extundo.com>
84623
84624         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
84625         D. Baushke" <mdb@gnu.org>.
84626
84627 2005-10-04  Bruno Haible  <bruno@clisp.org>
84628
84629         * lib/verify.h (verify_true): Provide alternative definition for C++.
84630
84631 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
84632
84633         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
84634         (SSIZE_MAX): New macro, if not already defined.
84635         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
84636         than 2 GiB.
84637
84638 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
84639
84640         Sync from coreutils.
84641         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
84642         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
84643         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
84644         ULLONG_MAX doesn't work with 2.7.2.1.
84645
84646 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
84647
84648         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
84649         From Ben Pfaff.
84650
84651         * modules/exclude (Depends-on): Depend on verify.
84652         * modules/strtoimax (Depends-on): Likewise.
84653         * modules/utimecmp (Depends-on): Likewise.
84654
84655 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
84656
84657         * lib/exclude.c: Include verify.h.
84658         (verify): Remove.  All callers changed to use verify.h's version.
84659         * lib/strtoimax.c: Likewise.
84660         * lib/utimecmp.c: Likewis.e
84661
84662         Sync from coreutils.
84663         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
84664         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
84665         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
84666         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
84667         bother returning ENOSYS if settimeofday or stime fails; just let
84668         them return whatever errno they want to return.
84669         * lib/utimens.c: Include unistd.h, for dup2.
84670         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
84671         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
84672
84673 2005-10-02  Jim Meyering  <jim@meyering.net>
84674
84675         Sync from coreutils.
84676         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
84677         from glibc-2.2.5 that fails for read-only files.
84678
84679 2005-10-02  Jim Meyering  <jim@meyering.net>
84680
84681         Sync from coreutils.
84682         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
84683         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
84684         `#if HAVE_CONFIG_H'.
84685         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
84686         Remove AT_FDCWD test.
84687         Do not consume the fd unless successful.
84688         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
84689         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
84690         block, so that we don't even try to compile it if settimeofday is
84691         available.  This works around a compilation failure on OSF1 V5.1,
84692         due to stime requiring a `long int*' while tv_sec is `int'.
84693
84694 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
84695
84696         Sync from coreutils.
84697         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
84698         against `yes', rather than just testing for nonempty.
84699
84700 2005-10-01  Simon Josefsson  <jas@extundo.com>
84701
84702         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
84703         and Darwin.
84704
84705         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
84706         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
84707         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
84708         freeaddrinfo and gai_strerror are declared by the POSIX headers.
84709         Check if struct addrinfo is declared.
84710
84711 2005-10-01  Simon Josefsson  <jas@extundo.com>
84712
84713         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
84714         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
84715         AI_* and EAI_* definitions.  Protect function declarations.
84716
84717 2005-10-01  Jim Meyering  <jim@meyering.net>
84718
84719         Sync from coreutils.
84720
84721         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
84722         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
84723         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
84724         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
84725         in the inet and nsl libraries.  Required on Solaris 5.7.
84726
84727 2005-10-01  Jim Meyering  <jim@meyering.net>
84728
84729         Sync from coreutils.
84730         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
84731         in the inet and nsl libraries.  Required on Solaris 5.7.
84732
84733 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
84734
84735         * lib/getdelim.c (getdelim): Remove unused variables.
84736
84737 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
84738
84739         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
84740         so that the code works even with ancient cpp.  Portability problem
84741         with GCC 2.7.2.1 reported by Thomas M.Ott.
84742
84743 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
84744
84745         * modules/regex (Depends-on): Add strcase.
84746
84747         * modules/gethostname (Licence): Change from GPL to LGPL, since
84748         gethostname.c is a trivial implementation of a standard library
84749         function.
84750         * modules/poll (License): Change from GPL to LGPL, since it's
84751         derived from LGPL code.
84752
84753 2005-09-27  Jim Meyering  <jim@meyering.net>
84754
84755         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
84756         HAVE_CONFIG_H.
84757
84758         * lib/intprops.h (signed_type_or_expr__): Define.
84759         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
84760         for unsigned types.
84761
84762 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
84763
84764         * lib/verify.h (verify_expr): Remove, replacing with:
84765         (verify_true): New macro that returns true instead of void.
84766         (verify_type__): Remove.
84767         (verify): Use verify_true rather than verify_type__.
84768
84769 2005-09-26  Bruno Haible  <bruno@clisp.org>
84770
84771         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
84772         is necessary.
84773         (lib_SOURCES): Remove mbchar.c.
84774         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
84775         (Files): Add m4/mbrtowc.m4.
84776         * modules/mbiter: Likewise.
84777         * modules/mbuiter: Likewise.
84778
84779 2005-09-26  Bruno Haible  <bruno@clisp.org>
84780
84781         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
84782         compile mbchar.c if they are not both present.
84783         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
84784         * m4/mbiter.m4 (gl_MBITER): Likewise.
84785         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
84786         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
84787         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
84788
84789 2005-09-25  Jim Meyering  <jim@meyering.net>
84790
84791         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
84792         also uses socklen_t.
84793
84794 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
84795
84796         * lib/utimens.c (ENOSYS): Define if not already defined.
84797         (futimens): Support having a null PATH if the file descriptor
84798         is nonnegative.
84799
84800         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
84801         Remove.
84802         (__attribute): Define to empty unless GCC 3.1 or later.
84803         This works around a core dump on OpenBSD 3.4, which has GCC
84804         2.95.3, which dumps core when given __attribute__(()).  It also
84805         simplifies other tests, since we really don't want to bother with
84806         worrying about which ancient version of GCC supported what.
84807         Original problem reported by Yoann Vandoorselaere, with part of
84808         the fix suggested by Derek Price.
84809
84810 2005-09-24  Jim Meyering  <jim@meyering.net>
84811
84812         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
84813         so we can once again use a positive bitfield width of 1 -- now we
84814         don't have to explain why we were using a bitfield width of 2.
84815
84816 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
84817
84818         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
84819         and similarly for the other external symbols.  Problem reported
84820         by James Gallager.
84821
84822         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
84823         bug reported by Jim Meyering.
84824
84825         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
84826         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
84827         not needed, since socklen is a prerequisite module.
84828
84829 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
84830
84831         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
84832         Problem reported by Eric Blake.
84833         (getaddrinfo): Initialize se so that it's not garbage.
84834         Redo internal storage allocation so that it doesn't make unportable
84835         assumptions about alignment.
84836         Fix a memory leak.
84837
84838         * lib/utimens.c (futimens): Use futimesat if available.
84839         Prefer it to futimes since it doesn't have the futimes bug.
84840
84841         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
84842         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
84843         Instead, declare a function that returns a pointer to an array,
84844         and use verify_type__ to declare the size of the array.
84845         Problem and germ of a solution reported by Bruno Haible.
84846         (verify_type__): Use 2, not 1, for bitfield size, to avoid
84847         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
84848
84849 2005-09-23  Jim Meyering  <jim@meyering.net>
84850
84851         Sync from coreutils.
84852         Correct build failure (socklen_t not defined) on at least
84853         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
84854         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
84855
84856 2005-09-23  Jim Meyering  <jim@meyering.net>
84857
84858         * modules/getaddrinfo (Depends-on): Add socklen.
84859
84860 2005-09-23  Bruno Haible  <bruno@clisp.org>
84861
84862         * tests/test-verify.c: New file.
84863
84864 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84865
84866         Sync from coreutils.
84867
84868         * modules/argmatch (Depends-on): Add verify.
84869         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
84870         unistd-safer.
84871         * modules/save-cwd (Depends-on): Likewise.
84872
84873         * modules/openat (Files): Add lib/openat-die.c.
84874         (Depends-on): Remove error, exitfail.
84875         Add dirname.
84876
84877         * modules/verify: New file.
84878         * MODULES.html.sh (Diagnostics <assert.h>): New section,
84879         with "verify" module.
84880
84881 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84882
84883         Sync from coreutils.
84884
84885         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
84886         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
84887         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
84888         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
84889         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
84890         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
84891         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
84892         Don't bother checking for string.h, stdlib.h, unistd.h.
84893         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
84894         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
84895         module's job.
84896         * m4/jm-macros.m4 (gl_MACROS): Likewise.
84897         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
84898
84899         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
84900         (gl_GETDATE): Use it.
84901
84902         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
84903
84904 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84905
84906         Sync from coreutils.
84907
84908         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
84909         stat-time.h.
84910         * lib/argmatch.h: Include verify.h
84911         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
84912         (ARGMATCH_ASSERT): Remove; unused.
84913         * lib/canonicalize.c: Assume STDC_HEADERS.
84914         * lib/exclude.c: Include "strcase.h".
84915         * lib/regex_internal.h [!defined _LIBC]: Likewise.
84916         * lib/getusershell.c: Include stdio--.h rather than stdio.h
84917         and stdio-safer.h.
84918         (getusershell): Call fopen, not fopen_safer.
84919         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
84920         Do not include unistd-safer.h.
84921         (save_cwd): Don't call fd_safer; no longer needed
84922         now that we include fcntl--.h.
84923
84924         * lib/getdate.y (relative_time): New type.
84925         (RELATIVE_TIME_0): New constant.
84926         (parser_control): Use relative_time instead of doing it ourselves.
84927         (%union): Add new relative_time rel member.
84928         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
84929         Now typeless.
84930         (relunit, relunit_snumber): Now of type rel.
84931         (zone, rel, relunit, get_date): Adjust to above changes.
84932
84933         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
84934         Do not include unistd-safer.h.
84935         (getloadavg): Don't call fd_safer; no longer needed
84936         now that we include fcntl--.h.
84937
84938         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
84939         (make_dir_parents): Treat ENOSYS like EEXIST.
84940
84941         Improve quality of diagnostics on restore_cwd failure.
84942         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
84943         (make_dir_parents): Last arg is now int * (for errno), not bool *.
84944         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
84945         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
84946         each time through the loop.  Do not diagnose restore_cwd failure;
84947         that is the caller's job (and perhaps the caller does not care).
84948
84949         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
84950         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
84951         If the file already exists but is not a directory, don't bother
84952         to try to make its parents.
84953         Close potential file descriptor leak if we can't chdir("/") (!).
84954         Don't always return true if chdir($PWD) fails; return true only
84955         if the requested action was done successfully (except for the
84956         chdir($PWD)).
84957         Don't log final directory unless we actually made it.
84958         Refactor to avoid duplicate code to fix up permissions.
84959         Don't attempt to fix up parent permissions if chdir($PWD) fails.
84960
84961         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
84962         to make it a bit faster and (I hope) clearer.
84963         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
84964         Fix bug in formats like %2N.
84965
84966         * lib/verify.h: New file.
84967
84968 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84969
84970         Sync from coreutils.
84971         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
84972
84973 2005-09-22  Jim Meyering  <jim@meyering.net>
84974
84975         Sync from coreutils.
84976
84977         * m4/lstat.m4 (gl_FUNC_LSTAT):
84978         Use AC_LIBSOURCES to require lstat.c and lstat.h.
84979         Remove obsolete comment.
84980         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
84981         * m4/xstrtod.m4: Likewise.
84982
84983         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
84984
84985 2005-09-22  Jim Meyering  <jim@meyering.net>
84986
84987         Sync from coreutils.
84988
84989         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
84990
84991         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
84992         the .tm_year member, since otherwise gcc-4.0 would now warn about
84993         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
84994
84995         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
84996         order to avoid an unsuppressible warning from gcc on 64-bit systems.
84997
84998         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
84999         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
85000         when run in a time zone for which daylight savings time is in effect
85001         for the starting date.
85002
85003         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
85004         stop us from restricting permissions of just-created absolute-named
85005         directories.
85006         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
85007         to restore initial working directory.
85008         * lib/mkdir-p.c (make_dir_parents): New parameter:
85009         different_working_dir, to tell caller if/when we change the working
85010         directory and are unable to return to the initial one.
85011         * lib/mkdir-p.h (make_dir_parents): Update prototype.
85012         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
85013         `return false'.  This fixes a bug introduced on 2004-07-30.
85014
85015         * lib/openat.c (fdopendir): Be sure to close the supplied
85016         file descriptor before returning.  This makes our replacement
85017         implementation a little closer to Solaris's, where fdopendir
85018         ties the file descriptor to the returned DIR* pointer.
85019         * lib/openat.c (unlinkat): New function.
85020         * lib/openat.h (unlinkat): Add prototype.
85021         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
85022         (openat_restore_fail): Rename from openat_restore_die.
85023         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
85024
85025         Provide an alternative to exiting immediately upon save_cwd or
85026         restore_cwd failure.  Now, an application can arrange e.g.,
85027         to perform a longjump in that case.
85028         * lib/openat.c: Include dirname.h.
85029         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
85030         (rpl_openat, fdopendir, fstatat): Call openat_save_die
85031         and openat_restore_die rather than calling error directly.
85032         Don't include "error.h" or "exitfail.h"; they're no longer needed.
85033
85034         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
85035         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
85036         define.
85037
85038         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
85039         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
85040                             int utc, int nanoseconds);
85041         Background:
85042         date should not have to allocate a megabyte of virtual memory to
85043         handle a format argument like +%1048575T.  When implemented with
85044         strftime, it must allocate such a buffer, use strftime to fill it
85045         in, print it, then free it.
85046         With fprintftime, it simply prints everything and exits.
85047         With no need for memory allocation, that's one fewer way to fail.
85048         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
85049         optional field width, not before, so we accept %9:z, not %:9z.
85050         (my_strftime): Be sure to use L_('x') for literals.
85051
85052         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
85053         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
85054         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
85055         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
85056         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
85057         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
85058         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
85059         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
85060         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
85061         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
85062         * lib/xgethostname.c, lib/xreadlink.c:
85063         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
85064
85065         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
85066         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
85067         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
85068         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
85069         and don't include <sys/file.h>).
85070
85071 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
85072
85073         Sync from coreutils.
85074
85075         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
85076         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
85077         [!LDAV_DONE]: Avoid unused variable warning.
85078
85079 2005-09-21  Bruno Haible  <bruno@clisp.org>
85080
85081         * lib/unicodeio.h (unicode_to_mb): New declaration.
85082
85083 2005-09-20  Derek Price  <derek@ximbiot.com>
85084
85085         * lib/getaddrinfo.c: Don't include <netdb.h> included from
85086         getaddrinfo.h.
85087
85088 2005-09-20  Bruno Haible  <bruno@clisp.org>
85089
85090         * gnulib-tool: Remove trailing slashes from the values specified for
85091         --source-base, --m4-base, --tests-base, --aux-dir.
85092         Suggested by Simon Josefsson <jas@extundo.com>.
85093
85094 2005-09-20  Bruno Haible  <bruno@clisp.org>
85095
85096         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
85097         func_modules_to_filelist, func_import, func_create_testdir): Make all
85098         sorting results locale-independent, so that gnulib-cache.m4 doesn't
85099         change when gnulib-tool is invoked in a different locale.
85100
85101 2005-09-19  Simon Josefsson  <jas@extundo.com>
85102
85103         * m4/socklen.m4: Fix typo.
85104
85105 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85106
85107         Use a consistent style for including <config.h>.
85108         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
85109         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
85110         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
85111         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
85112         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
85113         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
85114         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
85115         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
85116         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
85117         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
85118         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
85119         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
85120         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
85121         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
85122         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
85123         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
85124         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
85125         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
85126         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
85127         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
85128         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
85129         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
85130         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
85131         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
85132         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
85133         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
85134         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
85135         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
85136         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
85137         lib/xstrtoumax.c, lib/yesno.c:
85138         Standardize inclusion of config.h.
85139         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
85140         lib/inttostr.h:  Removed inclusion of config.h from header files.
85141         * lib/inttostr.c:  Adjusted in-tree users.
85142         * lib/timespec.h: Remove superfluous warning to include config.h.
85143         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
85144         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
85145         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
85146         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
85147         config.h with HAVE_CONFIG_H.
85148
85149 2005-09-19  Jim Meyering  <jim@meyering.net>
85150
85151         * modules/pathmax (License): Change to LGPL.
85152
85153 2005-09-19  Derek Price  <derek@ximbiot.com>
85154
85155         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
85156
85157 2005-09-19  Bruno Haible  <bruno@clisp.org>
85158
85159         * gnulib-tool (import): Provide default for --tests-base.
85160
85161 2005-09-19  Bruno Haible  <bruno@clisp.org>
85162
85163         * doc/quote.texi: New file, extracted from gnulib.texi.
85164         * doc/ctime.texi: New file, extracted from gnulib.texi.
85165         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
85166         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
85167         * doc/gnulib.texi: Include them.
85168
85169 2005-09-18  Bruno Haible  <bruno@clisp.org>
85170
85171         Portability fix.
85172         * gnulib-tool (func_readlink): New function.
85173         (func_ln_if_changed): Use it.
85174
85175 2005-09-18  Bruno Haible  <bruno@clisp.org>
85176
85177         * gnulib-tool: Support --with-tests also with --import.
85178         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
85179         (func_import): Use variables $testsbase and $inctests. Emit a
85180         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
85181         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
85182         SUBDIRS += $testsdir.
85183         (func_create_testdir): Update.
85184
85185 2005-09-18  Bruno Haible  <bruno@clisp.org>
85186
85187         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
85188         instead of $dry_run.
85189         (func_cp_if_changed, func_mv_if_changed): Remove functions.
85190         (func_ln_if_changed): Don't handle dry-run here.
85191         (func_import): In dry-run mode, detect more precisely which actions
85192         would be performed, and don't use "...ing" verbs.
85193
85194 2005-09-18  Bruno Haible  <bruno@clisp.org>
85195
85196         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
85197         (func_import): Use join on two temporary files instead of three nested
85198         loops, in order to determine which files are new or old.
85199
85200 2005-09-18  Bruno Haible  <bruno@clisp.org>
85201
85202         * gnulib-tool (func_import): Comment out code that spits out the
85203         new files with --dry-run.
85204
85205 2005-09-18  Bruno Haible  <bruno@clisp.org>
85206
85207         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
85208
85209 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85210
85211         * lib/stat-time.h: New file.
85212         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
85213         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
85214         in a different way.
85215         (timespec_cmp): New function.
85216         * lib/utimecmp.c: Include stat-time.h.
85217         (SYSCALL_RESOLUTION): Depend on whether various struct stat
85218         members exist, not on the obsolescent ST_MTIM_NSEC.
85219         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
85220
85221 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85222
85223         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
85224
85225 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85226
85227         * MODULES.html.sh (File system functions): Add stat-time.
85228         * modules/stat-time: New file.
85229         * modules/timespec (Files): Remove m4/st_mtim.m4; this
85230         is now done in a different way, by the stat-time module.
85231         * modules/utimecmp (Depends-on): Add stat-time.
85232
85233 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
85234
85235         * m4/st_mtim.m4: Remove.  Superseded by...
85236         * m4/stat-time.m4: New file.
85237         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
85238         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
85239
85240 2005-09-15  Derek Price  <derek@ximbiot.com>
85241
85242         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
85243
85244 2005-09-15  Derek Price  <derek@ximbiot.com>
85245
85246         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
85247         * lib/regex_internal.c: Ditto, using this...
85248         (__GNUC_PREREQ): ...new macro.
85249         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
85250         using...
85251         (__GNUC_PREREQ): ...this new macro.
85252
85253         * lib/strstr.h: Include string.h. Define strstr as a macro here.
85254
85255 2005-09-15  Derek Price  <derek@ximbiot.com>
85256             Paul Eggert  <eggert@cs.ucla.edu>
85257
85258         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
85259         changes, consolidating in...
85260         * lib/regex_internal.h: ...this file.
85261
85262 2005-09-13  Jim Meyering  <jim@meyering.net>
85263
85264         * lib/canon-host.c: Filter through gnu indent and reword comments
85265         slightly.
85266         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
85267
85268 2005-09-13  Derek Price  <derek@ximbiot.com>
85269
85270         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
85271         failure.
85272         Reported by Jim Meyering  <jim@meyering.net>.
85273
85274 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
85275
85276         * lib/base64.c: Typo.
85277         (base64_encode): Put b64str in initialized data section.
85278
85279 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
85280
85281         Merge glibc and coreutils changes into gnulib, plus a few
85282         extra fixes.
85283         * lib/md5.c: Use #error rather than a string.
85284         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
85285         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
85286         (__attribute__): Define to empty for non recent-GCC.
85287         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
85288         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
85289         Renamed from their non-__ counterparts, with new macros replacing
85290         them if not _LIBC.  Add __THROW attribute.
85291         (rol): Remove.
85292         (struct md5_ctx): Align buffer if using GCC.
85293         * lib/sha1.h (struct sha1_ctx): Likewise.
85294         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
85295         The old name was backwards.
85296         (NOTSWAP): Remove; not used.
85297         (rol): New macro, moved here from md5.h.
85298         (sha1_process_block): Remove a FIXME that doesn't make sense.
85299
85300 2005-09-12  Derek Price  <derek@ximbiot.com>
85301
85302         Return usable errors from canon-host.
85303         * lib/canon-host.h: New file.
85304         * lib/canon-host.c (canon_host): Wrap...
85305         (canon_host_r): ...this new function, which now relies exclusively on
85306         getaddrinfo.
85307         (ch_strerror): New function.
85308         (last_cherror): New global.
85309         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
85310         interface.
85311         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
85312         void *.
85313         (freeaddrinfo): Free ai->ai_canonname when set.
85314
85315 2005-09-12  Derek Price  <derek@ximbiot.com>
85316
85317         Make canon-host require getaddrinfo.
85318         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
85319         AC_LIBSOURCE canon-host.h.  Call...
85320         (gl_PREREQ_CANON_HOST): ...this new function, which requires
85321         gl_GETADDRINFO.
85322         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
85323
85324 2005-09-12  Derek Price  <derek@ximbiot.com>
85325
85326         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
85327         LGPL.
85328         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
85329
85330 2005-09-12  Derek Price  <derek@ximbiot.com>
85331
85332         * lib/gai_strerror.c: Include config.h when available.  Include
85333         getaddrinfo.h before other headers to test interface.
85334         Reported by Larry Jones <lawrence.jones@ugs.com>.
85335
85336 2005-09-12  Derek Price  <derek@ximbiot.com>
85337             Paul Eggert  <eggert@cs.ucla.edu>
85338
85339         * modules/glob (Files): Add glob-libc.h.
85340
85341 2005-09-12  Derek Price  <derek@ximbiot.com>
85342             Paul Eggert  <eggert@cs.ucla.edu>
85343
85344         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
85345         glob_.h, glob-libc.h.
85346         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
85347
85348 2005-09-12  Derek Price  <derek@ximbiot.com>
85349             Paul Eggert  <eggert@cs.ucla.edu>
85350
85351         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
85352         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
85353         protecting things that should be done only in gnulib contexts.
85354         * lib/glob_.h: New file, containing only the glob things needed for
85355         gnulib.
85356         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
85357         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
85358         (glob, globfree, glob_pattern_p): Now defined simply in terms of
85359         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
85360         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
85361         and to respect the namespace rules better.
85362
85363 2005-09-08  Simon Josefsson  <jas@extundo.com>
85364
85365         * modules/socklen: New file.
85366
85367 2005-09-08  Simon Josefsson  <jas@extundo.com>
85368
85369         * m4/socklen.m4: New file.
85370
85371 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
85372
85373         * modules/utimens (Files): Add m4/utimbuf.m4, since
85374         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
85375         Reported by Sergey Poznyakoff.
85376
85377 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
85378
85379         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
85380         definitions, since that's the preferred style in glibc.
85381         Fix a minor spacing issue, and update copyright notice to match
85382         glibc's.
85383
85384 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
85385
85386         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
85387
85388 2005-09-06  Simon Josefsson  <jas@extundo.com>
85389
85390         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
85391         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
85392
85393 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
85394
85395         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
85396         warning.
85397
85398 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
85399
85400         * config/srclist.txt: Add glibc bug 1302.
85401
85402 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
85403
85404         Change bitset word type from unsigned int to unsigned long int,
85405         as this has better performance on typical 64-bit hosts.
85406         Port bitset code to hosts with unusual word sizes.
85407         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
85408         (build_collating_symbol):
85409         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
85410         argument is a bitset.  This is merely a style issue, but it makes
85411         it clearer that an entire array is expected.
85412         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
85413         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
85414         Port to the case where bitset_word is not the same as unsigned int.
85415         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
85416         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
85417         Likewise.
85418         * lib/regexec.c (check_dst_limits_calc_pos_1,
85419         check_subexp_matching_top):
85420         (build_trtable, group_nodes_into_DFAstates):
85421         Likewise.
85422         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
85423         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
85424         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
85425         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
85426         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
85427         * lib/regcomp.c (optimize_subexps, lower_subexp):
85428         Work even if bitset_word has holes in its bitwise representation.
85429         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
85430         * lib/regexec.c (check_dst_limits_calc_pos_1,
85431         check_subexp_matching_top):
85432         Likewise.
85433         * lib/regex_internal.c (re_string_reconstruct):
85434         Don't assume UCHAR_MAX == 255.
85435         * lib/regex_internal.h (bitset_set_all): Likewise.
85436         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
85437         All uses changed.
85438         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
85439         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
85440         All uses changed.
85441         (BITSET_WORD_MAX): New macro.
85442         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
85443         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
85444         (bitset_empty, bitset_copy):
85445         Prefer sizeof (bitset) to multiplying it out ourselves.
85446         (bitset_not_merge): Remove; unused.
85447         (bitset_contain): Return bool, not unsigned int with one bit on.
85448         All callers changed.
85449         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
85450         alignment than re_node_set; do this by defining a new internal
85451         type struct dests_alloc and using it to allocate memory.
85452
85453 2005-09-05  Bruno Haible  <bruno@clisp.org>
85454
85455         * gnulib-tool (func_import): Fix comparison in handling of symbolic
85456         links.
85457
85458 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
85459
85460         * modules/size_max (Makefile.am): Add size_max.h
85461
85462 2005-09-04  Derek Price  <derek@ximbiot.com>
85463
85464         * gnulib-tool (func_import): Fix reversed $symbolic logic.
85465
85466 2005-09-03  Simon Josefsson  <jas@extundo.com>
85467
85468         * gnulib-tool: Fix typo.
85469
85470 2005-09-03  Simon Josefsson  <jas@extundo.com>
85471
85472         * config/srclist.txt: Add glibc bug 1293.
85473
85474 2005-09-03  Derek Price  <derek@ximbiot.com>
85475
85476         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
85477         From Larry Jones <lawrence.jones@ugs.com>.
85478
85479 2005-09-02  Simon Josefsson  <jas@extundo.com>
85480
85481         * modules/socklen: New file.
85482
85483 2005-09-02  Simon Josefsson  <jas@extundo.com>
85484
85485         * modules/havelib: New module.
85486
85487         * modules/gettext, modules/iconv, modules/lock, modules/readline:
85488         Use havelib.
85489
85490 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
85491
85492         Check for arithmetic overflow when calculating sizes, to prevent
85493         some buffer-overflow issues.  These patches are conservative, in the
85494         sense that when I couldn't determine whether an overflow was possible,
85495         I inserted a run-time check.
85496         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
85497         macros.
85498         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
85499         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
85500         (re_xnrealloc, re_x2nrealloc): New inline functions.
85501         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
85502         parse_bracket_exp):
85503         (build_equiv_class, build_charclass): Check for arithmetic overflow
85504         in size expression calculations.
85505         * lib/regex_internal.c (re_string_realloc_buffers):
85506         (build_wcs_upper_buffer, re_node_set_add_intersect):
85507         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
85508         (re_dfa_add_node, register_state): Likewise.
85509         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
85510         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
85511         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
85512         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
85513
85514 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
85515
85516         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
85517         m4/ulonglong.m4.  Problem reported by Martin Lambers.
85518
85519 2005-09-02  Bruno Haible  <bruno@clisp.org>
85520
85521         Support for lib vs. lib64 distinction on biarch platforms.
85522         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
85523         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
85524         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
85525
85526 2005-09-02  Bruno Haible  <bruno@clisp.org>
85527
85528         * gnulib-tool (import): In the other first-use case, provide defaults
85529         as well.
85530
85531 2005-09-02  Bruno Haible  <bruno@clisp.org>
85532
85533         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
85534         patches not yet found in the latest gettext release.
85535
85536 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
85537
85538         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
85539         to avoid a collision with bits/local_lim.h in glibc.
85540         All uses changed.  Problem reported by Dmitry V. Levin in
85541         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
85542
85543         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
85544         bugs in int versus size_t comparisons.
85545         (re_string_context_at): Fix bug where the code assumed that
85546         Idx is signed.
85547
85548         Use bool where appropriate.
85549         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
85550         All callers changed.
85551         (calc_eclosure_iter): Likewise, for ROOT arg.
85552         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
85553         (build_charclass_op): Likewise, for NON_MATCH arg.
85554         * lib/regex_internal.c (re_string_allocate, re_string_construct):
85555         (re_string_construct_common): Likewise, for ICASE arg.
85556         * lib/regexec.c (re_search_2_stub, re_search_stub):
85557         Likewise, for RET_LEN arg.
85558         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
85559         (set_regs): Likewise, for FL_BACKTRACK arg.
85560         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
85561         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
85562         (calc_eclosure_iter, parse_bracket_exp):
85563         Use bool for internal variables that are booleans.
85564         * lib/regexec.c (re_search_internal, check_matching,
85565         proceed_next_node):
85566         (set_regs, build_sifted_states, sift_states_bkref):
85567         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
85568         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
85569         (find_collation_sequence_value):
85570         Likewise.
85571         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
85572         (re_node_set_compare):
85573         Return bool, not int. All callers changed.
85574         * lib/regexec.c (check_halt_node_context, check_dst_limits):
85575         (build_trtable, check_node_accept): Likewise.
85576         * lib/regex_internal.h: Include stdbool.h.
85577
85578         Fix bugs uncovered when converting to bool.
85579         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
85580         failure instead of charging ahead blindly.
85581         * lib/regex_internal.c (register_state): Likewise.
85582         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
85583         for freeing internal storage.
85584         (group_nodes_into_DFA_states): Use unsigned int, not int, for
85585         bitset pieces used as boolean, to avoid undefined behavior
85586         on hosts that do int overflow checking.
85587
85588 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
85589
85590         * config/srclist.txt: Add glibc bugs 1285-1287.
85591
85592 2005-09-01  Jim Meyering  <jim@meyering.net>
85593
85594         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
85595         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
85596         Require gl_STAT_MACROS, too.
85597
85598 2005-09-01  Bruno Haible  <bruno@clisp.org>
85599
85600         * gnulib-tool (import): In the first-use case, provide defaults.
85601
85602 2005-09-01  Bruno Haible  <bruno@clisp.org>
85603
85604         * gnulib-tool (func_import): Remove the .tmp files.
85605
85606 2005-09-01  Bruno Haible  <bruno@clisp.org>
85607
85608         * gnulib-tool (func_import): Fix handling of symbolic links.
85609
85610 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85611
85612         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
85613         old glibc regex code mishandles strings longer than 2**31 bytes.
85614         This patch fixes this when the regex code is used in gnulib
85615         (i.e., outside glibc).
85616
85617         This patch should not affect the use of the regex code inside
85618         glibc.  No doubt this problem also needs to be handled for glibc
85619         as well, but the result will be an incompatible change to the
85620         glibc ABI, and the old ABI will have to be supported too.  That
85621         can be the the subject for another patch.
85622
85623         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
85624         governing whether the rest of this patch is active.  By default,
85625         the macro is disabled and the patch has no effect.
85626         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
85627         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
85628         (struct re_pattern_buffer, re_search, re_search_2, re_match):
85629         (re_match_2, re_set_registers): Use the new types.
85630         * lib/regex_internal.h (Idx, re_hashval_t): New types.
85631         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
85632         New macros.
85633         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
85634         (re_string_context_at, bin_tree_t, re_dfastate_t):
85635         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
85636         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
85637         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
85638         (re_string_char_size_at, re_string_wchar_at):
85639         (re_string_elem_size_at):
85640         Use the new types and macros to port to 64-bit hosts.
85641         Use unsigned types for internal values, so that the code
85642         mostly works even for arrays larger than SSIZE_MAX.
85643         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
85644         (search_duplicated_node, calc_eclosure_iter, fetch_number):
85645         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
85646         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
85647         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
85648         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
85649         (calc_inveclosure, parse_dup_op, build_range_exp):
85650         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
85651         (fetch_number, create_token_tree, mark_opt_subexp):
85652         Likewise.
85653         * lib/regex_internal.c (re_string_construct_common,
85654         create_ci_newstate):
85655         (create_cd_newstate, re_string_allocate, re_string_construct):
85656         (re_string_realloc_buffers, build_wcs_upper_buffer):
85657         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
85658         (re_string_reconstruct, re_string_peek_byte_case):
85659         (re_string_fetch_byte_case, re_string_context_at):
85660         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
85661         (re_node_set_init_copy, re_node_set_add_intersect):
85662         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
85663         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
85664         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
85665         (re_acquire_state, re_acquire_state_context, register_state):
85666         Likewise.
85667         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
85668         search_cur_bkref_entry):
85669         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
85670         (re_search_internal, re_search_2_stub, re_search_stub)
85671         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
85672         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
85673         (update_cur_sifted_state, check_dst_limits):
85674         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
85675         (check_subexp_limits, sift_states_bkref, merge_state_array):
85676         (check_subexp_matching_top, get_subexp, get_subexp_sub):
85677         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
85678         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
85679         (expand_bkref_cache, check_node_accept_bytes):
85680         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
85681         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
85682         (acquire_init_state_context, check_halt_node_context):
85683         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
85684         (sift_states_backward, clean_state_log_if_needed):
85685         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
85686         (find_recover_state, transit_state_sb, transit_state_mb):
85687         (transit_state_bkref, build_trtable, match_ctx_clean):
85688         Likewise.
85689         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
85690         to work around an assumption that REG_MISSING is negative.
85691
85692         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
85693         (seek_collating_symbol_entry) [defined _LIBC]:
85694         (lookup_collation_sequence_value) [defined _LIBC]:
85695         (build_range_exp, build_collating_symbol) [defined _LIBC]:
85696         Use prototypes rather than old-style function definitions.
85697         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
85698         (transit_state_sb) [0]:
85699         (find_collation_sequence_value) [defined _LIBC]: Likewise.
85700
85701         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
85702         rm_eo.
85703
85704         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
85705         (optimize_subexps, lower_subexp):
85706         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
85707         since the signed shift might overflow.  Use 1u<<31 instead.
85708         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
85709         Likewise.
85710         * lib/regexec.c (check_dst_limits_calc_pos_1,
85711         check_subexp_matching_top): Likewise.
85712
85713         * lib/regcomp.c (optimize_subexps, lower_subexp):
85714         Use CHAR_BIT rather than 8, for clarity.
85715         * lib/regexec.c (check_dst_limits_calc_pos_1):
85716         (check_subexp_matching_top): Likewise.
85717         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
85718         have to worry about portability issues when shifting it left.
85719         Remove no-longer-needed test for table_size > 0.
85720         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
85721         in a word, as the resulting behavior is undefined.
85722         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
85723         in one case, a <= should have been an <, and in another case the
85724         whole test was missing.
85725         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
85726         the standard name CHAR_BIT.
85727         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
85728         this is not true on one's complement and signed-magnitude hosts.
85729
85730         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
85731         next_last_offset.
85732         (struct re_dfa_t): Remove unused member states_alloc.
85733         * lib/regcomp.c (init_dfa): Don't initialize unused members.
85734
85735 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85736
85737         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
85738         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
85739         and large-file glibc and in 32-bit large-file Solaris.
85740
85741 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85742
85743         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
85744         lengths fit in regoff_t; this isn't true if regoff_t is the same
85745         width as size_t.
85746         * lib/regex.c (re_search_internal): 5th arg is LAST_START
85747         (= START + RANGE) instead of RANGE.  This avoids overflow
85748         problems when regoff_t is the same width as size_t.
85749         All callers changed.
85750         (re_search_2_stub): Check for overflow when adding the
85751         sizes of the two strings.
85752         (re_search_stub): Check for overflow when adding START
85753         to RANGE; if it occurs, substitute the extreme value.
85754
85755 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85756
85757         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
85758
85759 2005-08-31  Jim Meyering  <jim@meyering.net>
85760
85761         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
85762         a pointer-to-const.
85763         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
85764         (register_state): Likewise.
85765         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
85766         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
85767         (group_nodes_into_DFAstates): Likewise.
85768
85769 2005-08-31  Jim Meyering  <jim@meyering.net>
85770
85771         * check-module: Add a FIXME comment.
85772
85773 2005-08-31  Eric Blake  <ebb9@byu.net>
85774
85775         * modules/unistd-safer (Files): Add unistd--.h.
85776         * modules/stdio-safer (Files): Add stdio--.h.
85777
85778 2005-08-31  Derek Price  <derek@ximbiot.com>
85779
85780         * lib/getdelim.c (getdelim): Return EOF on EOF.
85781         Reported by Larry Jones <lawrence.jones@ugs.com>.
85782
85783 2005-08-31  Bruno Haible  <bruno@clisp.org>
85784
85785         Avoid unnecessary diffs in the generated lib/Makefile.am.
85786         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
85787         the generated files.
85788         (func_import): Don't set cmd.
85789
85790 2005-08-31  Bruno Haible  <bruno@clisp.org>
85791
85792         * lib/strstr.c: Include <stddef.h>, for NULL.
85793         * lib/strcasestr.c: Likewise.
85794         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
85795
85796 2005-08-31  Bruno Haible  <bruno@clisp.org>
85797
85798         * gnulib-tool: New option --macro-prefix.
85799         (func_import): Use macro_prefix.
85800         (import): Handle option --macro-prefix.
85801
85802 2005-08-31  Bruno Haible  <bruno@clisp.org>
85803
85804         * gnulib-tool (import): Rename most ac_* variables to cached_*.
85805         Also use new variables cached_lgpl, cached_libtool.
85806
85807 2005-08-31  Bruno Haible  <bruno@clisp.org>
85808
85809         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
85810         always instantiating them.
85811
85812 2005-08-31  Bruno Haible  <bruno@clisp.org>
85813
85814         * gnulib-tool (func_import): Read the previous cached settings
85815         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
85816         earlier added by gnulib but are now dropped. Warn when a gnulib file
85817         overwrites a non-gnulib file.
85818
85819 2005-08-31  Bruno Haible  <bruno@clisp.org>
85820
85821         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
85822         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
85823         projects that don't keep autogenerated files in CVS. Put into
85824         actioncmd only the specified modules, not the transitive closure.
85825
85826 2005-08-31  Bruno Haible  <bruno@clisp.org>
85827
85828         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
85829         Create directories that shall be filled.
85830         (import): Don't look for gl_* macros in configure.ac. Recurse across
85831         all directories containing a gnulib-cache.m4 files, if meaningful.
85832
85833 2005-08-31  Bruno Haible  <bruno@clisp.org>
85834
85835         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
85836         (import): Set seen_libtool when we see gl_LIBTOOL.
85837
85838 2005-08-31  Bruno Haible  <bruno@clisp.org>
85839
85840         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
85841         declaration macro definitions from generated gnulib.m4.
85842
85843 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
85844
85845         * lib/iconvme.h: Add prototype for iconv_alloc.
85846
85847 2005-08-29  Simon Josefsson  <jas@extundo.com>
85848
85849         * lib/iconvme.c: Fix errno.
85850
85851 2005-08-29  Bruno Haible  <bruno@clisp.org>
85852
85853         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
85854         that it works when the directory contains spaces.
85855
85856 2005-08-29  Bruno Haible  <bruno@clisp.org>
85857
85858         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
85859
85860 2005-08-29  Bruno Haible  <bruno@clisp.org>
85861
85862         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
85863         Emit more advice.
85864
85865 2005-08-29  Bruno Haible  <bruno@clisp.org>
85866         and Stepan Kasal  <kasal@ucw.cz>
85867
85868         * check-module: If more parameters are given, check each of them
85869         separately; add more exceptions, as noted by Jim Meyering.
85870         (check_module): New procedure.
85871         (%exempt_header): Now contains all exceptions.
85872
85873 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
85874
85875         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
85876
85877 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
85878
85879         * lib/iconvme.c: Split iconv_string into iconv_alloc.
85880
85881 2005-08-28  Bruno Haible  <bruno@clisp.org>
85882
85883         * m4/gnulib-tool.m4: New file.
85884
85885 2005-08-27  Jim Meyering  <jim@meyering.net>
85886
85887         * modules/unistd-safer (Files): Add pipe-safer.c.
85888         * modules/fcntl-safer (Files): Add creat-safer.c.
85889
85890 2005-08-27  Jim Meyering  <jim@meyering.net>
85891
85892         * m4/stdlib-safer.m4: New file.  From coreutils.
85893         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
85894         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
85895         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
85896         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
85897         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
85898
85899 2005-08-27  Jim Meyering  <jim@meyering.net>
85900
85901         * lib/fopen-safer.c: Merge minor changes from coreutils.
85902         * lib/dup-safer.c: Likewise.
85903         * lib/fd-safer.c: Likewise.
85904
85905         Merge from coreutils.
85906         * lib/stdio--.h: New file.
85907         * lib/stdlib--.h: New file.
85908         * lib/mkstemp-safer.c: New file.
85909
85910         GNU tar needs these.
85911         * lib/pipe-safer.c: New file.
85912         * lib/creat-safer.c: New file.
85913         * lib/fcntl--.h (creat): Define to creat_safer.
85914         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
85915         * lib/unistd--.h (pipe): Define to pipe_safer.
85916         * lib/unistd-safer.h: Declare pipe_safer.
85917
85918 2005-08-26  Simon Josefsson  <jas@extundo.com>
85919
85920         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
85921         Haible <bruno@clisp.org>.
85922
85923 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
85924
85925         * lib/regex_internal.h: Remove all references to
85926         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
85927         or better.
85928         (bitset_not, bitset_merge, bitset_not_merge):
85929         (bitset_mask, re_string_allocate, re_string_construct):
85930         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
85931         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
85932         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
85933         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
85934         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
85935         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
85936         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
85937         (re_acquire_state_context):
85938         Remove unnecessary forward decls.
85939         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
85940         Put __attribute at function definition,
85941         now that the function decl has been removed.
85942         * lib/regex_internal.c (re_string_peek_byte_case):
85943         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
85944         Likewise.
85945
85946 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
85947
85948         * m4/regex.m4: Add AC_PREREQ(2.50).
85949         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
85950
85951 2005-08-25  Simon Josefsson  <jas@extundo.com>
85952
85953         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
85954         __fsetlocking.
85955
85956 2005-08-25  Simon Josefsson  <jas@extundo.com>
85957
85958         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
85959         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
85960         GLIBC specific code.
85961
85962 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85963
85964         Make regex safe for g++.  This fixes one real bug (an "err"
85965         that should have been "*err").  g++ problem reported by
85966         Sam Steingold.
85967         * lib/regex_internal.h (re_calloc): New macro, consistent with
85968         re_malloc etc.  All callers of calloc changed to use re_calloc.
85969         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
85970         not int.  All callers changed.
85971         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
85972         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
85973         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
85974         (find_recover_state): Change "err" to "*err"; this fixes what
85975         appears to be a real bug.
85976         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
85977         versus int.
85978
85979 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85980
85981         * modules/regex (Depends-on): Add malloc, since the code
85982         assumes that !malloc(0) means failure.
85983
85984 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85985
85986         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
85987
85988         alloca modernization/simplification for regex.
85989         * lib/regex.c: Remove portability cruft for alloca.  This no longer
85990         needs to be at the start of the file, and can be moved into
85991         regex_internal.h and simplified.
85992         * lib/regex_internal.h: Include <alloca.h>.
85993         (__libc_use_alloca) [!defined _LIBC]: New macro.
85994         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
85995         now works outside glibc.
85996
85997 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85998
85999         * config/srclist.txt: Add glibc bugs 1241, 1245.
86000
86001 2005-08-25  Jim Meyering  <jim@meyering.net>
86002
86003         * lib/open-safer.c: Include <config.h>.
86004         Otherwise, we'd lose LARGEFILE support in any file using
86005         e.g. "fcntl--.h"
86006
86007 2005-08-25  Bruno Haible  <bruno@clisp.org>
86008
86009         * m4/minmax.m4: Require autoconf 2.52.
86010         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
86011         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
86012         alternatives of translit over the alphabet.
86013         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
86014
86015 2005-08-24  Simon Josefsson  <jas@extundo.com>
86016
86017         * tests/test-getpass.c: New file.
86018
86019 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86020
86021         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
86022         for GNU regex features.
86023
86024 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86025
86026         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
86027         * lib/regex.h (regerror): Likewise.
86028
86029         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
86030         requires this.  (The code never needed it.)
86031
86032         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
86033         All uses of recently-renamed identifiers changed to use the new,
86034         POSIX-compliant names.  The code will build and run just fine
86035         without these changes, but it's better to eat our own dog food
86036         and use the standard-conforming names.
86037
86038         * lib/regex.h: Fix a multitude of POSIX name space violations.
86039         These changes have an effect only for programs that define
86040         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
86041         do not change anything for programs compiled in the normal way.
86042         Also, there is no effect on the ABI.
86043
86044         (_REGEX_SOURCE): New macro.
86045         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
86046         defined and _GNU_SOURCE is not; this fixes a name space violation.
86047
86048         Rename the following macros to obey POSIX requirements.
86049         The old names are still visible as macros if _REGEX_SOURCE is defined.
86050         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
86051         RE_BACKSLASH_ESCAPE_IN_LISTS.
86052         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
86053         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
86054         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
86055         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
86056         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
86057         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
86058         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
86059         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
86060         (REG_INTERVALS): renamed from RE_INTERVALS.
86061         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
86062         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
86063         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
86064         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
86065         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
86066         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
86067         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
86068         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
86069         RE_UNMATCHED_RIGHT_PAREN_ORD.
86070         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
86071         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
86072         (REG_DEBUG): renamed from RE_DEBUG.
86073         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
86074         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
86075         unusual, since we can't clash with the POSIX REG_ICASE.
86076         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
86077         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
86078         (REG_NO_SUB): renamed from RE_NO_SUB.
86079         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
86080         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
86081         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
86082         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
86083         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
86084         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
86085         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
86086         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
86087         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
86088         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
86089         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
86090         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
86091         RE_SYNTAX_POSIX_MINIMAL_BASIC.
86092         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
86093         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
86094         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
86095         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
86096         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
86097         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
86098         (REG_FIXED): Renamed from REGS_FIXED.
86099         (REG_NREGS): Renamed from RE_NREGS.
86100
86101         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
86102         of other REG_* macros, since POSIX says the user is allowed to
86103         #undef these macros selectively.
86104
86105         (reg_errcode_t): Update comment stating what other tables need
86106         to be consistent.
86107
86108         Rename the following enum values to obey POSIX requirements.
86109         The old names are still visible as macros.
86110         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
86111         is not defined, since GNU is supposed to be a superset of POSIX as
86112         much as possible, and since we want reg_errcode_t to be a signed
86113         type for implementation consistency.
86114         (_REG_NOERROR): Renamed from REG_NOERROR.
86115         (_REG_NOMATCH): Renamed from REG_NOMATCH.
86116         (_REG_BADPAT): Renamed from REG_BADPAT.
86117         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
86118         (_REG_ECTYPE): Renamed from REG_ECTYPE.
86119         (_REG_EESCAPE): Renamed from REG_EESCAPE.
86120         (_REG_ESUBREG): Renamed from REG_ESUBREG.
86121         (_REG_EBRACK): Renamed from REG_EBRACK.
86122         (_REG_EPAREN): Renamed from REG_EPAREN.
86123         (_REG_EBRACE): Renamed from REG_EBRACE.
86124         (_REG_BADBR): Renamed from REG_BADBR.
86125         (_REG_ERANGE): Renamed from REG_ERANGE.
86126         (_REG_ESPACE): Renamed from REG_ESPACE.
86127         (_REG_BADRPT): Renamed from REG_BADRPT.
86128         (_REG_EEND): Renamed from REG_EEND.
86129         (_REG_ESIZE): Renamed from REG_ESIZE.
86130         (_REG_ERPAREN): Renamed from REG_ERPAREN.
86131         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
86132         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
86133         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
86134         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
86135
86136         (_REG_RE_NAME, _REG_RM_NAME): New macros.
86137         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
86138         changed.  But support the old name if the new one is not defined
86139         and if _REGEX_SOURCE.
86140
86141         Change the following member names in struct re_pattern_buffer.
86142         The old names are still supported if !_REGEX_SOURCE.
86143         The new names are always supported, regardless of _REGEX_SOURCE.
86144         (re_buffer): Renamed from buffer.
86145         (re_allocated): Renamed from allocated.
86146         (re_used): Renamed from used.
86147         (re_syntax): Renamed from syntax.
86148         (re_fastmap): Renamed from fastmap.
86149         (re_translate): Renamed from translate.
86150         (re_can_be_null): Renamed from can_be_null.
86151         (re_regs_allocated): Renamed from regs_allocated.
86152         (re_fastmap_accurate): Renamed from fastmap_accurate.
86153         (re_no_sub): Renamed from no_sub.
86154         (re_not_bol): Renamed from not_bol.
86155         (re_not_eol): Renamed from not_eol.
86156         (re_newline_anchor): Renamed from newline_anchor.
86157
86158         Change the following member names in struct re_registers.
86159         The old names are still supported if !_REGEX_SOURCE.
86160         The new names are always supported, regardless of _REGEX_SOURCE.
86161         (rm_num_regs): Renamed from num_regs.
86162         (rm_start): Renamed from start.
86163         (rm_end): Renamed from end.
86164
86165         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
86166         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
86167         Prepend __ to parameter names.
86168
86169         Undo yesterday's changes.
86170
86171 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86172
86173         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
86174         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
86175         lib/regex.c.
86176
86177 2005-08-24  Jim Meyering  <jim@meyering.net>
86178
86179         Sync from coreutils.
86180         * m4/fcntl-safer.m4: New file.
86181
86182         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
86183         and object files for this module.
86184
86185 2005-08-24  Jim Meyering  <jim@meyering.net>
86186
86187         Sync from coreutils.
86188         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
86189
86190 2005-08-24  Jim Meyering  <jim@meyering.net>
86191
86192         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
86193         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
86194
86195 2005-08-24  Jim Meyering  <jim@meyering.net>
86196
86197         * modules/fcntl-safer: New module.
86198         * modules/fts (Depends-on): Add fcntl-safer.
86199         * MODULES.html.sh (File descriptor based Input/Output):
86200         Add fcntl-safer.
86201
86202 2005-08-24  Bruno Haible  <bruno@clisp.org>
86203
86204         Support for unit test modules.
86205         * modules/README: Mention tests modules.
86206         * modules/TEMPLATE-TESTS: New file.
86207         * gnulib-tool: New options --extract-tests-module, --with-tests and
86208         --tests-base (unused for the moment).
86209         (testsbase, inctests): New variables.
86210         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
86211         (func_verify_module): Exclude TEMPLATE-TESTS.
86212         (func_verify_nontests_module, func_verify_tests_module): New functions.
86213         (func_get_dependencies): Add implicit dependency for tests modules.
86214         (func_get_tests_module): New function.
86215         (func_modules_transitive_closure): When --with-tests was specified,
86216         include the unit tests as well, unless explicitly avoided.
86217         (func_emit_lib_Makefile_am): Ignore the tests modules here.
86218         (func_emit_tests_Makefile_am): New function.
86219         (func_create_testdir): When --with-tests was specified, emit a
86220         tests/ directory.
86221         * MODULES.html.sh (Future developments): Update.
86222
86223 2005-08-24  Bruno Haible  <bruno@clisp.org>
86224
86225         * modules/tls-tests: New file.
86226         * tests/test-tls.c: New file, from GNU gettext.
86227
86228 2005-08-24  Bruno Haible  <bruno@clisp.org>
86229
86230         * modules/lock-tests: New file.
86231         * tests/test-lock.c: New file, from GNU gettext.
86232
86233 2005-08-24  Bruno Haible  <bruno@clisp.org>
86234
86235         * lib/lock.h: Add multiple inclusion guard.
86236         * lib/tls.h: Add multiple inclusion guard.
86237
86238 2005-08-24  Bruno Haible  <bruno@clisp.org>
86239
86240         * gnulib-tool: Add support for the --aux-dir option to
86241         --create-testdir, --create-megatestdir, --test, --megatest.
86242         (func_create_testdir, func_create_megatestdir): Optionally emit a
86243         AC_CONFIG_AUX_DIR directive.
86244         (create-testdir, create-megatestdir, test, megatest): Provide a
86245         default value for $auxdir.
86246
86247 2005-08-24  Bruno Haible  <bruno@clisp.org>
86248
86249         * gnulib-tool (import): Use compound statement instead of subshell
86250         where possible.
86251
86252 2005-08-24  Bruno Haible  <bruno@clisp.org>
86253
86254         * gnulib-tool (import): Change --aux-dir default to "build-aux".
86255
86256 2005-08-24  Bruno Haible  <bruno@clisp.org>
86257
86258         * gnulib-tool (func_version): Update.
86259
86260 2005-08-24  Bruno Haible  <bruno@clisp.org>
86261
86262         * gnulib-tool (func_import, func_create_testdir,
86263         func_create_megatestdir): Quote all autoconf macro arguments.
86264
86265 2005-08-24  Bruno Haible  <bruno@clisp.org>
86266
86267         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
86268         option --force, because --force causes the aclocal.m4 of each
86269         subdirectory to be newer than the corresponding config.h.in.
86270
86271 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
86272
86273         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
86274         All contents moved to gl_REGEX.
86275         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
86276         assume that it does.
86277
86278 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
86279
86280         * lib/regex.h (REG_NOSYS)
86281         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
86282         Define, since POSIX requires it as of 2001.
86283         (_REG_ENOSYS)
86284         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
86285         New private symbol, used to keep the enum signed in all cases.
86286         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
86287         Youngman in
86288         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
86289
86290         * lib/regex_internal.c (re_string_skip_chars, register_state):
86291         (calc_state_hash):
86292         Remove forward decls; no longer needed now that we use prototypes.
86293         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
86294         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
86295         (clean_state_log_if_needed): Likewise.
86296
86297 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
86298
86299         * config/srclist.txt: Add glibc bugs 1231-1233.
86300
86301 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
86302
86303         Fix problems reported by Sam Steingold in
86304         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
86305         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
86306         assumed that reg_errcode_t is a signed type, which is not
86307         necessarily true if _XOPEN_SOURCE is not defined.
86308         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
86309         since some compilers warn about it otherwise.
86310
86311 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
86312
86313         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
86314         (init_word_char, create_initial_state, duplicate_node_closure):
86315         (fetch_token, peek_token_bracket, build_range_exp):
86316         (build_collating_symbol): Remove forward decls; no longer needed
86317         now that we use prototypes.
86318
86319         * lib/regcomp.c:
86320         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
86321         (re_compile_fastmap_iter, regcomp, regerror, regfree):
86322         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
86323         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
86324         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
86325         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
86326         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
86327         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
86328         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
86329         (build_range_exp, build_collating_symbol, parse_bracket_exp):
86330         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
86331         (build_charclass, build_charclass_op, fetch_number, create_tree):
86332         (create_token_tree, mark_opt_subexp, duplicate_tree):
86333         Use prototypes rather than old-style definitions.
86334
86335         * lib/regex_internal.c:
86336         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
86337         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
86338         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
86339         (re_string_reconstruct, re_string_peek_byte_case):
86340         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
86341         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
86342         (re_node_set_init_copy, re_node_set_add_intersect):
86343         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
86344         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
86345         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
86346         (re_acquire_state, re_acquire_state_context, register_state):
86347         (create_ci_newstate, create_cd_newstate, free_state):
86348         Likewise.
86349         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
86350         re_search_2):
86351         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
86352         (re_search_internal, prune_impossible_nodes):
86353         (acquire_init_state_context, check_matching, static):
86354         (check_halt_node_context, check_halt_state_context, proceed_next_node):
86355         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
86356         (update_regs, sift_states_backward, build_sifted_states):
86357         (clean_state_log_if_needed, merge_state_array):
86358         (update_cur_sifted_state, add_epsilon_src_nodes):
86359         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
86360         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
86361         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
86362         (find_recover_state, check_subexp_matching_top, transit_state_mb):
86363         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
86364         (check_arrival, check_arrival_add_next_nodes):
86365         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
86366         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
86367         (check_node_accept_bytes, check_node_accept, extend_buffers):
86368         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
86369         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
86370         (sift_ctx_init):
86371         Likewise.
86372
86373         * lib/regex_internal.h:
86374         (re_string_allocate, re_string_construct, re_string_reconstruct):
86375         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
86376         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
86377         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
86378         (re_string_context_at, re_string_peek_byte_case):
86379         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
86380         is defined, since we now use prototypes always.
86381
86382         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
86383         C89 or better.  All uses removed.
86384
86385 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
86386
86387         * config/srclist.txt: Add glibc bugs 1220-1227.
86388
86389 2005-08-20  Jim Meyering  <jim@meyering.net>
86390
86391         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
86392         of unused local, dfa.
86393
86394 2005-08-20  Bruno Haible  <bruno@clisp.org>
86395
86396         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
86397
86398 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86399
86400         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
86401         (re_node_set_insert_last, re_dfa_add_node):
86402         Rename local variables to avoid GCC shadowing warnings.
86403
86404 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86405
86406         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
86407         [defined lint]: Suppress bogus uninitialized-variable warnings.
86408
86409         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
86410         and let the caller return REG_ESPACE if out of space.  This
86411         removes an uninitialied-variable warning with GCC 4.0.1, and also
86412         avoids taking the address of a local variable.  All callers
86413         changed.
86414
86415 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86416
86417         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
86418         $LIBCSRC/posix/regexec.c.
86419         Add glibc bug 1217 for regcomp.c.
86420
86421 2005-08-19  Jim Meyering  <jim@meyering.net>
86422
86423         * lib/regexec.c (proceed_next_node): Redo local variables to
86424         avoid GCC shadowing warnings.
86425
86426 2005-08-18  Bruno Haible  <bruno@clisp.org>
86427
86428         * lib/strstr.c (strstr): Fix return value in multibyte case.
86429         * lib/strcasestr.c (strcasestr): Likewise.
86430
86431 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
86432
86433         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
86434
86435 2005-08-17  Jim Meyering  <jim@meyering.net>
86436
86437         Make the %s format (seconds since the epoch) work for a negative
86438         number and when used with a zero-padded field width, e.g. %015s.
86439
86440         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
86441         label so that it precedes the code to set `digits'.  Otherwise,
86442         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
86443         print `00-22'.  Now, it prints `-0022', as it should.
86444
86445 2005-08-17  Bruno Haible  <bruno@clisp.org>
86446
86447         * modules/strstr (Files): Add m4/mbrtowc.m4.
86448         (Depends-on): Add mbuiter.
86449
86450 2005-08-17  Bruno Haible  <bruno@clisp.org>
86451
86452         * modules/strcasestr: New file.
86453         * MODULES.html.sh (String handling, based on ANSI C 89): Add
86454         strcasestr.
86455
86456 2005-08-17  Bruno Haible  <bruno@clisp.org>
86457
86458         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
86459
86460 2005-08-17  Bruno Haible  <bruno@clisp.org>
86461
86462         * modules/mbuiter: New file.
86463         * MODULES.html.sh (Extended multibyte and wide character utilities):
86464         Add mbuiter.
86465
86466 2005-08-17  Bruno Haible  <bruno@clisp.org>
86467
86468         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
86469         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
86470
86471 2005-08-17  Bruno Haible  <bruno@clisp.org>
86472
86473         * m4/strcasestr.m4: New file.
86474
86475 2005-08-17  Bruno Haible  <bruno@clisp.org>
86476
86477         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
86478         * lib/strstr.c: Completely rewritten, with multibyte locale support.
86479
86480 2005-08-17  Bruno Haible  <bruno@clisp.org>
86481
86482         * lib/strcasestr.h: New file.
86483         * lib/strcasestr.c: New file.
86484
86485 2005-08-17  Bruno Haible  <bruno@clisp.org>
86486
86487         * lib/strcasecmp.c: Use mbuiter.h.
86488
86489 2005-08-17  Bruno Haible  <bruno@clisp.org>
86490
86491         * lib/mbuiter.h: New file.
86492
86493 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
86494
86495         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
86496         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
86497         and gl_GETOPT are both invoked via different paths (as happens
86498         with GNU tar CVS because it uses both argp and getopt), the former
86499         wins.
86500
86501 2005-08-16  Bruno Haible  <bruno@clisp.org>
86502
86503         * modules/tls: New file.
86504         * MODULES.html.sh (Multithreading): Add tls.
86505
86506 2005-08-16  Bruno Haible  <bruno@clisp.org>
86507
86508         * modules/strnlen1: New file.
86509         * MODULES.html.sh (String handling): Add strnlen1.
86510
86511 2005-08-16  Bruno Haible  <bruno@clisp.org>
86512
86513         * modules/strcase (Files): Add m4/mbrtowc.m4.
86514         (Depends-on): Add strnlen1, mbchar.
86515
86516 2005-08-16  Bruno Haible  <bruno@clisp.org>
86517
86518         * modules/mbiter: New file.
86519         * MODULES.html.sh (Extended multibyte and wide character utilities):
86520         Add mbiter.
86521
86522 2005-08-16  Bruno Haible  <bruno@clisp.org>
86523
86524         * modules/mbfile: New file.
86525         * MODULES.html.sh (Extended multibyte and wide character utilities):
86526         Add mbfile.
86527
86528 2005-08-16  Bruno Haible  <bruno@clisp.org>
86529
86530         * modules/mbchar: New file.
86531         * MODULES.html.sh (Extended multibyte and wide character utilities):
86532         New section.
86533
86534 2005-08-16  Bruno Haible  <bruno@clisp.org>
86535
86536         * m4/tls.m4: New file, from GNU gettext.
86537
86538 2005-08-16  Bruno Haible  <bruno@clisp.org>
86539
86540         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
86541         always.
86542         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
86543
86544 2005-08-16  Bruno Haible  <bruno@clisp.org>
86545
86546         * m4/mbiter.m4: New file.
86547
86548 2005-08-16  Bruno Haible  <bruno@clisp.org>
86549
86550         * m4/mbfile.m4: New file.
86551
86552 2005-08-16  Bruno Haible  <bruno@clisp.org>
86553
86554         * m4/mbchar.m4: New file.
86555
86556 2005-08-16  Bruno Haible  <bruno@clisp.org>
86557
86558         * lib/tls.h: New file, from GNU gettext.
86559         * lib/tls.c: New file, from GNU gettext.
86560
86561 2005-08-16  Bruno Haible  <bruno@clisp.org>
86562
86563         * lib/strnlen1.h: New file.
86564         * lib/strnlen1.c: New file.
86565
86566 2005-08-16  Bruno Haible  <bruno@clisp.org>
86567
86568         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
86569         (mbi_init): Update.
86570         (mbi_avail, mbi_advance): Let the iteration end before the terminating
86571         NUL byte, not after it.
86572
86573 2005-08-16  Bruno Haible  <bruno@clisp.org>
86574
86575         * lib/strcase.h (strcasecmp): Add note in comments.
86576         * lib/strncasecmp.c: Use code from strcasecmp.c.
86577         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
86578         (strcasecmp): Work correctly in multibyte locales.
86579
86580 2005-08-16  Bruno Haible  <bruno@clisp.org>
86581
86582         * lib/mbiter.h: New file.
86583
86584 2005-08-16  Bruno Haible  <bruno@clisp.org>
86585
86586         * lib/mbfile.h: New file.
86587
86588 2005-08-16  Bruno Haible  <bruno@clisp.org>
86589
86590         * lib/mbchar.h: New file.
86591         * lib/mbchar.c: New file.
86592
86593 2005-08-16  Bruno Haible  <bruno@clisp.org>
86594
86595         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
86596         the valid ones. Makes the comparison operations transitive:
86597         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
86598         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
86599
86600 2005-08-15  Simon Josefsson  <jas@extundo.com>
86601
86602         * modules/ssize_t (License): Change to 'unlimited'.
86603
86604         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
86605
86606 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
86607
86608         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
86609         Add comments for each pending glibc patch.
86610
86611 2005-08-15  Bruno Haible  <bruno@clisp.org>
86612
86613         * lib/regex.h (__restrict_arr): Don't define to __restrict if
86614         __cplusplus is defined.
86615
86616 2005-08-14  Jim Meyering  <jim@meyering.net>
86617
86618         Sync from coreutils.
86619
86620         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
86621         Use the hash-table-based cycle-detection code not just when
86622         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
86623         Reported by James Youngman in
86624         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
86625         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
86626         FTS_TIGHT_CYCLE_CHECK.
86627         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
86628         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
86629         once again.
86630         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
86631         * lib/fts.c (fd_safer): Remove decl.
86632         Include fcntl--.h rather than unistd-safer.h
86633         (fts_safe_changedir): Don't call fd_safer; no longer needed
86634         now that we include fcntl--.h.
86635
86636 2005-08-12  Simon Josefsson  <jas@extundo.com>
86637
86638         * modules/getndelim2: Use ssize_t module.
86639         * modules/getnline: Likewise.
86640         * modules/safe-read: Likewise.
86641         * modules/xreadlink: Likewise.
86642
86643         * modules/ssize_t: New file.
86644
86645 2005-08-12  Simon Josefsson  <jas@extundo.com>
86646
86647         * m4/readline.m4: Look for termcap, curses or ncurses if required.
86648
86649 2005-08-12  Simon Josefsson  <jas@extundo.com>
86650
86651         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86652         ssize_t.
86653
86654 2005-08-12  Simon Josefsson  <jas@extundo.com>
86655
86656         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
86657         readline, getdelim and check_version.
86658         (Support for systems lacking ISO C 99: Sizes of integer types):
86659         Add size_max.
86660
86661 2005-08-12  Bruno Haible  <bruno@clisp.org>
86662
86663         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
86664
86665 2005-08-11  Simon Josefsson  <jas@extundo.com>
86666
86667         * modules/readline: New file.
86668
86669         * modules/strnlen (Files): Add strnlen.h.
86670
86671 2005-08-11  Simon Josefsson  <jas@extundo.com>
86672
86673         * m4/readline.m4: New file.
86674
86675 2005-08-11  Simon Josefsson  <jas@extundo.com>
86676
86677         * lib/readline.h, readline.c: New file.
86678
86679 2005-08-11  Simon Josefsson  <jas@extundo.com>
86680
86681         * doc/gnulib.texi (Initial import, Finishing touches): Mention
86682         gl_AVOID.
86683
86684 2005-08-11  Bruno Haible  <bruno@clisp.org>
86685
86686         * lib/strnlen.h (strnlen): Change parameter name to match comment.
86687
86688 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
86689
86690         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
86691
86692 2005-08-10  Simon Josefsson  <jas@extundo.com>
86693
86694         * tests/test-iconvme.c: New file.
86695
86696 2005-08-10  Simon Josefsson  <jas@extundo.com>
86697
86698         * m4/strnlen.m4: New file.
86699
86700         * m4/strndup.m4: Don't check for strnlen declaration, done in
86701         strnlen.m4.
86702
86703 2005-08-10  Simon Josefsson  <jas@extundo.com>
86704
86705         * lib/strndup.c: Use strnlen.h.
86706
86707         * lib/strnlen.h: New file.
86708
86709 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
86710
86711         * README: Typos.
86712
86713 2005-08-02  Simon Josefsson  <jas@extundo.com>
86714
86715         * modules/readline: New file.
86716
86717 2005-08-02  Simon Josefsson  <jas@extundo.com>
86718
86719         * modules/getdelim: New file.
86720
86721         * modules/getline: Rewrite, don't use getndelim2.
86722
86723 2005-08-02  Simon Josefsson  <jas@extundo.com>
86724
86725         * m4/getline.m4: Separate out getdelim stuff into separate module.
86726
86727         * m4/getdelim.m4: New file.
86728
86729 2005-08-02  Simon Josefsson  <jas@extundo.com>
86730
86731         * lib/getline.h, getline.c: Rewrite.
86732
86733         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
86734
86735 2005-07-31  Bruno Haible  <bruno@clisp.org>
86736
86737         * lib/lock.h (gl_lock_initializer): New macro.
86738         (gl_lock_define_initialized): Use it.
86739         (gl_rwlock_initializer): New macro.
86740         (gl_rwlock_define_initialized): Use it.
86741         (gl_recursive_lock_initializer): New macro.
86742         (gl_recursive_lock_define_initialized): Use it.
86743
86744 2005-07-30  Karl Berry  <karl@gnu.org>
86745
86746         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
86747         Report from Ben Pfaff, regarding getopt.
86748
86749 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
86750
86751         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
86752         normal way.
86753         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
86754         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
86755         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
86756         (gl_GETOPT): Use the new macros.  Most of the implementation
86757         is moved to the new macros.  This is for programs like Emacs
86758         that don't want all the functionality of gl_GETOPT.
86759
86760 2005-07-26  Bruno Haible  <bruno@clisp.org>
86761
86762         * m4/lock.m4: Update from GNU gettext.
86763
86764 2005-07-26  Bruno Haible  <bruno@clisp.org>
86765
86766         * lib/lock.h: Update from GNU gettext.
86767         * lib/lock.c: Update from GNU gettext.
86768
86769 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
86770
86771         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
86772         obsolescent AC_TRY_RUN.  Include the default includes files, for
86773         'exit'.
86774
86775 2005-07-24  Bruno Haible  <bruno@clisp.org>
86776
86777         * modules/visibility: New file.
86778         * MODULES.html.sh (Misc): Add visibility.
86779
86780 2005-07-24  Bruno Haible  <bruno@clisp.org>
86781
86782         * m4/visibility.m4: New file.
86783
86784 2005-07-24  Bruno Haible  <bruno@clisp.org>
86785
86786         * doc/visibility.texi: New file.
86787
86788 2005-07-22  Bruno Haible  <bruno@clisp.org>
86789
86790         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
86791         $(ALLOCA_H), redundant through BUILT_SOURCES.
86792         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
86793         redundant through BUILT_SOURCES.
86794         * modules/byteswap (Makefile.am): Remove explicit dependency on
86795         $(BYTESWAP_H), redundant through BUILT_SOURCES.
86796         * modules/fnmatch (Makefile.am): Remove explicit dependency on
86797         $(FNMATCH_H), redundant through BUILT_SOURCES.
86798         * modules/getopt (Makefile.am): Remove explicit dependency on
86799         $(GETOPT_H), redundant through BUILT_SOURCES.
86800         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
86801         redundant through BUILT_SOURCES.
86802         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
86803         redundant through BUILT_SOURCES.
86804         * modules/stdbool (Makefile.am): Remove explicit dependency on
86805         $(STDBOOL_H), redundant through BUILT_SOURCES.
86806         * modules/stdint (Makefile.am): Remove explicit dependency on
86807         $(STDINT_H), redundant through BUILT_SOURCES.
86808         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
86809         Remove explicit dependency on $(SYSEXITS_H).
86810         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
86811
86812 2005-07-18  Simon Josefsson  <jas@extundo.com>
86813
86814         * lib/check-version.c (check_version): Accept identical versions too.
86815
86816 2005-07-18  Bruno Haible  <bruno@clisp.org>
86817
86818         * modules/lock: New file.
86819         * MODULES.html.sh (Multithreading): New section.
86820
86821 2005-07-18  Bruno Haible  <bruno@clisp.org>
86822
86823         * m4/lock.m4: New file, from GNU gettext.
86824
86825 2005-07-18  Bruno Haible  <bruno@clisp.org>
86826
86827         * lib/lock.h: New file, from GNU gettext.
86828         * lib/lock.c: New file, from GNU gettext.
86829
86830 2005-07-18  Bruno Haible  <bruno@clisp.org>
86831
86832         * lib/lock.h (gl_once_t): New type.
86833         (gl_once_define, gl_once): New macros.
86834         * lib/lock.c (fresh_once): New variable.
86835         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
86836         functions.
86837
86838 2005-07-16  Simon Josefsson  <jas@extundo.com>
86839
86840         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
86841         workaround, suggested by Bruno.
86842
86843 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
86844
86845         * modules/xalloc (Depends-on): Add xalloc-die.
86846         * modules/xvasprintf (Depends-on): Add xalloc-die.
86847
86848 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
86849
86850         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
86851         with a minor change.
86852
86853 2005-07-15  Bruno Haible  <bruno@clisp.org>
86854
86855         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
86856         When using lib/poll.c, define poll as rpl_poll.
86857
86858 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
86859
86860         * modules/argp (Depends-on): Remove unlocked-io.
86861
86862 2005-07-14  Derek Price  <derek@ximbiot.com>
86863
86864         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
86865         for glob symlink bug.
86866
86867 2005-07-14  Bruno Haible  <bruno@clisp.org>
86868
86869         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
86870         Instead, test for *_unlocked function declarations directly.
86871
86872 2005-07-11  Simon Josefsson  <jas@extundo.com>
86873
86874         * modules/size_max: New file.
86875
86876         * modules/xsize: Depend on size_max module for size_max.m4.
86877
86878 2005-07-11  Simon Josefsson  <jas@extundo.com>
86879
86880         * lib/size_max.h: New file.
86881
86882 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
86883
86884         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
86885         copyright symbol and the year.
86886         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
86887         (version_etc_va): Use parameterized copyright notice.
86888         Reword to conform to the current GNU coding standards.
86889
86890 2005-07-11  Karl Berry  <karl@gnu.org>
86891
86892         * doc/gnulib.texi (Quoting): new node.
86893         (Initial import): more info, from Patrice.
86894
86895 2005-07-11  Bruno Haible  <bruno@clisp.org>
86896
86897         * gnulib-tool (func_usage): Document option --avoid.
86898         (Command line options): Handle --avoid.
86899         (func_acceptable): New function.
86900         (func_modules_transitive_closure): Use it.
86901
86902 2005-07-11  Bruno Haible  <bruno@clisp.org>
86903
86904         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
86905         Reported by Jim Meyering.
86906
86907 2005-07-10  Bruno Haible  <bruno@clisp.org>
86908
86909         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
86910         Needed when size_t is smaller than 'unsigned int'.
86911         Reported by Paul Eggert.
86912
86913 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
86914
86915         * modules/argp (Depends-on): Add unlocked-io
86916
86917 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
86918
86919         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
86920         block of defines.
86921
86922 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
86923
86924         * config/srclist.txt: Comment out regcomp.c, since we have a porting
86925         fix now.
86926
86927 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
86928         and Paul Eggert  <eggert@cs.ucla.edu>
86929
86930         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
86931         in wint_t, not wchar_t.  Remove now-unnecessary cast.
86932
86933 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86934
86935         * modules/regex (Files): Add lib/regex_internal.c,
86936         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
86937         (Depends-on): Add extensions.
86938         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
86939
86940 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86941
86942         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
86943         pathconf.
86944         * m4/same.m4 (gl_SAME): Likewise.
86945         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
86946
86947         * m4/regex.m4: Adjust to new libc regex implementation.
86948         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
86949         all the .c and .h parts of (the new) regex.
86950         Quote the m4 stuff better.
86951         Check for RE_ICASE bug of old gnulib.
86952         Check for REG_STARTEND of recent libc.
86953         Rename local variables from jm_* to gl_*.
86954         Quote operand of "test -f".
86955         Say "recent enough" version of libc, not "version 2".
86956         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
86957         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
86958         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
86959         Remove check for btowc, isascii.
86960         Require AM_LANGINFO_CODESET.
86961
86962 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86963
86964         * lib/regex.c, regex.h: Sync from libc.
86965         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
86966         * lib/regexec.c:
86967         New files, synced from libc, except that regex_internal.h
86968         currently has a small porting fix.
86969
86970 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86971
86972         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
86973         regex_internal.c, regexec.c.
86974         Add regex_internal.h too, but as a comment, since the libc version
86975         is currently broken in gnulib mode.
86976
86977 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
86978
86979         Support programs like Emacs that use gnulib but not gettext.
86980         * MODULES.html.sh (Internationalization functions): Add gettext-h.
86981         * modules/gettext-h: New file.
86982         * modules/gettext (Files): Remove lib/gettext.h.
86983         (Depends-on): Add gettext-h.
86984         (Makefile.am): Remove lib_SOURCES.
86985         * modules/argmatch, modules/c-stack, modules/closeout:
86986         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
86987         * modules/execute, modules/file-type, modules/getaddrinfo:
86988         * modules/getopt, modules/human, modules/javacomp:
86989         * modules/javaexec, modules/mkdir-p, modules/obstack:
86990         * modules/openat, modules/pagealign_alloc, modules/pipe:
86991         * modules/quotearg, modules/regex, modules/rpmatch:
86992         * modules/unicodeio, modules/userspec, modules/version-etc:
86993         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
86994         * modules/xsetenv:
86995         Depend on gettext-h, not gettext.
86996
86997 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
86998
86999         * gnulib-tool (func_import): Add support for 'public domain' license.
87000         * modules/alloca, modules/atexit, modules/memmove:
87001         Now public domain, not GPL.
87002         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
87003         * modules/realloc, modules/strerror, modules/strtod:
87004         Now LGPL, not GPL.
87005
87006 2005-07-05  Bruno Haible  <bruno@clisp.org>
87007
87008         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
87009         autoconf CVS. Needed for mingw.
87010
87011 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
87012
87013         Remove the dependency of the strftime module on the tzset module.
87014         * modules/strftime (Depends-on): Remove dependency on tzset.
87015
87016 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
87017
87018         Remove the dependency of the strftime module on the tzset module.
87019         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
87020         gl_FUNC_TZSET_CLOBBER.
87021
87022 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
87023
87024         Remove the dependency of the strftime module on the tzset module.
87025         * lib/strftime.c (my_strftime)
87026         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
87027         Copy the input structure, to work around some of the bug with
87028         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
87029         Solaris releases, you should also use the tzset module, but we won't
87030         require it as a dependency any more since we don't want LGPLed code
87031         to depend on GPLed code.
87032
87033 2005-07-02  Jim Meyering  <jim@meyering.net>
87034
87035         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
87036         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
87037         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
87038         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
87039
87040 2005-07-02  Jim Meyering  <jim@meyering.net>
87041
87042         * lib/backupfile.c (backup_args): Change a `0' to NULL.
87043
87044 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
87045
87046         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
87047         declares only 'struct timespec;' (!).
87048
87049 2005-07-01  Jim Meyering  <jim@meyering.net>
87050
87051         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
87052         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
87053         * lib/save-cwd.c, tempname.c:
87054         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
87055         and don't include <sys/file.h>).
87056
87057 2005-06-29  Jim Meyering  <jim@meyering.net>
87058
87059         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
87060         type name.  Use the variable name instead.
87061         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
87062         Likewise.
87063
87064 2005-06-28  Simon Josefsson  <jas@extundo.com>
87065
87066         * modules/check-version (Files): Add check-version.m4.
87067
87068 2005-06-28  Simon Josefsson  <jas@extundo.com>
87069
87070         * m4/check-version.m4: New file, suggested by Jim Meyering
87071         <jim@meyering.net>.
87072
87073 2005-06-28  Simon Josefsson  <jas@extundo.com>
87074
87075         * lib/check-version.h, lib/check-version.c: New files.
87076
87077 2005-06-28  Simon Josefsson  <jas@extundo.com>
87078
87079         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
87080         collision with global variable.  Better indentation.  Don't
87081         increment buffer pointer beyond buffer end.  Based on comments
87082         from Paul Eggert <eggert@cs.ucla.edu>.
87083
87084         * lib/base64.h: Indent.
87085
87086 2005-06-28  Simon Josefsson  <jas@extundo.com>
87087
87088         * doc/gnulib.texi (Library version handling): New section.
87089
87090 2005-06-28  Jim Meyering  <jim@meyering.net>
87091
87092         * check-module (find_included_lib_files): Hard-code another
87093         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
87094         but modules/fts-lgpl (correctly) does not list those files.
87095
87096         * modules/canonicalize (Files): Add lib/pathmax.h.
87097
87098 2005-06-25  Simon Josefsson  <jas@extundo.com>
87099
87100         * modules/check-version: New file.
87101
87102 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
87103
87104         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
87105         initializer of struct addrinfo, as an indication that we don't
87106         care how many members the structure has.
87107
87108 2005-06-24  Derek Price  <derek@ximbiot.com>
87109         and Bruno Haible  <bruno@clisp.org>
87110
87111         Remove stat module & update lstat.
87112         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
87113         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87114         * m4/stat.m4: Remove this file.
87115
87116 2005-06-24  Derek Price  <derek@ximbiot.com>
87117         and Bruno Haible  <bruno@clisp.org>
87118
87119         Remove stat module & update lstat.
87120         * lib/stat.c: Remove this file...
87121         (slash_aware_lstat): ...moving this content and its support...
87122         * lib/lstat.c (rpl_lstat): ...into here.
87123         * lib/lstat.h: New file.
87124
87125 2005-06-24  Derek Price  <derek@ximbiot.com>
87126         and Bruno Haible  <bruno@clisp.org>
87127
87128         Remove stat module & update lstat.
87129         * config/srclist.txt (libc sources): Remove stat.
87130
87131 2005-06-24  Derek Price  <derek@ximbiot.com>
87132         and Bruno Haible  <bruno@clisp.org>
87133
87134         Remove stat module & update lstat.
87135         * MODULES.html.sh (stat): Remove.
87136         * MODULES.html: Regenerated.
87137         * modules/lstat (Description): Correct function name.
87138         (Files): Add "lstat.h".
87139         (Depends-on): Remove stat, add xalloc, stat-macros.
87140         * modules/stat: Remove this file.
87141         (Include): Add "lstat.h", remove <sys/stat.h>.
87142
87143 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
87144
87145         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
87146         (ranged_convert): Don't save conversion in a temporary struct.
87147         This causes a warning with GCC 4.0.0, and anyway in the typical
87148         case it's not worth the extra 100 bytes or so of code.
87149         (ranged_convert, __mktime_internal): When calling a function via a
87150         pointer P, use P () rather than (*P) (), as we now assume C89 or
87151         better.
87152
87153 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87154
87155         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
87156         "who -r" failed to give output.  Problem reported by Tim Waugh.
87157
87158         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
87159         (xcalloc): Use it to avoid needless tests.
87160         Problem reported by Jim Meyering.
87161
87162 2005-06-20  Derek Price  <derek@ximbiot.com>
87163
87164         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
87165         unnecessary for Autoconfs > 2.59c.
87166
87167 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87168
87169         * lib/argp.h (__option_is_short): Check upper limit of
87170         __key. Isprint() requires its argument to have the value
87171         of an unsigned char or EOF.
87172
87173 2005-06-16  Jim Meyering  <jim@meyering.net>
87174
87175         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
87176         when either N or S is zero.
87177
87178 2005-06-16  Derek Price  <derek@ximbiot.com>
87179
87180         * m4/bison.m4: Declare YACC & YFLAGS precious.
87181
87182 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
87183
87184         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
87185         multibyte string or pattern, fall back on unibyte matching.
87186         Problem reported by James Youngman.
87187
87188 2005-06-08  Bruno Haible  <bruno@clisp.org>
87189
87190         * modules/csharpcomp: New file.
87191         * MODULES.html.sh (C#): Add csharpcomp.
87192
87193 2005-06-08  Bruno Haible  <bruno@clisp.org>
87194
87195         * m4/csharpcomp.m4: New file, from GNU gettext.
87196
87197 2005-06-08  Bruno Haible  <bruno@clisp.org>
87198
87199         * lib/csharpcomp.h: New file, from GNU gettext.
87200         * lib/csharpcomp.c: New file, from GNU gettext.
87201         * lib/csharpcomp.sh.in: New file, from GNU gettext.
87202
87203 2005-06-08  Bruno Haible  <bruno@clisp.org>
87204
87205         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
87206         warning on mingw.
87207
87208 2005-06-07  Derek Price  <derek@ximbiot.com>
87209
87210         Sync from CVS.
87211         * lib/glob_.h: Indent nested #ifdef.
87212
87213 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
87214
87215         Sync from coreutils.
87216         Use "file name" when talking about file names, instead of "filename"
87217         or "path", as per the GNU coding standards.
87218         * lib/mkdir-p.c: Renamed from makepath.c.
87219         (make_dir_parents): Renamed from make_path.  All callers changed.
87220         * lib/mkdir-p.h: Likewise.  All includers changed.
87221         * lib/filenamecat.c: Renamed from path-concat.c.
87222         (file_name_concat): Renamed from path_concat.  All callers changed.
87223         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
87224         * lib/filenamecat.h: Likewise.  All includers changed.
87225         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
87226         in comments or local variable names.
87227         * lib/basename.c: Likewise.
87228         * lib/canonicalize.c, canonicalize.h: Likewise.
87229         * lib/dirname.c, dirname.h: Likewise.
87230         * lib/euidaccess.c: Likewise.
87231         * lib/exclude.c: Likewise
87232         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
87233         * lib/fsusage.c, fsuage.h: Likewise.
87234         * lib/fts.c, fts_.h: Likewise.
87235         * lib/getcwd.c: Likewise.
87236         * lib/getloadavg.c: Likewise.
87237         * lib/mkstemp.c: Likewise.
87238         * lib/mountlist.c, mountlist.h: Likewise.
87239         * lib/openat.c, openat.h: Likewise.
87240         * lib/readlink-stub.c: Likewise.
87241         * lib/readutmp.c, readutmp.h: Likewise.
87242         * lib/rename.c: Likewise.
87243         * lib/rmdir.c: Likewise.
87244         * lib/same.c: Likewise.
87245         * lib/savedir.c: Likewise.
87246         * lib/stripslash.c: Likewise.
87247         * lib/tempname.c: Likewise.
87248         * lib/xreadlink.c: Likewise.
87249         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
87250         All uses changed.
87251         * lib/exclude.h: Likewise.
87252
87253         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
87254         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
87255         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
87256         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
87257         * lib/pathmax.h: Include <limits.h> unconditionally, since other
87258         files have been getting away with it for years (MORE/BSD 4.3
87259         is extinct now).
87260         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
87261         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
87262
87263         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
87264         Define to 256, not 255, as per modern POSIX.
87265
87266 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
87267
87268         Sync from coreutils.
87269         Use "file name" when talking about file names, instead of "filename"
87270         or "path", as per the GNU coding standards.
87271         * MODULES.html.sh: mkdir-p renamed from makepath.
87272         filenamecat renamed from path-concat.
87273         * modules/filenamecat: Renamed from modules/path-concat.
87274         (Files): filenamecat.h and filenamecat.c renamed from
87275         path-concat.h and path-concat.c.
87276         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
87277         (Include): filenamecat.h, not path-concat.h.
87278         * modules/mkdir-p: Renamed from modules/makepath.
87279         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
87280         makepath.c.
87281         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
87282         (Include): mkdir-p.h, not makepath.h.
87283
87284 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
87285
87286         Sync from coreutils.
87287         * m4/mkdir-p.m4: Renamed from makepath.m4.
87288         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
87289         Rename files from makepath.c to mkdir-p.c, and from
87290         makepath.h to mkdir-p.h.
87291         * m4/filenamecat.m4: Renamed from path-concat.m4.
87292         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
87293         Rename files from path-concat.c to filenamecat.c,
87294         and from path-concat.h to filenamecat.h.
87295         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
87296         "file name" in local variables or comments.
87297         * m4/rename.m4: Likewise.
87298
87299 2005-06-01  Bruno Haible  <bruno@clisp.org>
87300
87301         * modules/csharpexec: New file.
87302         * MODULES.html.sh (C#): New section.
87303
87304 2005-06-01  Bruno Haible  <bruno@clisp.org>
87305
87306         * m4/csharp.m4: New file, from GNU gettext.
87307         * m4/csharpexec.m4: New file, from GNU gettext.
87308
87309 2005-06-01  Bruno Haible  <bruno@clisp.org>
87310
87311         * lib/csharpexec.h: New file, from GNU gettext.
87312         * lib/csharpexec.c: New file, from GNU gettext.
87313         * lib/csharpexec.sh.in: New file, from GNU gettext.
87314
87315 2005-05-31  Derek Price  <derek@ximbiot.com>
87316             Paul Eggert  <eggert@cs.ucla.edu>
87317
87318         Sync from cvs.
87319         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
87320
87321 2005-05-31  Derek Price  <derek@ximbiot.com>
87322             Paul Eggert  <eggert@cs.ucla.edu>
87323
87324         Sync from cvs.
87325         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
87326
87327 2005-05-29  Derek Price  <derek@ximbiot.com>
87328
87329         * config/srclist.txt (glob_.h, glob.c): Add these files.
87330
87331 2005-05-29  Derek Price  <derek@ximbiot.com>
87332
87333         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
87334         * modules/glob: New file.
87335         * modules/getlogin_r: Add link to POSIX spec in description.
87336
87337 2005-05-29  Derek Price  <derek@ximbiot.com>
87338             Paul Eggert  <eggert@cs.ucla.edu>
87339
87340         * m4/glob.m4: New file.
87341
87342 2005-05-29  Derek Price  <derek@ximbiot.com>
87343             Paul Eggert  <eggert@cs.ucla.edu>
87344
87345         * lib/glob_.h, lib/glob.c: New files.
87346
87347 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
87348
87349         * modules/fts (Files): Remove m4/inttypes-pri.m4.
87350         * modules/fts-lgpl (Depends-on): Remove gettext.
87351
87352 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
87353
87354         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
87355         and don't require gt_INTTYPES_PRI.
87356
87357 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
87358
87359         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
87360
87361         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
87362         the configuration hassle isn't worth it.
87363         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
87364         (LONGEST_MODIFIER, PRIuMAX): Remove.
87365
87366 2005-05-27  Bruno Haible  <bruno@clisp.org>
87367
87368         * lib/getlogin_r.h: Remove second include of <stddef.h>.
87369
87370 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
87371
87372         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
87373         _POSIX_PTHREAD_SEMANTICS for Solaris.
87374
87375 2005-05-25  Derek Price  <derek@ximbiot.com>
87376
87377         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
87378
87379 2005-05-25  Derek Price  <derek@ximbiot.com>
87380             Paul Eggert  <eggert@cs.ucla.edu>
87381
87382         * modules/getlogin_r, m4/getlogin_r.m4: New files.
87383         * lib/getlogin_r.c, getlogin_r.h: New files.
87384
87385 2005-05-25  Bruno Haible  <bruno@clisp.org>
87386             Derek Price  <derek@ximbiot.com>
87387
87388         * lib/getlogin_r.h: Simplify API documentation.
87389
87390 2005-05-23  Derek Price  <derek@ximbiot.com>
87391
87392         * modules/minmax (Files): Add m4/minmax.m4.
87393         (configure.ac): Add gl_MINMAX.
87394
87395 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
87396
87397         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
87398         so that unistd-safer.h (GPL'ed code) need not be included.
87399
87400 2005-05-22  Bruno Haible  <bruno@clisp.org>
87401
87402         * m4/minmax.m4: New file.
87403         Based on a patch by Derek Price <derek@ximbiot.com>.
87404
87405 2005-05-22  Bruno Haible  <bruno@clisp.org>
87406
87407         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
87408         (INT64_MIN): Fix definition.
87409         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
87410
87411         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
87412         NEED_SIGNED_INT_TYPES.
87413
87414         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
87415         HAVE_SYSTEM_INTTYPES.
87416
87417 2005-05-22  Bruno Haible  <bruno@clisp.org>
87418
87419         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
87420         Also include <sys/param.h> if it defines MIN, MAX.
87421         Based on a patch by Derek Price <derek@ximbiot.com>.
87422
87423 2005-05-21  Jim Meyering  <jim@meyering.net>
87424
87425         * modules/fts (Files): Add m4/inttypes-pri.m4.
87426         (Depends-on): Add lstat and remove gettext.  Alphabetize.
87427
87428 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87429
87430         New fts module.
87431         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
87432         (setup_dir, free_dir): New functions.
87433         (enter_dir, leave_dir): Define trivial
87434         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
87435         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
87436         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
87437         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
87438         Move to fts-cycle.c.
87439         (fts_open): Use setup_dir.
87440         (fts_close): Use free_dir.
87441         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
87442         This adds a label and some gotos, but the alternatives were messier.
87443         Check for memory allocation failure when entering a dir.
87444         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
87445         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
87446         (FTS): New member fts_cycle, that is a union that contains the
87447         old active_dir_ht and cycle_state.  All uses changed to mention
87448         fts_cycle.ht and fts_cycle.state.
87449         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
87450         fts.c, with the following changes:
87451         (setup_dir, free_dir): New functions.
87452         (enter_dir): Now returns bool.  Return true if successful, false
87453         if memory exhausted.  All callers changed.
87454         Do not bother partly cleaning up on
87455         memory allocation failure; that is free_dir's job.
87456         However, free ad if hash_insert fails, to avoid memory leak.
87457         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
87458         fts->fts_options to see which union member to use.
87459
87460 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87461
87462         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
87463         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
87464
87465 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87466
87467         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
87468
87469 2005-05-20  Jim Meyering  <jim@meyering.net>
87470
87471         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
87472         Now a macro, to pacify GCC.
87473
87474 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
87475
87476         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
87477         of -1.
87478
87479 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
87480
87481         * lib/chown.c (rpl_chown): Return -1 on failure.
87482
87483 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
87484
87485         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
87486         Don't check for stddef.h.
87487         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
87488         don't use its results.
87489         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
87490         since we include them unconditionally.  Don't require
87491         AM_STDBOOL_H, since stdbool is a prerequisite.
87492         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
87493         since we assume C89 or better.
87494         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
87495         as we don't use their results.
87496         Don't check for fchdir, memmove, memset, strrchr, as we use
87497         them unconditionally.
87498         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
87499         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
87500
87501 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
87502
87503         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
87504         Include <stddef.h> unconditionally, since we assume C89 now.
87505         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
87506         * lib/fts.c: Include fts_.h first, to check interface.
87507         Do not include intprops.h; no longer needed.
87508         Include cycle-check.h and hash.h, since fts_.h no longer does.
87509         Remove unnecessary casts of closedir to void.
87510         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
87511         decide whether to decrement nlinks.
87512         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
87513         (FTS): Use struct hash_table * instead of Hash_table, so that
87514         we no longer need to include hash.h here.
87515
87516 2005-05-18  Jim Meyering  <jim@meyering.net>
87517
87518         * modules/dirfd (License): Change to LGPL.  Most of the code
87519         is already in the public domain.
87520
87521 2005-05-18  Jim Meyering  <jim@meyering.net>
87522
87523         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
87524         Reported by Yoann Vandoorselaere.
87525
87526 2005-05-17  Jim Meyering  <jim@meyering.net>
87527
87528         * m4/fts.m4: New file, from coreutils.
87529
87530 2005-05-17  Jim Meyering  <jim@meyering.net>
87531
87532         * lib/fts.c, lib/fts_.h: New files, from coreutils.
87533
87534 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
87535
87536         Sync from coreutils.
87537         * m4/unlinkdir.m4: New file.
87538
87539 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
87540
87541         Sync from coreutils.
87542         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
87543         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
87544         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
87545         White space changes only.
87546         * lib/makepath.c (make_path): Port to hosts where leading "//" is
87547         special.
87548         * lib/yesno.c: Include getline.h, not ctype.h.
87549         (yesno): Don't remove leading white space; POSIX doesn't allow it.
87550         Use getline to remove arbitrary restriction on response length.
87551
87552 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
87553
87554         * config/srclist-update: Spell out "Street" in FSF postal
87555         mail address; this is the style the FSF seems to prefer.
87556
87557         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
87558         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
87559         this updates FSF postal mail address.
87560
87561         Sync from coreutils.
87562         * modules/unlinkdir: New file.
87563         * modules/yesno (Depends-on): Add getline.
87564         * MODULES.html.sh (File system functions): Add unlinkdir.
87565
87566 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87567
87568         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
87569         lib/strsep.h:
87570         Change the initial comment to refer to GPL, not LGPL.
87571         gnulib-tool will change it to LGPL as needed.
87572
87573         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
87574         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
87575         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
87576         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
87577         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
87578         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
87579         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
87580         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
87581         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
87582         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
87583         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
87584         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
87585         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
87586         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
87587         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
87588         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
87589         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
87590         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
87591         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
87592         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
87593         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
87594         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
87595         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
87596         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
87597         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
87598         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
87599         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
87600         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
87601         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
87602         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
87603         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
87604         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
87605         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
87606         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
87607         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
87608         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
87609         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
87610         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
87611         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
87612         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
87613         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
87614         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
87615         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
87616         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
87617         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
87618         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
87619         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
87620         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
87621         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
87622         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
87623         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
87624         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
87625         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
87626         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
87627         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
87628         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
87629         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
87630         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
87631         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
87632         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
87633         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
87634         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
87635         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
87636         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
87637         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
87638         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
87639         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
87640         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
87641         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
87642         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
87643         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
87644         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
87645         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
87646         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
87647         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
87648         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
87649         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
87650         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
87651         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
87652         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
87653         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
87654         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
87655         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
87656         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
87657         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
87658         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
87659         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
87660         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
87661         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
87662         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
87663         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
87664         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
87665         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
87666         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
87667         lib/yesno.c, lib/yesno.h:
87668         Update FSF postal mail address.
87669
87670 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87671
87672         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
87673         tests/test-memmem.c, tests/test-stpncpy.c:
87674         Update FSF postal mail address.
87675
87676 2005-05-13  Bruno Haible  <bruno@clisp.org>
87677
87678         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
87679         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
87680         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
87681         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
87682         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
87683         Add support for 64-bit integers in the MSVC compiler.
87684
87685 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87686
87687         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
87688
87689 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
87690
87691         * gnulib-tool (func_import): Sort and uniquify recommended includes.
87692
87693 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
87694
87695         * doc/getdate.texi (General date syntax): Don't say that date
87696         date --iso-8601=ns generates acceptable dates; it doesn't yet.
87697         Problem reported by Nic Ferrier.
87698
87699 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87700
87701         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
87702         specified in ai_socktype. Fix invalid ai_protocol
87703         check. ai_protocol is usually set to 0 or depending on
87704         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
87705         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
87706         ai_socktype / ai_protocol in the returned addrinfo structure.
87707
87708 2005-05-10  Simon Josefsson  <jas@extundo.com>
87709
87710         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
87711         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
87712
87713 2005-05-10  Karl Berry  <karl@gnu.org>
87714
87715         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
87716         (from http://www.gnu.org/licenses).
87717         * doc/COPYING.LIB: also rename to COPYING.LESSER.
87718         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
87719         fdl.texi suffices.
87720
87721 2005-05-10  Karl Berry  <karl@gnu.org>
87722
87723         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
87724         (COPYING.DOC): remove.
87725
87726         * config/srclist-update: new FSF address.
87727
87728 2005-05-10  Derek Price  <derek@ximbiot.com>
87729
87730         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
87731         possible.
87732
87733 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87734             Bruno Haible  <bruno@clisp.org>
87735
87736         * modules/inet_ntop: New file.
87737         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87738         inet_ntop.
87739
87740 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87741             Bruno Haible  <bruno@clisp.org>
87742
87743         * m4/inet_ntop.m4: New file.
87744
87745 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87746             Bruno Haible  <bruno@clisp.org>
87747
87748         * lib/inet_ntop.h: New file.
87749         * lib/inet_ntop.c: New file, from glibc with modifications.
87750
87751 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
87752
87753         * modules/time_r (License): Change to LGPL.
87754         * modules/extensions (License): Change to LGPL.  Actually,
87755         the license is more permissive than that, but currently gnulib-tool
87756         doesn't know how to handle more-permissive licenses.
87757
87758         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
87759         Problem reported by Dave Love.
87760
87761 2005-05-08  Jim Meyering  <jim@meyering.net>
87762
87763         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
87764         blank.
87765
87766 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
87767
87768         * modules/argmatch (Depends-on): Add stdbool.
87769         * modules/backupfile (Depends-on): Likewise.
87770         * modules/chdir-long (Depends-on): Likewise.
87771         * modules/closeout (Depends-on): Likewise.
87772         * modules/cycle-check (Depends-on): Likewise.
87773         * modules/dirname (Depends-on): Likewise.
87774         * modules/fnmatch (Depends-on): Likewise.
87775         * modules/fsusage (Depends-on): Likewise.
87776         * modules/fwriteerror (Depends-on): Likewise.
87777         * modules/getcwd (Depends-on): Likewise.
87778         * modules/getloadavg (Depends-on): Likewise.
87779         * modules/hard-locale (Depends-on): Likewise.
87780         * modules/makepath (Depends-on): Likewise.
87781         * modules/mountlist (Depends-on): Likewise.
87782         * modules/nanosleep (Depends-on): Likewise.
87783         * modules/posixtm (Depends-on): Likewise.
87784         * modules/quotearg (Depends-on): Likewise.
87785         * modules/readtokens (Depends-on): Likewise.
87786         * modules/readtokens0 (Depends-on): Likewise.
87787         * modules/readutmp (Depends-on): Likewise.
87788         * modules/save-cwd (Depends-on): Likewise.
87789         * modules/strftime (Depends-on): Likewise.
87790         * modules/userspec (Depends-on): Likewise.
87791         * modules/utimecmp (Depends-on): Likewise.
87792         * modules/xgetcwd (Depends-on): Likewise.
87793         * modules/xnanosleep (Depends-on): Likewise.
87794         * modules/xstrtod (Depends-on): Likewise.
87795         * modules/yesno (Depends-on): Likewise.
87796
87797 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
87798
87799         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
87800         needless checks.
87801
87802 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87803
87804         Merge from coreutils.  Among other things,
87805         add bulletproofing for cases where stdin, stdout, or stderr are closed.
87806         * lib/fd-safer.c: New file.
87807         * lib/fcntl-safer.h, open-safer.c: Remove.
87808         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
87809         * lib/dup-safer.c: Include unistd-safer.h first.
87810         Don't include errno.h.
87811         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
87812         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
87813         * lib/file-type.c: Rely on file-type.h change.
87814         * lib/getloadavg.c: Include unistd-safer.h.
87815         (getloadavg): Use safer open.
87816         * lib/getusershell.c: Include "stdio-safer.h".
87817         (getusershell): Use safer fopen.
87818         * lib/long-options.c (long_options): Use NULL rather than 0.
87819         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
87820         'free'.
87821         * lib/modechange.c: Likewise.
87822         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
87823         (MODE_DONE): New constant.
87824         (struct mode_change): Remove 'next' member.
87825         (make_node_op_equals): New function; like the old one of the
87826         same name, except it allocates an array.
87827         (mode_compile, mode_create_from_ref): Use it.
87828         (mode_compile): Allocate result as an array, not a linked list.
87829         Parse octal string ourself, so that we catch mistakes like "+0".
87830         (mode_adjust): Arg is an array, not a linked list.
87831         * lib/modechange.c: Include stat-macros.h, xalloc.h.
87832         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
87833         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
87834         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
87835         Remove.  This is now stat-macros.h's job.
87836         (talloc): Remove.  All callers replaced by xalloc, so that
87837         our invokers don't have to worry about reporting memory failures.
87838         (make_node_op_equals): Remove.
87839         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
87840         New constants.
87841         (struct mode_change): Moved here from modechange.h.
87842         (mode_append_entry): Remove.
87843         (mode_compile): Remove MASKED_OPS arg, since it encouraged
87844         apps to have incorrect behavior.  Use simpler algorithm for head
87845         and tail.  Don't futz with umask; that's now the job of mode_adjust.
87846         Detect more invalid usages rather than having somewhat-random behavior.
87847         Don't insert an "a=" action, as that leads to incorrect behavior.
87848         (mode_compile, mode_create_from_ref): Return NULL on error instead
87849         of an enum, since now there's only one way to have an error.  All
87850         callers changed.
87851         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
87852         at the correct time.  Simplify calculation of "+u" and its ilk.
87853         Don't mishandle "+X".
87854         (mode_free): Remove "register" and localize decls.
87855         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
87856         (struct mode_change): Move to modechange.c; callers don't
87857         need to see this stuff.
87858         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
87859         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
87860         (mode_change, mode_adjust): Reflect the new signatures noted above.
87861         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
87862         that might redefine system include files.
87863         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
87864         (my_usleep): Use NULL rather than (void *) 0.
87865         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
87866         Use siginterrupt to specify that system calls should be interrupted.
87867         (rpl_nanosleep): Move initialization of suspended closer to call of
87868         my_usleep.
87869         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
87870         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
87871         (desirable_utmp_entry): New function.
87872         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
87873         using x2nrealloc, to simplify logic.
87874         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
87875         size calculation.  Do not assume utmp file is a regular file.
87876         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
87877         (READ_UTMP_CHECK_PIDS): New constant.
87878         * lib/save-cwd.c: Include unistd-safer.h.
87879         (save_cwd): Use fd_safer.
87880         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
87881         [!_LIBC] Include "stat-macros.h" instead.
87882         * lib/unistd-safer.h (fd_safer): New decl.
87883
87884 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87885
87886         * modules/getloadavg (Depends-on): Add unistd-safer.
87887         * modules/getusershell (Depends-on): Add stdio-safer.
87888         * modules/lstat (Depends-on): Remove xalloc.
87889         * modules/mkstemp (Depends-on): Add stat-macros.
87890         * modules/modechange (Depends-on): Remove xstrtol.
87891         Add stat-macros, xalloc.
87892         * modules/save-cwd (Depends-on): Add unistd-safer.
87893         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
87894         * modules/unistd-safer (Files): Add lib/fd-safer.c
87895         (Makefile.am): Remove lib_SOURCES.
87896
87897         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
87898         Remove fcntl-safer; unistd-safer supersedes it.
87899
87900 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87901
87902         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
87903         AC_HEADER_STAT.
87904         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
87905         (gl_PREREQ_CHOWN): Remove.
87906         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
87907         it.  Don't require AC_HEADER_STAT.
87908         (gl_PREREQ_LSTAT): Remove.
87909         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
87910         Don't require AC_HEADER_STAT.
87911         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
87912         (gl_PREREQ_RMDIR): Remove.
87913         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
87914         mention stat-macros.h or AC_HEADER_STAT, since we'll make
87915         the stat-macros module a prerequisite.
87916         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
87917         * m4/filemode.m4 (gl_FILEMODE): Likewise.
87918         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
87919         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
87920         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
87921         variable names.
87922         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
87923         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
87924         variable prefixes.
87925         * m4/fcntl-safer.m4: Remove.
87926         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
87927         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
87928         Invoke gl_PREREQ_FD_SAFER.
87929         (gl_PREREQ_FD_SAFER): New macro.
87930         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
87931         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
87932         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
87933         Remove duplicate call to AC_LIBOBJ(readutmp).
87934         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
87935
87936         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
87937         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
87938
87939 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87940
87941         * MODULES.html.sh (Misc): Add byteswap.
87942
87943 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87944
87945         * modules/getcwd (Depends-on): Add extensions.
87946         * modules/openat (Depends-on): Likewise.
87947
87948 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87949
87950         * modules/byteswap: New file.
87951
87952 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87953
87954         * m4/byteswap.m4: New file.
87955
87956 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87957
87958         * lib/byteswap_.h: New file.
87959
87960 2005-04-25  Karl Berry  <karl@gnu.org>
87961
87962         * m4/gettext.m4: Update from GNU gettext 0.14.4.
87963
87964 2005-04-25  Albert Chin  <china@thewrittenword.com>
87965
87966         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
87967         Toolkit C bug.
87968
87969 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
87970
87971         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
87972         (func_ln_if_changed): Remove forcibly for no error message
87973         in case file does not exist.
87974
87975 2005-04-19  Simon Josefsson  <jas@extundo.com>
87976
87977         * gnulib-tool (Options): Make --symlink mean --symbolic.
87978
87979 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
87980
87981         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
87982
87983 2005-04-16  Simon Josefsson  <jas@extundo.com>
87984
87985         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
87986
87987 2005-04-15  Simon Josefsson  <jas@extundo.com>
87988
87989         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
87990
87991 2005-04-15  Simon Josefsson  <jas@extundo.com>
87992
87993         * gnulib-tool: Rename --symlink to --symbolic.
87994
87995 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
87996
87997         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
87998         symbolic links to files instead of copying/moving.  Add --aux-dir,
87999         specifying directory relative --dir where auxiliary build tools
88000         are placed.
88001
88002 2005-04-14  Bruno Haible  <bruno@clisp.org>
88003
88004         * modules/allocsa (License): Change to LGPL.
88005         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
88006
88007 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
88008
88009         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
88010         that "UTC +1 second" continues to work.  Problem reported
88011         by Dmitry V. Levin.
88012         (relunit_snumber): New rule.
88013         (relunit): Use it.
88014
88015 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
88016
88017         * lib/getdate.y (universal_time_zone_table): New constant.
88018         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
88019         universal_time_zone_table.
88020         (lookup_zone): Prefer universal_time_zone_table to
88021         local_time_zone_table, so that "GMT" time stamps are allowed in
88022         London during the summer.  Problem reported by Ian Abbott.
88023
88024 2005-04-12  Jim Meyering  <jim@meyering.net>
88025
88026         * lib/human.c (humblock): Set *options even when returning due to
88027         xstrtoumax conversion failure.  Thanks to a used-uninitialized
88028         warning from gcc-4.
88029
88030 2005-04-09  Jim Meyering  <jim@meyering.net>
88031
88032         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
88033         -Wuninitialized: initialize tm0.tm_year.
88034
88035 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
88036
88037         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
88038         count, since there's no maximum.  All uses changed.
88039         Add member dsts_seen.
88040         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
88041         not being INT_MAX.
88042         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
88043         Use pc_rels_seen to decide whether a date is absolute.
88044
88045         * lib/getdate.y (number): Don't overwrite year.
88046         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
88047         check.
88048
88049 2005-04-02  Simon Josefsson  <jas@extundo.com>
88050
88051         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
88052         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
88053
88054 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
88055
88056         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
88057         where no absolute path name can be longer than PATH_MAX.
88058
88059 2005-03-27  Jim Meyering  <jim@meyering.net>
88060
88061         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
88062
88063 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
88064
88065         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
88066         "one's complement" -> "ones' complement" in comment, as per Knuth.
88067         "value of type" -> "type or expression" in comment.
88068         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
88069
88070 2005-03-26  Jim Meyering  <jim@meyering.net>
88071
88072         Comment nits.
88073         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
88074         Correct typos: s/or/of/.
88075
88076 2005-03-26  Jim Meyering  <jim@meyering.net>
88077
88078         * modules/check-include-files: Move to ../ and rename to...
88079         * check-module: ...this.
88080
88081 2005-03-25  Jim Meyering  <jim@meyering.net>
88082
88083         * modules/xvasprintf (Files): Add xalloc.h.
88084
88085 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
88086
88087         * modules/gettext (Files): config/config.rpath ->
88088         build-aux/config.rpath
88089         * modules/iconv (Files): Likewise.
88090         Problem reported by Oskar Liljeblad.
88091
88092 2005-03-23  Jim Meyering  <jim@meyering.net>
88093
88094         * modules/check-include-files: New script to check for
88095         missing dependencies, multiple includes, etc.
88096
88097         * modules/c-strtold (Depends-on): Add xalloc.
88098         * modules/c-strtod (Depends-on): Add xalloc.
88099         * modules/hash (Depends-on): Add xalloc.
88100         (Files): Remove lib/xalloc.h.
88101
88102         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
88103         * modules/userspec (Files): Add lib/inttostr.h.
88104
88105 2005-03-23  Jim Meyering  <jim@meyering.net>
88106
88107         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
88108
88109 2005-03-22  Jim Meyering  <jim@meyering.net>
88110
88111         * modules/stat-macros: New module.
88112         * modules/canonicalize, modules/euidaccess, modules/file-type,
88113         * modules/filemode, modules/lchown, modules/makepath,
88114         * modules/rmdir, modules/stat: Depend on new stat-macros module
88115         rather than listing lib/stat-macros.h manually.
88116         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
88117
88118 2005-03-22  Jim Meyering  <jim@meyering.net>
88119
88120         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
88121
88122 2005-03-22  Bruno Haible  <bruno@clisp.org>
88123
88124         * config/srclist.txt: Replace target directory 'config' with
88125         'build-aux'.
88126         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
88127         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
88128         ../build-aux/.
88129
88130 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
88131
88132         * modules/chdir-long (Depends-on): Add mempcpy.
88133
88134         * modules/acl, modules/backupfile, modules/c-strtod,
88135         modules/c-strtold, modules/canon-host, modules/canonicalize,
88136         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
88137         modules/exclude, modules/exitfail, modules/file-type,
88138         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
88139         modules/getdate, modules/getline, modules/getpagesize,
88140         modules/getpass, modules/getugroups, modules/group-member,
88141         modules/hard-locale, modules/hash, modules/human, modules/idcache,
88142         modules/inttostr, modules/long-options, modules/makepath,
88143         modules/md5, modules/memcasecmp, modules/memcoll,
88144         modules/modechange, modules/mountlist, modules/path-concat,
88145         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
88146         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
88147         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
88148         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
88149         modules/strftime, modules/strndup, modules/strverscmp,
88150         modules/timespec, modules/unlocked-io, modules/userspec,
88151         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
88152         modules/yesno:
88153         Remove lib_SOURCES line from Makefile.am section, as this is now
88154         done automatically by the corresponding Autoconf macro.
88155
88156 2005-03-21  Jim Meyering  <jim@meyering.net>
88157
88158         Changes imported from coreutils.
88159
88160         * lib/cycle-check.c: Don't include xalloc.h.
88161
88162         * lib/path-concat.c: Don't include assert.h.
88163         (path_concat): Remove assertion that would have triggered
88164         for ABASE starting with more than one slash.
88165         Reported by Andreas Schwab.
88166
88167         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
88168         properly when ABASE is an absolute file name.
88169         Correct the description of this function.
88170         Include <assert.h>.
88171         Add an assertion and a test driver.
88172         This fixes a bug introduced on 2004-07-02.
88173         Andreas Schwab reported the resulting failure of cp --parents:
88174         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
88175
88176 2005-03-21  Jim Meyering  <jim@meyering.net>
88177
88178         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
88179         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
88180
88181 2005-03-21  Jim Meyering  <jim@meyering.net>
88182         and  Paul Eggert  <eggert@cs.ucla.edu>
88183
88184         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
88185         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
88186         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
88187         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
88188         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
88189         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
88190         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
88191         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
88192         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
88193         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
88194         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
88195         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
88196         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
88197         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
88198         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
88199         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
88200         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
88201         for these modules.
88202
88203 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
88204
88205         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
88206         (which shouldn't happen), generate nothing instead of returning 0
88207         immediately, so that nstrftime (NULL, ...) doesn't return 0.
88208
88209 2005-03-16  Bruno Haible  <bruno@clisp.org>
88210
88211         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
88212         HAVE_LONGLONG_64BIT.
88213
88214 2005-03-16  Bruno Haible  <bruno@clisp.org>
88215
88216         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
88217         HAVE_LONGLONG_64BIT.
88218
88219 2005-03-16  Bruno Haible  <bruno@clisp.org>
88220
88221         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
88222         HAVE_LONGLONG_64BIT.
88223
88224 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
88225
88226         * lib/strftime.c (my_strftime): Prepend space to format so that we can
88227         reliably distinguish strftime failure from empty output on POSIX
88228         hosts.
88229
88230 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
88231
88232         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
88233         (iconv_string): Don't guess a size-zero buffer, as that might cause
88234         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
88235         result would be 'too large', where 'too large' is (heuristically)
88236         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
88237         overflow concerns.  This will prevent some unwanted malloc failures
88238         when the inputs are very large.
88239
88240 2005-03-15  Karl Berry  <karl@gnu.org>
88241
88242         * config/srclist.txt (config.rpath): from gettext.
88243         * config/config.rpath: update.
88244
88245 2005-03-15  Bruno Haible  <bruno@clisp.org>
88246
88247         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
88248         to 'negate'.
88249
88250         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
88251         variable.
88252
88253         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
88254         results.
88255
88256 2005-03-14  Simon Josefsson  <jas@extundo.com>
88257
88258         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
88259         <fx@gnu.org>.
88260
88261 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
88262
88263         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
88264         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
88265         intprops.h.
88266         * lib/strtol.c: Likewise.
88267
88268 2005-03-14  Jim Meyering  <jim@meyering.net>
88269
88270         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
88271         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
88272         to be nonzero so that we (and caller) can detect the difference
88273         between a valid zero-length expansion and an error return, even
88274         when the underlying strftime fails before writing anything into
88275         that location.
88276
88277 2005-03-14  Bruno Haible  <bruno@clisp.org>
88278
88279         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
88280         Update from GNU gettext 0.14.3.
88281
88282 2005-03-10  Jim Meyering  <jim@meyering.net>
88283
88284         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
88285
88286 2005-03-10  Jim Meyering  <jim@meyering.net>
88287
88288         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
88289         so that this module works on systems without fchdir.
88290
88291 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
88292
88293         Factor int-properties macros into a single file, except for
88294         glibc-related files.
88295         * lib/intprops.h: New file.
88296         * lib/getloadavg.c: Include it instead of limits.h.
88297         (INT_STRLEN_BOUND): Remove.
88298         * lib/human.c: Include intprops.h.
88299         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
88300         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
88301         302/1000.
88302         * lib/inttostr.h: Include intprops.h instead of limits.h.
88303         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
88304         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
88305         for consistency with intprops.h.
88306         (time_t_is_integer, twos_complement_arithmetic): Use them.
88307         * lib/sig2str.h: Include <signal.h>, intprops.h.
88308         (INT_STRLEN_BOUND): Remove.
88309         * lib/strftime.c (TYPE_SIGNED): Remove.
88310         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
88311         * lib/strtol.c: Adjust comments to match intprops.h.
88312         * lib/userspec.c: Include intprops.h.
88313         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
88314         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
88315         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
88316         instead of rolling our own expressions.
88317         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
88318
88319         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
88320         instead of int.
88321         (my_strftime): Do not mishandle years close to INT_MAX, by doing
88322         the right thing even if adding 1900 would overflow.  Similarly
88323         for tm_mon + 1 and tm_yday + 1.
88324         Make %Y always equivalent to %C%y, and similarly for %G and %g.
88325         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
88326         (DO_SIGNED_NUMBER): New macro.
88327         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
88328
88329 2005-03-07  Bruno Haible  <bruno@clisp.org>
88330
88331         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
88332
88333 2005-03-07  Bruno Haible  <bruno@clisp.org>
88334
88335         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
88336
88337 2005-03-04  Derek R. Price  <derek@ximbiot.com>
88338
88339         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
88340         (func_import): Only replace files via --import when they have actually
88341         changed.
88342
88343 2005-03-03  Derek R. Price  <derek@ximbiot.com>
88344
88345         * m4/mmap-anon.m4: New file.
88346         * m4/pagealign_alloc.m4: New file.
88347
88348 2005-03-03  Derek R. Price  <derek@ximbiot.com>
88349             Bruno Haible  <bruno@clisp.org>
88350
88351         * modules/pagealign_alloc: New file.
88352         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
88353
88354 2005-03-03  Derek R. Price  <derek@ximbiot.com>
88355             Bruno Haible  <bruno@clisp.org>
88356
88357         * lib/pagealign_alloc.h: New file.
88358         * lib/pagealign_alloc.c: New file.
88359
88360 2005-03-03  Bruno Haible  <bruno@clisp.org>
88361
88362         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
88363         Use an all-permissive copyright notice, recommended by RMS.
88364
88365 2005-03-02  Bruno Haible  <bruno@clisp.org>
88366
88367         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
88368         of AIX, the replacement has to be done only after <string.h> is
88369         included, therefore not in config.h. stpncpy.h does the replacement,
88370         and stpncpy.c uses it.
88371
88372 2005-03-02  Bruno Haible  <bruno@clisp.org>
88373
88374         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
88375         stpncpy.c uses it.
88376
88377 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
88378
88379         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
88380         The workaround isn't strictly needed for POSIX conformance, and
88381         it's too much of a pain to configure and maintain.  We'll ask
88382         people to fix their kernels instead.
88383         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
88384         (NANOSLEEP_BUG_WORKAROUND): Remove.
88385         (xnanosleep): Remove the workaround.
88386
88387 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
88388
88389         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
88390         Reported by Derek Price.
88391         (Include): Add "timespec.h".
88392
88393         * modules/xnanosleep (Depends-on): Remove gethrxtime.
88394
88395 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
88396
88397         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
88398         to detect nanosleep bug.
88399
88400 2005-03-01  Bruno Haible  <bruno@clisp.org>
88401
88402         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
88403
88404 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
88405
88406         * modules/gethrxtime: New file.
88407         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
88408         (Depends-on): Add gethrxtime.
88409         (configure.ac): Add gl_XNANOSLEEP.
88410         (Makefile.am): Remove lib_SOURCES line.
88411
88412 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
88413
88414         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
88415         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
88416
88417 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
88418
88419         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
88420         * lib/timespec.h (gettime): Return void, since it always
88421         succeeds now.  All uses changed.
88422         * lib/gettime.c (gettime): Likewise.
88423         [HAVE_NANOTIME]: Prefer nanotime.
88424         Assume gettimeofday succeeds, as POSIX requires.
88425         Assime time () succeeds, since other code already does.
88426         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
88427         (timespec_subtract): Remove.
88428         (NANOSLEEP_BUG_WORKAROUND): New constant.
88429         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
88430         things considerably.  Use it only on GNU/Linux hosts, since the
88431         workaround shouldn't be needed elsewhere.
88432
88433 2005-02-24  Bruno Haible  <bruno@clisp.org>
88434
88435         * modules/gettext (Files): Add m4/glibc2.m4.
88436
88437 2005-02-24  Bruno Haible  <bruno@clisp.org>
88438
88439         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
88440         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
88441         * m4/progtest.m4:
88442         Update from GNU gettext 0.14.2.
88443         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
88444
88445 2005-02-24  Bruno Haible  <bruno@clisp.org>
88446
88447         * lib/localcharset.c: Update from GNU gettext 0.14.2.
88448         * lib/config.charset: Update from GNU gettext 0.14.2.
88449
88450 2005-02-24  Bruno Haible  <bruno@clisp.org>
88451
88452         * lib/gettext.h: Update from GNU gettext 0.14.2.
88453
88454 2005-02-23  Simon Josefsson  <jas@extundo.com>
88455
88456         * m4/iconvme.m4: New file.
88457
88458 2005-02-23  Jim Meyering  <jim@meyering.net>
88459
88460         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
88461         change.
88462         Thanks to Bruno Haible for catching it.
88463
88464 2005-02-22  Simon Josefsson  <jas@extundo.com>
88465
88466         * modules/iconvme: New file.
88467
88468         * MODULES.html.sh: Add iconvme.
88469
88470 2005-02-22  Simon Josefsson  <jas@extundo.com>
88471
88472         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
88473
88474 2005-02-22  Simon Josefsson  <jas@extundo.com>
88475
88476         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
88477
88478 2005-02-22  Jim Meyering  <jim@meyering.net>
88479
88480         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
88481         s/ifndef/ifdef/.
88482
88483 2005-02-20  Neil Conway  <neilc@samurai.com>
88484
88485         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
88486         returned by OSX/Darwin if the specified buffer is not large
88487         enough for the hostname.
88488
88489 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88490
88491         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
88492         pass it to _help, otherwise the latter coredumps trying to
88493         dereference state.root_argp.
88494
88495 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
88496
88497         * modules/chdir-long (Depends-on): Add memrchr.
88498         * modules/memrchr (Files): Add lib/memrchr.h.
88499         (Include): "memrchr.h".
88500
88501 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
88502
88503         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
88504
88505 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
88506
88507         * lib/memrchr.h: New file.
88508         * lib/chdir-long.c: Include it.
88509         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
88510         Don't bother including stddef.h.
88511
88512 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
88513
88514         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
88515         inclusion.
88516         Include <sys/types.h>, for dev_t.
88517         (ME_DUMMY, ME_REMOTE): Move from here....
88518         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
88519         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
88520         Dmitry V. Levin.
88521         Include mountlist.h first, to test the interface.
88522
88523 2005-01-29  Bruno Haible  <bruno@clisp.org>
88524
88525         * lib/progname.c (program_name): Initialize.
88526         Needed when linking statically on MacOS X.
88527
88528 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
88529
88530         Sync from coreutils.
88531         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
88532         (Depends-on): Add c-strtod.
88533         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
88534
88535 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
88536
88537         Sync from coreutils.
88538         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
88539
88540         Remove files that are specific to coreutils.
88541         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
88542
88543 2005-01-28  Bruno Haible  <bruno@clisp.org>
88544
88545         * modules/javacomp: New file.
88546         * MODULES.html.sh (Java): Add javacomp.
88547
88548 2005-01-28  Bruno Haible  <bruno@clisp.org>
88549
88550         * m4/javacomp.m4: New file, from GNU gettext.
88551
88552 2005-01-28  Bruno Haible  <bruno@clisp.org>
88553
88554         * lib/javacomp.sh.in: New file, from GNU gettext.
88555         * lib/javacomp.h: New file, from GNU gettext.
88556         * lib/javacomp.c: New file, from GNU gettext.
88557
88558 2005-01-26  Simon Josefsson  <jas@extundo.com>
88559
88560         * lib/gai_strerror.c: Use GPL in header.
88561
88562 2005-01-26  Bruno Haible  <bruno@clisp.org>
88563
88564         * modules/javaexec: New file.
88565         * MODULES.html.sh (Java): Add javaexec.
88566
88567 2005-01-26  Bruno Haible  <bruno@clisp.org>
88568
88569         * m4/javaexec.m4: New file, from GNU gettext.
88570
88571 2005-01-26  Bruno Haible  <bruno@clisp.org>
88572
88573         * lib/javaexec.sh.in: New file, from GNU gettext.
88574         * lib/javaexec.h: New file, from GNU gettext.
88575         * lib/javaexec.c: New file, from GNU gettext.
88576
88577 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88578
88579         * modules/lchown (Depends-on): Remove lchown.h
88580
88581 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88582
88583         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
88584         must be defined if the header file was not found, in order
88585         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
88586
88587 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88588
88589         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
88590         initializers for struct pentry_state.
88591         (__argp_error): Check return value of __asprintf
88592         (__argp_failure): Translate error message
88593
88594         * lib/argp-parse.c: Removed braces around the expansion of N_()
88595
88596 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
88597
88598         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
88599         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
88600         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
88601         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
88602         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
88603         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
88604         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
88605         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
88606         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
88607         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
88608         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
88609         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
88610         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
88611         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
88612         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
88613         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
88614         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
88615         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
88616         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
88617         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
88618         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
88619         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
88620         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
88621         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
88622         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
88623         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
88624         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
88625         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
88626         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
88627         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
88628         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
88629         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
88630         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
88631         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
88632         xstrtol.m4, xstrtoumax.m4, yesno.m4:
88633         Use an all-permissive copyright notice, recommended by RMS.
88634
88635 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
88636
88637         * modules/chdir-long (Depends-on): Remove mempcpy.
88638
88639 2005-01-21  Jim Meyering  <jim@meyering.net>
88640
88641         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
88642         same value as for Solaris 9.
88643
88644         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
88645         component length.  This included changing the parameter to be
88646         of type `char *' rather than `char const *'.
88647         * lib/chdir-long.h (chdir_long): Update prototype.
88648
88649         * lib/openat.c (fdopendir, fstatat): New functions.
88650         * lib/openat.h: Include headers required for use of DIR and struct
88651         stat.
88652         [AT_SYMLINK_NOFOLLOW]: Define.
88653         (fdopendir, fstatat): Add prototypes.
88654
88655 2005-01-21  Bruno Haible  <bruno@clisp.org>
88656
88657         * modules/classpath: New file.
88658         * MODULES.html.sh (Java): Add classpath.
88659
88660 2005-01-21  Bruno Haible  <bruno@clisp.org>
88661
88662         * lib/classpath.h: New file, from GNU gettext.
88663         * lib/classpath.c: New file, from GNU gettext.
88664
88665 2005-01-20  Simon Josefsson  <jas@extundo.com>
88666
88667         * modules/version-etc-fsf: New file.
88668
88669 2005-01-20  Simon Josefsson  <jas@extundo.com>
88670
88671         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
88672         * lib/version-etc.c: Remove version_etc_copyright.
88673         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
88674         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
88675
88676 2005-01-20  Simon Josefsson  <jas@extundo.com>
88677
88678         * lib/base64.h (isbase64): Add.
88679
88680         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
88681         using a unsigned prototype, don't inline.
88682         (base64_decode): Use it.
88683
88684 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
88685
88686         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
88687         it.
88688
88689 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
88690
88691         * lib/save-cwd.c (save_cwd): Remove code to support the case
88692         where fchdir is missing or flaky.
88693
88694 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
88695
88696         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
88697
88698 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
88699
88700         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
88701         AC_LIBSOURCES now does this.
88702         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
88703         with new ullong_max module.
88704
88705 2005-01-19  Bruno Haible  <bruno@clisp.org>
88706
88707         * modules/sh-quote: New file.
88708         * MODULES.html.sh (Executing programs): Add sh-quote.
88709
88710 2005-01-19  Bruno Haible  <bruno@clisp.org>
88711
88712         * lib/sh-quote.h: New file, from GNU gettext.
88713         * lib/sh-quote.c: New file, from GNU gettext.
88714
88715 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
88716
88717         Merge from coreutils.
88718         * m4/ullong_max.m4: New file.
88719         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
88720         (gl_MACROS): Assume localeconv exists.
88721
88722 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
88723
88724         Merge changes from coreutils, as described below in several
88725         changelogs dated today.
88726
88727         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
88728         (O_DIRECTORY): Remove; not needed here, since "." must be
88729         a directory.  All uses removed.
88730         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
88731         universal on Suns, and we also need to test for IRIX.
88732         Revamp code to use 'if' rather than '#if'.
88733         Avoid unnecessary comparison of cwd->desc to 0.
88734
88735         * lib/utimens.c (futimens): Robustify the previous patch, by checking
88736         for known valid error numbers rather than observed invalid ones.
88737
88738 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
88739
88740         * modules/ullong_max: New file.
88741
88742         * modules/chdir-long, modules/openat: New files.
88743         * modules/save-cwd (Depends-on): Depend on chdir-long.
88744         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
88745
88746 2005-01-18  Jim Meyering  <jim@meyering.net>
88747
88748         Merge from coreutils.
88749         * m4/chdir-long.m4, m4/openat.m4: New files.
88750         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
88751         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
88752         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
88753         is sane and DOES follow symlinks.  Besides, testing 20 different
88754         systems found no broken chown implementations.
88755         Prompted by a change in rsync's copy of this macro.
88756         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
88757
88758         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
88759
88760         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
88761         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
88762         NULL-means-set-to-current-time semantics.
88763         Remove temporary file immediately, rather than waiting
88764         for configure's at-exit trap code to do it.
88765
88766 2005-01-18  Jim Meyering  <jim@meyering.net>
88767
88768         * lib/version-etc.c (version_etc_copyright): Update copyright date.
88769
88770         * lib/utimens.c (futimens): Account for the fact that futimes
88771         can also fail with errno == ENOSYS or errno == ENOENT.
88772         Patch from Dmitry V. Levin.
88773
88774         Change the name of the robust chdir function from chdir to chdir_long.
88775         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
88776         (restore_cwd): Use chdir_long, not chdir.
88777         * lib/chdir-long.c: Renamed from chdir.c.
88778         * lib/chdir-long.h: Renamed from chdir.h.
88779         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
88780         Hurd.
88781
88782 2005-01-18  Bruno Haible  <bruno@clisp.org>
88783
88784         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
88785         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
88786         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
88787         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
88788         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
88789         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
88790         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
88791         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
88792         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
88793         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
88794         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
88795         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
88796         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
88797         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
88798         Use an all-permissive copyright notice, recommended by RMS.
88799
88800 2005-01-18  Bob Proulx  <bob@proulx.com>
88801
88802         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
88803         simplify offsetof() macro construct to avoid compile failure with
88804         native HP-UX 11.0 ANSI C compiler.
88805
88806 2005-01-17  Bruno Haible  <bruno@clisp.org>
88807
88808         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
88809         redundant because stpncpy.m4 takes care of it.
88810
88811 2005-01-17  Bruno Haible  <bruno@clisp.org>
88812
88813         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
88814
88815 2005-01-17  Bruno Haible  <bruno@clisp.org>
88816
88817         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
88818         used.
88819
88820 2005-01-17  Bruno Haible  <bruno@clisp.org>
88821
88822         * lib/fwriteerror.h (fwriteerror): Change specification to include
88823         fclose.
88824         * lib/fwriteerror.c: Include <stdbool.h>.
88825         (fwriteerror): At the end, close the file stream. Record whether
88826         stdout was already closed.
88827
88828 2005-01-17  Bruno Haible  <bruno@clisp.org>
88829
88830         * lib/execute.c (environ): Declare if needed.
88831         * lib/pipe.c (environ): Likewise.
88832         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
88833
88834 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88835
88836         * modules/argp: Depend on vsnprintf
88837
88838 2005-01-10  Jim Meyering  <jim@meyering.net>
88839
88840         * modules/closeout (Depends-on): Add atexit.
88841
88842 2005-01-06  Bruno Haible  <bruno@clisp.org>
88843
88844         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
88845
88846 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
88847
88848         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
88849         definitions to be after all include files, to avoid collisions.
88850         Problem reported by Bob Proulx.
88851
88852 2005-01-04  Jim Meyering  <jim@meyering.net>
88853
88854         Changes imported from coreutils.
88855         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
88856         as the mkstemp template, use a temporary directory and an
88857         8.3-friendly template to avoid trouble on systems like DJGPP.
88858         Reported by Juan M. Guerrero via Stepan Kasal.
88859         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
88860         close. Remove the temporary directory right away, rather than waiting
88861         for configure's at-exit trap code to do it.
88862         Suggestion from Stepan Kasal.
88863
88864 2005-01-01  Simon Josefsson  <jas@extundo.com>
88865
88866         * gnulib-tool: Print #include directives when --import'ing.
88867
88868 2004-12-28  Simon Josefsson  <jas@extundo.com>
88869
88870         * tests/test-base64.c: Include required header files.  Remove
88871         unused variables.
88872
88873 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
88874
88875         * modules/error (Depends-on): Remove gettext.
88876
88877 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
88878
88879         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
88880         not needed.  This removes a dependency on the gettext module.
88881         [defined _LIBC]: Do not include <libintl.h>; not needed.
88882
88883 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
88884
88885         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
88886         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
88887
88888 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
88889
88890         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
88891         HAVE_DECL_STRTOLD.
88892
88893 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
88894
88895         * modules/getdate (Depends-on): Remove alloca-opt.
88896
88897 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
88898
88899         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
88900
88901 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
88902
88903         * lib/argp-parse.c: Include <stddef.h>.
88904         (alignof, alignto): New macros.
88905         (parser_init): Don't assume that void * is aligned sufficiently
88906         for struct option.
88907
88908         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
88909         need to extend the stack.
88910         (YYINITDEPTH): New macro, so that the initial stack isn't overly
88911         large.
88912
88913 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88914
88915         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
88916
88917 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
88918
88919         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
88920         (2004-10-24) change.  Apparently this was a false alarm.
88921
88922         * modules/getdate: Depend on alloca-opt, not alloca.
88923
88924 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
88925
88926         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
88927         Remove now-obsolete comment about AIX.
88928         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
88929         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
88930         (YYMAXDEPTH): New macro.
88931
88932 2004-12-18  Simon Josefsson  <jas@extundo.com>
88933
88934         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
88935
88936 2004-12-18  Bruno Haible  <bruno@clisp.org>
88937
88938         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
88939
88940 2004-12-18  Bruno Haible  <bruno@clisp.org>
88941
88942         * lib/fatal-signal.c (fatal_signals): Make non-const.
88943         (init_fatal_signals): New function.
88944         (uninstall_handlers, install_handlers): Ignore signals that were set to
88945         SIG_IGN.
88946         (at_fatal_signal): Call init_fatal_signals.
88947         (init_fatal_signal_set): Likewise. Ignore signals that were set to
88948         SIG_IGN.
88949         Reported by Paul Eggert.
88950
88951 2004-12-18  Bruno Haible  <bruno@clisp.org>
88952
88953         * doc/alloca.texi: New file.
88954         * doc/alloca-opt.texi: New file.
88955
88956 2004-12-17  Jim Meyering  <jim@meyering.net>
88957
88958         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
88959         Otherwise, install-sh could exit with improper exit status when
88960         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
88961
88962 2004-12-16  Simon Josefsson  <jas@extundo.com>
88963
88964         * tests/test-base64.c: Add license.
88965
88966 2004-12-15  Stepan Kasal  <address@hidden>
88967
88968         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
88969
88970 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
88971
88972         * modules/getcwd (Files): Add m4/d-ino.m4.
88973         Suggested by Mark D. Baushke.
88974
88975 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
88976
88977         * lib/getdate.y (textint): New member "negative".
88978         (time_zone_hhmm): New function.
88979         Expect 14 shift-reduce conflicts, not 13.
88980         (o_colon_minutes): New rule.
88981         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
88982         (yylex): Set the "negative" member of signed numbers.
88983
88984 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
88985
88986         * doc/getdate.texi (Time of day items, Time zone items):
88987         Describe new formats +00:00, UTC+00:00.
88988
88989 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
88990
88991         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
88992         spurious "-l"s.  Problem reported by Stepan Kasal.
88993
88994 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
88995
88996         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
88997         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
88998
88999 2004-12-04  Simon Josefsson  <jas@extundo.com>
89000
89001         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
89002         Vandoorselaere <yoann@prelude-ids.org>.
89003
89004 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
89005
89006         Changes imported from coreutils.
89007         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
89008         exist.
89009         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
89010
89011 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
89012
89013         Changes imported from coreutils.
89014         * lib/hard-locale.c: Assume <locale.h> exists.
89015         Include "strdup.h".
89016         (GLIBC_VERSION): New macro.
89017         (hard_locale): Assume setlocale exists.
89018         Rewrite to avoid #ifdef.
89019         Use strdup rather than malloc + strcpy.
89020         * lib/human.c: Assume <locale.h> exists.
89021         (human_readable): Assume localeconv exists.
89022
89023 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
89024
89025         * modules/hard-locale (Depends-on): Add strdup.
89026
89027 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
89028
89029         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
89030         convert T2, not T.  (Imported from libc.)
89031
89032 2004-11-30  Simon Josefsson  <jas@extundo.com>
89033
89034         * modules/restrict (License): Change to LGPL.
89035
89036 2004-11-30  Simon Josefsson  <jas@extundo.com>
89037
89038         * m4/restrict.m4: Add copyright and copying conditions.
89039
89040 2004-11-30  Simon Josefsson  <jas@extundo.com>
89041
89042         * m4/base64.m4: New file.
89043
89044 2004-11-30  Simon Josefsson  <jas@extundo.com>
89045
89046         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
89047         base64.
89048
89049         * tests/test-base64.c: New file.
89050
89051         * modules/base64: New file.
89052
89053 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
89054
89055         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
89056         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
89057
89058         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
89059
89060 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
89061
89062         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
89063         (__getcwd.c): Don't restore errno; glibc doesn't.
89064         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
89065         first, falling back to our code only if its results look suspicious.
89066         Ensure that the resulting buffer is only as large as necessary.
89067
89068         * lib/readutmp.c: Include readutmp.h first.
89069         Include <errno.h>, since readutmp.h no longer does that.
89070         * lib/readutmp.h: Don't include <errno.h>,
89071         <sys/param.h>, <time.h>; not needed to establish interface.
89072         (errno): Remove decl.
89073         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
89074         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
89075         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
89076
89077 2004-11-28  Simon Josefsson  <jas@extundo.com>
89078
89079         * lib/base64.h, base64.c: New file.
89080
89081 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
89082
89083         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
89084
89085 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
89086
89087         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
89088         (Depends-on): Remove pathmax, same.  Add mempcpy.
89089         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
89090         (Makefile.am): Append getcwd.h to lib_SOURCES.
89091         (Include): Add getcwd.h.
89092         (Maintainer): Change from Jim Meyering to "all, glibc",
89093         since getdate now uses intended-for-glibc code.
89094         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
89095         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
89096
89097 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
89098
89099         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
89100         HP's ANSI C compiler.
89101         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
89102         Declaring int functions causes warnings on some modern systems and
89103         shouldn't be needed to compile on ancient ones.
89104         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
89105         defined.
89106
89107         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
89108         with the following changes.
89109         (__set_errno): Parenthesize properly.
89110         Include <stdbool.h>.
89111         (MIN, MAX, MATCHING_INO): New macros.
89112         (__getcwd): Define with prototype, not K&R form.
89113         Use heuristics to allocate default buffer on stack if possible.
89114         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
89115         behavior, and to avoid the PATH_MAX limit when computing
89116         ../../../../...
89117         Use MATCHING_INO to compare inode number to file.
89118         Check for arithmetic overflow in size calculations.
89119         Fix bug in reallocation of dot array that caused getcwd to fail
89120         on directories nested deeper than 75.
89121         Be more careful about saving errno on error.
89122         Do not use realloc; use only free+malloc, as this is a bit
89123         more flexible and avoids a needless copy operation.
89124         Do not inspect st_dev and st_ino for symbolic links; POSIX
89125         doesn't specify the latter.
89126         Check for closedir errors.
89127         Avoid needless casts.
89128         Use "#ifdef weak_alias" around weak_alias, to be like other
89129         glibc code.
89130         The following changes to getcwd.c have effect only when used in
89131         gnulib; they have no effect inside glibc proper.
89132         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
89133         as alloca isn't used.
89134         (alloca, __alloca): Likewise.
89135         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
89136         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
89137         unconditionally, as gnulib assumes C89 or better.
89138         Do not include <sys/param.h>.
89139         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
89140         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
89141         better.
89142         (NULL) [!defined NULL]: Remove; we assume C89 or better.
89143         Include <dirent.h> in a way that is compatible with modern Autoconf.
89144         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
89145         New macros, if not already defined.
89146         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
89147         Use "_LIBC", not "defined _LIBC", for consistency.
89148         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
89149         a mempcpy module.
89150         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
89151         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
89152         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
89153         credit only to Jim Meyering and adjust the copyright dates.
89154         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
89155         <stdlib.h>, <unistd.h>, "pathmax.h".
89156         Instead, include "xgetcwd.h" (first) and "getcwd.h".
89157         (INITIAL_BUFFER_SIZE): Remove.
89158         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
89159
89160 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
89161
89162         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
89163         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
89164         Use the _ONCE methods, for efficiency.
89165         Check for fcntl.h.  In test program, include <errno.h>
89166         and <fcntl.h> if available.  Remove old K&R cruft from
89167         test program.  Check for common errors in GNU/Linux,
89168         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
89169         don't do AC_LIBOBJ, as that's getcwd.m4's job.
89170         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
89171         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
89172         name accordingly.
89173         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
89174         accommodate new getcwd.c.
89175         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
89176         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
89177         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
89178         that's all we need now.
89179
89180 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89181
89182         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
89183         argp-parse.c depends on getopt internals, that means we should
89184         always use our getopt, to be on the safe side.
89185         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
89186         order not to spoil the result of an eventual previous invocation
89187         of gl_GETOPT_SUBSTITUTE.
89188
89189 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89190
89191         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
89192         redefinition warnings. To avoid them, include the defines
89193         in `#if !defined __need_getopt ... #endif'. The only place
89194         where __getopt_argv_const is used is in definitions
89195         of getopt_long and getopt_long_only below, which are as well
89196         protected by `#ifndef __need_getopt'.
89197         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
89198         __need_getopt after including <stdio.h> and <unistd.h> These
89199         headers might have defined it.
89200
89201 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
89202
89203         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
89204
89205 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
89206
89207         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
89208         (futimens): New function, which uses futimes if available.
89209         (futimens, utimens): Support timespec==NULL, with same semantics
89210         as utime and utimens.
89211         * lib/utimens.h (futimens): New decl.
89212
89213 2004-11-23  Jim Meyering  <jim@meyering.net>
89214
89215         * lib/getopt_.h: Remove trailing blanks.
89216
89217 2004-11-23  Jim Meyering  <jim@meyering.net>
89218
89219         * lib/__fpending.c: Add comment.
89220
89221 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
89222
89223         * modules/canonicalize (Depends-on): Add xreadlink.
89224         Problem reported by James Youngman.
89225
89226 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
89227
89228         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
89229         New macros.
89230         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
89231         optopt): Use them instead of invoking ## directly; otherwise, the
89232         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
89233
89234 2004-11-19  Bruno Haible  <bruno@clisp.org>
89235
89236         * lib/strtok_r.c: Move comments from here...
89237         * lib/strtok_r.h: ... to here.
89238
89239 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
89240
89241         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
89242         implementations that mishandle size_t overflow.
89243
89244 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
89245
89246         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
89247         might fail.  Problem reported by Yoann Vandoorselaere.
89248         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
89249         implementations that mishandle size_t overflow.
89250
89251 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89252
89253         * modules/canon-host (Depends-on): Add strdup.
89254
89255 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89256
89257         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
89258
89259 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89260
89261         * lib/canon-host.c: Include "strdup.h".
89262         (canon_host): Use getaddrinfo if available, so that IPv6 works.
89263         Use strdup instead of malloc/strcpy to duplicate strings.
89264
89265         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
89266         (human_space_before_unit): New constant.
89267         * lib/human.c (human_readable): Support it.
89268
89269         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
89270         (xgetcwd): Set errno correctly when failing.
89271         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
89272         the failure is actually due to a PATH_MAX problem.
89273
89274         Further getopt changes to make it more likely that glibc will
89275         buy the changes back.
89276         * lib/getopt.c (POSIXLY_CORRECT): New constant.
89277         (getopt): Use it, so to preserve glibc semantic
89278         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
89279         when compiling for libc.
89280         * lib/getopt_.h (__getopt_argv_const): Bring it back.
89281         (getopt_long, getopt_long_only): Use it.
89282
89283         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
89284         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
89285         (getopt): Argv is now char * const *, as per standard.
89286         (_getopt_internal_r, _getopt_internal): Argv is now char **,
89287         not char *__getopt_argv_const *.
89288         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
89289         _getopt_long_only_r): Likewise.
89290         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
89291         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
89292         _getopt_long_r, _getopt_long_only_r): Likewise.
89293         * lib/getopt_.h (__getopt_argv_const): Remove.
89294         (getopt): Argv is now char * const *, as per standard.
89295
89296         * lib/getdate.y (tORDINAL): New token.
89297         (day, relunit): Allow it for relative times.
89298         (relative_time_table): Use tORDINAL for ordinals.
89299
89300 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89301
89302         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
89303         Document that "second" isn't allowed as an ordinal number.
89304
89305 2004-11-16  Jim Meyering  <jim@meyering.net>
89306
89307         * modules/closeout (Depends-on): Add fpending.
89308
89309 2004-11-15  Jim Meyering  <jim@meyering.net>
89310
89311         * lib/closeout.c: Include "__fpending.h" once again.
89312         Include <stdbool.h>.
89313         (close_stdout): Don't fail just because stdout was closed initially,
89314         since some programs don't write to stdout in the normal course of
89315         operation (other than --version and --help), and we don't want this
89316         function to make e.g. `touch file >&-' fail.
89317         But do fail if it was closed and someone has tried to write to it.
89318         E.g., `printf foo >&-' must fail.
89319
89320 2004-11-13  Jim Meyering  <jim@meyering.net>
89321
89322         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
89323
89324 2004-11-12  Simon Josefsson  <jas@extundo.com>
89325
89326         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
89327         small doc fix is still pending.
89328
89329 2004-11-11  Simon Josefsson  <jas@extundo.com>
89330
89331         * modules/strtok_r: New file.
89332
89333         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89334         strtok_r.
89335
89336 2004-11-11  Simon Josefsson  <jas@extundo.com>
89337
89338         * m4/strtok_r.m4: New file.
89339
89340         * m4/getopt.m4: Replace opterr.
89341
89342 2004-11-11  Simon Josefsson  <jas@extundo.com>
89343
89344         * lib/strtok_r.h, strtok_r.c: New file.
89345
89346 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
89347
89348         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
89349         of replacing opterr, getopt, etc.  This should handle the
89350         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
89351
89352 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
89353
89354         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
89355         we can stop lying to compilers about the constness of argv when we
89356         are compiled outside glibc.
89357         (getopt, getopt_long, getopt_long_only): Use it.
89358         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
89359         _getopt_internal, getopt): Likewise.
89360         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
89361         _getopt_long_only_r): Likewise.
89362         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
89363         _getopt_long_r, _getopt_long_only_r): Likewise.
89364
89365         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
89366         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
89367         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
89368         the other external symbols.
89369         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
89370         declaration, since the above renaming now works around collisions.
89371
89372 2004-11-11  Jim Meyering  <jim@meyering.net>
89373
89374         * lib/linebreak.c: Remove trailing blanks.
89375         * lib/alloca_.h: Likewise.
89376         * lib/acosl.c: Likewise.
89377         * lib/euidaccess.c: Likewise.
89378         * lib/allocsa.h: Likewise.
89379
89380 2004-11-10  Simon Josefsson  <jas@extundo.com>
89381
89382         * m4/getaddrinfo.m4: New file.
89383
89384 2004-11-10  Simon Josefsson  <jas@extundo.com>
89385
89386         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
89387
89388 2004-11-10  Simon Josefsson  <jas@extundo.com>
89389
89390         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89391         getaddrinfo.
89392
89393         * modules/getaddrinfo: New file.
89394
89395 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
89396
89397         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
89398
89399 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
89400
89401         * lib/mktime.c (SHR): New macro, which is a portable
89402         substitute for >> that should work even on Crays.
89403         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
89404         Problem reported by Mark D. Baushke in
89405         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
89406         * lib/getdate.y (SHR): Likewise.
89407         (tm_diff): Use it.
89408         * lib/strftime.c (SHR): Likewise.
89409         (tm_diff): Use it.
89410         * lib/quotearg.c (struct quoting_options): Use unsigned int for
89411         quote_these_too, so that right shifts are well defined.  All uses
89412         changed.
89413
89414 2004-11-10  Jim Meyering  <jim@meyering.net>
89415
89416         Ensure that no close failure goes unreported.
89417         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
89418         return early when it seems there's nothing to flush.
89419         Don't include __fpending.h.
89420
89421 2004-11-10  Jim Meyering  <jim@meyering.net>
89422
89423         * modules/closeout (Depends-on): Remove fpending.
89424
89425 2004-11-10  Jim Meyering  <jim@meyering.net>
89426
89427         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
89428
89429 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
89430
89431         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
89432         gl_FUNC_STRFTIME.
89433         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
89434         and AC_REQUIRE when possible, to avoid duplicate checks.
89435         Check for <wchar.h>.
89436
89437 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
89438
89439         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
89440
89441 2004-11-09  Bruno Haible  <bruno@clisp.org>
89442
89443         * m4/sockpfaf.m4: New file.
89444
89445 2004-11-05  Bruno Haible  <bruno@clisp.org>
89446
89447         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
89448         Reported by Mark D. Baushke <mdb@cvshome.org>.
89449
89450 2004-11-04  Bruno Haible  <bruno@clisp.org>
89451
89452         2004-09-11  Bruno Haible  <bruno@clisp.org>
89453                 * allocsa.valgrind: New file.
89454         2004-02-06  Bruno Haible  <bruno@clisp.org>
89455                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
89456                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
89457                 Reported by Christopher Seip <chris.seip@hp.com>.
89458
89459 2004-11-04  Bruno Haible  <bruno@clisp.org>
89460
89461         * modules/allocsa (Files): Add lib/allocsa.valgrind.
89462         (Makefile.am): Distribute it.
89463
89464 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
89465
89466         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
89467         with errno == ERANGE if the buffer is too small.
89468         Problem reported by Mark D. Baushke.
89469
89470 2004-11-03  Albert Chin  <china@thewrittenword.com>
89471             Paul Eggert  <eggert@cs.ucla.edu>
89472
89473         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
89474         equivalent, substitute $ac_type for equivalent type rather than
89475         blindly using uint32_t *always* which won't work if uint32_t is not
89476         available.  Define _UINT32_T to work around typedef of uint32_t if
89477         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
89478         2.5.1.
89479
89480 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
89481
89482         * m4/jm-macros.m4: Sync from coreutils.
89483         (gl_MACROS): Check for mbrlen, for pathchk.
89484         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
89485
89486 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
89487
89488         * lib/xreadlink.c (MAXSIZE): New macro.
89489         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
89490         size does not exceed MAXSIZE.  Avoid cast.
89491         As suggested by Mark D. Baushke in
89492         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
89493         if readlink fails with buffer size just under MAXSIZE, try again
89494         with MAXSIZE.
89495
89496 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
89497
89498         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
89499
89500 2004-11-02  Derek R. Price  <derek@ximbiot.com>
89501         and  Paul Eggert  <eggert@cs.ucla.edu>
89502
89503         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
89504         (get_date): Overparenthesize to avoid GCC warning.
89505
89506 2004-11-02  Bruno Haible  <bruno@clisp.org>
89507
89508         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
89509         returns void.
89510
89511 2004-11-02  Bruno Haible  <bruno@clisp.org>
89512
89513         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
89514         function returns void.
89515
89516 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
89517
89518         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
89519         fflush_unlocked, flockfile, funlockfile, funlockfile,
89520         fputs_unlocked, putc_unlocked.
89521
89522 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
89523
89524         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
89525         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
89526         already declared.
89527
89528 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
89529
89530         * modules/getdate (Files): Add doc/getdate.texi.
89531         (Depends-on): Add setenv, xalloc.
89532
89533 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
89534
89535         * lib/getdate.y: Add support for TZ="foo" within a date string.
89536         Fix some bugs near time_t boundaries.  Reject dates with
89537         out-of-range components, e.g., "Sept 31".
89538         Include <stdlib.h>, "setenv.h", "xalloc.h".
89539         (ISDIGIT_LOCALE): Remove; unused.
89540         Note that the TZ and time functions used here are not reentrant.
89541         (mktime_ok, get_tz): New functions.
89542         (TZBUFSIZE): New constant.
89543         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
89544         This requires that we sometimes generate our own TZ="XXX..." setting.
89545
89546 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
89547
89548         * doc/getdate.texi: New file, from coreutils with modifications for
89549         the new TZ parsing.
89550
89551 2004-10-27  Derek R. Price  <derek@ximbiot.com>
89552
89553         * lib/mktime.c (not_equal_tm): Remove redundant check.
89554
89555 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
89556
89557         * modules/regex (lib_SOURCES): Add regex.c.
89558         Reported by James Youngman in
89559         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
89560
89561 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
89562
89563         * lib/getdate.y: Use Bison 1.875 features, and some minor
89564         code cleanups.  This change does not affect semantics.
89565         Don't include <stdlib.h>; no longer needed.
89566         Don't include unlocked-io.h; only the "#if TEST" code uses
89567         stdio, and performance isn't crucial there.
89568         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
89569         Bison 1.875 features as described below.
89570         All uses of "PC." replaced by "pc->".
89571         (YYSTYPE): Add a forward declaration.
89572         (yylex, yyerror): Use full prototypes in forward decls.
89573         Use "%pure-parser" rather than obsolescent "%pure_parser".
89574         Use %parse-param and %lex-param instead of obsolescent
89575         YYPARSE_PARAM and YYLEX_PARAM.
89576         (meridian_table, month_and_day_table, time_units_table,
89577         relative_time_table, time_zone_table, military_table,
89578         lookup_zone, lookup_word, get_date):
89579         Use NULL instead of 0 where appropriate.
89580         (to_hour): Avoid abort (), to avoid a dependency on
89581         stdlib.h.
89582         (yyerror, yylex): Now accepts parser_control * arg.
89583         (main) [TEST]: Use '\0' rather than 0 for char.
89584
89585 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
89586
89587         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
89588
89589 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
89590
89591         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
89592         It's now the caller's responsibility to handle the case where
89593         !HAVE_GETPAGESIZE && !defined getpagesize.
89594
89595         * lib/mktime.c (leapyear): Arg is long int, not int.
89596
89597 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
89598
89599         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
89600
89601 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
89602
89603         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
89604         missing.  Problem reported by James Youngman.
89605
89606 2004-10-16  Simon Josefsson  <jas@extundo.com>
89607
89608         * gnulib-tool: Fix comments.  Fix parse problem.
89609         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
89610
89611 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
89612
89613         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
89614         implementation of getopt_long.  Problem reported by Alexander Taler in:
89615         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
89616
89617 2004-10-15  Bruno Haible  <bruno@clisp.org>
89618
89619         * gnulib-tool: Untabify. Initialize supplied_libname.
89620         (func_usage): More homogenous output.
89621         (func_modules_transitive_closure, func_modules_to_filelist,
89622         func_emit_lib_Makefile_am): New functions.
89623         (func_import): New function, extracted from big case statement. Use
89624         func_get_license, func_modules_transitive_closure,
89625         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
89626         opt_lgpl. Don't use test -a, as it's not portable.
89627         (func_create_testdir): Use func_modules_transitive_closure,
89628         func_modules_to_filelist, func_emit_lib_Makefile_am.
89629
89630 2004-10-15  Bruno Haible  <bruno@clisp.org>
89631
89632         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
89633
89634 2004-10-15  Bruno Haible  <bruno@clisp.org>
89635
89636         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
89637         the portions belonging to each module.
89638         Suggested by Derek Robert Price <derek@ximbiot.com>.
89639
89640 2004-10-12  Simon Josefsson  <jas@extundo.com>
89641
89642         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
89643         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
89644         to real functions.
89645
89646 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89647
89648         * modules/vsnprintf: New file.
89649
89650 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89651
89652         * m4/vsnprintf.m4: New file.
89653
89654 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89655
89656         * lib/vsnprintf.h: New file.
89657         * lib/vsnprintf.c: New file.
89658
89659 2004-10-11  Bruno Haible  <bruno@clisp.org>
89660
89661         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
89662         vsnprintf.
89663
89664 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
89665
89666         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
89667
89668 2004-10-07  Bruno Haible  <bruno@clisp.org>
89669
89670         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
89671         fits into the provided buffer.
89672
89673 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
89674
89675         * lib/diacrit.c, diacrit.h: Add GPL notice.
89676
89677         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
89678         notice.
89679         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
89680         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
89681         This avoids a potential constant-folding bug.
89682
89683 2004-10-05  Bruno Haible  <bruno@clisp.org>
89684
89685         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
89686         for the declaration of strsep.
89687
89688 2004-10-05  Bruno Haible  <bruno@clisp.org>
89689
89690         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
89691
89692 2004-10-04  Simon Josefsson  <jas@extundo.com>
89693
89694         * modules/memmem: New file.
89695         * tests/test-memmem.c: New file.
89696         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
89697
89698 2004-10-04  Simon Josefsson  <jas@extundo.com>
89699
89700         * m4/memmem.m4: New file.
89701
89702 2004-10-04  Simon Josefsson  <jas@extundo.com>
89703
89704         * lib/memmem.h: New file.
89705         * lib/memmem.c: New file, taken from glibc.
89706
89707 2004-10-04  Simon Josefsson  <jas@extundo.com>
89708
89709         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
89710         '#ifdef USE_UNLOCKED_IO'.
89711
89712 2004-10-04  Simon Josefsson  <jas@extundo.com>
89713
89714         * config/srclist.txt: Add memmem from glibc.
89715
89716 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89717
89718         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
89719
89720         * modules/argmatch, modules/argp, modules/closeout, modules/error,
89721         modules/exclude, modules/getdate, modules/getline,
89722         modules/getndelim2, modules/getpass, modules/getpass-gnu,
89723         modules/getusershell, modules/linebuffer, modules/md5,
89724         modules/mountlist, modules/posixtm, modules/readtokens,
89725         modules/readutmp, modules/regex, modules/sha1,
89726         modules/version-etc, modules/yesno:
89727         Remove dependency on unlocked-io.
89728
89729 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89730
89731         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
89732
89733         * m4/unlocked-io.m4: Add copyright notice.
89734         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
89735
89736 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89737
89738         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
89739         * lib/xmalloc.c (xmemdup): Likewise.
89740         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
89741         XFREE): Remove these long-obsolescent macros.
89742         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
89743         * lib/xstrdup.c: Remove.
89744
89745         * lib/regex.c (re_comp): Cast gettext return value to char *,
89746         Problem reported by Martin Neitzel via Mark D. Baushke.
89747
89748 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89749
89750         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
89751         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
89752         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
89753         regex.c, sha1.c, version-etc.c, yesno.c:
89754         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
89755         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
89756         the includer's responsibility.
89757
89758         Sync from coreutils.
89759
89760         * lib/modechange.c (mode_compile): Don't decrement a pointer that
89761         points to the start of a string, as the C Standard says the
89762         resulting behavior is undefined.
89763
89764         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
89765         simple -> simple_backups, numbered_existing ->
89766         numbered_existing_backups, numbered -> numbered_backups
89767         to avoid shadowing problems.  All uses changed.
89768         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
89769         * lib/backupfile.c (check_extension, numbered_backup):
89770         Rename locals to avoid shadowing 'basename'.
89771         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
89772         once.
89773
89774         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
89775         * lib/.cvsignore: Add getopt.h.
89776
89777 2004-10-04  Bruno Haible  <bruno@clisp.org>
89778
89779         * modules/README: New file.
89780         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
89781         not a module.
89782
89783 2004-10-02  Jim Meyering  <jim@meyering.net>
89784
89785         * lib/dirfd.h, getpagesize.h: Add copyright notice.
89786
89787 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89788
89789         * modules/strsep: New file.
89790
89791 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89792
89793         * m4/strsep.m4: New file.
89794
89795 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89796
89797         * lib/strsep.h: New file.
89798         * lib/strsep.c: New file.
89799
89800 2004-10-01  Simon Josefsson  <jas@extundo.com>
89801
89802         * lib/snprintf.c (snprintf): Handle size==0.
89803
89804 2004-10-01  Simon Josefsson  <jas@extundo.com>
89805             Bruno Haible  <bruno@clisp.org>
89806
89807         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
89808         (snprintf): Declare 'args'.
89809
89810 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
89811
89812         * lib/snprintf.c: Remove comments as to why each header is needed.
89813
89814 2004-10-01  Bruno Haible  <bruno@clisp.org>
89815
89816         * MODULES.html.sh: Add strsep.
89817
89818 2004-09-30  Simon Josefsson  <jas@extundo.com>
89819
89820         * modules/snprintf: New file.
89821
89822 2004-09-30  Simon Josefsson  <jas@extundo.com>
89823
89824         * m4/snprintf.m4: New file.
89825
89826 2004-09-30  Simon Josefsson  <jas@extundo.com>
89827
89828         * lib/snprintf.h, lib/snprintf.c: New files.
89829
89830 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89831
89832         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
89833         (hol_entry_help): Never translate an empty string.
89834         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
89835         * lib/argp.h (OPTION_NO_TRANS): New option.
89836
89837 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
89838
89839         * modules/argp (Maintainer): Replace Simon Josefsson
89840         by Sergey Poznyakoff.
89841
89842 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
89843
89844         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
89845         changes merged back into glibc.
89846
89847 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
89848
89849         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
89850
89851 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
89852
89853         * lib/xvasprintf.c: Include xalloc.h.
89854         (xvasprintf): Use xalloc_die, not xmalloc_die.
89855
89856 2004-09-29  Bruno Haible  <bruno@clisp.org>
89857
89858         * modules/alloca-opt: New file, derived from modules/alloca.
89859         * modules/allocsa: Depend on alloca-opt instead of alloca.
89860         * modules/setenv: Likewise.
89861         * modules/vasnprintf: Likewise.
89862         * MODULES.html.sh: Add alloca-opt.
89863
89864 2004-09-28  Simon Josefsson  <jas@extundo.com>
89865
89866         * gnulib-tool: New parameter --lgpl, to asseert that modules are
89867         LGPL, and to replace license template from GPL to LGPL.
89868
89869 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
89870
89871         * modules/dummy: Change license to LGPL.
89872
89873 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
89874
89875         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
89876
89877 2004-09-24  Simon Josefsson  <jas@extundo.com>
89878
89879         * modules/minmax (License): Change from GPL to LGPL.
89880
89881 2004-09-23  Simon Josefsson  <jas@extundo.com>
89882
89883         * gnulib-tool (--import): Typo.
89884
89885 2004-09-23  Simon Josefsson  <jas@extundo.com>
89886
89887         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
89888
89889 2004-09-22  Bruno Haible  <bruno@clisp.org>
89890
89891         * modules/*: Add 'License' field.
89892         * gnulib-tool: Accept --extract-license option.
89893         (func_get_license): New function.
89894
89895 2004-09-21  Bruno Haible  <bruno@clisp.org>
89896
89897         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
89898         Reported by Simon Josefsson.
89899
89900 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
89901
89902         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
89903         gl_AC_TYPE_LONG_LONG.
89904
89905 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
89906
89907         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
89908
89909 2004-09-18  Simon Josefsson  <jas@extundo.com>
89910         and  Paul Eggert  <eggert@cs.ucla.edu>
89911
89912         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
89913         calls with autoreconf.  Define GL_LIB.
89914
89915 2004-09-14  Karl Berry  <karl@gnu.org>
89916
89917         * config/srclist.txt: unsync setenv.c, sigh.
89918
89919 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
89920
89921         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
89922         Problem reported by Bruno Haible in:
89923         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
89924
89925 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
89926
89927         * config/srclist.txt: Comment out argp-pvh.c.
89928
89929 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
89930
89931         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
89932         in case some system header has #define'd it.  Problem reported by
89933         Soeren D. Schulze in
89934         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
89935
89936 2004-09-09  Karl Berry  <karl@gnu.org>
89937
89938         * regex.[ch]: delete from the root.  These were supposed to be
89939                 synced with emacs cvs, but this has not happened for about
89940                 a year, and anyway nothing else uses emacs regex.[ch].
89941                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
89942                 lib/regex[.ch] is untouched.
89943
89944 2004-09-09  Bruno Haible  <bruno@clisp.org>
89945
89946         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
89947
89948 2004-09-09  Bruno Haible  <bruno@clisp.org>
89949
89950         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
89951         modifications.
89952         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
89953
89954 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
89955
89956         * modules/xvasprintf: New file.
89957         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
89958
89959 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
89960
89961         * lib/xvasprintf.h: New file.
89962         * lib/xvasprintf.c: New file.
89963         * lib/xasprintf.c: New file.
89964
89965 2004-09-08  Bruno Haible  <bruno@clisp.org>
89966
89967         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
89968
89969 2004-09-08  Bruno Haible  <bruno@clisp.org>
89970
89971         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
89972         length is > INT_MAX.
89973         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
89974         more.
89975
89976 2004-09-08  Bruno Haible  <bruno@clisp.org>
89977
89978         * lib/stdint_.h: New file, taken from GNU clisp.
89979
89980 2004-09-08  Bruno Haible  <bruno@clisp.org>
89981             Oskar Liljeblad  <oskar@osk.mine.nu>
89982
89983         * modules/stdint: New file.
89984         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
89985
89986 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
89987
89988         Import from coreutils.
89989         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
89990         strings on unbounded length.  alloca's performance benefits aren't
89991         that important here.
89992         (V_STRDUP): Remove.
89993         (parse_with_separator): New function, with most of the internals
89994         of the old parse_user_spec.  Allow user to omit both user and group,
89995         for compatibility with FreeBSD.
89996         Clone only the user name, not the entire spec.
89997         Do not set *uid, *gid unless entirely successful.
89998         Avoid memory leak in some failing cases.
89999         Fix regression for USER.GROUP reported by Dmitry V. Levin in
90000         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
90001         (parse_user_spec): Rewrite to use parse_with_separator.
90002
90003 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90004
90005         * modules/userspec: Don't depend on alloca.
90006
90007 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90008
90009         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
90010
90011 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
90012
90013         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
90014         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
90015         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
90016
90017 2004-08-16  Simon Josefsson  <jas@extundo.com>
90018
90019         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
90020         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
90021         Add --dry-run for --import.
90022         Let user provided command line parameters override configure.ac
90023         settings.
90024
90025 2004-08-12  Simon Josefsson  <jas@extundo.com>
90026
90027         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
90028         as discussed with Paul Eggert in threads rooted at
90029         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
90030         and
90031         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
90032         Before, the test was empty, and relied on ELIDE_CODE in source
90033         code.)
90034         (gl_PREREQ_GETOPT): New macro.
90035         (gl_GETOPT): Use them.
90036
90037 2004-08-12  Simon Josefsson  <jas@extundo.com>
90038
90039         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
90040         * lib/getopt_.h: Renamed from getopt.h.
90041
90042 2004-08-12  Simon Josefsson  <jas@extundo.com>
90043
90044         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
90045         Change default library name from libfoo to libgnu.
90046         Now, if you have a configure.ac that says:
90047                 gl_SOURCE_BASE(gl)
90048                 gl_M4_BASE(gl/m4)
90049                 gl_MODULES(error getopt etcetera)
90050                 gl_INIT
90051         you can import all you need by running:
90052                 ../gnulib/gnulib-tool --import
90053
90054         * modules/getopt (Files): Rename getopt.h to getopt_.h.
90055         (Makefile.am): Rewrite, use logic from argz.
90056         (Include): Use <getopt.h> instead of "getopt.h".
90057
90058 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90059
90060         * modules/argp (Files): Add m4/unlocked-io.m4.
90061         (Depends-on): Add extensions.
90062
90063 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90064
90065         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
90066         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
90067         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
90068         Check for program_invocation_name, program_invocation_short_name,
90069         flockfile, funlockfile, features.h, _getopt_long_only_r.
90070
90071 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90072
90073         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
90074         its complicated substitute.
90075         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
90076         and program_invocation_name.
90077         (__argp_basename) [!_LIBC]: Remove; the only use was
90078         replaced by its body.
90079         (__argp_short_program_name): Change condition from
90080         !defined __argp_short_program_name to
90081         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
90082         to match argp-namefrob.h.
90083         (__argp_failure): Don't assume strerror_r returns char *.
90084         * lib/argp-parse.c (N_): Define unconditionally.
90085         (argp_default_options): Fill out initializers with 0 to avoid
90086         gcc warnings.
90087
90088 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90089
90090         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
90091         getopt1.c.
90092
90093 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90094
90095         Merge from coreutils.
90096
90097         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
90098
90099         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
90100         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
90101
90102 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90103
90104         Merge from coreutils.
90105
90106         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
90107         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
90108         for Reliant Unix 5.43.
90109
90110         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
90111         (union fooround): Use uintmax_t, not long int.
90112         The rest is a merge from libc:
90113         [defined _LIBC]: Include <shlib-compat.h>.
90114         (_obstack) [defined _LIBC]: Remove after 2.3.4.
90115
90116         * lib/settime.c (settime): Recode to avoid warning with
90117         Sun Forte C 6U2.
90118
90119         * lib/strverscmp.c: Convert to UTF-8.
90120
90121 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90122
90123         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
90124         m4/uintmax_t.m4.
90125
90126 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90127
90128         * modules/xalloc-die: New file.
90129         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
90130
90131         * modules/md5 (Files): Add m4/uint32_t.m4.
90132         * modules/sha1: Renamed from modules/sha.
90133         (Files):
90134         Rename lib/sha.h to lib/sha1.h.
90135         Rename lib/sha.c to lib/sha1.c.
90136         Rename m4/sha.m4 to m4/sha1.m4.
90137         (lib_SOURCES): Likewise.
90138         (configure.ac): Rename gl_SHA to gl_SHA1.
90139         (Include): sha.h -> sha1.h.
90140
90141 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90142
90143         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
90144         * m4/sha1.m4: Renamed from sha.m4.
90145         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
90146
90147 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90148
90149         * lib/obstack.h (obstack_empty_p):
90150         Don't assume that chunk->contents is suitably aligned.
90151         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
90152         Likewise. Problem reported by Benno in
90153         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
90154
90155         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
90156         readable.  This could be improved further but it'd take some work.
90157
90158 2004-08-08  Simon Josefsson  <jas@extundo.com>
90159
90160         * modules/xgethostname (Depends-on): Remove exit and error (not
90161         used).
90162
90163         * modules/getpass-gnu: Add getpass.h.
90164         (Depends-on): Add stdbool.
90165         * modules/getpass: Add getpass.h.
90166
90167 2004-08-08  Simon Josefsson  <jas@extundo.com>
90168
90169         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
90170         Check getpass declaration.
90171
90172 2004-08-08  Simon Josefsson  <jas@extundo.com>
90173
90174         * lib/xgethostname.c: Don't include error.h (not used).
90175
90176         * lib/getpass.h: Add.
90177         * lib/getpass.c: Include getpass.h first.
90178
90179 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
90180
90181         * lib/xalloc-die.c: New file.
90182         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
90183         All uses removed.
90184         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
90185         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
90186         xalloc-die.c.
90187         (_, N_, xalloc_die): Move to xalloc-die.c.
90188         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
90189         so that we needn't mess with xalloc_msg_memory_exhausted.
90190
90191         * lib/sha1.h: Renamed from sha.h.
90192         (SHA1_H): Renamed from _SHA_H.
90193         (sha1_ctx): Renamed from sha_ctx.
90194         (sha1_init_ctx): Renamed from sha_init_ctx.
90195         (sha1_process_block): Renamed from sha_process_block.
90196         (sha1_process_bytes): Renamed from sha_process_bytes.
90197         (sha1_finish_ctx): Renamed from sha_finish_ctx.
90198         (sha1_read_ctx): Renamed from sha_read_ctx.
90199         (sha1_stream): Renamed from sha_stream.
90200         (sha1_buffer): Renamed from sha_buffer.
90201         * lib/sha1.c: Likewise; renamed from sha.c.
90202         Do not include <sys/types.h>.
90203         Include <stddef.h> rather than <stdlib.h>.
90204
90205 2004-08-08  Bruno Haible  <bruno@clisp.org>
90206
90207         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
90208         FILESYSTEM_PREFIX_LEN.
90209         * lib/progreloc.c: Likewise.
90210         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
90211
90212 2004-08-06  Simon Josefsson  <jas@extundo.com>
90213
90214         * modules/progname (Depends-on): Don't depend on stdbool.
90215
90216 2004-08-06  Simon Josefsson  <jas@extundo.com>
90217
90218         * modules/getsubopt: New file.
90219         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90220         getsubopt.
90221
90222 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90223
90224         More merge from coreutils.
90225
90226         * m4/utimens.m4, m4/utimecmp.m4: New files.
90227         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
90228         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
90229         prereq.m4, sha.m4: Import changes from coreutils.
90230
90231 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90232
90233         More merge from coreutils.
90234         * modules/raise, modules/readtokens0, modules/utimens:
90235         * modules/utimecmp, module/xnanosleep: New files.
90236         * modules/strftime: Add lib/strftime.h.
90237         Change include from <time.h> to "strftime.h".
90238         * modules/yesno: Add lib/yesno.h.
90239         * modules/backupfile: Remove lib/addext.c.
90240         * modules/euidaccess: Add stat-macros.h.
90241         * modules/canonicalize, modules/euidaccess,
90242         modules/filemode, modules/lchown, modules/makepath,
90243         modules/rmdir, modules/stat: Likewise.
90244
90245 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90246
90247         Merge from tar.
90248         * lib/argp-help.c (make_hol, hol_append): Don't assume that
90249         SIZE_MAX is a valid preprocessor constant.
90250         (__argp_basename): Change from "#ifndef _LIBC"
90251         to "#ifndef __argp_short_program_name", so that
90252         we don't compile these functions for tar.
90253
90254         More merges from coreutils.
90255         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
90256         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
90257         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
90258         * lib/addext.c: Remove; no longer needed.
90259         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
90260         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
90261         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
90262         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
90263         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
90264         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
90265         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
90266         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
90267         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
90268         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
90269         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
90270         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
90271         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
90272         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
90273         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
90274         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
90275         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
90276         Import changes from coreutils.
90277
90278 2004-08-05  Simon Josefsson  <jas@extundo.com>
90279
90280         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
90281
90282 2004-08-05  Simon Josefsson  <jas@extundo.com>
90283
90284         * m4/getsubopt.m4: New file.
90285
90286 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
90287
90288         Merge from coreutils.
90289
90290         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
90291         * m4/getcwd-path-max.m4: New files.
90292
90293         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
90294         FILESYSTEM_PREFIX_LEN ->
90295         FILE_SYSTEM_PREFIX_LEN.
90296         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
90297         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
90298         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
90299         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
90300
90301         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
90302         prerequisite modules now handle the DOS stuff.
90303         Don't check for unistd.h.
90304
90305 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
90306
90307         Merge from coreutils.
90308
90309         * lib/.gdb-history: Remove; this doesn't belong here.
90310
90311         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
90312         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
90313         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
90314         * lib/getcwd.c: New files.
90315
90316         * lib/dirname.h: Include <stdbool.h>.
90317         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
90318         for consistency with POSIX terminology.  All uses changed.
90319         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
90320         (strip_trailing_slashes): Use bool for booleans.
90321         * lib/stripslash.c (strip_trailing_slashes): Likewise.
90322
90323         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
90324         sometimes returns a positive errno value even when it succeeds.
90325         (print_errno_message) [!LIBC]: Fall back on strerror if
90326         __strerror_r fails.
90327
90328         * lib/path-concat.c (mempcpy): Don't define if a system header defines
90329         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
90330         (longest_relative_suffix): New function.
90331         (path_concat): Use it.  Assume first argument is not NULL.
90332         Port to DOS.  Omit redundant separators.
90333         Report an error instead of returning NULL.
90334         Use mempcpy instead of memcpy.
90335         (xpath_concat): Remove: not declared or used.
90336
90337         * lib/same.h: Include <stdbool.h>
90338         (same_name): Return bool, not int.
90339         * lib/same.c (same_name): Likewise.
90340         (errno): Don't declare; we assume C89 or better now.
90341
90342         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
90343         if not already defined.
90344
90345         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
90346         * lib/dup-safer.c (errno): Likewise.
90347
90348 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
90349
90350         Merge from coreutils.
90351         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
90352         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
90353         * modules/path-concat: Don't depend on strdup.
90354
90355 2004-08-03  Simon Josefsson  <jas@extundo.com>
90356
90357         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
90358         * lib/progname.h: Don't include stdbool.h.
90359
90360 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
90361
90362         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
90363         * MODULES.html.sh (func_all_modules): Remove fatal.
90364
90365 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
90366
90367         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
90368
90369 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
90370
90371         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
90372         working.
90373
90374 2004-08-02  Simon Josefsson  <jas@extundo.com>
90375
90376         * lib/getsubopt.h: New file, with comments from Bruno Haible.
90377         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
90378         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
90379
90380 2004-08-01  Simon Josefsson  <jas@extundo.com>
90381
90382         * lib/xgetdomainname.c: Include stdlib.h, for free().
90383
90384 2004-07-19  Bruno Haible  <bruno@clisp.org>
90385
90386         * MODULES.html.sh (func_all_modules): Add dummy.
90387
90388 2004-07-16  Simon Josefsson  <jas@extundo.com>
90389
90390         * modules/dummy: New file.
90391
90392 2004-07-16  Simon Josefsson  <jas@extundo.com>
90393
90394         * lib/dummy.c: New file.
90395
90396 2004-07-16  Bruno Haible  <bruno@clisp.org>
90397
90398         * lib/backupfile.h: Add extern "C" for C++.
90399         * lib/closeout.h: Likewise.
90400         * lib/copy-file.h: Likewise.
90401         * lib/findprog.h: Likewise.
90402         * lib/full-write.h: Likewise.
90403         * lib/pathname.h: Likewise.
90404         * lib/progname.h: Likewise.
90405         * lib/stpcpy.h: Likewise.
90406         * lib/stpncpy.h: Likewise.
90407         * lib/strcase.h: Likewise.
90408         * lib/strstr.h: Likewise.
90409         * lib/xalloc.h: Likewise.
90410
90411         * lib/mbswidth.h: Add extern "C" for C++.
90412         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
90413
90414 2004-07-13  Robert Millan  <robertmh@gnu.org>
90415
90416         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
90417
90418 2004-07-09  Simon Josefsson  <jas@extundo.com>
90419
90420         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
90421         failed without this.)
90422
90423 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
90424
90425         * modules/chown (Files): Add lib/fchown-stub.c, since
90426         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
90427
90428 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
90429
90430         * lib/fchown-stub.c: New file.
90431
90432 2004-06-24  Jim Meyering  <jim@meyering.net>
90433
90434         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
90435
90436 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90437
90438         * modules/argz: Omit "#include".
90439
90440         * MODULES.html.sh (func_all_modules): Add calloc, to match
90441         2004-06-01 addition of calloc module.
90442
90443 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90444
90445         * m4/argz.m4: New file, which is autoupdated from libtool.
90446
90447 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90448
90449         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
90450         libtool.
90451
90452 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90453
90454         * config/srclist-update: Don't insist on "USA." before the
90455         close-comment, as libtool omits the period and puts the */ on a
90456         separate line.
90457         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
90458         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
90459
90460 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
90461
90462         * modules/argz: New file.
90463         * MODULES.html.sh (func_all_modules): Add argz.
90464
90465 2004-06-12  Jim Meyering  <jim@meyering.net>
90466         and  Paul Eggert  <eggert@cs.ucla.edu>
90467
90468         * modules/hash (Files): Add lib/xalloc.h.
90469         * modules/pipe (Depends-on): Add wait-process.
90470         * modules/stat (Depends-on): Add xalloc.
90471         * modules/userspec (Files): Add lib/userspec.h.
90472         * modules/xstrto
90473
90474         Upgrade from gettext-0.13.
90475         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
90476         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
90477         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
90478
90479 2004-06-10  Jim Meyering  <jim@meyering.net>
90480
90481         * lib/calloc.c: New file.
90482
90483 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
90484
90485         * lib/getdate.y (yylex): Allow space between sign and number.
90486         Problem reported by Dan Jacobson.
90487
90488 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
90489
90490         Merge from coreutils CVS.
90491
90492         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
90493         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
90494         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
90495         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
90496         xstrtol.m4: Fix copyright date and/or serial number.
90497
90498         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
90499         See if we need an fchown replacement.
90500         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
90501         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
90502         and use the replacement function if we detect either defect.
90503
90504         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
90505         gl_UTIMECMP.
90506
90507 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
90508         and  Jim Meyering  <jim@meyering.net>
90509
90510         Merge from coreutils CVS.
90511
90512         * lib/stat-macros.h: New file, with contents from file-type.h
90513         and coreutils' system.h.
90514         * lib/file-type.c: Include "stat-macros.h".
90515         * lib/file-type.h (file_type): Move all macro definitions to new file,
90516         stat-macros.h.
90517
90518         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
90519         Wrap old code with this conditional.
90520         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
90521         function that does not dereference symlinks.
90522         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
90523
90524         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
90525         dependency problems.
90526         (xreadlink): Accept new arg SIZE, for efficiency.
90527         All decls and uses changed.
90528         * lib/xreadlink.h: Include <stddef.h>, for size_t.
90529
90530         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
90531         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
90532
90533         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
90534         sysexits.h.
90535
90536 2004-06-01  Jim Meyering  <jim@meyering.net>
90537
90538         * m4/calloc.m4: New file.
90539
90540 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
90541
90542         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
90543         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
90544         Also, fix a typo in a diagnostic.
90545
90546 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
90547
90548         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
90549         or AC_FUNC_REALLOC.
90550
90551 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
90552
90553         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
90554         macros to be defined.
90555         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
90556         the allocator returns NULL because the requested size is zero.
90557
90558 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
90559
90560         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
90561         var.  Add comment explaining why libc still defines it.  This
90562         merges the following patch from glibc:
90563         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
90564
90565 2004-05-20  Andreas Schwab  <schwab@suse.de>
90566
90567         * m4/free.m4: Replace free if it not known to work, not the other
90568         way round.
90569
90570 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
90571
90572         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
90573         present in glibc since revision 1.1 of this file.
90574         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
90575         obstack_alignment_mask, obstack_alloc, obstack_base,
90576         obstack_blank, obstack_blank_fast, obstack_chunk_size,
90577         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
90578         obstack_grow0, obstack_init, obstack_int_grow,
90579         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
90580         obstack_next_free, obstack_object_size, obstack_ptr_grow,
90581         obstack_ptr_grow_fast, obstack_room): Remove declarations of
90582         nonexistent functions.
90583
90584 2004-05-18  Karl Berry  <karl@gnu.org>
90585
90586         * config/srclist.txt: break link for vasnprintf.c.
90587
90588 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
90589
90590         Port obstack to the AS/400, where pointers are 16 bytes wide and
90591         you cannot cast an integer to a valid pointer.  This patch is
90592         currently waiting to be integrated into glibc; see
90593         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
90594
90595         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
90596         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
90597         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
90598         (struct obstack): temp member is now a union of a pointer and
90599         an integer, instead of an integer.  All integer uses changed.
90600         This does not affect the physical layout of struct obstack,
90601         except on hosts (like the AS/400) where the size or alignment of
90602         void * is greater than that of ptrdiff_t.
90603         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
90604         __STDC__)]: Store temporary in pointer member of union, not
90605         integer member.
90606         * lib/obstack.c: Include <stddef.h>, for offsetof.
90607         (struct fooalign): Remove; it doesn't need a name.
90608         (union fooround): Change double to long double, and add void *.
90609         (DEFAULT_ALIGNMENT): Use offsetof to compute.
90610         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
90611         not a macro.  Hence the values are always int; so remove all
90612         casts-to-int in uses.
90613
90614 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
90615
90616         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
90617         we can get this patch merged into glibc.
90618
90619 2004-05-17  Derek R. Price  <derek@ximbiot.com>
90620             Paul Eggert  <eggert@cs.ucla.edu>
90621
90622         * m4/argp: Depend on alloca.
90623
90624 2004-05-17  Derek R. Price  <derek@ximbiot.com>
90625             Paul Eggert  <eggert@cs.ucla.edu>
90626
90627         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
90628         freecoding.
90629
90630 2004-05-17  Bruno Haible  <bruno@clisp.org>
90631
90632         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
90633         precision that consists of a '.' followed by an empty digit string.
90634         Patch by Tor Lillqvist <tml@iki.fi>.
90635
90636 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
90637
90638         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
90639         for backward compatibility with older code.  We need our own
90640         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
90641         it under some other name, and our alloca.h will define it.
90642
90643 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
90644             Derek Price  <derek@ximbiot.com>
90645
90646         * lib/alloca.c: Include <alloca.h>, to get our interface.
90647         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
90648         include <alloca.h> first.  Use C89 prototype for alloca; this
90649         requires including <stddef.h> for size_t.  Use extern "C" if C++.
90650         Use #elif for simplicity, since we can assume C89 now.
90651         Don't try to source the system alloca.h since it will not be found
90652         and to prevent recursively including its replacement.
90653         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
90654         * lib/regex.c: Likewise.
90655
90656 2004-05-16  Derek Price  <derek@ximbiot.com>
90657             Paul Eggert  <eggert@cs.ucla.edu>
90658
90659         getline cleanup.  This changes the getndelim2 API: both order of
90660         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
90661         no delimiter).
90662
90663         * lib/getline.c: Don't include stddef.h or stdio.h, since our
90664         interface does that.
90665         (getline): Always use getdelim, so that we don't have two
90666         copies of this code.
90667         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
90668         if available.
90669         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
90670         (GETNDELIM2_MAXIMUM): New macro.
90671         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
90672         instead of the old practice of delim2==0.  All callers changed.
90673         Return -1 on overflow, instead of returning junk.
90674         Do not set *linesize unless allocation succeeds.
90675         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
90676         that we include sys/types.h.
90677         * lib/getnline.h: Likewise.
90678         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
90679         (getndelim2): Reorder arguments.
90680         * lib/getnline.c (getnline, getndelim):
90681         Don't discard the NMAX argument.
90682         (getnline): Invoke getndelim, to avoid code duplication.
90683         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
90684         of (size_t) -1 by callers of the getnline family.
90685
90686 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
90687
90688         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
90689         Check for gettimeofday.
90690         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
90691         Check for settimeofday, stime.
90692
90693 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
90694
90695         * lib/nanosleep.c (suspended): Change its type from int to
90696         sig_atomic_t volatile.
90697         (first_call): Make it private to rpl_nanosleep, and have it
90698         be zero initially as that's a bit faster.
90699         (my_usleep): Round up fractional times instead of truncating them,
90700         as this is the usual meaning for 'sleep'.
90701
90702         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
90703         doesn't work.
90704         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
90705         (ENOSYS): Define if not defined.
90706         (settime): Fall back on stime if it exists and settimeofday fails.
90707         But don't bother with fallbacks if a method fails with errno == EPERM.
90708
90709 2004-05-11  Jim Meyering  <jim@meyering.net>
90710
90711         Prior to this change, the save_cwd caller required read access to the
90712         current directory on most systems (ones with the fchdir function).
90713
90714         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
90715         fails, try write-only, and finally, resort to using xgetcwd.
90716
90717 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
90718
90719         * lib/obstack.c, obstack.h: Import changes from libc.
90720
90721 2004-04-28  Bruno Haible  <bruno@clisp.org>
90722
90723         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
90724         also implicitly appends .exe to executables.
90725         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
90726         accepts Windows pathnames.
90727         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
90728         Treat Cygwin like Windows, since it now accepts Windows pathnames.
90729         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
90730         Treat Cygwin like Windows, since it now accepts Windows pathnames.
90731         Reported by Derek Robert Price <derek@ximbiot.com>.
90732
90733 2004-04-21  Karl Berry  <karl@gnu.org>
90734
90735         * config/srclist.txt (localcharset.c): break sync.
90736
90737 2004-04-20  Paul Eggert  <eggert@twinsun.com>
90738
90739         * m4/host-os.m4: Add a copyright notice.
90740
90741 2004-04-20  Jim Meyering  <jim@meyering.net>
90742
90743         Change UTILS_ to gl_ in AC_DEFINE'd names.
90744         Change utils_- and jm_-prefixed variables, too.
90745         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
90746         UTILS_FUNC_MKDIR_TRAILING_SLASH.
90747         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
90748
90749         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
90750         Don't emit trailing blanks.
90751         Also rename jm_-prefixed variables to have gl_ prefix.
90752
90753         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
90754         Also rename jm_-prefixed variables to have gl_ prefix.
90755
90756         * m4/jm-macros.m4: Reflect the renamings.
90757         * m4/prereq.m4: Likewise.
90758
90759 2004-04-20  Jim Meyering  <jim@meyering.net>
90760
90761         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
90762         memory.
90763
90764 2004-04-20  Jim Meyering  <jim@meyering.net>
90765             Bruno Haible  <bruno@clisp.org>
90766
90767         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
90768         memory when realloc fails.
90769
90770 2004-04-19  Jim Meyering  <jim@meyering.net>
90771
90772         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
90773         now that readutmp.c may call `free (0)'.
90774
90775 2004-04-19  Bruno Haible  <bruno@clisp.org>
90776
90777         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
90778         * m4/inttypes_h.m4: Likewise.
90779         * m4/stdint_h.m4: Likewise.
90780         * m4/intmax_t.m4: Likewise.
90781         * m4/uintmax_t.m4: Likewise.
90782
90783 2004-04-18  Jim Meyering  <jim@meyering.net>
90784
90785         * m4/prereq.m4: Don't forbid jm_ prefix.
90786
90787         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
90788         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
90789         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
90790         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
90791         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
90792         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
90793         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
90794         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
90795         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
90796         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
90797         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
90798         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
90799         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
90800         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
90801         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
90802         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
90803         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
90804         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
90805         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
90806
90807 2004-04-18  Jim Meyering  <jim@meyering.net>
90808
90809         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
90810         failure, don't leak memory and do call END_UTMP_ENT.
90811
90812 2004-04-16  Jim Meyering  <jim@meyering.net>
90813
90814         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
90815         coreutils' stat program.
90816         (gl_PREREQ): Don't require jm_PREREQ_STAT.
90817
90818 2004-04-11  Paul Eggert  <eggert@twinsun.com>
90819
90820         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
90821         C89.
90822         (CHAR_BIT): Remove, since we assume C89.
90823         Include <stdint.h> if available, as per current Autoconf CVS advice.
90824
90825 2004-03-31  Jim Meyering  <jim@meyering.net>
90826
90827         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
90828         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
90829         * m4/xalloc.m4: Likewise.
90830
90831 2004-03-30  Paul Eggert  <eggert@twinsun.com>
90832
90833         Merge from coreutils.
90834
90835         * m4/inttostr.m4: New file.
90836         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
90837         Require AM_STDBOOL_H and gl_TIMESPEC instead.
90838         Require gl_CLOCK_TIME.
90839         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
90840
90841 2004-03-30  Paul Eggert  <eggert@twinsun.com>
90842
90843         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
90844         not bool, to be more consistent with Unix conventions.
90845         Suggested by Bruno Haible.
90846
90847         Merge from coreutils.
90848
90849         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
90850         * lib/umaxtostr.c: New files.
90851
90852         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
90853         the usual <time.h> dance.
90854         (get_date): Change signature to support fractional time stamps.
90855         All callers changed.
90856         * lib/getdate.y: Include "getdate.h" first, as we can now
90857         assume C89 and don't need to worry about 'const'.
90858         Similarly, include "unlocked-io.h" near start, not in middle.
90859         Include <limits.h>.
90860         (textint.value): Use long int rather than int.
90861         (textint.digits): Use size_t rather than int.
90862         (BILLION, LOG10_BILLION): New constants.
90863         (parser_control): New member rel_ns.  Members day_ordinal,
90864         time_zone, month, day, hour, minutes, rel_year, rel_month,
90865         rel_day, rel_hour, rel_minutes, rel_seconds
90866         are now long int, not int.  Member seconds is now struct timespec,
90867         not int.  New member timespec_seen.  Members dates_seen, days_seen,
90868         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
90869         not int.
90870         (%union.intval): Now long int, not int.
90871         New member timespec.
90872         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
90873         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
90874         (spec): Now is a timespec or an item list.
90875         (timespec, items): New nonterminals.
90876         (time, rel, relunit, number, get_date):
90877         Add support for fractional seconds.
90878         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
90879         (gmtime, localtime, mktime): Remove decls; not needed with C89.
90880         (to_hour): First arg is now long int, not int.
90881         (to_year): Returns long int, not int.
90882         Don't treat year -70 like 70.
90883         (tm_diff): Returns long int, not int.
90884         (lookup_word): Use bool instead of int when appropriate.
90885         (yylex): Use size_t for count, not int.
90886         Detect overflow when parsing large integer constants.
90887         Add support for fractions.
90888         (get_date): Make pointers 'const' if possible.
90889         Use more-portable code to detect integer overflow.
90890         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
90891         Don't use ctime; it's not reliable if the year has >4 digits.
90892
90893         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
90894         This is for compatibility with BSD.
90895
90896         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
90897         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
90898         From coreutils' system.h.
90899
90900         * lib/userspec.c: Don't include "posixver.h".
90901         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
90902         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
90903         compatible extension.  Simplify code by removing a boolean int
90904         that was always nonzero if a string was nonnull.
90905
90906 2004-03-30  Jim Meyering  <jim@meyering.net>
90907
90908         Merge from coreutils.
90909
90910         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
90911         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
90912         on some systems one must include <grp.h> before it.
90913         Reported by Christian Krackowizer.
90914
90915 2004-03-30  Jim Meyering  <jim@meyering.net>
90916
90917         Merge from coreutils.
90918
90919         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
90920
90921         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
90922         an empty input stream.
90923
90924         * lib/readtokens.c: Include <stdbool.h>.
90925         (readtoken): Use `size_t' rather than int/long.
90926         All callers adjusted.
90927         Use `bool' rather than `int' where appropriate.
90928         Use memset rather than an explicit loop.
90929         Use x2nrealloc rather than xrealloc.
90930         Allow the use of `\0' as a delimiter.
90931         (readtokens): Likewise.
90932         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
90933
90934 2004-03-30  Jim Meyering  <jim@meyering.net>
90935
90936         * m4/realloc.m4: Remove file, since now it does no more than
90937         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
90938         the `configure.ac' section of module/realloc.
90939         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
90940
90941 2004-03-30  Bruno Haible  <bruno@clisp.org>
90942
90943         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
90944         nonnull.
90945
90946 2004-03-29  Paul Eggert  <eggert@twinsun.com>
90947
90948         Merge changes to getloadavg.c from coreutils and Emacs.
90949
90950         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
90951         Define to an expression, not to the empty string.
90952         Include cloexec.h and xalloc.h.
90953         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
90954         Use set_cloexec_flag rather than rolling our own.
90955         * lib/cloexec.c, lib/cloexec.h: New files.
90956
90957 2004-03-29  Paul Eggert  <eggert@twinsun.com>
90958
90959         * m4/cloexec.m4: New file.
90960
90961 2004-03-18  Paul Eggert  <eggert@twinsun.com>
90962
90963         * lib/getopt.h: Sync with libc CVS.
90964
90965 2004-03-18  Paul Eggert  <eggert@twinsun.com>
90966             Bruno Haible  <bruno@clisp.org>
90967
90968         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
90969         mbswidth.
90970
90971 2004-03-18  Paul Eggert  <eggert@twinsun.com>
90972             Bruno Haible  <bruno@clisp.org>
90973
90974         * lib/mbswidth.h: Include <wchar.h> only if
90975         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
90976         <wchar.h>.
90977         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
90978
90979 2004-03-09  Paul Eggert  <eggert@twinsun.com>
90980
90981         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
90982         Sync with libc CVS.
90983         * lib/getopt_int.h: New file, also synced from libc.
90984
90985 2004-03-09  Paul Eggert  <eggert@twinsun.com>
90986
90987         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
90988         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
90989         Bring back getopt.c, getopt.h, getopt1.c.
90990
90991 2004-03-07  Paul Eggert  <eggert@twinsun.com>
90992
90993         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
90994         All uses changed.  Check for sa_sigaction member; this fixes
90995         a bug first reported by Jason Andrade in
90996         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
90997
90998 2004-03-07  Paul Eggert  <eggert@twinsun.com>
90999
91000         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
91001         '#if' expressions.  Unlike the code it replaces, it does not
91002         depend on (defined _SC_PAGESIZE).  However, it does depend on
91003         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
91004         first reported by Jason Andrade in
91005         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
91006
91007 2004-02-25  Simon Josefsson  <jas@extundo.com>
91008
91009         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
91010
91011 2004-02-25  Simon Josefsson  <jas@extundo.com>
91012
91013         * lib/strdup.h: New file.
91014         * lib/strdup.c: Include it.
91015         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
91016         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
91017
91018 2004-02-23  Karl Berry  <karl@gnu.org>
91019
91020         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
91021         (from fencepost.gnu.org:/gd/gnuorg).
91022
91023 2004-02-23  Karl Berry  <karl@gnu.org>
91024
91025         * config/srclistvars.sh (GNUORG) [karl]: redefine.
91026         * config/srclist.txt: add maintain/standards documents.
91027
91028 2004-02-18  Bruno Haible  <bruno@clisp.org>
91029
91030         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
91031         Reported by Derek Robert Price <derek@ximbiot.com>.
91032
91033 2004-02-16  Karl Berry  <karl@gnu.org>
91034
91035         * config/mkinstalldirs, install-sh: update from automake.
91036
91037 2004-02-06  Karl Berry  <karl@gnu.org>
91038
91039         * m4/po.m4: update from gettext 0.14.1.
91040
91041 2004-02-06  Karl Berry  <karl@gnu.org>
91042
91043         * lib/config.charset: update from gettext 0.14.1.
91044
91045 2004-02-05  Paul Eggert  <eggert@twinsun.com>
91046
91047         Add comments and code, prompted by suggestions from Bruno Haible
91048         for sh-quote.
91049         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
91050         describing the enum quoting_style values.
91051         * lib/quotearg.c (quotearg_alloc): New function.
91052         (quotearg_buffer_restyled): Treat lone { and } as special.
91053         Treat = as special.  Work around bug with older shells
91054         that "see" a '\' that is really the 2nd byte of a multibyte char.
91055         Quote empty string with shell_quoting_style.
91056
91057 2004-02-03  Bruno Haible  <bruno@clisp.org>
91058
91059         * m4/pipe.m4: New file, from GNU gettext.
91060
91061 2004-02-03  Bruno Haible  <bruno@clisp.org>
91062
91063         * lib/pipe.h: New file, from GNU gettext.
91064         * lib/pipe.c: New file, from GNU gettext.
91065
91066 2004-01-27  Bruno Haible  <bruno@clisp.org>
91067
91068         * m4/execute.m4: New file, from GNU gettext.
91069
91070 2004-01-27  Bruno Haible  <bruno@clisp.org>
91071
91072         * lib/execute.h: New file, from GNU gettext.
91073         * lib/execute.c: New file, from GNU gettext.
91074         * lib/w32spawn.h: New file, from GNU gettext.
91075
91076 2004-01-24  Paul Eggert  <eggert@twinsun.com>
91077
91078         Merge from diffutils.
91079
91080         * lib/file-type.c (file_type): Add typed memory objects.
91081         * lib/file-type.h (S_TYPEISTMO): New macro.
91082
91083         * lib/c-stack.h (c_stack_action): Remove argv argument.
91084         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
91085         (die): Don't calculate message unless segv_action returns.
91086         (get_stack_location, min_address_from_argv, max_address_from_argv,
91087         volatile stack_base, volatile_stack_size): Remove.
91088         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
91089         that every segmentation violation is a stack overflow.  (Ouch!)
91090         See Debian bug 136249 (still outstanding) for more info about why
91091         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
91092
91093 2004-01-24  Paul Eggert  <eggert@twinsun.com>
91094
91095         Exit-status fix from coreutils.
91096
91097         Use exit_failure consistently in place of EXIT_FAILURE,
91098         so that program exit statuses are consistent on failure.
91099
91100         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
91101         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
91102         * lib/argmatch.h: Comment fix to match the above.
91103         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
91104         Now a macro referring to exit_failure, instead of a separate
91105         variable.  Include "exitfail.h" to get it.
91106         * lib/xstrtol.h: Include "exitfail.h".
91107         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
91108
91109         * lib/long-options.c (parse_long_options): Use prototype
91110         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
91111         for clarity.
91112
91113 2004-01-21  Jim Meyering  <jim@meyering.net>
91114
91115         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
91116         so as not to conflict with a different-sized __mktime_internal
91117         function in GNU libc.
91118         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
91119         Problem building statically-linked `ls' reported by Michael Brunnbauer.
91120
91121 2004-01-20  Karl Berry  <karl@gnu.org>
91122
91123         * config/config.guess: update from config.
91124
91125         * config/srclistvars.sh: GNUWWWLICENSES for karl.
91126
91127 2004-01-20  Bruno Haible  <bruno@clisp.org>
91128
91129         Safer stack allocation.
91130         * lib/setenv.c: Include allocsa.h.
91131         (alloca): Remove fallback definition.
91132         (freea): Remove macro.
91133         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
91134         instead of freea.
91135
91136 2004-01-20  Bruno Haible  <bruno@clisp.org>
91137
91138         * m4/eealloc.m4: New file, from GNU gettext.
91139
91140 2004-01-20  Bruno Haible  <bruno@clisp.org>
91141
91142         * m4/allocsa.m4: New file, from GNU gettext.
91143
91144 2004-01-20  Bruno Haible  <bruno@clisp.org>
91145
91146         * lib/xallocsa.h: New file, from GNU gettext.
91147         * lib/xallocsa.c: New file, from GNU gettext.
91148
91149 2004-01-20  Bruno Haible  <bruno@clisp.org>
91150
91151         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
91152
91153 2004-01-20  Bruno Haible  <bruno@clisp.org>
91154
91155         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
91156         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
91157         specially.
91158
91159 2004-01-20  Bruno Haible  <bruno@clisp.org>
91160
91161         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
91162         patch.
91163
91164 2004-01-20  Bruno Haible  <bruno@clisp.org>
91165
91166         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
91167
91168 2004-01-20  Bruno Haible  <bruno@clisp.org>
91169
91170         * lib/eealloc.h: New file.
91171
91172 2004-01-20  Bruno Haible  <bruno@clisp.org>
91173
91174         * lib/binary-io.h: Avoid warnings on Cygwin.
91175
91176 2004-01-20  Bruno Haible  <bruno@clisp.org>
91177
91178         * lib/allocsa.h: New file, from GNU gettext.
91179         * lib/allocsa.c: New file, from GNU gettext.
91180
91181 2004-01-18  Karl Berry  <karl@gnu.org>
91182
91183         * doc/gpl.texi, doc/lgpl.texi: new files.
91184
91185 2004-01-18  Karl Berry  <karl@gnu.org>
91186
91187         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
91188         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
91189
91190 2004-01-15  Paul Eggert  <eggert@twinsun.com>
91191
91192         Merge from coreutils.
91193
91194         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
91195         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
91196         (gl_DEFAULT_POSIX2_VERSION): Move
91197         the documentation from 'configure' into 'config.hin',
91198         so that 'configure --help' isn't burdened by it and
91199         we don't have to worry about its formatting there.
91200         Reword the documentation so that it's more succinct
91201         and can be run together into a single paragraph.
91202         * m4/same.m4 (gl_SAME): Check for pathconf.
91203
91204 2004-01-15  Paul Eggert  <eggert@twinsun.com>
91205
91206         Merge from coreutils.
91207
91208         * lib/posixver.c: Include posixver.h.
91209
91210         * lib/same.c: Include <stdbool.h>, <limits.h>.
91211         (_POSIX_NAME_MAX): Define if not defined.
91212         (MIN): New macro.
91213         (same_name): If file names are silently truncated, report
91214         that the file names are the same if they are the same after
91215         the silent truncation.
91216
91217         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
91218         conversion function.
91219         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
91220         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
91221         longer needed.
91222
91223 2004-01-15  Jim Meyering  <jim@meyering.net>
91224
91225         Merge from coreutils.
91226
91227         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
91228         if no library is required.
91229         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
91230         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
91231         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
91232         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
91233         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
91234         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
91235         value, $ac_cv_search_crypt, if it's "none required".
91236         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
91237         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
91238         not gl_FUNC_GETLOADAVG.
91239         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
91240         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
91241
91242 2004-01-15  Jim Meyering  <jim@meyering.net>
91243
91244         Merge from coreutils.
91245
91246         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
91247         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
91248         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
91249
91250         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
91251         optional configure-time default.
91252
91253         * lib/version-etc.c (version_etc_copyright): Update copyright date.
91254
91255         * lib/xreadlink.c (xreadlink): Correct outdated comment.
91256
91257 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
91258
91259         Merge from coreutils.
91260
91261         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
91262         value, $ac_cv_search_nanosleep, if it's "none required".
91263
91264 2004-01-14  Paul Eggert  <eggert@twinsun.com>
91265
91266         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
91267         with like-named macro in fnmatch.c.
91268         (EXT): Use an internal constant instead.
91269
91270         Merge fnmatch patches from glibc.
91271         * lib/fnmatch.c (mbsinit): Remove define.
91272         Add libc_hidden_ver (__fnmatch, fnmatch).
91273         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
91274         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
91275
91276 2004-01-14  Karl Berry  <karl@gnu.org>
91277
91278         * config/install-sh: update from automake.
91279
91280 2004-01-13  Karl Berry  <karl@gnu.org>
91281
91282         * config/install-sh: update from automake.
91283
91284 2004-01-09  Karl Berry  <karl@gnu.org>
91285
91286         * config/install-sh: update from automake.
91287
91288 2004-01-05  Karl Berry  <karl@gnu.org>
91289
91290         * config/config.{sub,guess}: update from config.
91291
91292 2003-12-31  Karl Berry  <karl@gnu.org>
91293
91294         * config/depcomp: update from automake.
91295
91296 2003-12-14  Karl Berry  <karl@gnu.org>
91297
91298         * lib/config.charset: update from gettext-runtime.
91299
91300 2003-12-03  Paul Eggert  <eggert@twinsun.com>
91301
91302         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
91303         Bug reported by Alfred M. Szmidt.
91304
91305 2003-12-03  Bruno Haible  <bruno@clisp.org>
91306
91307         * m4/gettext.m4: Upgrade from gettext-0.13.
91308         * m4/po.m4: Upgrade from gettext-0.13.
91309         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
91310         * m4/intmax.m4: New file, from gettext-0.13.
91311         * m4/printf-posix.m4: New file, from gettext-0.13.
91312
91313 2003-11-29  Karl Berry  <karl@gnu.org>
91314
91315         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
91316
91317 2003-11-25  Paul Eggert  <eggert@twinsun.com>
91318             Bruno Haible  <bruno@clisp.org>
91319
91320         * lib/printf-parse.h: Don't include sys/types.h.
91321         (ARG_NONE): New macro.
91322         (char_directive): Change type of *arg_index fields to size_t.
91323         * lib/printf-parse.c: Don't include sys/types.h.
91324         (SSIZE_MAX): Remove macro.
91325         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
91326         Remove unnecessary overflow check.
91327         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
91328         fields.
91329
91330 2003-11-25  Bruno Haible  <bruno@clisp.org>
91331
91332         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
91333
91334 2003-11-25  Bruno Haible  <bruno@clisp.org>
91335
91336         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
91337         gt_TYPE_SSIZE_T.
91338
91339 2003-11-24  Paul Eggert  <eggert@twinsun.com>
91340
91341         * modules/alloca: Remove dependency on xalloc.
91342
91343 2003-11-24  Paul Eggert  <eggert@twinsun.com>
91344
91345         * lib/alloca.c: Remove dependency on xalloc module.
91346         (xalloc_die): Remove.
91347         (memory_full) [!defined emacs]: New macro.
91348         [!defined emacs]: Don't include xalloc.h.
91349         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
91350         address arithmetic overflows.  Change datatypes a bit to avoid
91351         unnecessary casts.
91352
91353 2003-11-22  Jim Meyering  <jim@meyering.net>
91354
91355         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
91356         s/size/size_t/.
91357
91358 2003-11-21  Karl Berry  <karl@gnu.org>
91359
91360         * config/config.{sub,guess}: update from config.
91361
91362 2003-11-18  Karl Berry  <karl@gnu.org>
91363
91364         * config/config.{sub,guess}: update from config.
91365
91366         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
91367
91368 2003-11-17  Paul Eggert  <eggert@twinsun.com>
91369
91370         * README: Mention that S+T cannot overflow if S is the size of
91371         an existing object and T is sufficiently small.
91372
91373 2003-11-17  Jim Meyering  <jim@meyering.net>
91374
91375         On systems without utime and without a utimes function capable of
91376         dealing with a NULL struct utimbuf* argument, this utime replacement
91377         could -- in unusual circumstances -- leak a file descriptor.
91378         * lib/utime.c: Include <unistd.h> and <errno.h>.
91379         (utime_null): Be sure to close `fd' and to preserve errno.
91380         Reported by Geoff Collyer via Arnold Robbins.
91381
91382 2003-11-17  Bruno Haible  <bruno@clisp.org>
91383
91384         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
91385         (Depends-on): Add xsize.
91386
91387 2003-11-17  Bruno Haible  <bruno@clisp.org>
91388
91389         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
91390
91391 2003-11-17  Bruno Haible  <bruno@clisp.org>
91392
91393         * lib/vasnprintf.c (alloca): Remove fallback definition.
91394         (freea): Remove definition.
91395         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
91396         Reported by Paul Eggert.
91397
91398 2003-11-16  Paul Eggert  <eggert@twinsun.com>
91399             Bruno Haible  <bruno@clisp.org>
91400
91401         Protect against address arithmetic overflow.
91402         * lib/printf-args.h: Include stddef.h.
91403         (arguments): Change type of field 'count' to size_t.
91404         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
91405         'unsigned int' where appropriate.
91406         * lib/printf-parse.h: Include sys/types.h.
91407         (char_directive): Change type of *arg_index fields to ssize_t.
91408         (char_directives): Change type of fields 'count', max_*_length to
91409         size_t.
91410         * lib/printf-parse.c: Include sys/types.h and xsize.h.
91411         (SSIZE_MAX): Define fallback value.
91412         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
91413         instead of 'int' where appropriate. Check a_allocated, d_allocated
91414         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
91415         * lib/vasnprintf.c: Include xsize.h.
91416         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
91417         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
91418         overflow. Avoid wraparound when converting a width or precision from
91419         decimal to binary.
91420
91421 2003-11-16  Bruno Haible  <bruno@clisp.org>
91422
91423         Update from GNU gettext.
91424         * lib/printf-parse.c: Generalize to it can be compiled for wide
91425         strings.
91426         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
91427         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
91428         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
91429         SNPRINTF): New macros.
91430         Don't include <alloca.h> if the file is used inside libintl.
91431         (local_wcslen): New function, for Solaris 2.5.1.
91432         (VASNPRINTF): Use it instead of wcslen.
91433
91434 2003-11-16  Bruno Haible  <bruno@clisp.org>
91435
91436         * lib/xsize.h (xmax): New function.
91437         (xsum, xsum3, xsum4): Declare as "pure" functions.
91438
91439 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91440
91441         * modules/xalloc (Files): Undo latest change, since xalloc.h
91442         no longer needs SIZE_MAX or PTRDIFF_MAX.
91443
91444 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91445
91446         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
91447         gl_PTRDIFF_MAX.
91448
91449 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91450
91451         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
91452         "return", to pacify some unknown compiler.  Problem reported
91453         by Joerg Schilling.
91454
91455 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91456
91457         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
91458         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
91459         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
91460         heuristic is just as accurate as far as we know, and it removes a
91461         dependency on size_max.m4 and ptrdiff_max.m4.
91462
91463 2003-11-11  Bruno Haible  <bruno@clisp.org>
91464
91465         * modules/xsize (Files): Add m4/size_max.m4.
91466         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
91467
91468 2003-11-11  Bruno Haible  <bruno@clisp.org>
91469
91470         * m4/size_max.m4: New file.
91471         * m4/ptrdiff_max.m4: New file.
91472         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
91473         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
91474         (gl_XALLOC): Invoke it.
91475
91476 2003-11-11  Bruno Haible  <bruno@clisp.org>
91477
91478         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
91479         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
91480         defined.
91481
91482 2003-11-10  Paul Eggert  <eggert@twinsun.com>
91483
91484         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
91485         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
91486         rejected some allocations of exactly SIZE_MAX - 2 bytes.
91487         From Bruno Haible.
91488         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
91489         not (size_t) -1, since it's defined here.
91490
91491 2003-11-09  Karl Berry  <karl@gnu.org>
91492
91493         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
91494
91495 2003-11-06  Paul Eggert  <eggert@twinsun.com>
91496
91497         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
91498         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
91499         Reject sizes of exactly SIZE_MAX bytes.
91500         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
91501         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
91502
91503 2003-11-05  Bruno Haible  <bruno@clisp.org>
91504
91505         * lib/xsize.h: Include limits.h, to avoid a possible collision with
91506         SIZE_MAX defined in <limits.h> on Solaris.
91507
91508 2003-11-04  Jim Meyering  <jim@meyering.net>
91509
91510         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
91511         variable names, rather than @VAR@.
91512         * modules/poll: Likewise.
91513
91514 2003-11-04  Bruno Haible  <bruno@clisp.org>
91515
91516         * modules/xsize: New file.
91517         * modules/linebreak: Depend on xsize.
91518         * MODULES.html.sh (func_all_modules): Add xsize.
91519
91520 2003-11-04  Bruno Haible  <bruno@clisp.org>
91521
91522         * m4/xsize.m4: New file.
91523
91524 2003-11-04  Bruno Haible  <bruno@clisp.org>
91525
91526         * lib/xsize.h: New file.
91527         * lib/linebreak.c: Include xsize.h.
91528         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
91529         argument for overflow.
91530         Suggested by Paul Eggert.
91531
91532 2003-11-03  Karl Berry  <karl@gnu.org>
91533
91534         * config/config.{guess,sub}: update from config.
91535
91536 2003-11-03  Jim Meyering  <jim@meyering.net>
91537
91538         * modules/userspec (lib_SOURCES): Add userspec.h.
91539         (Include): Add "userspec.h".
91540         Improve description.
91541
91542 2003-11-03  Jim Meyering  <jim@meyering.net>
91543
91544         * lib/userspec.c: Include "userspec.h".
91545         * lib/userspec.h: New file.
91546
91547 2003-11-03  Bruno Haible  <bruno@clisp.org>
91548
91549         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
91550
91551 2003-11-03  Bruno Haible  <bruno@clisp.org>
91552
91553         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
91554         available, to avoid (extremely rare) race condition.
91555         Suggested by Paul Eggert.
91556
91557 2003-11-02  Karl Berry  <karl@gnu.org>
91558
91559         * config/srclist.txt (vasprintf.c): sync broken, sigh.
91560
91561 2003-10-31  Paul Eggert  <eggert@twinsun.com>
91562
91563         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
91564         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
91565         (read_filesystem_list): Set and use me_type_malloced.
91566         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
91567         whatever the type happens to be), for brevity and consistency.
91568         Check for size calculation overflow on Alphas running OSF/1.
91569
91570 2003-10-31  Jim Meyering  <jim@meyering.net>
91571
91572         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
91573
91574         * lib/linebuffer.c: Include <string.h> for declaration of memset.
91575
91576 2003-10-30  Paul Eggert  <eggert@twinsun.com>
91577             Bruno Haible  <bruno@clisp.org>
91578
91579         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
91580         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
91581
91582 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
91583
91584         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
91585         netbsd*-gnu*.  Suggested by Robert Millan.
91586
91587 2003-10-29  Paul Eggert  <eggert@twinsun.com>
91588
91589         * modules/group-member: Depend on stdbool.
91590
91591 2003-10-29  Paul Eggert  <eggert@twinsun.com>
91592
91593         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
91594
91595 2003-10-29  Paul Eggert  <eggert@twinsun.com>
91596
91597         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
91598         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
91599         after the 'gnu' in these cases.  This fixes some bugs in the
91600         previous change, and is based on suggestions by Robert Millan.
91601
91602 2003-10-29  Paul Eggert  <eggert@twinsun.com>
91603
91604         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
91605         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
91606         no longer needed.
91607         * lib/quotearg.c (quotearg_n_options): Use it.
91608         * lib/group-member.c: Include <stdbool.h>.
91609         (free_group_info): Arg is now const *; don't free arg.
91610         (get_group_info): Now returns bool and accepts struct group_info *,
91611         rather than returning a malloc'ed struct group_info *.
91612         All uses changed.  Check for overflow in internal size calculation.
91613
91614         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
91615         rather than xmalloc/xrealloc.
91616         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
91617         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
91618         conformance bug: the old code used a pointer after freeing the
91619         storage that it addressed.
91620         * lib/hash.c (hash_initialize): Simplify the code by using
91621         xalloc_oversized rather than doing it by hand.
91622         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
91623         the buffer preserved.  Use free and xmalloc instead.
91624         * lib/quotearg.c (quotearg_n_options): Likewise.
91625         Use a simpler test for size overflow.  Don't use xalloc_oversized
91626         because unsigned int might be wider than size_t (!); this suggests
91627         that we should switch from unsigned int to size_t for slot numbers.
91628
91629 2003-10-28  Paul Eggert  <eggert@twinsun.com>
91630
91631         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
91632         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
91633         NetBSD kernels.  Requested by Richard Stallman.
91634
91635 2003-10-27  Paul Eggert  <eggert@twinsun.com>
91636
91637         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
91638         to allocate the returned structure.  Do not allocate a subarray,
91639         as x2nrealloc will do that.
91640         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
91641         instead of xnrealloc.
91642         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
91643
91644 2003-10-27  Bruno Haible  <bruno@clisp.org>
91645
91646         * lib/stdbool_.h: Better support for BeOS.
91647
91648 2003-10-26  Paul Eggert  <eggert@twinsun.com>
91649
91650         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
91651         now uses inline.
91652
91653 2003-10-26  Paul Eggert  <eggert@twinsun.com>
91654
91655         * lib/xalloc.h (xalloc_oversized): New static inline function, for
91656         callers that want to do their own size-overflow checking.  Include
91657         <stdbool.h>, since xalloc_oversized returns bool.
91658         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
91659         to use xalloc_oversized.
91660
91661         Add two functions x2realloc, x2nrealloc, for programs that grow
91662         arrays dynamically by doubling their sizes.
91663         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
91664         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
91665         New functions.
91666
91667         Port to C99 semantics for 'inline' of external functions.
91668         Bug reported by Bruno Haible.
91669         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
91670         with the old contents of xnmalloc.
91671         (xnmalloc, xmalloc): Use it.
91672         (xnrealloc_inline): New static inline function,
91673         with the old contents of xnrealloc.
91674         (xnrealloc, xrealloc): Use it.
91675
91676         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
91677         that.
91678
91679 2003-10-26  Karl Berry  <karl@gnu.org>
91680
91681         * config/srclist.txt (COPYING.DOC): no longer available from
91682         /gd/gnuorg; don't know where the ultimate source is.
91683
91684 2003-10-25  Paul Eggert  <eggert@twinsun.com>
91685
91686         Fix several address-calculation bugs in the hash modules,
91687         plus some minor code cleanup.
91688
91689         * lib/hash.h: Include <stdbool.h>, for bool.
91690         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
91691         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
91692         hash_get_n_entries, hash_get_max_bucket_length,
91693         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
91694         hash_rehash): Use size_t rather than unsigned.
91695         * lib/hash.c (struct hash_table, hash_get_n_buckets,
91696         hash_get_n_buckets_used, hash_get_n_entries,
91697         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
91698         hash_get_entries, hash_do_for_each, hash_string, is_prime,
91699         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
91700         Likewise.
91701         (SIZE_MAX): Define if not defined.
91702         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
91703         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
91704         hash_print):
91705         Use const * when possible.
91706         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
91707         (check_tuning): Fix bug: if tuning parameters were very close to
91708         0 or 1, rounding errors could have caused subscript violations.
91709         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
91710         (hash_initialize): Add 'fail:' label
91711         to free table and return NULL, and use it to simplify code.
91712         Use calloc rather than clearing the storage ourself.
91713         (hash_initialize, hash_rehash): Check for arithmetic overflow in
91714         buffer size calculations.
91715         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
91716         Include <stddef.h>, for size_t.
91717         * lib/hash-pjw.c (hash_pjw): Likewise.
91718         Switch to method described by Bruno Haible.
91719         Include <limits.h>, for CHAR_BIT.
91720         (SIZE_BITS): New macro.
91721
91722 2003-10-23  Paul Eggert  <eggert@twinsun.com>
91723
91724         * m4/getline.m4 (AM_FUNC_GETLINE):
91725         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
91726         hosts.  Problem reported by Derek Robert Price in
91727         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
91728         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
91729         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
91730
91731 2003-10-21  Paul Eggert  <eggert@twinsun.com>
91732
91733         * lib/getndelim2.c (getndelim2): When size calculation overflows,
91734         ceiling the allocation at NMAX bytes rather than silently
91735         discarding input bytes before NMAX is reached.  This makes
91736         a difference only if NMAX exceeds SIZE_MAX / 2.
91737
91738         * lib/obstack.c: Merge from glibc.
91739         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
91740         Add libc_hidden_def (_obstack_newchunk).
91741         (_obstack_free) [! defined _LIBC]: Remove.
91742         [defined _LIBC]: Make a strong alias from obstack_free, rather than
91743         a clone of the function body.
91744         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
91745         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
91746
91747         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
91748         glibc.
91749         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
91750         arg to memcpy.
91751
91752         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
91753         (obstack_ptr_grow_fast, obstack_int_grow_fast):
91754         Don't use lvalue casts, as GCC plans to remove support for them
91755         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
91756         was also present in the non-GCC version, indicating that this
91757         code had always been buggy and had never been widely used.
91758         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
91759         Use the fast variant of each macro, rather than copying the
91760         definiens of the fast variant; that way, we'll be more likely to
91761         catch future bugs in the fast variants.
91762
91763 2003-10-20  Bruno Haible  <bruno@clisp.org>
91764
91765         * modules/wait-process: New file.
91766         * MODULES.html.sh (func_all_modules): Add wait-process.
91767
91768 2003-10-20  Bruno Haible  <bruno@clisp.org>
91769
91770         * m4/wait-process.m4: New file.
91771
91772 2003-10-20  Bruno Haible  <bruno@clisp.org>
91773
91774         * lib/wait-process.h: New file, from GNU gettext.
91775         * lib/wait-process.c: New file, from GNU gettext.
91776
91777 2003-10-19  Jim Meyering  <jim@meyering.net>
91778
91779         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
91780         HPUX 10.20.
91781
91782 2003-10-18  Karl Berry  <karl@gnu.org>
91783
91784         * config/config.guess: update from config.
91785
91786 2003-10-16  Paul Eggert  <eggert@twinsun.com>
91787
91788         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
91789         (getgroups): First arg is int, not size_t.
91790         Don't let 'free' mangle errno.
91791
91792 2003-10-16  Paul Eggert  <eggert@twinsun.com>
91793
91794         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
91795
91796 2003-10-16  Karl Berry  <karl@gnu.org>
91797
91798         * config/config.{guess,sub}: update from config.
91799
91800 2003-10-16  Jim Meyering  <jim@meyering.net>
91801
91802         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
91803         memcpy.
91804
91805 2003-10-15  Paul Eggert  <eggert@twinsun.com>
91806
91807         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
91808         (SIZE_MAX): Remove.
91809         (new_exclude, add_exclude_file): Initial size no longer needs to
91810         be a power of 2.
91811         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
91812         our own address arithmetic overflow checking.
91813
91814         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
91815         (fnmatch): Do not alloca more than 2000 wide characters;
91816         instead, use malloc for large buffers.
91817         Check for address arithmetic overflow, and return -1
91818         with errno set to ENOMEM in that case.
91819         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
91820         (NEW_PATTERN): Do not alloca more than 8000 bytes;
91821         instead, return -1.  Check for address arithmetic overflow.
91822
91823 2003-10-14  Paul Eggert  <eggert@twinsun.com>
91824
91825         Handle invalid suffixes and overflow independently, so that
91826         callers can treat them independently as needed.  Fix some bugs in
91827         suffix handling, e.g., "100k@" was not diagnosed as an invalid
91828         suffix for a human-readable blocksize.  The major caller-visible
91829         change is the addition of a new
91830         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
91831         that both overflow and suffix chars were found.
91832
91833         * lib/human.c (humblock): Don't check separately for invalid suffix
91834         char; that is xstrtoumax's job (now that its bug is fixed).
91835         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
91836         INTMAX_MAX]: New macros.
91837         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
91838         TYPE_MAXIMUM): New macros.
91839         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
91840         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
91841         if overflow occurs, as it's what __strtol does and it's more useful
91842         in practice.
91843         (__xstrtol): If __strtol reports some error other than ERANGE,
91844         reflect it to the caller as LONGINT_INVALID.  If it reports
91845         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
91846         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
91847         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
91848         value.
91849         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
91850         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
91851         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
91852         [defined UINTMAX_MAX]: New macros.
91853
91854 2003-10-14  Bruno Haible  <bruno@clisp.org>
91855
91856         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
91857
91858 2003-10-14  Bruno Haible  <bruno@clisp.org>
91859
91860         * m4/sig_atomic_t: New file, from GNU gettext.
91861         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
91862
91863 2003-10-14  Bruno Haible  <bruno@clisp.org>
91864
91865         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
91866         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
91867         Also use volatile where needed.
91868
91869 2003-10-12  Paul Eggert  <eggert@twinsun.com>
91870
91871         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
91872         Change maintainer from Bruno Haible to 'all'.
91873
91874 2003-10-12  Paul Eggert  <eggert@twinsun.com>
91875
91876         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
91877
91878 2003-10-12  Paul Eggert  <eggert@twinsun.com>
91879
91880         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
91881         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
91882         and define in terms of the other primitives.
91883         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
91884         (SIZE_MAX): Define if not already defined.
91885         (array_size_overflow): New function.
91886         (xalloc_die): Abort instead of exiting if 'error' returns.
91887         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
91888         (xmalloc, xrealloc): Use them.
91889         (xcalloc): Check for address arithmetic overflow.
91890         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
91891         a bit faster than strcpy.
91892
91893 2003-10-10  Simon Josefsson  <jas@extundo.com>
91894
91895         * modules/argp (Depends-on): Add restrict and strcase.
91896
91897 2003-10-10  Simon Josefsson  <jas@extundo.com>
91898
91899         * m4/argp.m4: Add AC_C_INLINE.
91900
91901 2003-10-08  Paul Eggert  <eggert@twinsun.com>
91902
91903         Merge getpass from libc, plus a few fixes.
91904
91905         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
91906         Include <stdbool.h>.
91907         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
91908         __fsetlocking to empty.
91909         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
91910         do include <bits/libc-lock.h>.
91911         Do not include <fcntl.h>; not needed.
91912         [_LIBC]: Include <wchar.h>.
91913         (NOTCANCEL_MODE): New macro.
91914         (flockfile, funlockfile) [_LIBC]: New macros.
91915         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
91916         [!_LIBC]: New macros.
91917         (call_fclose): New function.
91918         (getpass): Use it.  Save tty stream separately; this simplifies the
91919         code and makes it more reliable if stdin happens to equal stdout.
91920         Invoke __fsetlocking on tty.
91921         Handle thread cancellation if needed.
91922         Namespace cleanup (use __tcgetattr, __getline).
91923         Use bool for Booleans.
91924         [USE_IN_LIBIO]: Handle wide streams.
91925         [!_LIBC]: Unconditionally do the fseek, since we don't know what
91926         stream might go where.
91927
91928         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
91929         doesn't have to include <stdio.h> before us.
91930         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
91931         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
91932         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
91933         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
91934         if not declared, so that we can use getpass.c code from libc without
91935         rewriting it.
91936         (flockfile, ftrylockfile, funlockfile): New macros.
91937
91938 2003-10-08  Paul Eggert  <eggert@twinsun.com>
91939
91940         * modules/getpass: Depend on stdbool.
91941
91942 2003-10-08  Paul Eggert  <eggert@twinsun.com>
91943
91944         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
91945
91946 2003-10-07  Karl Berry  <karl@gnu.org>
91947
91948         * config/config.{guess,sub}: update from config.
91949
91950 2003-10-06  Jim Meyering  <jim@meyering.net>
91951             Bruno Haible  <bruno@clisp.org>
91952
91953         This lets translators provide better translations for the
91954         "Written by ..." part of --version output.
91955         * lib/version-etc.h: Include stdarg.h.
91956         (version_etc_copyright): Declare as readonly.
91957         (version_etc): Make this function variadic with a NULL-terminated list
91958         of author name strings.
91959         (version_etc_va): New declaration.
91960         * lib/version-etc.c: Include stdarg.h, stdlib.h.
91961         (version_etc_copyright): Declare as readonly.
91962         (version_etc_va): New function. Provide a different translatable string
91963         for each possible number of authors < 10. Abbreviate when there are 10
91964         authors or more.
91965         (version_etc): Make this function variadic. Call version_etc_va.
91966         Suggestion from Gary V. Vaughan.
91967
91968         * lib/long-options.h (parse_long_options): Change prototype: the
91969         authors string is moved to the end and becomes variadic.
91970         * lib/long-options.c: Include stdarg.h.
91971         (parse_long_options): Make this function variadic, too.
91972         Call version_etc_va, not version_etc.
91973
91974 2003-10-06  Bruno Haible  <bruno@clisp.org>
91975
91976         * modules/version-etc-2: Remove file.
91977         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
91978
91979 2003-10-06  Bruno Haible  <bruno@clisp.org>
91980
91981         * modules/fatal-signal: New file.
91982         * MODULES.html.sh (func_all_modules): Add fatal-signal.
91983
91984 2003-10-06  Bruno Haible  <bruno@clisp.org>
91985
91986         * m4/fatal-signal.m4: New file.
91987         * m4/signalblocking.m4: New file, from GNU gettext.
91988
91989 2003-10-06  Bruno Haible  <bruno@clisp.org>
91990
91991         * lib/version-etc-2.h: Remove file.
91992         * lib/version-etc-2.c: Remove file.
91993
91994 2003-10-06  Bruno Haible  <bruno@clisp.org>
91995
91996         * lib/fatal-signal.h: New file, from GNU gettext.
91997         * lib/fatal-signal.c: New file, from GNU gettext.
91998
91999 2003-10-05  Paul Eggert  <eggert@twinsun.com>
92000
92001         * README: Rework advice for preventing empty .o files.
92002         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
92003         not <sys/types.h>.
92004
92005 2003-10-04  Karl Berry  <karl@gnu.org>
92006
92007         * lib/argp*: update from libc.
92008
92009 2003-10-04  Karl Berry  <karl@gnu.org>
92010
92011         * config/config.{guess,sub}: update from config.
92012
92013 2003-10-02  Bruno Haible  <bruno@clisp.org>
92014
92015         * modules/lchown (Include): Add lchown.h.
92016         * modules/time_r (Include): Use "..." syntax.
92017         * modules/xgetdomainname (Include): Add xgetdomainname.h.
92018
92019 2003-10-01  Simon Josefsson  <jas@extundo.com>
92020
92021         * MODULES.html.sh (func_all_modules): Move gethostname from section
92022         'based on' to section 'lacking' POSIX:2001.
92023
92024 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
92025
92026         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
92027         to output mode on the same stream.
92028
92029 2003-09-29  Paul Eggert  <eggert@twinsun.com>
92030
92031         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
92032         Fix arg typo in previous patch.
92033
92034 2003-09-28  Jim Meyering  <jim@meyering.net>
92035
92036         * lib/error.c: Correct cpp indentation.
92037
92038 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92039
92040         * modules/free: New file.
92041
92042 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92043
92044         * m4/free.m4: New file.
92045
92046 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92047
92048         * lib/minmax.h (MIN, MAX)
92049         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
92050         Omit the special code that used __typeof__, since we worry that
92051         it could be more trouble than it's worth.  See:
92052         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
92053         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
92054
92055         * lib/free.c: New file.
92056
92057 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
92058
92059         Trivial fixes to Makefile.am parts of module listings.
92060         * modules/strstr: Append strstr.h to lib_SOURCES.
92061         * modules/strcase: Likewise, for strcase.h.
92062
92063 2003-09-27  Karl Berry  <karl@gnu.org>
92064
92065         * config/mkinstalldirs: update from automake.
92066
92067 2003-09-26  Paul Eggert  <eggert@twinsun.com>
92068
92069         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
92070         (error_tail): Do not loop, reallocating temporary buffer, since
92071         the output cannot contain more wide characters than the input
92072         contains bytes, the size must be big enough already.  This avoids
92073         one potential size overflow calculation.  Check for size overflow
92074         when calculating temporary buffer size.  Free temporary buffer
92075         when done, if it was allocated with malloc; this plugs a memory
92076         leak.  Remove casts from void * to pointers, that are no longer
92077         needed now that we're assuming C89 or better.
92078
92079         Merge error changes from glibc.
92080
92081         * lib/error.c, error.h: Update copyright notice header to match glibc.
92082         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
92083         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
92084         Disable cancellation while printing error.
92085         * lib/error.h: Prepend __ to parameter names.
92086
92087 2003-09-26  Jim Meyering  <jim@meyering.net>
92088
92089         * lib/error.c (error_tail): Move some declarations
92090         into inner scope where the local variables are used.
92091
92092 2003-09-26  Bruno Haible  <bruno@clisp.org>
92093
92094         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
92095         stpncpy().
92096         Don't define stpncpy through config.h; it's now done through stpncpy.h.
92097
92098 2003-09-26  Bruno Haible  <bruno@clisp.org>
92099
92100         * lib/stpncpy.h (gnu_stpncpy): New declaration.
92101         (stpncpy): Define as alias for gnu_stpncpy.
92102         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
92103
92104 2003-09-25  Simon Josefsson  <jas@extundo.com>
92105
92106         * lib/xgetdomainname.h: New file.
92107         * lib/xgetdomainname.c: New file.
92108
92109 2003-09-25  Simon Josefsson  <jas@extundo.com>
92110             Bruno Haible  <bruno@clisp.org>
92111
92112         * modules/getdomainname: New file.
92113         * modules/xgetdomainname: New file.
92114         * MODULES.html.sh (func_all_modules): Add getdomainname,
92115         xgetdomainname.
92116
92117 2003-09-25  Simon Josefsson  <jas@extundo.com>
92118             Bruno Haible  <bruno@clisp.org>
92119
92120         * m4/getdomainname.m4: New file.
92121
92122 2003-09-25  Simon Josefsson  <jas@extundo.com>
92123             Bruno Haible  <bruno@clisp.org>
92124
92125         * lib/getdomainname.h: New file.
92126         * lib/getdomainname.c: New file.
92127
92128 2003-09-25  Karl Berry  <karl@gnu.org>
92129
92130         * lib/argp-fmtstream.c, argp-help.c: update from libc.
92131
92132 2003-09-25  Karl Berry  <karl@gnu.org>
92133
92134         * config/install-sh: update from automake.
92135
92136 2003-09-25  Bruno Haible  <bruno@clisp.org>
92137
92138         * modules/version-etc-2: New file, from modules/version-etc with
92139         modifications.
92140         * MODULES.html.sh (func_all_modules): Add version-etc-2.
92141
92142 2003-09-25  Bruno Haible  <bruno@clisp.org>
92143
92144         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
92145         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
92146
92147 2003-09-24  Simon Josefsson  <jas@extundo.com>
92148
92149         * modules/xgethostname: Add xgethostname.h.
92150
92151 2003-09-24  Paul Eggert  <eggert@twinsun.com>
92152
92153         * lib/linebuffer.c (freebuffer): Don't free the argument, just
92154         the buffer associated with the argument.  Bug reported by
92155         Simon Josefsson.
92156
92157 2003-09-24  Paul Eggert  <eggert@twinsun.com>
92158
92159         * README: Document assumptions that 'int' is at least 32 bits
92160         wide, that integer arithmetic is 2's complement without overflow,
92161         that there are no holes in integer values, that adding sizes of
92162         two nonoverlapping objects can't overflow, and that all-bits-zero
92163         yields scalar zero.  Fix spelling and capitalization typos.
92164
92165 2003-09-19  Karl Berry  <karl@gnu.org>
92166
92167         * lib/argp.h: update from libc.
92168
92169 2003-09-17  Paul Eggert  <eggert@twinsun.com>
92170
92171         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
92172         to avoid spurious warnings like "AC_RUN_IFELSE was called before
92173         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
92174
92175 2003-09-17  Paul Eggert  <eggert@twinsun.com>
92176
92177         * gnulib-tool: Use "test -h", not "test -L", for portability
92178         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
92179         (tags_regexp): Remove, since \| doesn't conform to POSIX.
92180         (sed_extract_prog): Issue s commands one-by-one, rather than
92181         using \| in one s command.
92182
92183 2003-09-16  Paul Eggert  <eggert@twinsun.com>
92184
92185         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
92186         input error, instead of returning NULL the next time we are called
92187         (and therefore losing track of errno).
92188
92189 2003-09-16  Bruno Haible  <bruno@clisp.org>
92190
92191         * gnulib-tool (func_create_testdir): Warn about duplicated
92192         dependencies.
92193
92194 2003-09-15  Paul Eggert  <eggert@twinsun.com>
92195
92196         * modules/argmatch, modules/fatal, modules/obstack,
92197         modules/xalloc, modules/xgethostname: Sort dependencies by
92198         importance, not alphabetically.
92199
92200 2003-09-15  Paul Eggert  <eggert@twinsun.com>
92201
92202         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
92203         fails, so that the caller gets the proper errno.
92204
92205         * lib/readutmp.c (read_utmp): Likewise.
92206         Check for fstat error.  Close stream and free storage
92207         when failing.
92208
92209 2003-09-14  Karl Berry  <karl@gnu.org>
92210
92211         * config/srclist.txt (strdup.c): disable for c89 changes.
92212
92213 2003-09-14  Jim Meyering  <jim@meyering.net>
92214
92215         * lib/getloadavg.c: Correct cpp indentation.
92216         * lib/strdup.c: Likewise.
92217         * lib/vasnprintf.c: Likewise.
92218
92219 2003-09-14  Bruno Haible  <bruno@clisp.org>
92220
92221         * modules/fwriteerror: New file.
92222         * MODULES.html.sh (func_all_modules): Add fwriteerror.
92223
92224 2003-09-14  Bruno Haible  <bruno@clisp.org>
92225
92226         * lib/fwriteerror.h: New file.
92227         * lib/fwriteerror.c: New file.
92228
92229 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92230
92231         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
92232         modules/xgethostname, modules/xalloc: Depend on exit.
92233
92234 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92235
92236         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
92237
92238         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
92239         and AC_MINIX, too, so that their extensions are available.
92240
92241         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
92242         This macro has been superseded by gl_BACKUPFILE.
92243
92244         More patches to assume C89 or better.
92245
92246         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
92247
92248         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
92249         unconditionally.
92250         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
92251         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
92252         Include <string.h>, <stdlib.h> unconditionally.
92253         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
92254         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
92255         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
92256         headers or for string.h.
92257         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
92258         or strtoul.
92259
92260         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
92261         headers.
92262         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
92263         * m4/userspec.m4 (gl_USERSPEC): Likewise.
92264         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
92265         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
92266         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
92267         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
92268         memcpy, memset.
92269         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
92270         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
92271         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
92272         strtol.
92273         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
92274         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
92275         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
92276         strtoul.
92277
92278 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92279
92280         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
92281         * lib/obstack.c [!defined _LIBC]: Likewise.
92282         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
92283         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
92284         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
92285
92286         More changes to assume C89 or better.
92287
92288         * lib/error.c (error_tail): Assume vprintf.
92289
92290         * lib/argmatch.c (getenv): Remove decl.
92291         * lib/progreloc.c (get_full_program_name): Define via prototype.
92292         * lib/setenv.c (clearenv): Likewise.
92293         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
92294         needed.
92295         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
92296         (malloc, memcpy): Remove decls.
92297         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
92298         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
92299         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
92300         (memcpy): Remove macro.
92301         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
92302         (__P): Remove.  All uses removed.
92303         (PTR): Remove.  All uses changed to void *.
92304         (CHAR_BIT, NULL): Remove.
92305         (spaces, zeros, memset_space, memset_zero)
92306         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
92307         Remove.
92308         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
92309         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
92310         Define with prototype.
92311         Remove now-unnecessary prototype decl.
92312         (extra_args_spec): Assume ANSI C.  All uses changed.
92313         (extra_args_spec_iso): Remove.
92314         (my_strftime, emacs_strftimeu): Define via prototype.
92315         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
92316         unconditionally.
92317         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
92318         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
92319         (strtoul, strtol): Remove decls.
92320         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
92321         LONG_MAX): Remove.
92322         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
92323         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
92324         (LOCALE_PARAM_PROTO): New macro.
92325         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
92326         (INTERNAL (strtol), strtol): Define with a prototype.
92327         (PARAMS): Remove.  All uses removed.
92328         * lib/tempname.c: Include <string.h> unconditionally.
92329         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
92330         * lib/xgethostname.c (main): Define with a prototype.
92331         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
92332         Include <stdlib.h> unconditionally.
92333         (calloc, malloc, realloc, free): Remove decls.
92334         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
92335         Include <stdlib.h> unconditionally.  Sort include file names.
92336         (strtod): Remove.
92337         (xstrtod): Define with a prototype.
92338         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
92339         (strtol, strtoul): Remove decls.
92340
92341 2003-09-11  Paul Eggert  <eggert@twinsun.com>
92342
92343         More patches to assume C89 or better.
92344         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
92345         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
92346         string.h, memchr, STDC_HEADERS.
92347
92348 2003-09-11  Paul Eggert  <eggert@twinsun.com>
92349
92350         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
92351         Include <stdlib.h>, <string.h> unconditionally.
92352         Remove now-unnecessary cast to char *.
92353         * lib/strnlen.c: Include <string.h> unconditionally.
92354         * lib/yesno.c (yesno): Define with a prototype.
92355
92356 2003-09-11  Bruno Haible  <bruno@clisp.org>
92357
92358         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
92359
92360 2003-09-10  Jim Meyering  <jim@meyering.net>
92361
92362         * lib/error.c: Correct indentation of cpp directives.
92363
92364 2003-09-10  Bruno Haible  <bruno@clisp.org>
92365
92366         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
92367         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
92368         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
92369         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
92370         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
92371         <stdlib.h> and <string.h> checks.
92372         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
92373         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
92374
92375 2003-09-10  Bruno Haible  <bruno@clisp.org>
92376
92377         * lib/strcspn.c: Include <string.h> unconditionally.
92378         * lib/strpbrk.c: Include <string.h> unconditionally.
92379         * lib/strstr.c: Include <string.h> unconditionally.
92380         * lib/unicodeio.c: Include <string.h> unconditionally.
92381         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
92382         * lib/unsetenv.c: Likewise.
92383         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
92384         * lib/yesno.c: Include <stdlib.h> unconditionally.
92385         (rpmatch): Add prototype.
92386
92387 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92388
92389         More patches to assume C89 or better.
92390         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
92391         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
92392         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
92393         or for string.h.
92394         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
92395         stdlib.h.
92396         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
92397         C headers.
92398         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
92399         string.h.
92400         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
92401         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
92402         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
92403         or for string.h.
92404         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
92405         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
92406         C headers.
92407         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
92408         memcpy.
92409         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
92410         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
92411         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
92412         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
92413         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
92414         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
92415         string.h, free.
92416         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
92417         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
92418         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
92419         C headers, or for string.h.
92420         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
92421         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
92422         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
92423         headers, memory.h, stdlib.h, string.h, strings.h.
92424         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
92425         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
92426         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
92427         strchr.
92428         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
92429         headers, memory.h, string.h.
92430         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
92431         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
92432         free.
92433         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
92434         headers.
92435         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
92436         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
92437         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
92438         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
92439         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
92440
92441 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92442
92443         More K&R removal.
92444
92445         * lib/acosl.c (main): Use a prototype.
92446         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
92447         tanl.c: Likewise.
92448
92449         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
92450
92451         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
92452         (getopt, etopt_long, getopt_long_only, _getopt_internal)
92453         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
92454         with a prototype.
92455         * lib/getopt.c (const): Remove macro.
92456         Include <string.h> unconditionally.
92457         (my_index): Remove; all uses changed to strchr.
92458         (strlen): Remove decl.
92459         (exchange): Remove forward decl; no longer needed.
92460         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
92461         Define with prototype.
92462         * lib/getopt1.c (const): Remove macro.
92463         (getopt_long, getopt_long_only, main): Define with prototype.
92464
92465         * lib/getugroups.c: Include <string.h> unconditionally.
92466
92467         * lib/getusershell.c: Include <stdlib.h> unconditionally.
92468         (getusershell, setusershell, endusershell, readname, main):
92469         Define with prototypes.
92470
92471         * lib/group-member.c: Include group-member.h first.
92472         Include <stdlib.h> unconditionally.
92473
92474         * lib/hard-locale.c: Include hard-locale.h first.
92475         Include <stdlib.h>, <string.h> unconditionally.
92476
92477         * lib/hash.c (free, malloc): Remove decls.
92478         Include <stdlib.h> unconditionally.
92479
92480         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
92481         (getenv): Do not declare.
92482
92483         * lib/idcache.c: Include <string.h> unconditionally.
92484
92485         * lib/long-options.c: Include long-options.h first, to test interface.
92486         Include <stdlib.h> unconditionally.
92487
92488         * lib/makepath.c: Include makepath.h first, to test interface.
92489         Include <stdlib.h> and <string.h> unconditionally.
92490
92491         * lib/linebuffer.c: Include <stdlib.h>.
92492         (free): Remove decl.
92493
92494         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
92495         stddef.h. rpl_malloc returns void *, not char *.
92496         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
92497         prototype.
92498
92499         * lib/md5.h: Include <limits.h> unconditionally.
92500         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
92501         (__P): Remove; all uses removed.
92502         * lib/md5.c: Include "md5.h" first.
92503         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
92504         md5_buffer, md5_process_bytes, md5_process_block):
92505         Define with prototypes.
92506         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
92507         * lib/sha.c: Include "sha.h" first.
92508         Include <stdlib.h>, <string.h> unconditionally.
92509
92510         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
92511         * lib/memcmp.c (__ptr_t): Likewise.
92512         * lib/memrchr.c (__ptr_t): Likewise.
92513         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
92514         Include <string.h> unconditionally.
92515         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
92516         * lib/memchr.c: Include <stdlib.h> unconditionally.
92517         * lib/memchr.c (LONG_MAX): Remove.
92518         * lib/memrchr.c (LONG_MAX): Likewise.
92519         * lib/memchr.c (__memchr): Define via a prototype.
92520         * lib/memrchr.c (__memrchr): Likewise.
92521         * lib/memcmp.c (__P): Remove, and remove all uses.
92522         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
92523         Remove forward decls; no longer needed.
92524         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
92525         Use types required by C89 in prototype.
92526
92527         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
92528         * lib/savedir.c: Likewise.
92529         * lib/mkdir.c (free): Remove decl.
92530         * lib/rmdir.c (rmdir): Define with a prototype.
92531         * lib/savedir.c: Include savedir.h first, to test interface.
92532
92533         * lib/mktime.c (STDC_HEADERS): Remove.
92534         Include <stdlib.h>, <string.h> unconditionally.
92535
92536         * lib/modechange.c: Include <stdlib.h> unconditionally.
92537         (malloc): Remove decl.
92538
92539         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
92540         (free): Remove decl.
92541
92542         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
92543         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
92544         (This type really should be intptr_t, but that's a C99ism.)
92545         (_obstack_memcpy): Remove: all uses changed to memcpy.
92546         Include <string.h> unconditionally.
92547         (struct obstack): Assume __STDC__ for types of members
92548         chunkfun, freefun, extra_arg.
92549         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
92550         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
92551         obstack_begin, obstack_specify_allocation,
92552         obstack_specify_allocation_with_arg, obstack_chunkfun,
92553         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
92554         Remove unprototyped decls and the macros that use them.
92555         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
92556         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
92557         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
92558         (defined __STDC__ && __STDC__)]:
92559         Remove nonprototyped code.
92560         Include <stdlib.h> unconditionally.
92561         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
92562         _obstack_allocated_p, _obstack_free, obstack_free,
92563         _obstack_memory_used, print_and_abort):
92564         Define using prototypes.
92565         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
92566         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
92567         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
92568         obstack_next_free, obstack_object_size, obstack_room) [0]:
92569         Remove unused, unprototyped code.
92570
92571         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
92572
92573         * lib/physmem.c (physmem_total, physmem_available, main): Define
92574         with prototypes.
92575
92576         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
92577         (main): Define with a prototype.
92578
92579         * lib/posixver.c (getenv): Remove decl.
92580
92581         * lib/putenv.c (malloc): Returns void *, not char *.
92582         Include <string.h> unconditionally.
92583         (strchr, memcpy, NULL): Do not define.
92584
92585         * lib/readtokens.c: Include readtokens.h first, to test interface.
92586         Include <stdlib.h>, <string.h> unconditionally.
92587         (init_tokenbuffer): Define with a prototype.
92588
92589         * lib/regex.c (PARAMS): Remove.  All uses removed.
92590         All uses of _RE_ARGS removed, too.
92591         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
92592         unconditionally.
92593         (bzero): Assume memset exists.
92594         (memcmp, memcpy, NULL): Remove.
92595         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
92596         char, or assignments to local vars of type signed char.
92597         (init_syntax_once, PREFIX(extract_number_and_incr),
92598         PREFIX(print_partial_compiled_pattern),
92599         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
92600         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
92601         PREFIX(regex_grow_registers), PREFIX(regex_compile),
92602         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
92603         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
92604         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
92605         wcs_compile_range, byte_compile_range, truncate_wchar,
92606         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
92607         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
92608         count_mbs_length, wcs_re_match_2_internal,
92609         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
92610         PREFIX(alt_match_null_string_p),
92611         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
92612         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
92613         regfree, PREFIX(extract_number)): Define with prototype.  Remove
92614         now-unnecessary declaration, if any.
92615         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
92616         regcomp, regexec):
92617         Remove now-unnecessary casts among pointer types.
92618         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
92619
92620         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
92621         (free): Remove decl.
92622
92623         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
92624
92625         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
92626         (free): Remove decl.
92627
92628         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
92629         * lib/xgetcwd.c: Likewise.
92630
92631         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
92632         (free): Remove decl.
92633
92634         * lib/strchrnul.c (strchrnul): Define with a prototype.
92635         Fix bug: c_in was not converted to char before searching.
92636
92637         The following changes are not K&R related:
92638
92639         * lib/group-member.h: Include <sys/types.h>, so that this file is
92640         self-contained.
92641         * lib/makepath.h: Likewise.
92642
92643         * lib/getusershell.c (readname, default_index, line_size, readname):
92644         Use size_t, not int, for sizes.
92645         (readname): If the size overflows, report an error instead of
92646         looping forever.
92647
92648 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92649
92650         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
92651         libc.
92652
92653 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92654
92655         * README: New section: portability guidelines.
92656
92657 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
92658
92659         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
92660         C89 spec.
92661
92662 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
92663
92664         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
92665
92666 2003-09-08  Paul Eggert  <eggert@twinsun.com>
92667
92668         Assume C89 or better; remove K&R cruft.
92669         A few of these changes were first proposed by Derek Robert Price
92670         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
92671
92672         * lib/addext.c: Include <string.h> unconditionally.
92673         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
92674         Don't declare getenv or malloc.
92675
92676         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
92677         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
92678         (NULL): Remove.
92679         (find_stack_direction, alloca): Use prototypes.
92680
92681         * lib/atexit.c (atexit): Define using a prototype.
92682
92683         * lib/basename.c, dirname.c, stripslash.c:
92684         Include <string.h> unconditionally.
92685
92686         * lib/bcopy.c: Include <stddef.h>.
92687         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
92688
92689         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
92690
92691         * lib/error.h (error, error_at_line, error_print_progname)
92692         [! (defined (__STDC__) && __STDC__)]: Remove decls.
92693         * lib/error.c: Include error.h first, to check interface.
92694         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
92695         (VA_START): Remove; all uses changeed to va_start.
92696         (exit, strerror): Remove decls.
92697         (error_print_progname): Prototype uncondionally.
92698         Don't include <errno.h>; no longer needed.
92699         (private_strerror): Remove.
92700         (error_tail): Always define.
92701         (error, error_at_line): Assume C89 or better; always use prototypes.
92702         * lib/fatal.c: Include "fatal.h" first, to test interface.
92703         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
92704         (VA_START): Remove; all uses changed to va_start.
92705         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
92706         this case.
92707         (exit): Remove decl.
92708         (fatal): Prototype unconditionally.  Assume va_start works.
92709         Abort at end, to pacify gcc.
92710
92711         * lib/euidaccess.c (main): Define with a prototype.
92712
92713         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
92714
92715         * lib/exitfail.c: Include <stdlib.h> unconditionally.
92716
92717         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
92718         prototypes.
92719         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
92720         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
92721         (getenv): Remove decl.
92722         (fnmatch): Define using a prototype.
92723         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
92724         (FCT): Define using a prototype.
92725
92726         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
92727
92728         * lib/gethostname.c: Include <stddef.h>.
92729         (gethostname): Define with prototype.  Length is size_t, not int.
92730
92731 2003-09-08  Paul Eggert  <eggert@twinsun.com>
92732
92733         Assume C89 or better; remove K&R cruft.
92734         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
92735         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
92736         string.h, getenv, malloc.
92737         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
92738         headers.
92739         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
92740         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
92741         do not check for strerror.
92742         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
92743         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
92744         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
92745         do not check for doprnt or vprintf.
92746         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
92747         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
92748
92749 2003-09-08  Paul Eggert  <eggert@twinsun.com>
92750
92751         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
92752         getversion.c should have been removed then, but was accidentally
92753         preserved.
92754
92755         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
92756         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
92757
92758 2003-09-08  Karl Berry  <karl@gnu.org>
92759
92760         * config/config.sub, config.guess, srclistvars.sh: update from savannah
92761                 config, forget about prep.
92762
92763         * config/depcomp, missing: update from automake.
92764
92765 2003-09-07  Paul Eggert  <eggert@twinsun.com>
92766
92767         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
92768         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
92769
92770 2003-09-07  Paul Eggert  <eggert@twinsun.com>
92771
92772         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
92773         copy_tm_result.  Bug reported by Simon Josefsson in
92774         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
92775
92776 2003-09-06  Paul Eggert  <eggert@twinsun.com>
92777
92778         * m4/time_r.m4: New file.
92779         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
92780         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
92781         is. Check for timegm declaration.
92782         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
92783         Do not check for gmtime_r.
92784         Replace mktime if __mktime_internal does not exist and if mktime
92785         hasn't been replaced already.
92786
92787 2003-09-06  Paul Eggert  <eggert@twinsun.com>
92788
92789         * lib/time_r.c, lib/time_r.h: New files.
92790
92791         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
92792         __localtime_r.
92793         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
92794         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
92795
92796         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
92797         __gmtime_r.
92798         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
92799         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
92800         Include <time_r.h>.
92801
92802         * lib/timegm.c: Switch to glibc implementation, with the following
92803         changes:
92804         [defined HAVE_CONFIG_H]: Include <config.h>.
92805         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
92806         (__mktime_internal) [!defined _LIBC]: New decl.
92807         (__gmtime_r) [!defined _LIBC]: New macro and function.
92808         (timegm): Use a prototype, since gnulib assumes C89.
92809         Do not bother declaring tmp to be const, as it's not really usefu.
92810         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
92811         (timegm): Declare only if HAVE_DECL_TIMEGM.
92812
92813 2003-09-06  Paul Eggert  <eggert@twinsun.com>
92814
92815         * MODULES.html.sh (func_all_modules): Add time_r.
92816         * modules/time_r: New file.
92817         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
92818         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
92819
92820 2003-09-03  Paul Eggert  <eggert@twinsun.com>
92821
92822         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
92823         Bug reported by Lute Kamstra in
92824         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
92825
92826         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
92827         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
92828         course with correspondingly smaller numbers for tomorrow and
92829         yesterday.  From Tadayoshi Funaba.  Originally installed into
92830         sh-utils on 1999-08-07, but the patch got lost (I guess during the
92831         coreutils merge?).
92832
92833 2003-08-31  Simon Josefsson  <jas@extundo.com>
92834
92835         * modules/timegm: New file.
92836         * MODULES.html.sh (func_all_modules): Add timegm.
92837
92838 2003-08-31  Simon Josefsson  <jas@extundo.com>
92839
92840         * m4/timegm.m4: New file.
92841
92842 2003-08-31  Simon Josefsson  <jas@extundo.com>
92843
92844         * lib/timegm.h: New file.
92845         * lib/timegm.c: New file.  Based on
92846         wget-1.8.2/src/http.c:mktime_from_utc.
92847
92848 2003-08-31  Karl Berry  <karl@gnu.org>
92849
92850         * lib/argp.h: update from libc.
92851
92852 2003-08-28  Bruno Haible  <bruno@clisp.org>
92853
92854         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
92855         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
92856         followed by '#define fnmatch fnmatch_posix' gives an error.
92857
92858 2003-08-28  Bruno Haible  <bruno@clisp.org>
92859
92860         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
92861         warning on QNX, which defines O_BINARY to 000000.
92862
92863 2003-08-27  Jim Meyering  <jim@meyering.net>
92864
92865         * m4/mkstemp.m4: Require that the system mkstemp be able to create
92866         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
92867         would fail after 32.  Reported by Danny Levinson.  Details here:
92868         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
92869
92870 2003-08-24  Bruno Haible  <bruno@clisp.org>
92871
92872         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
92873         MSVC7 <stdio.h> is included later.
92874
92875 2003-08-22  Simon Josefsson  <jas@extundo.com>
92876
92877         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
92878
92879 2003-08-20  Karl Berry  <karl@gnu.org>
92880
92881         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
92882
92883 2003-08-20  Bruno Haible  <bruno@clisp.org>
92884
92885         * modules/progname: New file.
92886         * MODULES.html.sh (func_all_modules): Add progname.
92887
92888 2003-08-20  Bruno Haible  <bruno@clisp.org>
92889
92890         * lib/progname.h: New file, from GNU gettext.
92891         * lib/progname.c: New file, from GNU gettext.
92892         * lib/progreloc.c: New file, from GNU gettext.
92893
92894 2003-08-19  Jim Meyering  <jim@meyering.net>
92895
92896         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
92897         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
92898
92899 2003-08-19  Bruno Haible  <bruno@clisp.org>
92900
92901         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
92902         more.
92903
92904 2003-08-19  Bruno Haible  <bruno@clisp.org>
92905
92906         * lib/xstrdup.c: Assume <string.h> exists.
92907
92908 2003-08-18  Paul Eggert  <eggert@twinsun.com>
92909
92910         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
92911         in makefile rules.
92912
92913 2003-08-18  Jim Meyering  <jim@meyering.net>
92914
92915         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
92916         * m4/lib-ld.m4: Likewise.
92917
92918 2003-08-18  Jim Meyering  <jim@meyering.net>
92919
92920         * lib/setenv.h: Indent nested cpp directive.
92921         * lib/vasnprintf.c: Remove trailing blanks.
92922
92923 2003-08-17  Simon Josefsson  <jas@extundo.com>
92924
92925         * modules/xstrndup: New file.
92926         * MODULES.html.sh (func_all_modules): Add xstrndup.
92927
92928 2003-08-17  Simon Josefsson  <jas@extundo.com>
92929
92930         * modules/argp: Fix autoconf macro name. Add more dependencies.
92931
92932 2003-08-17  Simon Josefsson  <jas@extundo.com>
92933
92934         * m4/xstrndup.m4: New file.
92935
92936 2003-08-17  Simon Josefsson  <jas@extundo.com>
92937
92938         * m4/argp.m4: New file.
92939
92940 2003-08-17  Simon Josefsson  <jas@extundo.com>
92941             Bruno Haible  <bruno@clisp.org>
92942
92943         * lib/xstrndup.h: New file.
92944         * lib/xstrndup.c: New file.
92945
92946 2003-08-17  Bruno Haible  <bruno@clisp.org>
92947
92948         * modules/strndup (Files, Include): Add lib/strndup.h.
92949
92950 2003-08-17  Bruno Haible  <bruno@clisp.org>
92951
92952         * modules/euidaccess (Files): Add lib/euidaccess.h.
92953
92954 2003-08-17  Bruno Haible  <bruno@clisp.org>
92955
92956         * lib/strndup.h: New file.
92957
92958 2003-08-17  Bruno Haible  <bruno@clisp.org>
92959
92960         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
92961         like AC_GNU_SOURCE.
92962         * modules/extensions (configure.ac): Comment out the invocation of
92963         gl_USE_SYSTEM_EXTENSIONS.
92964
92965 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92966
92967         Merges from coreutils, etc.
92968         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
92969         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
92970         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
92971         fixing a typo.
92972         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
92973         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
92974
92975 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92976
92977         Document merge from coreutils.
92978         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
92979         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
92980         * modules/utime: Add m4/utimes-null.m4.
92981
92982 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92983
92984         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
92985         space, undoing this 2003-08-12 change:
92986         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
92987
92988 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92989
92990         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
92991         strtoul.c from libc, undoing this 2003-08-12 change:
92992         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
92993
92994 2003-08-16  Jim Meyering  <jim@meyering.net>
92995
92996         Merges from coreutils.
92997         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
92998         prefix.  Adjust cache variables similarly.  Create 500 rather than
92999         just 300 files, to exercise bug on Darwin6.5, too.
93000         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
93001         $missing_dir.
93002         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
93003         AM_SYS_POSIX_TERMIOS.
93004         Reported by mkc@mathdogs.com.
93005         Also change use of $am_cv_sys_posix_termios
93006         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
93007         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
93008         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
93009         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
93010         in /proc/mounts until it finds one with matching device number.  This
93011         is unnecessary when the FILE argument *is* a mount point.  No stat call
93012         is necessary in that case.  So, disable the statvfs-testing code on
93013         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
93014         as RedHat bug# 84846.
93015         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
93016         to 1MB, so as not to render systems with no stack size limit (e.g.,
93017         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
93018         Include <unistd.h>.  On some systems,
93019         it is required for the definition of _SC_PAGESIZE.
93020
93021 2003-08-16  Jim Meyering  <jim@meyering.net>
93022
93023         Merge from coreutils.
93024         * lib/xstrtoimax.c: #else #if -> #elif.
93025         * lib/xstrtoumax.c: Likewise.
93026
93027 2003-08-16  Jim Meyering  <jim@meyering.net>
93028
93029         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
93030         * m4/utimes.m4: Removed.
93031         * m4/utimes-null.m4: Renamed from utimes.m4.
93032
93033         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
93034         to 1MB, so as not to render systems with no stack size limit (e.g.,
93035         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
93036         Include <unistd.h>.  On some systems,
93037         it is required for the definition of _SC_PAGESIZE.
93038
93039 2003-08-16  Jim Meyering  <jim@meyering.net>
93040         and Paul Eggert  <eggert@cs.ucla.edu>
93041
93042         Merges from coreutils, etc.
93043
93044         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
93045         using the latest version from cvs.  This avoids problems with #line
93046         directives using a vendor (Sun) compiler.
93047         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
93048         Don't set GETGROUPS_LIB here; now it's
93049         done via getgroups.m4's wrapper function.
93050         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
93051         rather than just in sh-util/configure.in, so that the
93052         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
93053         same.
93054         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
93055         AC_FUNC_GETLOADAVG where to find getloadavg.c.
93056         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
93057         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
93058         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
93059         Remove code that is now done by the newly-required macros.
93060         Append $(EXEEXT) to DF_PROG.
93061         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
93062         Do not invoke or require the following here,
93063         since prereq.m4 or some gnulib .m4 now does this for us:
93064         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
93065         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
93066         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
93067         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
93068         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
93069         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
93070         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
93071         AC_FUNC_OBSTACK.
93072         Do not replace the following functions, as this is now the job
93073         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
93074         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
93075         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
93076         atexit getpass, strdup, getpagesize.
93077         Replace 'raise'.
93078         Do not check for the following functions, as this is now the job
93079         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
93080         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
93081         setregid.
93082         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
93083         Check for sys/sysctl.h.
93084         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
93085         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
93086         of checking for ssize_t ourselves.
93087
93088         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
93089         Require every macro that gnulib/modules/* suggests for us.
93090         (jm_PREREQ_ADDEXT): New macro.
93091         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
93092         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
93093
93094         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
93095         (gl_PHYSMEM): Use it.
93096         Also check for `table' function.
93097         Check for new headers and functions.
93098         Add check for sys/sysmp.h.
93099         With suggestions from Kaveh Ghazi.
93100         Ignore headers that are present but cannot be compiled.  This
93101         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
93102         C 5.4.
93103
93104 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93105
93106         Document merge from coreutils.
93107         * modules/userspec: Depend on posixver.
93108         * modules/strftime: Depend on tzset.
93109
93110 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93111
93112         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
93113         rather than tab, after '#' in shell-script copyright notices.
93114         Suggested by Bruno Haible.
93115
93116 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93117
93118         * config/srclist-update: Use three spaces, rather than tab, after '#'
93119         in shell-script copyright notices.  Suggested by Bruno Haible.
93120         Remove unnecessary parenthesization in regular expression.
93121
93122 2003-08-15  Jim Meyering  <jim@meyering.net>
93123
93124         Merge from coreutils.
93125         * lib/xgethostname.c: Include <stdlib.h>.
93126         (xghostname): Don't exit for anything other than memory-related
93127         failure; just return NULL.
93128         * lib/userspec.c: Include "posixver.h".
93129         (parse_user_spec): Accept `.' as a separator only
93130         in pre-POSIX-200112 mode.
93131         * lib/strtoimax.c: Use #elif rather than #else #if.
93132         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
93133         Remove function, now that we can rely on a working tzset function.
93134         [!_LIBC]: Ensure that the required autoconf test has been run.
93135         [!defined _NL_CURRENT && HAVE_STRFTIME]:
93136         Use underlying_strftime for %r.
93137         * lib/sha.c: Merge in some clean-up and optimization changes from
93138         glibc.
93139         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
93140         Ensure that it is a multiple of 64.
93141         Rearrange loop exit tests so as to avoid performing an
93142         additional fread after encountering an error or EOF.
93143         * lib/realloc.c: Update copyright date.
93144
93145 2003-08-15  Jim Meyering  <jim@meyering.net>
93146         and Paul Eggert  <eggert@twinsun.com>
93147
93148         Merge from coreutils.
93149         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
93150         member but strut utmpx does not.  Needed for AIX 4.3.3.
93151         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
93152
93153 2003-08-15  Jim Meyering  <jim@meyering.net>
93154         and Paul Eggert  <eggert@cs.ucla.edu>
93155
93156         Merges from coreutils, etc.
93157         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
93158         Require gl_FUNC_TZSET_CLOBBER.
93159         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
93160         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
93161         members.
93162
93163 2003-08-14  Paul Eggert  <eggert@twinsun.com>
93164
93165         Help the merge from coreutils.
93166         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
93167         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
93168         * m4/tzset.m4: Use it too.
93169
93170 2003-08-14  Paul Eggert  <eggert@twinsun.com>
93171
93172         * modules/tzset: New file.
93173
93174 2003-08-14  Jim Meyering  <jim@meyering.net>
93175
93176         Merges from coreutils.
93177         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
93178         variable names, rather than @FNMATCH_H@.
93179         * modules/alloca: Likewise for $(ALLOCA_H).
93180
93181         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
93182         the three copies of the literal target, `fnmatch.h'.
93183         * modules/alloca (alloca.h): Likewise.
93184
93185 2003-08-14  Jim Meyering  <jim@meyering.net>
93186
93187         Merge from coreutils.
93188         * m4/tzset.m4: New file.
93189         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
93190         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
93191         otherwise, AIX 5.1 systems would end up using the latter.
93192         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
93193         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
93194         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
93195         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
93196
93197 2003-08-14  Jim Meyering  <jim@meyering.net>
93198
93199         Merge from coreutils.
93200         * lib/obstack.h: Whitespace changes.
93201         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
93202         and xcalloc return values.
93203         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
93204         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
93205         hang on OSF/1 5.1 for DIR on both local and remote file systems.
93206         Reported by (and fix confirmed by) Nelson H. F. Beebe.
93207         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
93208         error from mntctl.
93209         Use mntctl's return value to drive the entry-processing loop, since
93210         we can't rely on the value of the vmt_length member in the last
93211         entry.  On some systems doing so could result in exhausting
93212         virtual memory.  Based in part on a patch from Mike Jetzer.
93213
93214 2003-08-14  Jim Meyering  <jim@meyering.net>
93215         and Paul Eggert  <eggert@twinsun.com>
93216
93217         Merges from coreutils, plus other fixes.
93218         * lib/physmem.c: Merge in portability changes from gcc/libiberty
93219         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
93220         for credits and details.  Thanks to Kaveh Ghazi for helping
93221         to keep these files in sync.
93222         (ARRAY_SIZE): Define it.
93223         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
93224         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
93225         (memcasecmp): Don't assume size_t fits in unsigned int.
93226         Remove casts and duplicate code.
93227         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
93228         (memcpy): Remove definition.
93229         Merge in some clean-up and optimization changes from glibc.
93230         [BLOCKSIZE]: Move definition to top of file.
93231         Ensure that it is a multiple of 64.
93232         Rearrange loop exit tests so as to avoid performing an
93233         additional fread after encountering an error or EOF.
93234         * lib/md5.h (md5_uintptr): Define.
93235         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
93236         return to the initial working directory.  Preserve errno
93237         for caller.
93238         * lib/idcache.c: Include "xalloc.h".
93239         (xmalloc, xrealloc): Remove decls.
93240         (getuser): Remove casts no longer required in C89.
93241         * lib/human.c: Include stdio.h, for sprintf.
93242         * lib/group-member.c: Include "xalloc.h".
93243         (xmalloc, xrealloc): Remove decls.
93244         (get_group_info): Remove casts no longer required in C89.
93245         * lib/getusershell.c (readname): Remove casts no longer required in
93246         C89.
93247         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
93248         * lib/getline.c: Whitespace fix, from coreutils.
93249
93250 2003-08-13  Paul Eggert  <eggert@twinsun.com>
93251
93252         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
93253         Check for isascii.
93254
93255         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
93256         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
93257         Undo previous (whitespace-only) change.
93258
93259 2003-08-13  Paul Eggert  <eggert@twinsun.com>
93260
93261         * lib/exclude.c: Include <ctype.h>
93262         (IN_CTYPE_DOMAIN): New macro.
93263         (is_space): New fn.
93264         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
93265         and empty lines.
93266
93267         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
93268         Undo previous (whitespace-only) change.
93269
93270 2003-08-13  Paul Eggert  <eggert@twinsun.com>
93271
93272         * config/srclist-update: Change update back to the old behavior,
93273         leaving whitespace alone.  Use one 'sed' command rather than a
93274         pipeline.
93275         (fixlicense): Now a variable, not a function.
93276         (remove_trailing_blanks): Remove.
93277         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
93278         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
93279         Undo previous (whitespace-only) change.
93280
93281 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93282
93283         Merge from coreutils.
93284         * modules/euidaccess: Add lib_SOURCES, include for new
93285         file euidaccess.h
93286
93287 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93288
93289         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
93290         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
93291         Normalize leading white space and remove trailing white space.
93292
93293         Merge from coreutils
93294         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
93295
93296         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
93297         0.12.1.  These files are now being upgraded automatically by
93298         ../config/srclist-update.
93299
93300 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93301
93302         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
93303         Normalize leading white space and remove trailing white space.
93304         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
93305         notice, as per ../config/srclist-update.
93306
93307         Merge from coreutils.
93308         * lib/euidaccess.h: New file.
93309         * lib/euidaccess.c: Include it.
93310         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
93311         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
93312         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
93313
93314 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93315
93316         * config/srclist-update: Add copyright notice.
93317         (remove_id_lines, remove_trailing_blanks): New constants.
93318         (fixfile): Use them to normalize spacing a bit in copied files.
93319         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
93320         Normalize leading white space and remove trailing white space.
93321
93322         * config/texinfo.tex: Sync with texinfo.
93323
93324         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
93325         strtoul.c from libc, to merge coreutils whitespace changes.
93326
93327         * config/srclist.txt: Get the following m4 files from gettext:
93328         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
93329         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
93330         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
93331         wint_t.m4.
93332
93333 2003-08-12  Karl Berry  <karl@gnu.org>
93334
93335         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
93336         been made.
93337
93338 2003-08-11  Paul Eggert  <eggert@twinsun.com>
93339
93340         * modules/gnu-source, m4/gnu-source.m4:
93341         Remove; we're assuming Autoconf 2.54 or later now.
93342         Suggested by Bruno Haible.
93343         * MODULES.html.sh (func_all_modules): Remove gnu-source.
93344
93345 2003-08-11  Bruno Haible  <bruno@clisp.org>
93346
93347         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
93348
93349 2003-08-11  Bruno Haible  <bruno@clisp.org>
93350
93351         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
93352         (vasnprintf): Use it instead of wcslen.
93353
93354 2003-08-11  Bruno Haible  <bruno@clisp.org>
93355
93356         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
93357         value to ensure that _Bool promotes to int. Use #define for _Bool when
93358         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
93359
93360 2003-08-10  Karl Berry  <karl@gnu.org>
93361
93362         * lib/regex.h: update from libc (whitespace fix).
93363
93364 2003-08-09  Paul Eggert  <eggert@twinsun.com>
93365
93366         Merge some files from coreutils.  These changes were
93367         originally made by Jim Meyering.
93368         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
93369         many older Unixes require this.
93370         * lib/alloca.c (alloca): Remove cast to argument of free;
93371         no longer needed in C89.
93372         * lib/alloca_.h, regex.h: Fix white space to match
93373         what GNU indent does.
93374
93375 2003-08-09  Paul Eggert  <eggert@twinsun.com>
93376
93377         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
93378         apparently Emacs's Unicode mode got confused before my 2003-08-05
93379         checkin.
93380
93381 2003-08-08  Paul Eggert  <eggert@twinsun.com>
93382
93383         * m4/extensions.m4: New file.
93384         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
93385         Require gl_USE_SYSTEM_EXTENSIONS.
93386         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
93387         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
93388
93389 2003-08-08  Paul Eggert  <eggert@twinsun.com>
93390
93391         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
93392         * modules/extensions, modules/gnu-source: New files.
93393         * modules/timespec, modules/unlocked-io: Depend on extensions.
93394
93395 2003-08-07  Paul Eggert  <eggert@twinsun.com>
93396
93397         * modules/restrict: New file.
93398         * MODULES.html.sh (func_all_modules): Add restrict.
93399         * modules/regex: Depend on restrict.
93400
93401 2003-08-07  Paul Eggert  <eggert@twinsun.com>
93402
93403         * m4/restrict.m4: New file.
93404         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
93405
93406 2003-08-07  Bruno Haible  <bruno@clisp.org>
93407
93408         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
93409         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
93410
93411 2003-08-07  Bruno Haible  <bruno@clisp.org>
93412
93413         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
93414         makes the module 'getndelim2' compatible with the module 'getline'.
93415
93416 2003-08-05  Paul Eggert  <eggert@twinsun.com>
93417
93418         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
93419         byte with "\201" to avoid glitches when editing that source file
93420         with multi-gnome-terminal.
93421
93422 2003-08-05  Paul Eggert  <eggert@twinsun.com>
93423
93424         * lib/bumpalloc.h: Remove.
93425
93426 2003-08-05  Paul Eggert  <eggert@twinsun.com>
93427
93428         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
93429         * modules/bumpalloc: Remove.
93430
93431 2003-08-04  Paul Eggert  <eggert@twinsun.com>
93432
93433         * lib/getloadavg.c: Change copyright notice and spacing to conform to
93434         GNU coding style.
93435
93436         Merge from coreutils.
93437         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
93438         1. From glibc.
93439         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
93440         from Karl Berry, implemented by Jim Meyering.
93441         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
93442         from Dmitry V. Levin.
93443         Remove anachronistic cast of xrealloc.
93444         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
93445         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
93446         type. Otherwise, it wouldn't compile with at least /bin/cc on
93447         ymp-cray-unicos9.0.2.X.
93448         Combine two mostly-identical uses of alloca into one.
93449         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
93450
93451 2003-08-04  Dave Love  <d.love@dl.ac.uk>
93452
93453         [From Emacs.]
93454
93455         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
93456         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
93457         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
93458         obsolete NLIST_NAME_UNION.
93459         [__GNU__]: Undef BSD and FSCALE.
93460         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
93461
93462 2003-08-03  Paul Eggert  <eggert@twinsun.com>
93463
93464         * lib/stdbool_.h (_Bool): Make it signed char, instead of
93465         an enum type, so that it's guaranteed to promote to int.  See:
93466         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
93467
93468 2003-08-03  Karl Berry  <karl@gnu.org>
93469
93470         * config/depcomp: update from automake.
93471
93472 2003-07-31  Paul Eggert  <eggert@twinsun.com>
93473
93474         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
93475         (strerror): Don't assume that a printable int fits in 14 bytes.
93476
93477 2003-07-31  Bruno Haible  <bruno@clisp.org>
93478
93479         * modules/getpass-gnu: New file.
93480         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
93481
93482 2003-07-31  Bruno Haible  <bruno@clisp.org>
93483
93484         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
93485
93486 2003-07-24  Karl Berry  <karl@gnu.org>
93487
93488         * config/missing: update from automake.
93489
93490 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
93491             Bruno Haible  <bruno@clisp.org>
93492
93493         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
93494         * lib/getline.c (getline, getdelim): Likewise.
93495         Remove _GNU_SOURCE define; now it's defined in config.h through
93496         m4/getline.m4.
93497
93498 2003-07-23  Karl Berry  <karl@gnu.org>
93499
93500         * config/config.sub: update from prep.
93501
93502 2003-07-22  Paul Eggert  <eggert@twinsun.com>
93503
93504         * modules/xalloc (Depends-on): Add exitfail.
93505         * modules/xmemcoll: Likewise.
93506
93507 2003-07-22  Paul Eggert  <eggert@twinsun.com>
93508
93509         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
93510         over-parenthesization in macros.
93511
93512         Sync with coreutils.
93513
93514         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
93515         required by C99.
93516
93517         Use `exit_failure' for xalloc and xmemcoll instead of their own
93518         private exit-failure variables.
93519         * lib/xalloc.h (xalloc_exit_failure): Remove.
93520         * lib/xmalloc.c: Likewise.  Include exitfail.h.
93521         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
93522         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
93523         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
93524         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
93525
93526 2003-07-20  Jim Meyering  <jim@meyering.net>
93527
93528         * modules/closeout (Depends-on): Add exitfail.
93529         Suggestion from Bruno Haible.
93530
93531 2003-07-19  Karl Berry  <karl@gnu.org>
93532
93533         * config/config.sub: update from prep.
93534
93535 2003-07-18  Paul Eggert  <eggert@twinsun.com>
93536
93537         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
93538         Remove.
93539         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
93540         to test that it can stand by itself.  Include "exitfail.h".
93541         Clients should set exit_failure instead.
93542         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
93543
93544 2003-07-18  Bruno Haible  <bruno@clisp.org>
93545
93546         * modules/getndelim2: New file.
93547         * modules/getline: Share files with module getndelim2.
93548         * modules/getnline: Depend on getndelim2 instead of sharing files with
93549         it. Add getnline.c to lib_SOURCES.
93550         * MODULES.html.sh (func_all_modules): Add getndelim2.
93551
93552 2003-07-18  Bruno Haible  <bruno@clisp.org>
93553
93554         * m4/getndelim2.m4: New file.
93555         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
93556         invoke gl_PREREQ_GETNDELIM2.
93557         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
93558         gl_PREREQ_GETNDELIM2.
93559         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
93560         gl_GETNDELIM2.
93561
93562 2003-07-18  Bruno Haible  <bruno@clisp.org>
93563
93564         * lib/getndelim2.h: New file.
93565         * lib/getndelim2.c: Make into a module of its own. Include config.h,
93566         getndelim2.h.
93567         (getndelim2): Make non-static. Change return type to ssize_t.
93568         * lib/getline.h: Change argument names.
93569         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
93570         * lib/getnline.c: Include getndelim2.h.
93571
93572 2003-07-18  Andreas Schwab  <schwab@suse.de>
93573
93574         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
93575
93576 2003-07-17  Karl Berry  <karl@gnu.org>
93577
93578         * config/config.sub: update from prep.
93579
93580 2003-07-17  Bruno Haible  <bruno@clisp.org>
93581
93582         * modules/getnline: New file.
93583         * modules/getline: Add lib/getndelim2.c to source file list.
93584         * MODULES.html.sh (func_all_modules): Add getnline.
93585
93586 2003-07-17  Bruno Haible  <bruno@clisp.org>
93587
93588         * m4/getnline.m4: New file.
93589
93590 2003-07-17  Bruno Haible  <bruno@clisp.org>
93591
93592         * m4/Makefile.am.in: Remove file.
93593         * m4/Makefile.am: Remove file.
93594         * m4/Makefile.in: Remove file.
93595
93596 2003-07-17  Bruno Haible  <bruno@clisp.org>
93597
93598         * lib/getnline.h: New file.
93599         * lib/getnline.c: New file.
93600         * lib/getndelim2.c: New file, extracted from getline.c.
93601         (getndelim2): Renamed from getdelim2, with added nmax argument.
93602         * lib/getline.c: Include getndelim2.c.
93603         (getdelim2): Moved out to getndelim2.c.
93604         (getline, getdelim): Update.
93605
93606 2003-07-17  Bruno Haible  <bruno@clisp.org>
93607
93608         * lib/Makefile.am: Remove file.
93609         * lib/Makefile.in: Remove file.
93610
93611 2003-07-17  Bruno Haible  <bruno@clisp.org>
93612
93613         * configure.in: Remove file.
93614         * Makefile.in: Remove file.
93615
93616 2003-07-17  Bruno Haible  <bruno@clisp.org>
93617
93618         * MODULES.html.sh: Put the </BODY> right before </HTML>.
93619
93620 2003-07-16  Karl Berry  <karl@gnu.org>
93621
93622         * config/srclist-update: was running fixlicense twice, which caused
93623                 texinfo.tex to be nullified for some reason.  Simplify,
93624                 $gplsrc is no longer needed as far as I can see?
93625
93626 2003-07-16  Jim Meyering  <jim@meyering.net>
93627
93628         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
93629
93630 2003-07-15  Paul Eggert  <eggert@twinsun.com>
93631
93632         * config/srclist.txt: Get the following files from gettext-runtime/intl
93633         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
93634         ref-del.sin.  From Bruno Haible.
93635         * config/srclist-update (fixfile): Change grep pattern again, since the
93636         previous fix didn't work (there was another trailing $).  Use
93637         '[$]' to escape the $s.
93638
93639 2003-07-15  Karl Berry  <karl@gnu.org>
93640
93641         * lib/vasnprintf.c: update from gettext.
93642
93643 2003-07-15  Karl Berry  <karl@gnu.org>
93644
93645         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
93646         gets expanded when surrounded by '$'.
93647
93648 2003-07-15  Jim Meyering  <jim@meyering.net>
93649
93650         * modules/save-cwd: Don't depend on error.  From Derek Price.
93651
93652 2003-07-15  Jim Meyering  <jim@meyering.net>
93653
93654         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
93655
93656 2003-07-14  Simon Josefsson  <jas@extundo.com>
93657
93658         * modules/mempcpy: New file.
93659         * MODULES.html.sh (func_all_modules): Add mempcpy.
93660
93661 2003-07-14  Simon Josefsson  <jas@extundo.com>
93662
93663         * m4/mempcpy.m4: New file.
93664
93665 2003-07-14  Simon Josefsson  <jas@extundo.com>
93666
93667         * lib/mempcpy.h: New file.
93668         * lib/mempcpy.c: New file.
93669
93670 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93671
93672         * modules/getdate, modules/posixtm: Depend on mktime.
93673
93674 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93675
93676         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
93677         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
93678         unicodeio.c, unicodeio.h, unlocked-io.h:
93679         Switch from LGPL to GPL.
93680
93681 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93682
93683         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
93684         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
93685         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
93686         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
93687         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
93688         updated automatically by ../config/srclist-update.  This changes
93689         their license from LPGL to GPL.
93690
93691 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93692
93693         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
93694         assumed to refer to the root of the most recent stable gettext version.
93695         * config/srclistvars.sh: Add defaults for eggert.
93696         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
93697         Match "This program" as well as "The program".  This is needed
93698         for gettext.
93699
93700 2003-07-14  Jim Meyering  <jim@meyering.net>
93701
93702         Don't emit diagnostics.  Let callers do that.
93703         * lib/save-cwd.c: Don't include "error.h".
93704         (save_cwd): Don't call error.  Ensure that errno is valid
93705         when returning nonzero.
93706
93707         * lib/save-cwd.h (restore_cwd): Update prototype.
93708         * lib/save-cwd.c (restore_cwd): Remove two parameters.
93709         Simplify.  Don't call error upon failure.  Let callers do that.
93710         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
93711         when auditing is enabled.  But don't bother updating the #if.
93712
93713 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
93714
93715         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
93716         it breaks C++ compilation.
93717         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
93718
93719 2003-07-10  Simon Josefsson  <jas@extundo.com>
93720
93721         * modules/strchrnul (Makefile.am): Add strchrnul.h.
93722
93723 2003-07-10  Jim Meyering  <jim@meyering.net>
93724
93725         * m4/clock_time.m4: Remove trailing blank.
93726         * m4/intmax_t.m4: Likewise.
93727
93728 2003-07-10  Jim Meyering  <jim@meyering.net>
93729
93730         * lib/vasnprintf.c: Remove trailing blanks.
93731         Make cpp indentation consistent.
93732
93733 2003-07-09  Paul Eggert  <eggert@twinsun.com>
93734
93735         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
93736         posixver.c, strftime.c, strnlen.c, strverscmp.c:
93737         Switch from LGPL to GPL.
93738
93739 2003-07-09  Paul Eggert  <eggert@twinsun.com>
93740
93741         * config/srclist.txt: Sort sublists.  Add
93742         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
93743         that differ from gnulib for one reason or another; we'd like this list
93744         to be smaller but for now let's document what we have.
93745
93746 2003-07-08  Paul Eggert  <eggert@twinsun.com>
93747
93748         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
93749         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
93750         and sweeter "eval x=$x".
93751         * config/srclist.txt: Get lib/argp* from glibc.
93752
93753 2003-07-07  Paul Eggert  <eggert@twinsun.com>
93754
93755         * lib/mktime.c: Fix some boundary cases and remove need for floating
93756         point.
93757
93758         Issue a compile-time diagnostic if time_t is floating point, or if
93759         two's complement arithmetic is not in effect, or if arithmetic
93760         right shift does not propagate the sign.  These assumptions were
93761         all in the original code but they weren't checked.
93762
93763         (TIME_T_MIDPOINT, verify): New macros.
93764         (__isleap): Remove; it has integer overflow problems.
93765         (leapyear): New function, without those problems.
93766         (ydhms_tm_diff): Remove; splitting into two parts.
93767         (ydhms_diff): New function, containing the arithmetic part of
93768         the old ydhms_tm_diff function.  Issue a compile-time
93769         diagnostic if we are not using C99 integer division.
93770         Avoid casts when possible.
93771         (guess_time_tm): New function, containing the checking part of
93772         the old ydhms_tm_diff function.  Return the new value, rather than
93773         the difference between it and the old.  Accept a new argument T
93774         so that *T specifies the old value.  Check for overflow in the result.
93775
93776         (__mktime_internal): Use a time_t offset, not a long int offset.
93777         This undoes the 2003-06-04 change, which is no longer needed now
93778         that we have better overflow checking.
93779         (localtime_offset): Likewise.
93780
93781         (__mktime_internal): Avoid harmful overflow on hosts where time_t
93782         and long are 64-bit but int is only 32-bit.
93783         (ydhms_diff): Use long int to store year1 and yday1.
93784         Issue a compile-time diagnostic if long int is not wide enough.
93785
93786         (__mktime_internal): Use long int to store adjusted year and yday.
93787         Use plain C rather than preprocessor commands, if that doesn't
93788         affect efficiency.
93789         Check for overflow (and try to repair) after each probe
93790         rather than checking only at the very end.  This avoids some bugs
93791         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
93792         does not equal GMT offset at maximum time).
93793         Use integer to check for overflow rather than floating point; this
93794         is more portable to non-IEEE hosts, and is a tad faster.
93795         When we detect that we are oscillating between two values,
93796         don't check whether tm_isdst has the requested value, since
93797         we already know the answer.  When tm_isdst has the wrong value,
93798         use a different heuristic to find the right one, based on the
93799         extreme values actually observed in practice in tz2003a,
93800         rather than the (overly optimistic) "previous 3 calendar quarters".
93801
93802         (not_equal_tm, print_tm, check_result): Use "const T" rather than
93803         "T const" to accommodate glibc style.
93804         (check_result): Use less-confusing report format.  "long" -> "long int.
93805         (main): Likewise.
93806         Don't loop if the iteration overflows time_t.
93807         Allow a negative step in the iteration.
93808
93809 2003-07-06  Karl Berry  <karl@gnu.org>
93810
93811         * config/depcomp: update from automake.
93812         * config/config.sub: update from prep.
93813
93814 2003-07-03  Karl Berry  <karl@gnu.org>
93815
93816         * config/config.guess: update from prep.
93817
93818 2003-07-01  Paul Eggert  <eggert@twinsun.com>
93819
93820         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
93821         xreadlink.c now includes it unconditionally.
93822
93823 2003-07-01  Paul Eggert  <eggert@twinsun.com>
93824
93825         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
93826         having it depend on HAVE_SYS_TYPES_H.
93827
93828 2003-07-01  Bruno Haible  <bruno@clisp.org>
93829
93830         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
93831         <sys/types.h> should be sufficient.
93832         Reported by Paul Eggert.
93833
93834 2003-06-26  Karl Berry  <karl@gnu.org>
93835
93836         * config/depcomp: update from automake.
93837
93838 2003-06-26  Bruno Haible  <bruno@clisp.org>
93839
93840         * modules/human: Depend on module stdbool.
93841
93842 2003-06-25  Bruno Haible  <bruno@clisp.org>
93843
93844         * modules/readlink: New file.
93845         * modules/xreadlink: Depend on it.
93846         * MODULES.html.sh (func_all_modules): Add readlink.
93847
93848 2003-06-25  Bruno Haible  <bruno@clisp.org>
93849
93850         * m4/readlink.m4: New file.
93851
93852 2003-06-25  Bruno Haible  <bruno@clisp.org>
93853
93854         * lib/readlink.c: New file.
93855
93856 2003-06-22  Karl Berry  <karl@gnu.org>
93857
93858         * config/srclist.txt: update mkinstalldirs from automake.
93859         * config/mkinstalldirs: update.
93860
93861 2003-06-22  Bruno Haible  <bruno@clisp.org>
93862
93863         Portability to mingw32.
93864         * m4/ssize_t.m4: New file, from GNU gettext.
93865         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
93866         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
93867
93868 2003-06-22  Bruno Haible  <bruno@clisp.org>
93869
93870         * modules/safe-read: Add m4/ssize_t.m4.
93871         * modules/xreadlink: Add m4/ssize_t.m4.
93872
93873 2003-06-20  Bruno Haible  <bruno@clisp.org>
93874
93875         Assume C89, so PARAMS isn't needed.
93876         * lib/unicodeio.h (PARAMS): Remove.
93877         * lib/unicodeio.c: Don't use PARAMS.
93878
93879 2003-06-18  Karl Berry  <karl@gnu.org>
93880
93881         * config/config.{guess,sub}: update from prep.
93882
93883 2003-06-18  Jim Meyering  <jim@meyering.net>
93884
93885         Merge changes from coreutils.
93886         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
93887         Remove explicit declarations of xmalloc and realloc.
93888         Include xalloc.h.
93889         (read_utmp): Remove anachronistic cast of xmalloc.
93890
93891 2003-06-17  Paul Eggert  <eggert@twinsun.com>
93892
93893         Assume C89, so PARAMS isn't needed.
93894         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
93895         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
93896         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
93897         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
93898         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
93899         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
93900         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
93901         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
93902         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
93903         lib/xstrtod.h, lib/xstrtol.h: Likewise.
93904         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
93905         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
93906         no longer needed. Anyway, config.h should always be included before any
93907         other file.
93908
93909 2003-06-11  Simon Josefsson  <jas@extundo.com>
93910
93911         * modules/sysexits: New file.
93912         * MODULES.html.sh (func_all_modules): Add sysexits.
93913
93914 2003-06-11  Simon Josefsson  <jas@extundo.com>
93915
93916         * lib/sysexit_.h: New file.
93917
93918 2003-06-11  Derek Price  <derek@ximbiot.com>
93919
93920         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
93921         necessary.
93922
93923 2003-06-11  Bruno Haible  <bruno@clisp.org>
93924
93925         * m4/sysexits.m4: New file.
93926
93927 2003-06-10  Simon Josefsson  <jas@extundo.com>
93928
93929         * lib/argp.h: New file, from glibc.
93930         * lib/argp-ba.c: New file, from glibc.
93931         * lib/argp-eexst.c: New file, from glibc.
93932         * lib/argp-fmtstream.c: New file, from glibc.
93933         * lib/argp-fmtstream.h: New file, from glibc.
93934         * lib/argp-fs-xinl.c: New file, from glibc.
93935         * lib/argp-help.c: New file, from glibc.
93936         * lib/argp-namefrob.h: New file, from glibc.
93937         * lib/argp-parse.c: New file, from glibc.
93938         * lib/argp-pv.c: New file, from glibc.
93939         * lib/argp-pvh.c: New file, from glibc.
93940         * lib/argp-xinl.c: New file, from glibc.
93941
93942 2003-06-10  Simon Josefsson  <jas@extundo.com>
93943
93944         * modules/strchrnul: New file.
93945
93946 2003-06-10  Simon Josefsson  <jas@extundo.com>
93947
93948         * modules/argp: New file.
93949
93950 2003-06-10  Simon Josefsson  <jas@extundo.com>
93951
93952         * m4/strchrnul.m4: New file.
93953
93954 2003-06-10  Simon Josefsson  <jas@extundo.com>
93955
93956         * lib/strchrnul.h: New file.
93957         * lib/strchrnul.c: New file.
93958
93959 2003-06-10  Bruno Haible  <bruno@clisp.org>
93960
93961         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
93962
93963 2003-06-07  Karl Berry  <karl@gnu.org>
93964
93965         * config/config.{guess,sub}: update from prep.
93966
93967 2003-06-07  Jim Meyering  <jim@meyering.net>
93968
93969         * modules/strtod: Use $(...) notation, not @...@ for
93970         AC_REPLACE'd variables.
93971         * modules/localcharset: Likewise.
93972
93973 2003-06-07  Jim Meyering  <jim@meyering.net>
93974
93975         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
93976         in place of my name in the copyright comment.
93977         Remove definition and uses of __P.
93978
93979         From coreutils.
93980         * lib/stat.c: Don't declare xmalloc explicitly.
93981         Instead, include "xalloc.h".
93982         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
93983         xrealloc, and xcalloc return values.
93984         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
93985         Improve comment.
93986         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
93987
93988 2003-06-07  Bruno Haible  <bruno@clisp.org>
93989
93990         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
93991         avoid AC_CONFIG_LINKS.
93992         * modules/fnmatch (Makefile.am): Use explicit creation rule for
93993         fnmatch.h, to avoid AC_CONFIG_LINKS.
93994         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
93995
93996 2003-06-07  Bruno Haible  <bruno@clisp.org>
93997
93998         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
93999         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
94000         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
94001         directory.
94002         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
94003         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
94004         directory.
94005
94006 2003-06-06  Jim Meyering  <jim@meyering.net>
94007
94008         Merge from coreutils.
94009         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
94010         Consolidate declarations and initializations of *_base* locals.
94011
94012         Merge from coreutils.
94013         This avoids a core dump on systems without GNU putenv,
94014         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
94015         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
94016         (unsetenv): New static function, from GNU libc.
94017         (rpl_putenv): Use it.
94018
94019         * lib/modechange.c: Remove trailing blanks.
94020
94021         Merge from coreutils.
94022         * lib/fsusage.c: Remove declaration of statfs.
94023         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
94024
94025         * lib/posixtm.c: Include <stdbool.h> unconditionally.
94026
94027 2003-06-06  Jim Meyering  <jim@meyering.net>
94028
94029         * lib/stdbool_.h: Renamed from stdbool.h.in.
94030
94031 2003-06-06  Jim Meyering  <jim@meyering.net>
94032             Bruno Haible  <bruno@clisp.org>
94033
94034         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
94035         Adjust Makefile.am snippet not to redirect directly to target.
94036         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
94037
94038 2003-06-05  Paul Eggert  <eggert@twinsun.com>
94039
94040         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
94041         mismatch, look in future quarters as well as past.  This fixes a
94042         bug when processing fall-backwards gaps immediately after a long
94043         period of daylight-saving time.
94044
94045         * lib/mktime.c: Assume freestanding C89 or better.
94046         (HAVE_LIMITS_H): Remove.  Assume it's 1.
94047         (__P): Remove; not used.
94048         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
94049         (mktime, not_equal_tm, print_tm, check_result,
94050         main): Use prototypes.  Use const * where appropriate.
94051         (main): Fix typo in testing code that uncovered by above changes.
94052         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
94053
94054 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94055
94056         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
94057         locale.h, localeconv.  This merges changes from coreutils.
94058
94059         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
94060         It can be removed after the next Autoconf is released.
94061         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
94062         needed.
94063
94064 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94065
94066         * lib/mktime.c: Fix Debian bug 177940
94067         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
94068         (localtime_offset): Now long int, not time_t, because we want it
94069         to be guaranteed to be signed.  All uses changed.
94070         (__mktime_internal): If overflow would occur when adding offset,
94071         don't add it.
94072
94073         Merge 'human' changes from coreutils.  Rewrite to support
94074         locale-specific notations like thousands separators.
94075         * lib/human.c: Simplify authorship notice.
94076         Include human.h immediately after config.h.
94077         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
94078         <limits.h>: Do not include, since human.h does.
94079         (SIZE_MAX, UINTMAX_MAX): New macros.
94080         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
94081         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
94082         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
94083         (power_letter): Renamed from suffixes.
94084         (generate_suffix_backwards): Remove.
94085         (adjust_value): Now takes int style (because of human.h changes)
94086         and long double value (for greater precision on some platforms).
94087         (group_number): New function.
94088         (human_readable): Use it.  Use integer options, not enum.
94089         Put the options before the sizes in the arg list.
94090         Support all the new options.
94091         The old human_readable function has been removed;
94092         use inttostr.h instead.
94093         (human_readable, default_block_size, humblock):
94094         Use uintmax_t, not int, for block sizes.
94095         (human_readable_inexact, block_size_types): Remove.
94096         (block_size_opts): New constant.
94097         (human_options): Renamed from human_block_size, with new signature
94098         that allows block sizes up to UINTMAX_MAX.  All callers changed.
94099         * lib/human.h: Add copyright and authorship notice.
94100         Include <limits.h> and <stdbool.h> unconditionally.
94101         (PARAMS): Remove.  All uses removed.
94102         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
94103         (enum human_inexact_style): Remove tag; now a nameless enum.
94104         (human_floor, human_ceiling, human_round_to_even): Now have
94105         values 2, 0, 1 rather than -1, 1, 0.
94106         (human_group_digits, human_suppress_point_zero, human_autoscale,
94107         human_base_1024, human_SI, human_B): New constants.
94108         (human_readable_inexact, human_block_size): Remove.
94109         (human_readable): Size args are now uintmax_t, not int.
94110         (human_options): New decl.
94111
94112         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
94113         unnecessary now that we assume C89 or better.  This change
94114         imported from coreutils.
94115
94116         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
94117         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
94118         in the 2003-05-30 sync from glibc.
94119
94120         .h files should stand alone, but we shouldn't include <sys/types.h>
94121         if we can get away with just <stddef.h>.
94122
94123         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
94124         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
94125         rather than <sys/types.h>, as we merely need size_t.
94126         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
94127         to get size_t.
94128         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
94129         Include <stdio.h>, to get FILE.
94130         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
94131         memcasecmp.h has included <stddef.h> and all we need is size_t.
94132         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
94133         our interface, instead of including <sys/types.h>
94134
94135 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94136
94137         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
94138         now, as glibc mktime is buggy on non-glibc systems.
94139
94140 2003-06-03  Karl Berry  <karl@gnu.org>
94141
94142         * config/config.sub: update from prep.
94143
94144 2003-06-02  Paul Eggert  <eggert@twinsun.com>
94145
94146         [from coreutils]
94147         Fix some minor time-related bugs with POSIX time arguments.
94148         Some valid time stamps were being rejected (notably -1, and
94149         time stamps before 1900 on 64-bit hosts).  And some invalid
94150         time stamps were being accepted, e.g. September 31.
94151
94152         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
94153         that we can return (time_t) -1 successfully.
94154         * lib/posixtm.c: Likewise.
94155         [HAVE_STDBOOL_H]: Include <stdbool.h>.
94156         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
94157         (t): Remove static var.
94158         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
94159         of static var.  All uses changed.
94160         (year): Do not reject years before 1900; they can occur with
94161         64-bit time_t.
94162         (posix_time_parse): Do not check for out-of-range components;
94163         that is now the caller's responsibility, since our checks were
94164         only approximations.
94165         (posixtime): Use mktime to check for out-of-range components,
94166         since it knows them exactly.
94167         If mktime returns (time_t) -1, check whether an error actually occurred
94168         by invoking localtime on -1.
94169         (main) [TEST_POSIXTIME]: Check for input data errors, and report
94170         posixtime failures better.
94171         Improve the test data (in comments only).
94172
94173 2003-06-02  Karl Berry  <karl@gnu.org>
94174
94175         * config/mkinstalldirs (version): new variable.
94176         (--version): new option.
94177         (usage): improve message.
94178
94179 2003-05-30  Karl Berry  <karl@gnu.org>
94180
94181         * lib/mktime.c: update from libc.
94182
94183 2003-05-30  Bruno Haible  <bruno@clisp.org>
94184
94185         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
94186         * config/config.rpath: Upgrade to gettext-0.12.1.
94187
94188 2003-05-30  Bruno Haible  <bruno@clisp.org>
94189
94190         * m4/gettext.m4: Upgrade to gettext-0.12.1.
94191         * m4/nls.m4: New file, from gettext-0.12.1.
94192         * m4/po.m4: New file, from gettext-0.12.1.
94193         * m4/progtest.m4: Upgrade to gettext-0.12.1.
94194
94195 2003-05-30  Bruno Haible  <bruno@clisp.org>
94196
94197         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
94198         * lib/localcharset.h: Likewise.
94199         * lib/localcharset.c: Likewise.
94200
94201 2003-05-29  Karl Berry  <karl@gnu.org>
94202
94203         * config/config.rpath: update from gettext.
94204
94205 2003-05-28  Paul Eggert  <eggert@twinsun.com>
94206
94207         Assume the headers required for C89 freestanding compilers.
94208         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
94209         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
94210         * m4/human.m4 (gl_HUMAN): Likewise.
94211         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
94212         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
94213         * m4/userspec.m4 (gl_USERSPEC): Likewise.
94214         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
94215         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
94216         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
94217
94218 2003-05-28  Paul Eggert  <eggert@twinsun.com>
94219
94220         Assume the headers required for C89 freestanding compilers.
94221         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
94222         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
94223         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
94224         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
94225         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
94226         define, since <limits.h> is guaranteed to do that.
94227         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
94228         * lib/exclude.c: Include <stdbool.h> unconditionally.
94229         * lib/tempname.c: Include <stddef.h> unconditionally.
94230         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
94231         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
94232         <stddef.h> does that.
94233         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
94234         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
94235         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
94236         needed.
94237         * lib/xstrtol.c: Likewise.
94238         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
94239         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
94240
94241         * lib/addext.c (addext): Use assignment rather than cast, to avoid
94242         warnings on some platforms.
94243
94244         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
94245         arbitrarily.
94246
94247 2003-05-26  Jim Meyering  <jim@meyering.net>
94248
94249         Merge in a change from coreutils:
94250         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
94251         that is guaranteed to be `no'.  Use `no_such_member' to indicate
94252         that condition, rather than `-1' which is slightly misleading.
94253         Change the name of the cache variable to have the gl_ prefix.
94254         Prompted by a patch from Richard Dawe for DJGPP.
94255
94256 2003-05-24  Karl Berry  <karl@gnu.org>
94257
94258         * config/config.guess: update from prep.
94259
94260 2003-05-22  Karl Berry  <karl@gnu.org>
94261
94262         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
94263
94264 2003-05-20  Karl Berry  <karl@gnu.org>
94265
94266         * config/config.guess: update from prep.
94267
94268 2003-05-18  Karl Berry  <karl@gnu.org>
94269
94270         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
94271         might actually be set by the user.
94272
94273         * config/depcomp, install-sh, mdate-sh: update from automake.
94274
94275 2003-05-17  Bruno Haible  <bruno@clisp.org>
94276
94277         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
94278         invalid expansion for AC_EGREP_CPP.
94279         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
94280         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
94281         Suggested by Akim Demaille <akim@epita.fr> in
94282         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
94283
94284 2003-05-12  Jim Meyering  <jim@meyering.net>
94285
94286         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
94287         the space-padded-by-default conversion specifiers, %e, %k, %l.
94288
94289 2003-05-12  Bruno Haible  <bruno@clisp.org>
94290
94291         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
94292         the string is longer than 4 KB.
94293
94294 2003-05-11  Karl Berry  <karl@gnu.org>
94295
94296         * config/config.{guess,sub}: update from prep.
94297
94298 2003-05-09  Bruno Haible  <bruno@clisp.org>
94299
94300         * modules/error: Add m4/strerror_r.m4 to file list.
94301
94302 2003-05-03  Bruno Haible  <bruno@clisp.org>
94303
94304         Upgrade to Unicode-4.0.
94305         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
94306         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
94307         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
94308         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
94309         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
94310         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
94311         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
94312         Change width of U+E0100..U+E01EF from 1 to 0.
94313
94314 2003-04-25  Jim Meyering  <jim@meyering.net>
94315
94316         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
94317         of type size_t, not int.
94318
94319 2003-04-25  Bruno Haible  <bruno@clisp.org>
94320
94321         * lib/copy-file.c: Include <stddef.h>, for size_t.
94322
94323 2003-04-21  Paul Eggert  <eggert@twinsun.com>
94324
94325         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
94326         code which expansion is under static control.  Patch imported from
94327         Akim Demaille's patch to Bison; see
94328         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
94329
94330 2003-04-14  Bruno Haible  <bruno@clisp.org>
94331
94332         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
94333
94334 2003-04-11  Jim Meyering  <jim@meyering.net>
94335
94336         Merge changes from Coreutils.
94337
94338         2003-03-22  Jim Meyering  <jim@meyering.net>
94339
94340         * lib/strftime.c (widen): Cast alloca return value to proper type.
94341
94342         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
94343
94344         From GNU libc.
94345         * lib/strftime.c (my_strftime): Handle very large width
94346         specifications for numeric values correctly.  Improve checks for
94347         overflow.
94348
94349         2003-01-19  Jim Meyering  <jim@meyering.net>
94350
94351         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
94352         definitions.
94353         (nl_get_alt_digit) [! defined my_strftime]: Define.
94354         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
94355         _nl_get_alt_digit and _nl_get_walt_digit.
94356
94357         * lib/strftime.c (my_strftime): Merge in locale-related changes from
94358         libc. These changes have no effect outside of _LIBC.
94359
94360 2003-04-10  Bruno Haible  <bruno@clisp.org>
94361
94362         * modules/findprog: New file.
94363         * MODULES.html.sh (func_all_modules): Add it.
94364
94365 2003-04-10  Bruno Haible  <bruno@clisp.org>
94366
94367         * m4/findprog.m4: New file.
94368         * m4/eaccess.m4: New file.
94369
94370 2003-04-10  Bruno Haible  <bruno@clisp.org>
94371
94372         * lib/findprog.h: New file, from GNU gettext.
94373         * lib/findprog.c: New file, from GNU gettext.
94374
94375 2003-04-05  Jim Meyering  <jim@meyering.net>
94376
94377         Merge changes from Coreutils.
94378
94379         * lib/exclude.h (PARAMS): Remove definition and uses.
94380         * lib/exclude.c: Remove uses of `PARAMS'.
94381
94382         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
94383         Add test-cases for DOS filenames. Declare program_name.
94384         (main): Set up program_name.  Patch by Rich Dawe.
94385
94386         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
94387         error from mntctl.
94388         Use mntctl's return value to drive the entry-processing loop, since
94389         we can't rely on the value of the vmt_length member in the last
94390         entry.  On some systems doing so could result in exhausting
94391         virtual memory.  Based in part on a patch from Mike Jetzer.
94392
94393 2003-04-04  Bruno Haible  <bruno@clisp.org>
94394
94395         * modules/linebreak: New file.
94396         * MODULES.html.sh (func_all_modules): Add it.
94397
94398 2003-04-04  Bruno Haible  <bruno@clisp.org>
94399
94400         * m4/linebreak.m4: New file.
94401
94402 2003-04-04  Bruno Haible  <bruno@clisp.org>
94403
94404         * lib/linebreak.h: New file, from GNU gettext.
94405         * lib/linebreak.c: New file, from GNU gettext with slight
94406         modifications.
94407         * lib/lbrkprop.h: New file, from GNU gettext.
94408
94409 2003-04-03  Bruno Haible  <bruno@clisp.org>
94410
94411         * modules/utf8-ucs4: New file.
94412         * modules/utf16-ucs4: New file.
94413         * modules/ucs4-utf8: New file.
94414         * modules/ucs4-utf16: New file.
94415         * MODULES.html.sh (func_all_modules): Add them.
94416
94417 2003-04-03  Bruno Haible  <bruno@clisp.org>
94418
94419         * m4/utf-ucs4.m4: New file.
94420         * m4/ucs4-utf.m4: New file.
94421
94422 2003-04-03  Bruno Haible  <bruno@clisp.org>
94423
94424         * lib/utf8-ucs4.h: New file, from GNU gettext.
94425         * lib/utf16-ucs4.h: New file, from GNU gettext.
94426         * lib/ucs4-utf8.h: New file, from GNU gettext.
94427         * lib/ucs4-utf16.h: New file, from GNU gettext.
94428
94429 2003-04-02  Bruno Haible  <bruno@clisp.org>
94430
94431         * modules/binary-io: New file.
94432         * MODULES.html.sh (func_all_modules): Add it.
94433
94434 2003-04-02  Bruno Haible  <bruno@clisp.org>
94435
94436         * lib/binary-io.h: New file, from GNU gettext.
94437
94438 2003-04-01  Bruno Haible  <bruno@clisp.org>
94439
94440         * modules/pathname: New file.
94441         * MODULES.html.sh (func_all_modules): Add it.
94442
94443 2003-04-01  Bruno Haible  <bruno@clisp.org>
94444
94445         * lib/pathname.h: New file, from GNU gettext.
94446         * lib/concatpath.c: New file, from GNU gettext.
94447
94448 2003-03-30  Bruno Haible  <bruno@clisp.org>
94449
94450         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
94451
94452 2003-03-30  Bruno Haible  <bruno@clisp.org>
94453
94454         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
94455         function chown() doesn't exist.
94456
94457 2003-03-28  Bruno Haible  <bruno@clisp.org>
94458
94459         * modules/copy-file: New file.
94460         * MODULES.html.sh (func_all_modules): Add it.
94461
94462 2003-03-28  Bruno Haible  <bruno@clisp.org>
94463
94464         * m4/copy-file.m4: New file.
94465
94466 2003-03-28  Bruno Haible  <bruno@clisp.org>
94467
94468         * lib/copy-file.h: New file, from GNU gettext.
94469         * lib/copy-file.c: New file, from GNU gettext.
94470
94471 2003-03-18  Jim Meyering  <jim@meyering.net>
94472
94473         * lib/quote.c (quote_n): Fix typo in comment.
94474
94475 2003-03-18  Bruno Haible  <bruno@clisp.org>
94476
94477         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
94478         checking.
94479         * m4/onceonly_2_57.m4: Likewise.
94480
94481 2003-03-17  Bruno Haible  <bruno@clisp.org>
94482
94483         * m4/onceonly.m4: Require autoconf 2.54 or newer.
94484         (m4_quote): Remove macro.
94485         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
94486
94487 2003-03-14  Jim Meyering  <jim@meyering.net>
94488
94489         Merge changes from Coreutils.
94490         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
94491         to be const, in order to avoid warnings.
94492         (obstack_room): Likewise.
94493         (obstack_empty_p): Likewise.
94494
94495 2003-03-14  Bruno Haible  <bruno@clisp.org>
94496
94497         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
94498         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
94499
94500 2003-03-13  Paul Eggert  <eggert@twinsun.com>
94501
94502         Merge changes from Bison.
94503         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
94504         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
94505         when compiling Bison 1.875's `bitset bset = obstack_alloc
94506         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
94507         * lib/hash.c: Include <stdbool.h> unconditionally.
94508
94509 2003-03-13  Paul Eggert  <eggert@twinsun.com>
94510
94511         * m4/onceonly.m4 (m4_quote): New macro.
94512         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
94513         Quote AC_FOREACH variable-expansions properly.
94514
94515 2003-03-13  Paul Eggert  <eggert@twinsun.com>
94516
94517         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
94518
94519 2003-03-09  Paul Eggert  <eggert@twinsun.com>
94520
94521         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
94522         Reported by Bruce Becker; see:
94523         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
94524
94525 2003-03-03  Paul Eggert  <eggert@twinsun.com>
94526             Bruno Haible  <bruno@clisp.org>
94527
94528         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
94529         Reported by John Hughes, see
94530         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
94531
94532 2003-02-20  Bruno Haible  <bruno@clisp.org>
94533
94534         * MODULES.html.sh (func_all_modules): Add poll.
94535
94536 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
94537
94538         * modules/poll: New file.
94539
94540 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
94541
94542         * lib/poll_.h: New file.
94543         * lib/poll.c: New file.
94544
94545 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
94546
94547         * m4/poll.m4: New file.
94548
94549 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
94550
94551         * modules/mathl: New file.
94552
94553 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
94554
94555         * lib/mathl.h: New file.
94556         * lib/acosl.c: New file.
94557         * lib/asinl.c: New file.
94558         * lib/atanl.c: New file.
94559         * lib/ceill.c: New file.
94560         * lib/cosl.c: New file.
94561         * lib/expl.c: New file.
94562         * lib/floorl.c: New file.
94563         * lib/frexpl.c: New file.
94564         * lib/ldexpl.c: New file.
94565         * lib/logl.c: New file.
94566         * lib/sincosl.c: New file.
94567         * lib/sinl.c: New file.
94568         * lib/sqrtl.c: New file.
94569         * lib/tanl.c: New file.
94570         * lib/trigl.c: New file.
94571         * lib/trigl.h: New file.
94572
94573 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
94574
94575         * m4/mathl.m4: New file.
94576
94577 2003-02-18  Bruno Haible  <bruno@clisp.org>
94578
94579         * MODULES.html.sh (func_all_modules): Add mathl.
94580
94581 2003-02-17  Bruno Haible  <bruno@clisp.org>
94582
94583         * modules/mkdtemp: New module.
94584         * MODULES.html.sh (func_all_modules): Add it.
94585
94586 2003-02-17  Bruno Haible  <bruno@clisp.org>
94587
94588         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
94589
94590 2003-02-17  Bruno Haible  <bruno@clisp.org>
94591
94592         * lib/mkdtemp.h: New file, from GNU gettext.
94593         * lib/mkdtemp.c: New file, from GNU gettext.
94594
94595 2003-02-02  Jim Meyering  <jim@meyering.net>
94596
94597         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
94598         e.g. glibc-2.2.93.
94599
94600 2003-01-31  Bruno Haible  <bruno@clisp.org>
94601
94602         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
94603         'rpl_rename'.
94604         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
94605         'rpl_strnlen'.
94606         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
94607         'rpl_strtod'.
94608         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
94609         'rpl_utime'.
94610
94611 2003-01-31  Bruno Haible  <bruno@clisp.org>
94612
94613         * lib/rename.c: #undef rename before defining rpl_rename.
94614         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
94615
94616 2003-01-30  Bruno Haible  <bruno@clisp.org>
94617
94618         * modules/vasnprintf, modules/vasprintf: New modules.
94619         * MODULES.html.sh (func_all_modules): Add them.
94620
94621 2003-01-30  Bruno Haible  <bruno@clisp.org>
94622
94623         * m4/signed.m4: New file, from GNU gettext.
94624         * m4/longdouble.m4: New file, from GNU gettext.
94625         * m4/wchar_t.m4: New file, from GNU gettext.
94626         * m4/wint_t.m4: New file, from GNU gettext.
94627         * m4/vasnprintf.m4: New file.
94628         * m4/vasprintf.m4: New file.
94629
94630 2003-01-30  Bruno Haible  <bruno@clisp.org>
94631
94632         * lib/printf-args.h: New file, from GNU gettext.
94633         * lib/printf-args.c: New file, from GNU gettext.
94634         * lib/printf-parse.h: New file, from GNU gettext.
94635         * lib/printf-parse.c: New file, from GNU gettext.
94636         * lib/vasnprintf.h: New file, from GNU gettext.
94637         * lib/vasnprintf.c: New file, from GNU gettext.
94638         * lib/asnprintf.c: New file, from GNU gettext.
94639         * lib/vasprintf.h: New file, from GNU gettext with modifications.
94640         * lib/vasprintf.c: New file, from GNU gettext.
94641         * lib/asprintf.c: New file, from GNU gettext.
94642
94643 2003-01-29  Bruno Haible  <bruno@clisp.org>
94644
94645         * modules/stpncpy: New module.
94646         * MODULES.html.sh (func_all_modules): Add it.
94647
94648 2003-01-29  Bruno Haible  <bruno@clisp.org>
94649
94650         * m4/stpncpy.m4: New file.
94651
94652 2003-01-29  Bruno Haible  <bruno@clisp.org>
94653
94654         * lib/stpncpy.h: New file, from GNU gettext with modifications.
94655         * lib/stpncpy.c: New file, from GNU gettext with modifications.
94656
94657 2003-01-28  Bruno Haible  <bruno@clisp.org>
94658
94659         * modules/c-ctype: New module.
94660         * MODULES.html.sh (func_all_modules): Add it.
94661
94662 2003-01-28  Bruno Haible  <bruno@clisp.org>
94663
94664         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
94665         Paul Eggert.
94666         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
94667         Paul Eggert.
94668
94669 2003-01-27  Bruno Haible  <bruno@clisp.org>
94670
94671         * modules/xsetenv: New module.
94672         * MODULES.html.sh (func_all_modules): Add it.
94673
94674 2003-01-27  Bruno Haible  <bruno@clisp.org>
94675
94676         * lib/xsetenv.h: New file, from GNU gettext.
94677         * lib/xsetenv.c: New file, from GNU gettext.
94678
94679 2003-01-23  Jim Meyering  <jim@meyering.net>
94680
94681         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
94682         from working on systems without dirfd (at least Irix and OSF1/Tru64).
94683
94684 2003-01-23  Bruno Haible  <bruno@clisp.org>
94685
94686         * modules/minmax: New module.
94687         * MODULES.html.sh (func_all_modules): Add it.
94688
94689 2003-01-23  Bruno Haible  <bruno@clisp.org>
94690
94691         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
94692         Eggert.
94693
94694 2003-01-22  Bruno Haible  <bruno@clisp.org>
94695
94696         * modules/exit: New module.
94697         * MODULES.html.sh (func_all_modules): Add it.
94698
94699 2003-01-22  Bruno Haible  <bruno@clisp.org>
94700
94701         * lib/exit.h: New file, from GNU gettext.
94702
94703 2003-01-19  Bruno Haible  <bruno@clisp.org>
94704
94705         * gnulib-tool: Recognize option --extract-maintainer.
94706         (func_get_maintainer): New function.
94707         * modules/*: Add Maintainer entry.
94708
94709 2003-01-16  Jim Meyering  <jim@meyering.net>
94710
94711         * m4/regex.m4: The `regex' struct is both input and output.
94712         Initialize it before each use.  Patch by Tim Waugh.
94713
94714 2003-01-16  Bruno Haible  <bruno@clisp.org>
94715
94716         * MODULES.html.sh: Add a table of contents. Add the module name as
94717         leftmost column. Add hyperlinks.
94718
94719 2003-01-15  Bruno Haible  <bruno@clisp.org>
94720
94721         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
94722
94723 2003-01-15  Bruno Haible  <bruno@clisp.org>
94724
94725         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
94726         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
94727         suffix.
94728
94729 2003-01-15  Bruno Haible  <bruno@clisp.org>
94730
94731         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
94732
94733 2003-01-15  Bruno Haible  <bruno@clisp.org>
94734
94735         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
94736         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
94737
94738 2003-01-14  Jim Meyering  <jim@meyering.net>
94739
94740         * lib/same.c (same_name): Tweak a comment.
94741
94742 2003-01-14  Bruno Haible  <bruno@clisp.org>
94743
94744         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
94745         when a string comparison is sufficient.
94746
94747 2003-01-14  Bruno Haible  <bruno@clisp.org>
94748
94749         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
94750         'unsigned int'.
94751
94752 2003-01-14  Bruno Haible  <bruno@clisp.org>
94753
94754         * lib/hash-pjw.c: Add comment about low quality of this function.
94755
94756 2003-01-13  Bruno Haible  <bruno@clisp.org>
94757
94758         * modules/stpcpy: Distribute lib/stpcpy.h.
94759         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
94760
94761 2003-01-13  Bruno Haible  <bruno@clisp.org>
94762
94763         * modules/*: Add a description.
94764         * modules/strpbrk: Fix Makefile.am snippet.
94765         * modules/strtoimax: Fix dependencies.
94766         * modules/strtoumax: Likewise.
94767
94768 2003-01-13  Bruno Haible  <bruno@clisp.org>
94769
94770         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
94771         * modules/alloca (Makefile.am): All object files depend on alloca.h.
94772         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
94773
94774 2003-01-13  Bruno Haible  <bruno@clisp.org>
94775
94776         * gnulib-tool (func_create_testdir): Store config/* files in the main
94777         directory.
94778         * config.rpath: Move to ...
94779         * config/config.rpath: ... here.
94780         * modules/gettext: Contains config/config.rpath, not config.rpath.
94781         * modules/iconv: Likewise.
94782
94783 2003-01-12  Paul Eggert  <eggert@twinsun.com>
94784
94785         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
94786         to avoid collisions with libcurses and libreadline.
94787
94788         * m4/getstr.m4: Remove.
94789         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
94790
94791 2003-01-12  Paul Eggert  <eggert@twinsun.com>
94792
94793         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
94794         to avoid collisions with libcurses and libreadline.
94795
94796         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
94797         * lib/getstr.h, getstr.c: Remove.
94798         * lib/getline.c: Include "getline.h", to check interface.
94799         Move body of old getstr.c here: this defines MIN_CHUNK and
94800         declares getdelim2, which is renamed from getstr.
94801         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
94802
94803         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
94804         All uses changed.
94805         * lib/linebuffer.h: Likewise.
94806         (readline): Remove backward-compatibility macro.
94807
94808 2003-01-12  Paul Eggert  <eggert@twinsun.com>
94809
94810         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
94811         to avoid collisions with libcurses and libreadline.
94812         * getstr: Remove.
94813         * MODULES.html.sh: Remove getstr.
94814         * modules/getline: Depend on unlocked-io, not getstr.
94815
94816 2003-01-12  Jim Meyering  <jim@meyering.net>
94817
94818         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
94819
94820 2003-01-10  Bruno Haible  <bruno@clisp.org>
94821
94822         * modules/alloca: Change Makefile.am requirements. Simplify Include
94823         requirements. Add lib/alloca_.h to file list.
94824
94825 2003-01-10  Bruno Haible  <bruno@clisp.org>
94826
94827         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
94828
94829 2003-01-10  Bruno Haible  <bruno@clisp.org>
94830
94831         * lib/alloca_.h: New file.
94832         * lib/getdate.y: Unconditionally include alloca.h.
94833         * lib/makepath.c: Likewise.
94834         * lib/setenv.c: Likewise.
94835         * lib/userspec.c: Likewise.
94836
94837 2003-01-09  Karl Berry  <karl@gnu.org>
94838
94839         * MODULES.html.sh: include `dirname $0` in PATH, to find
94840         gnulib-tool.
94841
94842 2003-01-09  Bruno Haible  <bruno@clisp.org>
94843
94844         * modules/stdbool: Change configure.ac, Makefile.am requirements.
94845         Simplify Include requirements. Add lib/stdbool.h.in to file list.
94846
94847 2003-01-09  Bruno Haible  <bruno@clisp.org>
94848
94849         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
94850
94851 2003-01-09  Bruno Haible  <bruno@clisp.org>
94852
94853         * lib/stdbool.h.in: New file.
94854
94855 2003-01-09  Bruno Haible  <bruno@clisp.org>
94856
94857         * gnulib-tool (func_all_modules): Ignore files ending in ~.
94858         * MODULES.html.sh: Likewise.
94859
94860 2003-01-08  Jim Meyering  <jim@meyering.net>
94861
94862         * lib/full-write.c: Undefine and define-away `const' after inclusion
94863         of errno.h, not before.  Suggestion from Bruno Haible.
94864
94865 2003-01-08  Bruno Haible  <bruno@clisp.org>
94866
94867         * modules/full-read: Depend on full-write.
94868
94869 2003-01-08  Bruno Haible  <bruno@clisp.org>
94870
94871         * lib/safe-read.c: Include specification header first, to ensure its
94872         selfcontainedness.
94873         * lib/full-write.c: Likewise.
94874
94875 2003-01-07  Jim Meyering  <jim@meyering.net>
94876
94877         * lib/full-write.c: Rework so that it may serve to define full_read,
94878         too.
94879         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
94880
94881 2003-01-07  Bruno Haible  <bruno@clisp.org>
94882
94883         * lib/strtoimax.c: Include <stdint.h> as an alternative to
94884         <inttypes.h>.
94885         * lib/xstrtol.h: Likewise.
94886         * lib/xstrtoimax.c: Likewise.
94887         * lib/xstrtoumax.c: Likewise.
94888         * lib/human.h: Likewise.
94889
94890         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
94891         on systems that have <inttypes.h> but not <stdint.h>.
94892
94893 2003-01-07  Bruno Haible  <bruno@clisp.org>
94894
94895         * MODULES.html.sh: Add copyright notice.
94896         (missed_files): Omit CVS directory entries.
94897         (func_module): Make it work with sed-3.02.
94898         * MODULES.txt: Remove file.
94899
94900 2003-01-06  Jim Meyering  <jim@meyering.net>
94901
94902         * lib/version-etc.c: Update year in translatable copyright string.
94903
94904 2003-01-03  Karl Berry  <karl@gnu.org>
94905
94906         * config/config.{guess,sub}: update from prep.
94907
94908 2003-01-02  Karl Berry  <karl@gnu.org>
94909
94910         * doc/COPYING.DOC: belatedly updated to 1.2.
94911
94912 2003-01-01  Karl Berry  <karl@gnu.org>
94913
94914         * gnulib-tool (func_verify_module): report module name $module in
94915         error message, not $1.
94916         * gnulib-tool (create-testdir): don't complain if destdir couldn't
94917         be created, only if it doesn't exist.
94918         * gnulib-tool (last_checkin_date): don't expand the $Date here.
94919
94920 2002-12-31  Paul Eggert  <eggert@twinsun.com>
94921
94922         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
94923
94924 2002-12-31  Paul Eggert  <eggert@twinsun.com>
94925
94926         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
94927         memcmp if strcoll doesn't work.
94928
94929 2002-12-31  Bruno Haible  <bruno@clisp.org>
94930
94931         * lib/utime.c (utime_null): No need to call ftruncate if the file was
94932         nonempty.
94933
94934 2002-12-31  Bruno Haible  <bruno@clisp.org>
94935
94936         * lib/memcoll.c (STRCOLL): New macro.
94937         (memcoll): Use it.
94938
94939 2002-12-31  Bruno Haible  <bruno@clisp.org>
94940
94941         * lib/localcharset.h: New file.
94942         * lib/localcharset.c: Include it.
94943         * lib/unicodeio.c: Likewise.
94944
94945 2002-12-31  Bruno Haible  <bruno@clisp.org>
94946
94947         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
94948         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
94949
94950 2002-12-31  Bruno Haible  <bruno@clisp.org>
94951
94952         * lib/getline.h: Include <stddef.h>, for size_t.
94953
94954         * lib/unicodeio.h: Include <stddef.h>, for size_t.
94955         * lib/unicodeio.c: Don't include <stddef.h>.
94956
94957 2002-12-31  Bruno Haible  <bruno@clisp.org>
94958
94959         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
94960         HAVE_TM_ZONE.
94961
94962 2002-12-24  Karl Berry  <karl@gnu.org>
94963
94964         * config/config.guess: update from prep.
94965
94966 2002-12-24  Bruno Haible  <bruno@clisp.org>
94967
94968         General infrasructure.
94969         * m4/README: Rewritten.
94970         * m4/onceonly.m4: New file.
94971         * m4/onceonly_2_57.m4: New file.
94972
94973         Module atexit.
94974         * m4/atexit.m4: New file.
94975
94976         Module strtod.
94977         * m4/strtod.m4: New file.
94978
94979         Module strtol.
94980         * m4/strtol.m4: New file.
94981
94982         Module strtoul.
94983         * m4/strtoul.m4: New file.
94984
94985         Module memchr.
94986         * m4/memchr.m4: New file.
94987
94988         Module memcmp.
94989         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
94990         (jm_FUNC_MEMCMP): Invoke it.
94991
94992         Module memcpy.
94993         * m4/memcpy.m4: New file.
94994
94995         Module memmove.
94996         * m4/memmove.m4: New file.
94997
94998         Module memset.
94999         * m4/memset.m4: New file.
95000
95001         Module strcspn.
95002         * m4/strcspn.m4: New file.
95003
95004         Module strpbrk.
95005         * m4/strpbrk.m4: New file.
95006
95007         Module strstr.
95008         * m4/strstr.m4: New file.
95009
95010         Module strerror.
95011         * m4/strerror.m4: New file.
95012
95013         Module mktime.
95014         * m4/mktime.m4: Renamed from jm-mktime.m4.
95015         (gl_PREREQ_MKTIME): New macro.
95016         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
95017
95018         Module malloc.
95019         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
95020         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
95021         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
95022
95023         Module realloc.
95024         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
95025         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
95026         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
95027
95028         Module strftime.
95029         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
95030         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
95031         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
95032         gl_TM_GMTOFF.
95033         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
95034
95035         Module xalloc.
95036         * m4/xalloc.m4: New file.
95037
95038         Module alloca.
95039         * m4/alloca.m4: New file.
95040
95041         Module putenv.
95042         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
95043         (jm_FUNC_PUTENV): Invoke it.
95044
95045         Module setenv.
95046         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
95047         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
95048         when invoked twice.
95049         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
95050         gt_FUNC_SETENV.
95051
95052         Module memrchr.
95053         * m4/memrchr.m4: New file.
95054
95055         Module stpcpy.
95056         * m4/stpcpy.m4: New file.
95057
95058         Module strcase.
95059         * m4/strcase.m4: New file.
95060
95061         Module strdup.
95062         * m4/strdup.m4: New file.
95063
95064         Module strnlen.
95065         * m4/strnlen.m4: New file.
95066
95067         Module strndup.
95068         * m4/strndup.m4: New file.
95069
95070         Module xstrtod.
95071         * m4/xstrtod.m4: New file.
95072
95073         Module xstrtol.
95074         * m4/xstrtol.m4: New file.
95075
95076         Module getdate.
95077         * m4/getdate.m4: New file.
95078
95079         Module unlocked-io.
95080         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
95081         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
95082         * m4/jm-glibc-io.m4n: Remove file.
95083
95084         Module long-options.
95085         * m4/long-options.m4: New file.
95086
95087         Module md5.
95088         * m4/md5.m4: New file.
95089
95090         Module sha.
95091         * m4/sha.m4: New file.
95092
95093         Module getstr.
95094         * m4/getstr.m4: New file.
95095
95096         Module getline.
95097         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
95098         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
95099         <sys/types.h>, for size_t. Use the function name gnu_getline, not
95100         simply getline. Infoke gl_PREREQ_GETLINE.
95101
95102         Module obstack.
95103         * m4/obstack.m4: New file.
95104
95105         Module hash.
95106         * m4/hash.m4: New file.
95107
95108         Module readtokens.
95109         * m4/readtokens.m4: New file.
95110
95111         Module strverscmp.
95112         * m4/strverscmp.m4: New file.
95113
95114         Module stdbool.
95115         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
95116         OSF/1.
95117
95118         Module strtoll.
95119         * m4/strtoll.m4: New file.
95120
95121         Module strtoull.
95122         * m4/strtoull.m4: New file.
95123
95124         Module strtoimax.
95125         * m4/strtoimax.m4: New file.
95126
95127         Module strtoumax.
95128         * m4/strtoumax.m4: New file.
95129
95130         Module xstrtoimax.
95131         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
95132         jm_AC_PREREQ_XSTRTOIMAX.
95133         Moved the strtol prerequisites to strtol.m4.
95134         Moved the strtoll prerequisites to strtoll.m4.
95135         Moved the strtoimax prerequisites to strtoimax.m4.
95136
95137         Module xstrtoumax.
95138         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
95139         jm_AC_PREREQ_XSTRTOUMAX.
95140         Moved the strtoul prerequisites to strtoul.m4.
95141         Moved the strtoull prerequisites to strtoull.m4.
95142         Moved the strtoumax prerequisites to strtoumax.m4.
95143
95144         Module chown.
95145         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
95146         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
95147
95148         Module dup2.
95149         * m4/dup2.m4: New file.
95150
95151         Module ftruncate.
95152         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
95153         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
95154
95155         Module getgroups.
95156         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
95157         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
95158
95159         Module gettimeofday.
95160         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
95161         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
95162         gl_PREREQ_GETTIMEOFDAY.
95163
95164         Module mkdir.
95165         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
95166         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
95167
95168         Module mkstemp.
95169         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
95170         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
95171         jm_AC_TYPE_UINTMAX_T.
95172         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
95173
95174         Module stat.
95175         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
95176         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
95177
95178         Module lstat.
95179         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
95180         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
95181
95182         Module timespec.
95183         * m4/timespec.m4 (gl_TIMESPEC): New macro.
95184         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
95185         * m4/st_mtim.m4: Indentation.
95186
95187         Module nanosleep.
95188         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
95189         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
95190         gl_PREREQ_NANOSLEEP.
95191
95192         Module regex.
95193         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
95194         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
95195         (gl_REGEX): New macro.
95196
95197         Module rename.
95198         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
95199         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
95200
95201         Module rmdir.
95202         * m4/rmdir.m4: New file.
95203
95204         Module utime.
95205         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
95206         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
95207         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
95208
95209         Module dirname.
95210         * m4/dirname.m4: New file.
95211
95212         Module getopt.
95213         * m4/getopt.m4: New file.
95214
95215         Module unistd-safer.
95216         * m4/unistd-safer.m4: New file.
95217
95218         Module fnmatch.
95219         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
95220         declaration.
95221         (gl_PREREQ_FNMATCH_EXTRA): New macro.
95222         (gl_FUNC_FNMATCH_POSIX): New macro.
95223         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
95224         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
95225         simply fnmatch.
95226
95227         Module exclude.
95228         * m4/exclude.m4: New file.
95229
95230         Module human.
95231         * m4/human.m4: New file.
95232
95233         Module acl.
95234         * m4/acl.m4: Nop.
95235
95236         Module backupfile.
95237         * m4/backupfile.m4: New file.
95238         * m4/d-ino.m4: Indentation.
95239
95240         Module fsusage.
95241         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
95242         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
95243         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
95244
95245         Module dirfd.
95246         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
95247         requirements.
95248
95249         Module euidaccess.
95250         * m4/euidaccess.m4: New file.
95251
95252         Module file-type.
95253         * m4/file-type.m4: New file.
95254
95255         Module fileblocks.
95256         * m4/fileblocks.m4: New file.
95257
95258         Module filemode.
95259         * m4/filemode.m4: New file.
95260
95261         Module isdir.
95262         * m4/isdir.m4: New file.
95263
95264         Module lchown.
95265         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
95266         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
95267
95268         Module makepath.
95269         * m4/makepath.m4: New file.
95270
95271         Module modechange.
95272         * m4/modechange.m4: New file.
95273
95274         Module mountlist.
95275         * m4/mountlist.m4: New file.
95276         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
95277         Indentation.
95278
95279         Module path-concat.
95280         * m4/path-concat.m4: New file.
95281
95282         Module pathmax.
95283         * m4/pathmax.m4: New file.
95284
95285         Module same.
95286         * m4/same.m4: New file.
95287
95288         Module save-cwd.
95289         * m4/save-cwd.m4: New file.
95290
95291         Module savedir.
95292         * m4/savedir.m4: New file.
95293
95294         Module xgetcwd.
95295         * m4/xgetcwd.m4: New file.
95296         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
95297
95298         Module xreadlink.
95299         * m4/xreadlink.m4: New file.
95300
95301         Module safe-read.
95302         * m4/safe-read.m4: New file.
95303
95304         Module safe-write.
95305         * m4/safe-write.m4: New file.
95306
95307         Module closeout.
95308         * m4/closeout.m4: New file.
95309
95310         Module stdio-safer.
95311         * m4/stdio-safer.m4: New file.
95312
95313         Module getpass.
95314         * m4/getpass.m4: New file.
95315
95316         Module getugroups.
95317         * m4/getugroups.m4: New file.
95318
95319         Module group-member.
95320         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
95321         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
95322
95323         Module idcache.
95324         * m4/idcache.m4: New file.
95325
95326         Module userspec.
95327         * m4/userspec.m4: New file.
95328
95329         Module gettime.
95330         * m4/clock_time.m4: New file.
95331         * m4/gettime.m4: New file.
95332
95333         Module settime.
95334         * m4/settime.m4: New file.
95335
95336         Module posixtm.
95337         * m4/posixtm.m4: New file.
95338
95339         Module gethostname.
95340         * m4/gethostname.m4: New file.
95341
95342         Module canon-host.
95343         * m4/canon-host.m4: New file.
95344
95345         Module gettext.
95346         * m4/codeset.m4: New file, from gettext-0.11.5.
95347         * m4/gettext.m4: New file, from gettext-0.11.5.
95348         * m4/glibc21.m4: New file, from gettext-0.11.5.
95349         * m4/iconv.m4: New file, from gettext-0.11.5.
95350         * m4/intdiv0.m4: New file, from gettext-0.11.5.
95351         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
95352         * m4/inttypes.m4: New file, from gettext-0.11.5.
95353         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
95354         * m4/isc-posix.m4: New file, from gettext-0.11.5.
95355         * m4/lcmessage.m4: New file, from gettext-0.11.5.
95356         * m4/lib-ld.m4: New file, from gettext-0.11.5.
95357         * m4/lib-link.m4: New file, from gettext-0.11.5.
95358         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
95359         * m4/progtest.m4: New file, from gettext-0.11.5.
95360         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
95361         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
95362         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
95363
95364         Module localcharset.
95365         * m4/localcharset.m4: New file.
95366
95367         Module hard-locale.
95368         * m4/hard-locale.m4: New file.
95369
95370         Module mbswidth.
95371         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
95372         onceonly macros.
95373         * m4/mbrtowc.m4: Add comment.
95374
95375         Module memcasecmp.
95376         * m4/memcasecmp.m4: New file.
95377
95378         Module memcoll.
95379         * m4/memcoll.m4: New file.
95380
95381         Module unicodeio.
95382         * m4/unicodeio.m4: New file.
95383
95384         Module rpmatch.
95385         * m4/rpmatch.m4: New file.
95386
95387         Module yesno.
95388         * m4/yesno.m4: New file.
95389
95390         Module exitfail.
95391         * m4/exitfail.m4: New file.
95392
95393         Module c-stack.
95394         * m4/c-stack.m4 (gl_C_STACK): New macro.
95395         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
95396
95397         Module error.
95398         * m4/error.m4 (gl_ERROR): New macro.
95399         (jm_PREREQ_ERROR): Use onceonly macros.
95400
95401         Module fatal.
95402         * m4/fatal.m4: New file.
95403
95404         Module getloadavg.
95405         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
95406         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
95407
95408         Module getpagesize.
95409         * m4/getpagesize.m4: New file.
95410
95411         Module getusershell.
95412         * m4/getusershell.m4: New file.
95413
95414         Module physmem.
95415         * m4/physmem.m4: New file.
95416
95417         Module posixver.
95418         * m4/posixver.m4: New file.
95419
95420         Module quotearg.
95421         * m4/quotearg.m4: New file.
95422
95423         Module quote.
95424         * m4/quote.m4: New file.
95425
95426         Module readutmp.
95427         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
95428
95429         Module sig2str.
95430         * m4/sig2str.m4: New file.
95431
95432         Other.
95433         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
95434         ulonglong.m4.
95435         * m4/intmax_t.m4: New file.
95436         * m4/d-type.m4: Indentation.
95437         * m4/jm-macros.m4: Update.
95438         * m4/prereq.m4 (jm_PREREQ): Update.
95439         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
95440         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
95441         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
95442         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
95443         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
95444         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
95445         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
95446         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
95447         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
95448         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
95449         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
95450         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
95451         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
95452         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
95453         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
95454         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
95455         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
95456         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
95457         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
95458
95459 2002-12-24  Bruno Haible  <bruno@clisp.org>
95460
95461         * MODULES.txt: Update according to m4/ changes.
95462
95463         Module gettext.
95464         * config.rpath: New file, from gettext-0.11.5.
95465
95466         * modules/*: New module descriptions.
95467         * gnulib-tool: New file.
95468         * MODULES.html.sh: New file.
95469
95470 2002-12-21  Karl Berry  <karl@gnu.org>
95471
95472         * doc/fdl.texi: update to version 1.2.
95473
95474 2002-12-19  Karl Berry  <karl@gnu.org>
95475
95476         * config/config.guess: update from prep.
95477
95478 2002-12-18  Bruno Haible  <bruno@clisp.org>
95479
95480         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
95481         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
95482
95483 2002-12-17  Bruno Haible  <bruno@clisp.org>
95484
95485         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
95486         stdlib.h, string.h.
95487
95488 2002-12-17  Bruno Haible  <bruno@clisp.org>
95489
95490         * lib/canon-host.c (strdup): Remove unused declaration.
95491
95492         * lib/fsusage.c: Include full_read.h.
95493         (get_fs_usage): Use full_read instead of safe_read.
95494
95495         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
95496
95497 2002-12-12  Karl Berry  <karl@gnu.org>
95498
95499         * config/config.guess: update from prep.
95500
95501 2002-12-11  Bruno Haible  <bruno@clisp.org>
95502
95503         * m4/setenv.m4: New file, from gettext-0.11.5.
95504
95505 2002-12-11  Bruno Haible  <bruno@clisp.org>
95506
95507         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
95508         not unsetenv().
95509         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
95510         modifications:
95511
95512         2002-12-11  Bruno Haible  <bruno@clisp.org>
95513
95514                 * setenv.c (alloca): Fall back to malloc.
95515                 (freea): New macro.
95516                 (setenv): Use freea() to free memory allocated with alloca().
95517
95518         2002-11-13  Bruno Haible  <bruno@clisp.org>
95519
95520                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
95521                 function declarations.
95522                 * unsetenv.c (unsetenv): Likewise.
95523
95524         2002-03-04  Bruno Haible  <bruno@clisp.org>
95525
95526                 Portability to AIX 4.3.3.
95527                 * unsetenv.c: New file, extracted from setenv.c.
95528                 * setenv.c: Move the unsetenv() function to unsetenv.c.
95529
95530         2001-12-20  Bruno Haible  <bruno@clisp.org>
95531
95532                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
95533                 use malloc instead. For SunOS 4.
95534
95535         2001-12-11  Bruno Haible  <bruno@clisp.org>
95536
95537                 * setenv.c: Declare alloca.
95538                 (compar_fn_t): New typedef.
95539                 (KNOWN_VALUE, STORE_VALUE): Use it.
95540
95541         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
95542         setenv.h.
95543
95544 2002-12-10  Paul Eggert  <eggert@twinsun.com>
95545
95546         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
95547         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
95548         Choose values that are less likely to collide with system fnmatch
95549         options.
95550         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
95551         defined (e.g., a pure POSIX system).
95552         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
95553         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
95554
95555 2002-12-06  Paul Eggert  <eggert@twinsun.com>
95556
95557         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
95558         a pain in practice to deal with generated m4 files.  This change
95559         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
95560
95561         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
95562         and jm-glibc-io.m4, as they are no longer a special case.
95563         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
95564         kludge and the auto-generation stuff.  Check only whether the
95565         functions are declared, not whether they exist, since older hosts
95566         that don't declare the functions can't use the optimization anyway.
95567
95568 2002-12-06  Jim Meyering  <jim@meyering.net>
95569
95570         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
95571
95572         Merge in changes from libc's misc/error.c, in preparation
95573         for the merge of gnulib's changes back into libc.
95574
95575         * lib/error.c (_): Define only if not already defined.
95576         Move definition to follow all #include directives.
95577         Include unlocked-io.h only if !_LIBC.
95578         [_LIBC]: Include <libio/libioP.h>.
95579         [USE_IN_LIBIO]: Include <libio/iolibio.h>
95580         (fflush): Tweak definition to use INTUSE.
95581         (putc): Define.
95582
95583 2002-12-05  Paul Eggert  <eggert@twinsun.com>
95584
95585         * lib/alloca.c [defined emacs]: Include "lisp.h".
95586         (xalloc_die) [defined emacs]: New macro.
95587         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
95588         [! defined emacs]: Include <xalloc.h>.
95589         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
95590         (pointer): Typedef to POINTER_TYPE *.
95591         (malloc): Remove decl; we now always use xmalloc.
95592         (alloca): Use old-style definition, since Emacs needs this.
95593         Check for arithmetic overflow when computing combined size.
95594
95595 2002-12-04  Paul Eggert  <eggert@twinsun.com>
95596
95597         Do not generate unlocked-io.h automatically, since it's easier to
95598         maintain it by hand.
95599
95600         * lib/unlocked-io.h: New file, from GNU diffutils,
95601         but with proper copyright notice and attribution.
95602         * lib/gen-uio: Remove.
95603         * lib/Makefile.am: Add copyright notice.
95604         (libfetish_a_SOURCES): Add unlocked-io.h.
95605         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
95606         (DISTCLEANFILES, io_functions): Remove macros.
95607         (EXTRA_DIST): Remove gen_uio.
95608         (unlocked-io.h): Remove rule.
95609
95610 2002-12-04  Jim Meyering  <jim@meyering.net>
95611
95612         Reflect the fact that stat.c and lstat.c are no longer generated.
95613         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
95614         (DISTCLEANFILES): Likewise.
95615         (EXTRA_DIST): Likewise.
95616         (all_local): Don't depend on stat.c or lstat.c.
95617         (stat.c, lstat.c): Remove rules.
95618         (EXTRA_DIST): Remove xstat.in.
95619
95620         * lib/xstat.in: Remove file.  Contents moved into stat.c.
95621         * lib/stat.c: New file.  Contents mostly from xstat.in.
95622         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
95623         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
95624
95625         * lib/safe-read.c: Rework so that it may serve to define safe_write,
95626         too.
95627         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
95628
95629 2002-12-03  Jim Meyering  <jim@meyering.net>
95630
95631         * lib/safe-read.c, safe-write.c: Change variable names and comments,
95632         but not semantics, to minimize the differences between these two files.
95633         (safe_read): Change comment to mention SAFE_READ_ERROR.
95634
95635         * lib/safe-read.c (IS_EINTR): Define.
95636         (safe_read): Use IS_EINTR in place of in-function cpp directives.
95637
95638 2002-12-02  Jim Meyering  <jim@meyering.net>
95639
95640         * lib/safe-read.c (EINTR): Define.
95641         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
95642         (INT_MAX): Provide fallback.
95643         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
95644
95645         * lib/safe-read.h (SAFE_READ_ERROR): Define.
95646
95647 2002-12-02  Bruno Haible  <bruno@clisp.org>
95648
95649         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
95650         Define, taken from safe-read.c.
95651         (INT_MAX): Provide fallback.
95652         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
95653         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
95654
95655         * lib/safe-read.c (EINTR): Remove definition.
95656         (safe_read): Don't use EINTR if it is absent.
95657
95658 2002-12-01  Jim Meyering  <jim@meyering.net>
95659
95660         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
95661         zero.
95662         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
95663
95664 2002-11-27  Paul Eggert  <eggert@twinsun.com>
95665
95666         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
95667         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
95668         with `if (! (value < limit)) abort ();', for readability.
95669
95670 2002-11-26  Karl Berry  <karl@gnu.org>
95671
95672         * lib/strdup.c: copy from libc again, with jim's ok.
95673         * lib/.cppi-disable: re-add strdup.c
95674
95675 2002-11-25  Karl Berry  <karl@gnu.org>
95676
95677         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
95678         instead of "strtol.c".
95679
95680 2002-11-25  Karl Berry  <karl@gnu.org>
95681
95682         * config/install-sh: update from automake for variable quoting, $0 in
95683         error msgs, etc.
95684
95685         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
95686         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
95687         entry.
95688
95689 2002-11-25  Jim Meyering  <jim@meyering.net>
95690
95691         * lib/mktime.c: Sync from libc, now that it has the latest fix.
95692
95693 2002-11-24  Karl Berry  <karl@gnu.org>
95694
95695         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
95696         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
95697
95698 2002-11-24  Jim Meyering  <jim@meyering.net>
95699
95700         Update from coreutils:
95701
95702         * lib/mktime.c: Merge in changes from libc.
95703
95704         Avoid a link-time failure on some Linux systems.
95705         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
95706         (otherwise).
95707         (__mon_yday): Declare with the STATIC attribute.
95708         (__mktime_internal): Likewise.
95709         Based on a report from Greg Schafer.
95710
95711 2002-11-23  Jim Meyering  <jim@meyering.net>
95712
95713         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
95714         Use `unsigned', not `int', as type of index.
95715
95716         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
95717
95718         * lib/fsusage.c: Remove unneeded parentheses around operands of
95719         `defined'.
95720
95721 2002-11-22  Paul Eggert  <eggert@twinsun.com>
95722
95723         * lib/quotearg.h: Allow multiple inclusion by surrounding with
95724         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
95725         so that we can be included first.
95726         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
95727         * lib/quotearg.c: Include quotearg.h immediately after config.h.
95728         No need to include stddef.h or sys/types.h any more.
95729         Surround local include files with "", not "<>".
95730         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
95731         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
95732         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
95733         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
95734         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
95735         (ISPRINT): Remove; no longer needed now that we assume C89.
95736
95737         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
95738         Preserve errno.
95739
95740         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
95741         quotearg_char): Use SIZE_MAX rather than
95742         (size_t) -1 when we are talking about "infinity".
95743
95744         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
95745
95746 2002-11-22  Paul Eggert  <eggert@twinsun.com>
95747
95748         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
95749         hint that one should use `if (! x) abort ();' rather than `assert
95750         (x);', and anyway it's one less thing to worry about configuring.
95751         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
95752         hash_rehash, hash_insert): Use abort rather than assert.
95753
95754 2002-11-22  Bruno Haible  <bruno@clisp.org>
95755
95756         * lib/safe-read.h: Assume C89. Add comments.
95757         (safe_read): Change return type to size_t.
95758         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
95759         byte counts > SSIZE_MAX correctly.
95760         * lib/safe-write.h: New file.
95761         * lib/safe-write.c: New file.
95762         * lib/full-read.h: New file.
95763         * lib/full-read.c: New file.
95764         * lib/full-write.h: Assume C89. Add comments.
95765         * lib/full-write.c: Include safe-write.h.
95766         (full_write): Rewritten to use safe_write.
95767         Suggested by Jim Meyering and Paul Eggert.
95768
95769 2002-11-21  Jim Meyering  <jim@meyering.net>
95770
95771         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
95772
95773         Merge in changes from the coreutils.
95774
95775         2002-09-25  Paul Eggert  <eggert@twinsun.com>
95776         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
95777         <stdint.h>.
95778         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
95779         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
95780         int.  Work more efficiently if X is the same width as uintmax_t.
95781         Do not compare X to -1, to avoid bogus compiler warning.
95782         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
95783         Don't assume that f_frsize and f_bsize are the same type.
95784
95785         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
95786         warning on FreeBSD.
95787
95788         * lib/makepath.c (make_path): Restore umask *before* creating the final
95789         component.
95790         (make_path): Minor reformatting.
95791
95792         * lib/xmalloc.c: Adjust to work with new autoconf macros,
95793         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
95794         HAVE_MALLOC/HAVE_REALLOC.
95795
95796         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
95797         dummy ones.  At least on GNU/Linux systems, `auto' means something
95798         else.
95799         From Michael Stone.
95800
95801 2002-11-21  Bruno Haible  <bruno@clisp.org>
95802
95803         Remove case insensitive option matching.
95804         * lib/argmatch.h (argcasematch): Remove declaration.
95805         (ARGCASEMATCH): Remove macro.
95806         (__xargmatch_internal): Remove case_sensitive argument.
95807         (XARGMATCH): Update.
95808         (XARGCASEMATCH): Remove macro.
95809         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
95810         case_sensitive argument.
95811         (argcasematch): Remove function.
95812         (__xargmatch_internal): Remove case_sensitive argument.
95813         (main): Use XARGMATCH instead of XARGCASEMATCH.
95814
95815         * lib/xmalloc.c: Change compile-time error message. Add comment about
95816         required autoconf version.
95817
95818 2002-11-20  Paul Eggert  <eggert@twinsun.com>
95819
95820         Merge argmatch cleanups from Bison.  Assume C89.
95821
95822         * lib/argmatch.c: Include config.h here, not in argmatch.h.
95823         Include stdlib.h, for EXIT_FAILURE.
95824         Always include <string.h>, since we assume C89.
95825         (EXIT_FAILURE): Remove pre-C89 bug workaround.
95826         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
95827         Include <stddef.h> instead, since it's all we need for size_t.
95828         (PARAMS): Remove.  All uses removed.
95829         (ARRAY_CARDINALITY): Do not bother to #undef.
95830         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
95831         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
95832         Remove unnecessary parentheses.
95833         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
95834         Insert necessary parentheses.
95835         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
95836         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
95837
95838 2002-11-19  Bruno Haible  <bruno@clisp.org>
95839
95840         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
95841         * lib/mbswidth.h: Include <stddef.h>, for size_t.
95842
95843         * lib/mbswidth.h (PARAMS): Remove macro.
95844         (mbswidth, mbsnwidth): Use ANSI C function declarations.
95845         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
95846
95847         * lib/gcd.h (PARAMS): Remove macro.
95848         (gcd): Use ANSI C function declarations.
95849         * lib/gcd.c (gcd): Likewise.
95850
95851 2002-11-15  Bruno Haible  <bruno@clisp.org>
95852
95853         * lib/strcspn.c: Include <stddef.h>.
95854         (strcspn): Use ANSI C function declaration. Change return type to
95855         size_t. Use NULL.
95856         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
95857         (strpbrk): Use NULL.
95858         * lib/strpbrk.h (PARAMS): Remove macro.
95859         (strpbrk): Use ANSI C function declaration.
95860         * lib/strstr.c: Don't include <sys/types.h>.
95861         * lib/strstr.h (PARAMS): Remove macro.
95862         (strstr): Use ANSI C function declarations.
95863
95864 2002-11-14  Karl Berry  <karl@gnu.org>
95865
95866         * config/mkinstalldirs: `do' on separate line, instead of
95867         `for var; do'.
95868
95869 2002-11-06  Bruno Haible  <bruno@clisp.org>
95870
95871         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
95872         * lib/gcd.c (gcd): Likewise.
95873
95874 2002-11-05  Bruno Haible  <bruno@clisp.org>
95875
95876         * lib/gcd.h: New file, from gettext-0.11.5.
95877         * lib/gcd.c: New file, from gettext-0.11.5.
95878
95879 2002-11-05  Bruno Haible  <bruno@clisp.org>
95880
95881         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
95882         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
95883         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
95884         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
95885
95886         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
95887         <libintl.h>.
95888         * lib/makepath.c: Include gettext.h instead of <locale.h> and
95889         <libintl.h>.
95890
95891         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
95892         * lib/human.c: Include gettext.h instead of <libintl.h>.
95893         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
95894         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
95895         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
95896         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
95897         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
95898         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
95899         (textdomain): Remove definition.
95900         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
95901
95902         * lib/long-options.c: Remove include of <libintl.h> and definition of
95903         _.
95904         * lib/same.c: Remove include of <libintl.h> and definition of _.
95905
95906 2002-11-04  Owen Taylor  <otaylor@redhat.com>
95907
95908         * lib/config.charset: A few additions for Solaris.
95909
95910 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
95911
95912         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
95913         * lib/localcharset.c (locale_charset): Declare as extern "C".
95914
95915 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
95916
95917         * lib/config.charset: msdos in uk_UA uses CP1125.
95918
95919 2002-11-04  Bruno Haible  <bruno@clisp.org>
95920
95921         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
95922         * lib/strcase.h: New file, from GNU gettext-0.11.5.
95923         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
95924         * lib/strstr.h: New file, from GNU gettext-0.11.5.
95925         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
95926
95927 2002-11-04  Bruno Haible  <bruno@clisp.org>
95928
95929         * lib/localcharset.c (locale_charset): Don't return an empty string.
95930
95931 2002-11-04  Bruno Haible  <bruno@clisp.org>
95932
95933         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
95934         aliases.
95935
95936 2002-11-04  Bruno Haible  <bruno@clisp.org>
95937
95938         * lib/config.charset: Update for newest glibc. Add canonical names
95939         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
95940
95941 2002-11-04  Bruno Haible  <bruno@clisp.org>
95942
95943         * lib/config.charset: Add support for NetBSD.
95944
95945 2002-11-04  Bruno Haible  <bruno@clisp.org>
95946
95947         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
95948
95949 2002-11-01  Bruno Haible  <bruno@clisp.org>
95950
95951         * configure.in: Add AC_CONFIG_AUX_DIR call.
95952         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
95953         test/Makefile.
95954         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
95955
95956 2002-09-28  Karl Berry  <karl@gnu.org>
95957
95958         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
95959         installed automake until the next release, since changes have been
95960         made.
95961
95962 2002-09-25  Karl Berry  <karl@gnu.org>
95963
95964         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
95965         * lib/getopt*: copy from libc/posix.
95966         * lib/gettext.h: copy from gettext.
95967         * lib/.cppi-disable: add strdup.c, gettext.h.
95968
95969 2002-09-25  Karl Berry  <karl@gnu.org>
95970
95971         * config/srclist.txt: enable gettext.h check.
95972         * config/config.{guess,sub}: update from prep.
95973         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
95974                 from automake 1.6.3.
95975         See srclist*.
95976
95977 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
95978
95979         * regex.c (PATFETCH): Remove the translating fetch.
95980         (PATFETCH_RAW): Rename to PATFETCH.
95981         (set_image_of_range): New fun.
95982         (SET_RANGE_TABLE_WORK_AREA): Use it.
95983         (regex_compile): Don't translate the pattern chars so eagerly.
95984         Only do it when inserting an `exactn' bytecode or when handling
95985         a char-range.
95986         (mutually_exclusive_p): Avoid empty statement.
95987
95988 2002-07-06  Jim Meyering  <meyering@lucent.com>
95989
95990         * m4/README: Don't mention Makefile.am.in.
95991         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
95992
95993 2002-07-01  Jim Meyering  <meyering@lucent.com>
95994
95995         * lib/c-stack.c: Include sys/time.h.
95996         From Volker Borchert.
95997
95998 2002-06-26  Paul Eggert  <eggert@twinsun.com>
95999
96000         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
96001
96002 2002-06-26  Paul Eggert  <eggert@twinsun.com>
96003
96004         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
96005         New macro.  Use it uniformly instead of
96006         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
96007         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
96008         reported by Vin Shelton.
96009
96010 2002-06-22  Paul Eggert  <eggert@twinsun.com>
96011
96012         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
96013         Do not assume SA_SIGINFO behavior.
96014         Bug reported by Jim Meyering on NetBSD 1.5.2.
96015
96016 2002-06-22  Jim Meyering  <meyering@lucent.com>
96017
96018         * m4/c-stack.m4: New file, from diffutils-2.8.2.
96019         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
96020
96021         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
96022         now that configure.ac uses AC_GNU_SOURCE.
96023         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
96024         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
96025
96026         Update to latest tools.  Suggestions from Paul Eggert.
96027         * m4/stdbool.m4: New file, from diffutils-2.8.2.
96028         * m4/gnu-source.m4: Update from diffutils-2.8.2.
96029         * m4/fnmatch.m4: Likewise.
96030         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
96031         to AC_HEADER_STDBOOL
96032
96033 2002-06-22  Jim Meyering  <meyering@lucent.com>
96034
96035         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
96036         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
96037
96038 2002-06-22  Jim Meyering  <meyering@lucent.com>
96039
96040         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
96041
96042         * lib/exitfail.c, exitfail.h: Likewise.
96043         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
96044
96045         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
96046         of fnmatch.h.
96047         (EXTRA_DIST): Add fnmatch_loop.c.
96048         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
96049
96050         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
96051         * lib/fnmatch.c: Update from diffutils-2.8.2.
96052         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
96053         * lib/fnmatch.h: Remove file.
96054
96055 2002-06-21  Jim Meyering  <meyering@lucent.com>
96056
96057         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
96058         * m4/mbrtowc.m4: Likewise.
96059
96060         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
96061         * m4/mbswidth.m4: Reflect name change:
96062         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
96063         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
96064
96065         * m4/lib-link.m4: Update from gettext-0.11.2.
96066         * m4/gettext.m4: Likewise.
96067
96068         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
96069         From Alfred M. Szmidt.
96070
96071 2002-06-18  Paul Eggert  <eggert@twinsun.com>
96072
96073         * lib/file-type.h: Report an error if neither S_ISREG nor
96074         S_IFREG is defined, instead of using a test specific to glibc
96075         2.2.  This should be safe, since POSIX requires S_ISREG and
96076         Unix Version 7 had S_IFREG.  We don't need to check for
96077         <sys/types.h> since we don't use any symbols that it defines.
96078
96079 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
96080
96081         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
96082         $@-t, so that each temporary file name is unique and valid in the first
96083         8 characters, for operation under DOS.
96084
96085 2002-06-15  Paul Eggert  <eggert@twinsun.com>
96086
96087         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
96088
96089 2002-06-15  Jim Meyering  <meyering@lucent.com>
96090
96091         Work even with DJGPP 2.03, which lacks support for symlinks.
96092         From Richard Dawe.
96093         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
96094         is defined.
96095         * lib/lchown.c (S_ISLNK): Likewise.
96096
96097 2002-06-15  Jim Meyering  <meyering@lucent.com>
96098
96099         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
96100         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
96101         have been included before this file.
96102
96103 2002-06-14  Jim Meyering  <meyering@lucent.com>
96104
96105         * lib/file-type.h: Use the version from diffutils-2.8.2.
96106         * lib/file-type.c: Likewise.
96107
96108 2002-06-07  Jim Meyering  <meyering@lucent.com>
96109
96110         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
96111         They're needed at least for NetBSD 1.5.2.
96112         ($statxfs_includes): Include those same headers.
96113         ($statxfs_includes): Include sys/vfs.h if available.
96114         ($statxfs_includes): Likewise for sys/statvfs.h.
96115         Check for the following members in both structs statfs and statvfs:
96116         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
96117
96118 2002-06-01  Jim Meyering  <meyering@lucent.com>
96119
96120         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
96121         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
96122
96123 2002-05-28  Jim Meyering  <meyering@lucent.com>
96124
96125         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
96126         Reported by Volker Borchert.
96127
96128 2002-05-27  Jim Meyering  <meyering@lucent.com>
96129
96130         Fix a problem seen only on nonconforming systems whereby ls.c's
96131         use of localtime, and then of gettimeofday would cause trouble:
96132         the localtime call used to initialize rpl_gettimeofday's save
96133         mechanism would clobber ls's current local time information so
96134         that in any long listing the first file would always be listed
96135         with date 1970-01-01.  Analysis by Volker Borchert.
96136
96137         * lib/gettimeofday.c (localtime): Undefine.
96138         (rpl_localtime): New function.
96139
96140 2002-05-27  Jim Meyering  <meyering@lucent.com>
96141
96142         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
96143         localtime.
96144
96145         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
96146         use the replacement function; it wouldn't resolve at link time.
96147         Reported by Volker Borchert.
96148
96149 2002-05-22  Jim Meyering  <meyering@lucent.com>
96150
96151         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
96152         file-type.h.
96153         * lib/file-type.h: New file.
96154         * lib/file-type.c (file_type): New file/function.  Extracted from
96155         diffutils.
96156
96157 2002-04-30  Jim Meyering  <meyering@lucent.com>
96158
96159         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
96160
96161 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96162
96163         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
96164
96165 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96166
96167         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
96168         Do not check for alloca.h (no longer used) or stdbool.h (was never
96169         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
96170
96171 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96172
96173         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
96174
96175 2002-04-29  Jim Meyering  <meyering@lucent.com>
96176
96177         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
96178         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
96179         Use AC_FUNC_STRNLEN here instead.
96180
96181         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
96182         With autoconf-2.53a, it's part of AC_PROG_CC.
96183
96184 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96185
96186         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
96187         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
96188
96189 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96190
96191         * lib/sig2str.h, lib/sig2str.c: New files.
96192         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
96193
96194 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96195
96196         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
96197         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
96198         of 127, since 64 is the largest conceivable number for ancient
96199         nonstandard hosts.
96200         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
96201
96202 2002-04-28  Jim Meyering  <meyering@lucent.com>
96203
96204         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
96205
96206 2002-04-24  Jim Meyering  <meyering@lucent.com>
96207
96208         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
96209         (jm_PREREQ): Use it.
96210
96211         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
96212         mach/mach.h fcntl.h.
96213         Check for this function: setlocale.
96214
96215 2002-04-24  Jim Meyering  <meyering@lucent.com>
96216
96217         * lib/gettext.h: New file, from Gettext.
96218         * lib/Makefile.am (INCLUDES): Remove -I../intl.
96219         (libfetish_a_SOURCES): Add gettext.h.
96220
96221 2002-04-16  Jim Meyering  <meyering@lucent.com>
96222
96223         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
96224         ut_pid, ut_id, ut_exit.
96225
96226 2002-04-16  Jim Meyering  <meyering@lucent.com>
96227
96228         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
96229         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
96230         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
96231
96232 2002-04-12  Jim Meyering  <meyering@lucent.com>
96233
96234         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
96235         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
96236         existence of the getmntinfo function.  Needed for Darwin 5.3.
96237
96238         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
96239         This is necessary at least on Darwin 5.3.
96240
96241         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
96242         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
96243         strnlen.o in the library, and that makes some versions of ranlib
96244         object.
96245
96246 2002-04-12  Jim Meyering  <meyering@lucent.com>
96247
96248         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
96249
96250 2002-04-09  Jim Meyering  <meyering@lucent.com>
96251
96252         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
96253         to be more precise.  Rather than saying we're checking whether the
96254         function `works', say what we're testing.
96255         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
96256         Reported by Bruno Haible.
96257
96258 2002-03-10  Jim Meyering  <meyering@lucent.com>
96259
96260         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
96261         Suggestion from Santiago Vila.
96262
96263 2002-03-08  Jim Meyering  <meyering@lucent.com>
96264
96265         * lib/rename.c: Mention that this wrapper is needed also on
96266         mips-dec-ultrix4.4 systems.
96267
96268 2002-03-02  Jim Meyering  <meyering@lucent.com>
96269
96270         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
96271         not HAVE_CLOCK_SETTIME.
96272
96273 2002-02-27  Paul Eggert  <eggert@twinsun.com>
96274
96275         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
96276         Check for clock_settime.
96277
96278 2002-02-27  Paul Eggert  <eggert@twinsun.com>
96279
96280         * lib/nanosleep.h: Rename to....
96281         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
96282
96283         * lib/gettime.c: New file.
96284         * lib/settime.c: New file.
96285         * lib/stime.c: Remove.
96286
96287         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
96288         timespec.h.  Remove nanosleep.h.
96289
96290 2002-02-25  Paul Eggert  <eggert@twinsun.com>
96291
96292         * m4/acl.m4: New file.
96293         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
96294         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
96295
96296 2002-02-25  Paul Eggert  <eggert@twinsun.com>
96297
96298         * lib/acl.c, lib/acl.h: New files.
96299         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
96300
96301 2002-02-24  Jim Meyering  <meyering@lucent.com>
96302
96303         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
96304         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
96305         cause trouble.  Reported by Nelson Beebe.
96306
96307 2002-02-23  Paul Eggert  <eggert@twinsun.com>
96308
96309         * lib/path-concat.c (xpath_concat): Reorder code to pacify
96310         compilers that don't know that xalloc_die never returns.
96311
96312 2002-02-20  Jim Meyering  <meyering@lucent.com>
96313
96314         * lib/getdate.c: Regenerate using bison-1.33.
96315
96316 2002-02-17  Jim Meyering  <meyering@lucent.com>
96317
96318         * config/config.guess (main): Don't use `head -1'; it's no longer
96319         portable. Use `sed 1q' instead.
96320
96321 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
96322
96323         * m4/codeset.m4: Upgrade to gettext-0.11.
96324         * m4/gettext.m4: Upgrade to gettext-0.11.
96325         * m4/glibc21.m4: Upgrade to gettext-0.11.
96326         * m4/iconv.m4: Upgrade to gettext-0.11.
96327         * m4/isc-posix.m4: Upgrade to gettext-0.11.
96328         * m4/lcmessage.m4: Upgrade to gettext-0.11.
96329         * m4/lib-ld.m4: New file, from gettext-0.11.
96330         * m4/lib-link.m4: New file, from gettext-0.11.
96331         * m4/lib-prefix.m4: New file, from gettext-0.11.
96332         * m4/progtest.m4: Upgrade to gettext-0.11.
96333
96334 2002-02-15  Paul Eggert  <eggert@twinsun.com>
96335
96336         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
96337         (jm_PREREQ): Use it.
96338
96339 2002-02-15  Paul Eggert  <eggert@twinsun.com>
96340
96341         * lib/posixver.c, lib/posixver.h: New files.
96342         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
96343
96344 2002-02-02  Paul Eggert  <eggert@twinsun.com>
96345             Bruno Haible  <bruno@clisp.org>
96346
96347         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
96348         (fwrite_success_callback): New declaration.
96349         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
96350         print_unicode_char. Call failure callback instead of error.
96351         (fwrite_success_callback): New function.
96352         (exit_failure_callback): New function.
96353         (fallback_failure_callback): New function.
96354         (print_unicode_char): Call unicode_to_mb.
96355
96356 2002-01-26  Jim Meyering  <meyering@lucent.com>
96357
96358         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
96359         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
96360
96361 2002-01-26  Jim Meyering  <meyering@lucent.com>
96362
96363         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
96364
96365 2002-01-22  Paul Eggert  <eggert@twinsun.com>
96366
96367         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
96368
96369 2002-01-22  Jim Meyering  <meyering@lucent.com>
96370
96371         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
96372         Otherwise, some versions of automake would omit the rule that makes
96373         Makefile from Makefile.in.
96374
96375 2002-01-21  Paul Eggert  <eggert@twinsun.com>
96376
96377         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
96378         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
96379         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
96380         (memcoll): Set errno to zero if there is no error.
96381
96382         * lib/quotearg.c (quotearg_buffer_restyled):
96383         Fix bug with quoting buffers containing NUL when backslashing escapes.
96384         This bug was exposed by the other changes in this patch.
96385         (quotearg_n_options): New arg ARGSIZE.
96386         All callers changed.
96387         (quoting_options_from_style): New function.
96388         (quotearg_n_style): Use it.
96389         (quotearg_n_style_mem): New function.
96390
96391         * lib/quotearg.h (quotearg_n_style_mem): New function.
96392
96393 2002-01-19  Jim Meyering  <meyering@lucent.com>
96394
96395         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
96396         Remove useless quotes: DF_PROG="df".
96397         * m4/strnlen.m4: New file.
96398
96399 2002-01-16  Paul Eggert  <eggert@twinsun.com>
96400
96401         * lib/backupfile.c (ISDIGIT): Comment fix.
96402         * lib/getdate.y (ISDIGIT): Likewise.
96403         * lib/posixtm.c (ISDIGIT, year): Likewise.
96404         * lib/strverscmp.c (ISDIGIT): Likewise.
96405         * lib/userspec.c (ISDIGIT): Likewise.
96406
96407 2002-01-16  Jim Meyering  <meyering@lucent.com>
96408
96409         * lib/getdate.y: Add three semicolons, each just before a closing
96410         brace. Bison (as of version 1.31) no longer papers over that mistake.
96411
96412 2002-01-05  Jim Meyering  <meyering@lucent.com>
96413
96414         * lib/version-etc.c (version_etc_copyright): Update copyright year.
96415
96416 2001-12-19  Paul Eggert  <eggert@twinsun.com>
96417
96418         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
96419         not silently exit merely because the output buffer happens to
96420         have nothing pending.
96421
96422 2001-12-18  Paul Eggert  <eggert@twinsun.com>
96423
96424         See the big note in ../ChangeLog.
96425         * lib/human.c (suffixes): Prefer K to k for 1024.
96426         (generate_suffix_backwards): New function.
96427         (human_readable_inexact): Use it.
96428         * lib/xstrtol.c (__xstrtol): If there is no number but there
96429         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
96430         Accept 'K' as well as 'k'.
96431
96432 2001-12-15  Jim Meyering  <meyering@lucent.com>
96433
96434         * lib/regex.h (__restrict_arr): Update from libc.
96435
96436         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
96437         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
96438         (STREQ): Define.
96439
96440 2001-12-14  Jim Meyering  <meyering@lucent.com>
96441
96442         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
96443         Suggestion from Bruno Haible.
96444
96445 2001-12-10  Jim Meyering  <meyering@lucent.com>
96446
96447         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
96448         xrealloc, Instead, include "xalloc.h".
96449         (initbuffer): Don't cast xmalloc return value to char*.
96450         (readline): Reword comment.
96451         Don't cast xrealloc return value to char*
96452         Return NULL, not 0.
96453
96454 2001-12-09  Jim Meyering  <meyering@lucent.com>
96455
96456         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
96457         about `signed and unsigned type in conditional expression'.
96458         * lib/posixtm.c (posix_time_parse): Likewise.
96459
96460         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
96461
96462         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
96463         to avoid a pedantic warning.
96464
96465         * lib/getstr.c: Don't include assert.h.
96466         (getstr): Remove warning-evoking assertions.
96467         Return -1 if offset parameter is out of bounds.
96468         Change the type of a local from int to size_t.
96469
96470         * lib/strftime.c (my_strftime_localtime_r): Include this function
96471         definition in the `#if ! HAVE_TM_GMTOFF' block.
96472
96473         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
96474         Include xalloc.h instead.
96475
96476 2001-12-02  Jim Meyering  <meyering@lucent.com>
96477
96478         * lib/tempname.c: Don't declare getenv, thus reverting the change of
96479         2001-11-18.  It's no longer necessary, now that stdlib.h is always
96480         included.
96481
96482         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
96483         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
96484
96485 2001-11-30  Akim Demaille  <akim@epita.fr>
96486
96487         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
96488         before being defined.
96489
96490 2001-11-27  Paul Eggert  <eggert@twinsun.com>
96491
96492         * lib/quotearg.h (quotearg_n, quotearg_n_style):
96493         First arg is int, not unsigned.
96494         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
96495         (SIZE_MAX, UINT_MAX): New macros.
96496         (quotearg_n_options): Abort if N is negative.
96497         Avoid overflow check on hosts where size_t is 64 bits and int
96498         is 32 bits, as overflow is impossible there.
96499         Fix off-by-one typo that caused unnecessary reallocation.
96500
96501 2001-11-27  Jim Meyering  <meyering@lucent.com>
96502
96503         * lib/tempname.c: Merge with version from libc.
96504         * lib/regex.c: Likewise.
96505
96506         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
96507         systems for which STDC_HEADERS is 0, it was not included, resulting in
96508         a warning about an integer-to-pointer conversion problem with getenv.
96509         Reported by Volker Borchert.
96510
96511 2001-11-26  Jim Meyering  <meyering@lucent.com>
96512
96513         * lib/gtod.h: Remove file.
96514         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
96515         * lib/gettimeofday.c: Don't include gtod.h.
96516         (GTOD_init): Remove function.
96517         (rpl_gettimeofday): Do its job here instead, rather than aborting.
96518         Suggestion from Volker Borchert.
96519
96520 2001-11-23  Jim Meyering  <meyering@lucent.com>
96521
96522         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
96523         it.
96524         * lib/hash.c (struct hash_table): Define it here instead.
96525
96526 2001-11-22  Jim Meyering  <meyering@lucent.com>
96527
96528         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
96529
96530 2001-11-20  Jim Meyering  <meyering@lucent.com>
96531
96532         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
96533         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
96534
96535 2001-11-19  Jim Meyering  <meyering@lucent.com>
96536
96537         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
96538         directory.  Use "conftestXXXXXX" as the template.
96539         Suggestion from Paul Eggert.
96540
96541         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
96542         immediately, so the test doesn't mistakenly hit the max-open-files
96543         limit.
96544
96545 2001-11-18  Paul Eggert  <eggert@twinsun.com>
96546
96547         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
96548         (TEMPORARIES): New macro.
96549         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
96550         removes an artificial limitation (e.g. HP-UX 10.20, where
96551         TMP_MAX is 17576).
96552
96553 2001-11-18  Jim Meyering  <meyering@lucent.com>
96554
96555         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
96556
96557 2001-11-18  Jim Meyering  <meyering@lucent.com>
96558
96559         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
96560         on SunOS 4.
96561
96562         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
96563         files will be created before anything else.
96564
96565 2001-11-17  Paul Eggert  <eggert@twinsun.com>
96566
96567         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
96568         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
96569
96570 2001-11-17  Jim Meyering  <meyering@lucent.com>
96571
96572         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
96573         Prompted by a report from Bob Proulx.
96574
96575         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
96576         Instead, require UTILS_FUNC_MKSTEMP.
96577
96578 2001-11-17  Jim Meyering  <meyering@lucent.com>
96579
96580         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
96581         Now, that's done as part of AC_FUNC_STRTOD.
96582
96583 2001-11-17  Jim Meyering  <meyering@lucent.com>
96584
96585         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
96586         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
96587         rather than group writable.  Patch by Juan F. Codagnone.
96588
96589         * lib/readtokens.c: Remove explicit declarations of xmalloc and
96590         xrealloc, Instead, include "xalloc.h".
96591
96592         * lib/mountlist.c: Include unlocked-io.h after all system headers.
96593         Remove explicit declarations of xmalloc, xrealloc,
96594         and xstrdup.  Instead, include "xalloc.h".
96595
96596         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
96597         unlocked-io.h.
96598         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
96599         Likewise.
96600         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
96601
96602         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
96603         Reported by Padraig Brady.
96604
96605         * lib/mkstemp.c: #undef mkstemp.
96606         Include config.h.
96607         (rpl_mkstemp): Rename from mkstemp.
96608         Protoize.
96609
96610 2001-11-16  Jim Meyering  <meyering@lucent.com>
96611
96612         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
96613         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
96614         determine the amount of total physical memory, use pstat_getstatic.
96615         HPUX-11 doesn't define _SC_PHYS_PAGES.
96616         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
96617         If sysconf couldn't be used to determine the amount of available
96618         physical memory, use both pstat_getstatic and pstat_getdynamic.
96619         Based on a patch from Bob Proulx.
96620
96621 2001-11-10  Jim Meyering  <meyering@lucent.com>
96622
96623         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
96624         (jm_PREREQ): Use it.
96625
96626 2001-11-09  Jim Meyering  <meyering@lucent.com>
96627
96628         * m4/jm-macros.m4: Require autoconf-2.52f.
96629         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
96630         Use these AC_-prefixed names, not the AM_-prefixed ones.
96631
96632         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
96633
96634 2001-11-05  Jim Meyering  <meyering@lucent.com>
96635
96636         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
96637
96638 2001-11-04  Jim Meyering  <meyering@lucent.com>
96639
96640         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
96641         $DEFS.
96642
96643 2001-11-03  Jim Meyering  <meyering@lucent.com>
96644
96645         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
96646         of AC_DEFUN.
96647
96648         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
96649         know the name of the variable in the macro definition.
96650
96651 2001-11-03  Jim Meyering  <meyering@lucent.com>
96652
96653         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
96654         in argmatch_to_argument call.
96655
96656         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
96657         argument.
96658
96659         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
96660         e.g., a fault due to an attempt to free a NULL pointer.
96661
96662 2001-11-01  Jim Meyering  <meyering@lucent.com>
96663
96664         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
96665         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
96666
96667 2001-11-01  Jim Meyering  <meyering@lucent.com>
96668
96669         * lib/dirfd.c, lib/dirfd.h: New files.
96670         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
96671
96672         * lib/hash.c (hash_print) [TESTING]: Clean up.
96673
96674 2001-10-22  Paul Eggert  <eggert@twinsun.com>
96675
96676         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
96677         to avoid a warning if -Wall.
96678
96679 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
96680
96681         * README: New file
96682         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
96683         (per RMS's instructions, this is now the canonical source)
96684         * lgpl/, gpl/: New directories.
96685
96686 2001-10-21  Paul Eggert  <eggert@twinsun.com>
96687
96688         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
96689
96690 2001-10-21  Jim Meyering  <meyering@lucent.com>
96691
96692         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
96693         this code would end up calling gettext even in packages built
96694         with --disable-nls.
96695         * lib/getopt.c (_): Likewise.
96696         * lib/regex.c (_): Likewise.
96697
96698 2001-10-20  Paul Eggert  <eggert@twinsun.com>
96699
96700         * m4/error.m4 (jm_PREREQ_ERROR):
96701         Do not invoke AC_CHECK_FUNCS with strerror_r, as
96702         AC_FUNC_STRERROR_R does that.
96703         Check for strerror declaration.
96704
96705         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
96706         are supposed to have them these days.
96707         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
96708         Merge changes from latest Autoconf CVS.
96709         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
96710         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
96711         POSIX decided to standardize on the int flavor of strerror_r.
96712
96713 2001-10-20  Paul Eggert  <eggert@twinsun.com>
96714
96715         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
96716         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
96717         Use strerror_r that is only a macro, even if it is not a function.
96718         (strerror): Check for HAVE_DECL_STRERROR before declaring.
96719         (private_strerror): Use prototypes, not old-style function definition.
96720         (print_errno_message): New function.
96721         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
96722         char*-flavored one.
96723         (error_tail, error, error_at_line): Use it.
96724
96725 2001-10-11  Jim Meyering  <meyering@lucent.com>
96726
96727         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
96728         and quote_n (1, ... to avoid clobbering a buffer.
96729
96730 2001-10-05  Jim Meyering  <meyering@lucent.com>
96731
96732         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
96733         hash-pjw.h.
96734         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
96735         * lib/hash-pjw.h: New file.
96736
96737 2001-09-30  Jim Meyering  <meyering@lucent.com>
96738
96739         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
96740         `struct fsstat' has the `f_fstypename' member.
96741         Use that to define FS_TYPE, which is now used to make
96742         the getfsstat link test tighter.
96743
96744 2001-09-30  Jim Meyering  <meyering@lucent.com>
96745
96746         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
96747         Include <sys/ucred.h>, for Apple Darwin.
96748         Include sys/mount.h and sys/fs_types.h only if available.
96749         (FS_TYPE): Define.
96750         (read_filesystem_list): Use FS_TYPE.
96751
96752 2001-09-29  Paul Eggert  <eggert@twinsun.com>
96753
96754         * lib/exclude.c (excluded_filename): 0 -> false, since it's
96755         a boolean context.
96756
96757 2001-09-29  Jim Meyering  <meyering@lucent.com>
96758
96759         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
96760         [one-argument getmntent function]): Include stdio.h before mntent.h.
96761         SunOS 4.1.x needs it for the declaration of `FILE'.
96762         Patch by Volker Borchert.
96763
96764         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
96765         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
96766         sys/fs_types.h, and make the link-test for getfsstat guard #include
96767         directives with appropriate #if HAVE_*_H tests so that we can
96768         detect getfsstat on Apple Darwin1.3.7 systems.
96769         Reported by Nelson Beebe.
96770         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
96771
96772 2001-09-28  Paul Eggert  <eggert@twinsun.com>
96773
96774         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
96775         #defines strtoimax.  Also treat the other strto* functions
96776         like strtoimax.
96777
96778         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
96779         Check for strtoul and strtoumax,
96780         as those declarations are made even in the signed case.
96781         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
96782         Likewise, for strtol and strtoimax.
96783
96784 2001-09-28  Paul Eggert  <eggert@twinsun.com>
96785
96786         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
96787         #defines strtoimax.  Also treat the other strto* functions
96788         like strtoimax.
96789
96790         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
96791         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
96792         (strtoimax, strtoumax): Do not declare if already defined as a macro.
96793
96794 2001-09-26  Jim Meyering  <meyering@lucent.com>
96795
96796         Most macros in unlocked-io.h had the wrong number of arguments.
96797         * lib/gen-uio: New script.
96798         (USE_UNLOCKED_IO): Define to 1 if not already defined.
96799         * lib/unlocked-io.hin: Remove file.
96800         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
96801         rather than trying to embed it here.
96802         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
96803         Reported by Padraig Brady.
96804
96805 2001-09-25  Volker Borchert  <bt@teknon.de>
96806
96807         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
96808         `result'.
96809
96810 2001-09-24  Jim Meyering  <meyering@lucent.com>
96811
96812         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
96813
96814 2001-09-23  Jim Meyering  <meyering@lucent.com>
96815
96816         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
96817         instead of the mere test for existence of mntent.h.  The latter
96818         would get a false-positive on AIX 3.4 systems.
96819         In the outer getmntent if-block, don't die if neither of the getmntent
96820         tests succeeds.  Instead, just fall through and continue with the
96821         remaining tests.
96822
96823 2001-09-23  Jim Meyering  <meyering@lucent.com>
96824
96825         * lib/mountlist.c: Remove useless parentheses in #if directives.
96826         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
96827         the deprecated MOUNTED symbol is no longer defined in mntent.h.
96828
96829 2001-09-22  Jim Meyering  <meyering@lucent.com>
96830
96831         * m4/gettext.m4: New file.  From gettext.
96832         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
96833         * m4/progtest.m4: Likewise
96834         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
96835         * m4/glibc21.m4: Likewise.
96836
96837         * m4/libintl.m4: Remove.  No longer used.
96838
96839 2001-09-22  Jim Meyering  <meyering@lucent.com>
96840
96841         * lib/localcharset.c: Update from latest gettext.
96842         * lib/config.charset: Likewise.
96843
96844 2001-09-20  Jim Meyering  <meyering@lucent.com>
96845
96846         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
96847         strtoimax.
96848         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
96849         strtoumax.
96850
96851 2001-09-20  Jim Meyering  <meyering@lucent.com>
96852
96853         * lib/xstrtol.c (strtoimax): Guard declaration with
96854         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
96855         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
96856         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
96857         (strtoumax): Likewise, for completeness (it wasn't necessary).
96858
96859 2001-09-17  Paul Eggert  <eggert@twinsun.com>
96860
96861         * lib/strtoimax.c (HAVE_LONG_LONG):
96862         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
96863         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
96864         to work around bug in IBM C compiler.
96865
96866 2001-09-17  Jim Meyering  <meyering@lucent.com>
96867
96868         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
96869         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
96870         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
96871         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
96872         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
96873         whenever the right hand side need not be expanded by the shell.
96874
96875 2001-09-16  Paul Eggert  <eggert@twinsun.com>
96876
96877         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
96878         library.  It's not correct, as some older glibcs are buggy.
96879         fnmatch wasn't fixed until glibc 2.2.
96880
96881         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
96882         special shell magic here.
96883
96884 2001-09-16  Jim Meyering  <meyering@lucent.com>
96885
96886         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
96887         * m4/jm-macros.m4: Require it.
96888
96889 2001-09-16  Jim Meyering  <meyering@lucent.com>
96890
96891         * lib/mkdir.c: New file.
96892
96893 2001-09-15  Jim Meyering  <meyering@lucent.com>
96894
96895         * m4/jm-macros.m4: Check for help2man.
96896
96897 2001-09-11  Jim Meyering  <meyering@lucent.com>
96898
96899         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
96900         The body, by Paul Eggert, was moved here from configure.in.
96901         * m4/jm-macros.m4: Require UTILS_HOST_OS.
96902
96903 2001-09-04  Paul Eggert  <eggert@twinsun.com>
96904
96905         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
96906         (jm_PREREQ): Use it.
96907
96908 2001-09-04  Paul Eggert  <eggert@twinsun.com>
96909
96910         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
96911         Use ssize_t, not int, to store result of readlink.
96912         Check for ssize_t overflow as well as size_t overflow,
96913         as POSIX says the result of readlink is implementation-defined
96914         when ssize_t overflows.
96915         Remove unnecessary cast to char*.
96916         Use free+malloc instead of realloc, as the storage doesn't need
96917         to be preserved and it's clearer and can be more efficient that way.
96918         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
96919         * lib/xreadlink.h (xreadlink): Update prototype.
96920
96921 2001-09-04  Paul Eggert  <eggert@twinsun.com>
96922
96923         * lib/xgetcwd.c: Revert some of the previous change; intead,
96924         fix the HAVE_GETCWD_NULL code to behave more like the
96925         !HAVE_GETCWD_NULL code used to.
96926
96927         Include "xalloc.h".
96928         (xgetcwd): Do not return NULL when memory is exhausted; instead,
96929         invoke xalloc_die.
96930
96931 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96932
96933         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
96934         sys/param.h, as pathmax.h includes them.
96935
96936 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96937
96938         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
96939         (jm_PREREQ_XGETCWD): New macro.
96940
96941         * m4/getcwd.m4: New file.
96942
96943 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96944
96945         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
96946         like the HAVE_GETCWD_NULL code.
96947         Include pathmax.h if not HAVE_GETCWD.
96948         Do not include xalloc.h.
96949         (INITIAL_BUFFER_SIZE): New symbol.
96950         Do not use xmalloc / xrealloc, since the caller is responsible for
96951         handling errors.  Preserve errno around `free' during failure.
96952         Do not overrun buffer when using getwd.
96953
96954 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96955
96956         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
96957         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
96958         getcwd (NULL, 0).
96959
96960 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96961
96962         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
96963         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
96964         spotted by Jim Meyering.
96965
96966 2001-09-03  Jim Meyering  <meyering@lucent.com>
96967
96968         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
96969         failure.
96970
96971 2001-09-02  Jim Meyering  <meyering@lucent.com>
96972
96973         * lib/error.c: Update from GNU libc.
96974
96975 2001-09-01  Jim Meyering  <meyering@lucent.com>
96976
96977         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
96978         Used by df.
96979
96980 2001-09-01  Jim Meyering  <meyering@lucent.com>
96981
96982         * lib/xreadlink.c: New file.
96983         * lib/xreadlink.h: New file.
96984         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
96985         xreadlink.h.
96986
96987         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
96988         doesn't conflict with sparc Solaris 7's definition in
96989         /usr/include/sys/int_types.h.
96990
96991         * lib/exclude.c: Use `""', not `<>' to #include non-system header
96992         files.
96993         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
96994         and strncasecmp as r-values.  Unixware didn't have declarations.
96995
96996 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96997
96998         * lib/xstrtol.h: Add copyright notice.
96999         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
97000         LONGINT_INVALID_SUFFIX_CHAR.
97001
97002 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97003
97004         * lib/xstrtol.c (strtoimax): New decl.
97005
97006 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97007
97008         * lib/xgetcwd.c: Don't include pathmax.h.
97009         Include stdlib.h and unistd.h if available.
97010         Include xalloc.h.
97011         (xmalloc, xstrdup, free): Remove decls.
97012         (xgetcwd): Don't assume sizes fit in unsigned.
97013         Check for overflow when computing sizes.
97014         Simplify reallocation code.
97015
97016 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97017
97018         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
97019         a directory's st_size can have an arbitrary value, so the old
97020         usage could waste an arbitrary amount of memory.  All uses
97021         changed.
97022         * lib/savedir.h: Update prototype.
97023
97024 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97025
97026         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
97027
97028         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
97029         old strtoimax.c.
97030
97031         Also, make the following further changes to make this file's
97032         configuration more similar to that of strtol.c:
97033         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
97034         (strtoumax, uintmax_t, strtoull, strtol): Remove.
97035         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
97036         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
97037         changed to signed values.
97038
97039         And make the following changes as well:
97040         Fix copyright notice, as 1999 was missing.
97041         (verify): New macro.
97042         (strtoimax): Check sizes at compile-time, not run-time.
97043         Prefer strtol to strtoll if both work.
97044         (main): Remove; it was not that useful and was a pain to maintain.
97045
97046         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
97047
97048 2001-08-31  Jim Meyering  <meyering@lucent.com>
97049
97050         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
97051         Use an initial, malloc'd, buffer of length 128 rather than
97052         a statically allocated one of length 1024.
97053
97054 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97055
97056         Simplify code, partly by assuming autoconf 2.52 semantics.
97057
97058         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
97059
97060         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
97061         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
97062         All uses removed.
97063         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
97064         Move AC_REQUIRE to next-to-top level, to avoid confusion.
97065         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
97066         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
97067         jm_AC_HEADER_INTTYPES_H.
97068         * m4/jm-macros.m4 (jm_MACROS): Likewise.
97069
97070         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
97071
97072         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
97073         Quote first arg of AC_DEFUN.
97074         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
97075         since they are needed to parse the include file even if we need
97076         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
97077         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
97078         but with opposite signedness.
97079
97080 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97081
97082         Merge 'exclude' changes from tar 1.13.22.
97083         This fixes one or two unlikely storage allocation overflow bugs,
97084         but doesn't change user-visible behavior otherwise.
97085
97086 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97087
97088         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
97089         (jm_PREREQ_EXCLUDE): New macro.
97090
97091 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97092
97093         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
97094         tm to be declared.
97095
97096 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97097
97098         * lib/hash.c: Remove '2001' from copyright notice.
97099
97100 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97101
97102         * lib/full-write.h: New file.
97103         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
97104         * lib/full-write.c: Correct credits, as cccp.c no longer
97105         exists and anyway it was so heavily changed from the old cccp
97106         code as to be unrecognizable.  Include full-write.h.
97107         (full_write): Return size_t, with short writes meaning failure.
97108         All callers changed.  This fixes a bug with large buffers
97109         on 64-bit hosts.
97110         * lib/utime.c: Include full-write.h.
97111
97112 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97113
97114         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
97115         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
97116         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
97117         Include if available.
97118         (<xalloc.h>): Include
97119         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
97120         (verify): New macro.  Use it to verify that EXCLUDE macros do not
97121         collide with FNM macros.
97122         (struct patopts): New struct.
97123         (struct exclude): Use it, as exclude patterns now come with options.
97124         (new_exclude): Support above changes.
97125         (new_exclude, add_exclude_file):
97126         Initial size must now be a power of two to simplify overflow checking.
97127         (free_exclude, fnmatch_no_wildcards): New function.
97128         (excluded_filename): No longer requires options arg, as the options
97129         are determined by add_exclude.  Now returns bool, not int.
97130         (excluded_filename, add_exclude):
97131         Add support for the fancy new exclusion options.
97132         (add_exclude, add_exclude_file): Now takes int options arg.
97133         Check for arithmetic overflow when computing sizes.
97134         (add_exclude_file): xrealloc might modify errno, so don't
97135         realloc until after errno might be used.
97136
97137         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
97138         New macros.
97139         (free_exclude): New decl.
97140         (add_exclude, add_exclude_file): Now takes int options arg.
97141         (excluded_filename): No longer requires options arg, as the options
97142         are determined by add_exclude.  Now returns bool, not int.
97143
97144 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97145
97146         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
97147
97148 2001-08-27  Jim Meyering  <meyering@lucent.com>
97149
97150         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
97151
97152         * lib/version-etc.c (N_): Remove definition.
97153         Revert most of last change.
97154         Instead, simply don't mark the `Copyright...' string for translation.
97155         Based on advice from Paul Eggert.
97156
97157         * lib/strtoxmax.c: Tweak comment.
97158
97159 2001-08-26  Jim Meyering  <meyering@lucent.com>
97160
97161         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
97162
97163         * m4/xstrtoimax.m4: New file.
97164         * m4/xstrtoumax.m4: Add comments explaining why we
97165         AC_REPLACE_FUNCS(strtol).
97166
97167 2001-08-26  Jim Meyering  <meyering@lucent.com>
97168
97169         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
97170         of copyright with `%s' so translators don't get an untranslated
97171         message in 2002.
97172         (COPYRIGHT_YEAR): Define.
97173         (version_etc): Use fprintf rather than fputs.
97174         Suggestion from Ulrich Drepper.
97175
97176         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
97177
97178         * lib/strtoll.c: New file, from GNU libc.
97179         * lib/xstrtoimax.c: New file.
97180
97181         * lib/xstrtol.h: Add xstrtoimax.
97182         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
97183         * lib/strtoimax.c: New file.  Likewise, but first define
97184         STRTOUXMAX_SIGNED.
97185
97186         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
97187         ...
97188         * lib/strtoxmax.c: ... then renamed to this.
97189
97190 2001-08-18  Paul Eggert  <eggert@twinsun.com>
97191
97192         * m4/inttypes.m4: Add AC_PREREQ(2.13).
97193         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
97194         (jm_AC_TYPE_INTMAX_T): New macro.
97195         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
97196
97197         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
97198
97199         * m4/longlong.m4: Renamed from ulonglong.m4.
97200         * m4/inttypes.m4: Renamed from inttypes_h.m4.
97201         * m4/uintmax_t.m4: Removed.
97202
97203 2001-08-13  Paul Eggert  <eggert@twinsun.com>
97204
97205         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
97206         Port to Solaris 8, where 'sed' requires a space after the 'r'
97207         command, and where sh dislikes "$/".  Clean up the spacing a bit.
97208         Redirect output to $tmp just once.
97209
97210 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
97211
97212         * lib/addext.c (<errno.h>): Include.
97213         (errno): Declare if not defined.
97214         (addext): Work correctly when pathconf returns -1 and leaves
97215         errno alone because there is no limit.  Also, work even if
97216         pathconf returns a value greater than SIZE_MAX.
97217
97218 2001-08-12  Jim Meyering  <meyering@lucent.com>
97219
97220         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
97221         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
97222         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
97223         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
97224         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
97225         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
97226         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
97227         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
97228         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
97229         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
97230         utime.m4, utimes.m4, xstrtoumax.m4:
97231         Quote the first argument in each use of AC_DEFUN.
97232
97233 2001-08-12  Jim Meyering  <meyering@lucent.com>
97234
97235         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
97236         Simply `return getcwd (NULL, 0);'.
97237         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
97238         Use 1300 as initial value for length, not PATH_MAX.
97239
97240         * lib/pathmax.h: Clean up cpp syntax.
97241
97242 2001-08-12  Jim Meyering  <meyering@lucent.com>
97243
97244         * lib/gettimeofday.c: New file.
97245         * lib/gtod.h: New file.
97246         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
97247
97248 2001-08-05  Jim Meyering  <meyering@lucent.com>
97249
97250         * m4/jm-macros.m4: Require autoconf-2.52.
97251
97252 2001-08-04  Jim Meyering  <meyering@lucent.com>
97253
97254         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
97255         stmt, to get in sync with glibc.
97256
97257 2001-08-03  Paul Eggert  <eggert@twinsun.com>
97258
97259         The following changes are from gettext 0.10.39 as maintained by
97260         Bruno Haible.
97261
97262         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
97263         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
97264         with inverted sense.  All uses changed.
97265
97266         * lib/mbswidth.c: Don't include <limits.h>.
97267         Include <stdlib.h> and <string.h> unconditionally.
97268         (iswcntrl, mbsinit, ISCNTRL): New macros.
97269         (mbsnwidth): Use K&R style function declarations.
97270         Don't bother checking for MB_LEN_MAX == 1, since the compiler
97271         can optimize it when MB_CUR_MAX == 1.
97272         The width of control characters is zero, not 1.
97273
97274 2001-08-03  Paul Eggert  <eggert@twinsun.com>
97275
97276         The following changes are from gettext 0.10.39 as maintained by
97277         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
97278
97279         * m4/codeset.m4: Upgrade to serial AM1.
97280         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
97281         all uses changed.  Quote first arg of AC_DEFUN.
97282         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
97283
97284         * m4/iconv.m4: Upgrade to serial AM2.
97285         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
97286         Add --with-libconv-prefix.
97287         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
97288         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
97289         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
97290         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
97291         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
97292
97293         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
97294         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
97295         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
97296         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
97297         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
97298         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
97299         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
97300         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
97301         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
97302
97303         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
97304         string.h any more.
97305
97306         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
97307         not the default value.
97308
97309         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
97310         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
97311         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
97312         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
97313         Also check for iswcntrl, used for wcwidth fallback.
97314         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
97315         to Autoconf 2.13.
97316
97317 2001-08-03  Jim Meyering  <meyering@lucent.com>
97318
97319         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
97320         as it was in the original.  Reported by Paul Eggert.
97321
97322 2001-07-16  Jim Meyering  <meyering@lucent.com>
97323
97324         * m4/gettimeofday.m4: New file.
97325         Prompted by a report from Bernhard Baehr.
97326
97327 2001-07-15  Jim Meyering  <meyering@lucent.com>
97328
97329         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
97330         stuff. Now it's in ../Makefile.cfg.
97331
97332 2001-07-15  Jim Meyering  <meyering@lucent.com>
97333
97334         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
97335         (BUILT_SOURCES): Add unlocked-io.h.
97336         (io_functions): Define.
97337         (unlocked-io.h): New rule.
97338         (DISTCLEANFILES): Add unlocked-io.h.
97339         (all-local): Depend on unlocked-io.h, to ensure it is created.
97340
97341         * lib/unlocked-io.hin: New file
97342
97343         * lib/regex.c: Update from glibc.
97344
97345 2001-07-05  Jim Meyering  <meyering@lucent.com>
97346
97347         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
97348         recommendation.
97349         (libfetish_a_SOURCES): Put all .h files here instead.
97350         Remove a thus-exposed (better checks in automake) duplicate and
97351         two unnecessary .h files.
97352
97353 2001-07-04  Jim Meyering  <meyering@lucent.com>
97354
97355         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
97356         that generates jm-glibc-io.m4 so that it doesn't trigger any make
97357         distcheck failure.
97358
97359 2001-07-02  Jim Meyering  <meyering@lucent.com>
97360
97361         The following changes were prompted by suggestions from Bruno Haible.
97362
97363         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
97364         is now generated.
97365         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
97366         definition of EXTRA_DIST.
97367         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
97368         ensure that the generated file is created/updated whenever the list
97369         of $(unlocked_functions) is changed.
97370         (jm-glibc-io.m4): New rule.
97371         (unlocked-io.h): New rule -- currently unused.
97372
97373 2001-06-24  Jim Meyering  <meyering@lucent.com>
97374
97375         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
97376         unmatched right bracket, rather than kludging it with an extra,
97377         falsely-matching quote in a comment.  Patch by Akim Demaille.
97378
97379 2001-06-11  Jim Meyering  <meyering@lucent.com>
97380
97381         * lib/regex.c: Update from GNU libc.
97382
97383 2001-05-27  Jim Meyering  <meyering@lucent.com>
97384
97385         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
97386         Check for ut_type in struct utmp.
97387
97388 2001-05-27  Jim Meyering  <meyering@lucent.com>
97389
97390         * lib/readutmp.h (UT_TYPE): Define.
97391
97392 2001-05-24  Jim Meyering  <meyering@lucent.com>
97393
97394         * lib/argmatch.c: Include "quote.h".
97395         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
97396         quote function.  Reported by Göran Uddeborg.
97397
97398 2001-05-22  Jim Meyering  <meyering@lucent.com>
97399
97400         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
97401         now that we use the package-supplied version unconditionally.
97402         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
97403
97404 2001-05-21  Jim Meyering  <meyering@lucent.com>
97405
97406         * m4/regex.m4: Change a couple backticks to single quotes to avoid
97407         shell syntax errors.
97408
97409 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
97410
97411         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
97412
97413 2001-05-20  Paul Eggert  <eggert@twinsun.com>
97414
97415         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
97416         Don't bother to check library strftime, since
97417         we'll be using our own my_strftime function anyway.
97418         Define my_strftime instead of strftime.
97419
97420 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
97421
97422         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
97423         which is not yet declared.
97424
97425 2001-05-15  Jim Meyering  <meyering@lucent.com>
97426
97427         * m4/regex.m4: Use proper quoting so brackets appear in the test
97428         program.
97429         Reported by, and with help from, Bruno Haible.
97430
97431 2001-05-13  Jim Meyering  <meyering@lucent.com>
97432
97433         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
97434         undefined.
97435
97436 2001-05-11  Paul Eggert  <eggert@twinsun.com>
97437
97438         dirname code cleanup.  base_name now behaves more compatibly
97439         with POSIX basename when given file names that have trailing
97440         slashes, and similarly for dir_name.  Add new primitives
97441         base_len and dir_len.  Put the directory-name-related decls
97442         into dirname.h.
97443
97444         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
97445         * lib/backupfile.c (base_name): Likewise.
97446         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
97447         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
97448         * lib/makepath.c (strip_trailing_slashes): Likewise.
97449         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
97450         ISSLASH): Likewise.
97451         * lib/rename.c (strip_trailing_slashes): Likewise.
97452         * lib/same.c (base_name): Likewise.
97453         * lib/stripslash.c (ISSLASH): Likewise.
97454
97455         * lib/addext.c: Include <dirname.h> after size_t is defined.
97456         * lib/backupfile.c: Likewise.
97457
97458         * lib/addext.c (addext): Use base_len to trim redundant
97459         trailing slashes instead of doing it ourselves.
97460         But do not trim the last slash if it is not redundant.
97461
97462         * lib/backupfile.c (find_backup_file_name,
97463         max_backup_version): Use base_len instead of rolling it ourselves.
97464         Handle the case of "" and (on DOS) "C:" correctly.
97465
97466         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
97467         needed. Include <string.h>, <dirname.h>.
97468         (base_name): Allow file names ending in slashes, other than names
97469         that are all slashes.  In this case, return the basename followed
97470         by the slashes.  This is more general, and can be used in places
97471         where the original base_name purposely had an assertion failure.
97472         (base_len): New function.
97473
97474         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
97475         Do not include <assert.h>; no longer needed.
97476         Include xalloc.h.
97477         (memrchr): Remove decl.
97478         (dir_name_r): Remove.
97479         (dir_len): Renamed from dirlen.  All callers changed.
97480         Rewrite in terms of base_name, for simplicity and consistency.
97481         (dir_name): Never return NULL.  All callers changed.
97482         Do not include <stdlib.h> in test program; no longer needed.
97483         return 0; is fine for test program.
97484
97485         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
97486         New macros.
97487         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
97488
97489         * lib/path-concat.c (path_concat): Use base_len to compute
97490         base length, not strlen; this means we cannot rely on memcpy
97491         to null-terminate.
97492
97493         * lib/same.c (STREQ): Remove.
97494         (same_name): Handle the case where the basename ends in trailing '/'.
97495
97496         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
97497         a slash was stripped.  Do not strip the last slash after a
97498         file system prefix.
97499
97500 2001-05-11  Paul Eggert  <eggert@twinsun.com>
97501
97502         * lib/Makefile.am (libfetish_a_SOURCES):
97503         Add strftime.c, since we now compile it on all hosts.
97504
97505         * lib/strftime.c (my_strftime):
97506         Define to nstrftime if emacs, but only if my_strftime is not defined.
97507         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
97508         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
97509         Add one more extra argument: a nanoseconds value.
97510         All uses changed.
97511         (ns): New macro.
97512         (my_strftime function): Add %N format.
97513         (emacs_strftimeu): Renamed from emacs_strftime,
97514         with extra ut argument.
97515
97516 2001-05-09  Paul Eggert  <eggert@twinsun.com>
97517
97518         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
97519
97520 2001-04-21  Jim Meyering  <meyering@lucent.com>
97521
97522         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
97523         doesn't interfere.
97524
97525 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
97526
97527         * m4/ftruncate.m4: Check for chsize.
97528         Link with ftruncate.o unconditionally if ftruncate is missing.
97529         This was required when cross-compiling to i586-mingw32msvc.
97530
97531 2001-04-08  Jim Meyering  <meyering@lucent.com>
97532
97533         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
97534         recomputed; that's necessary when the offset spans a DST transition.
97535         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
97536
97537 2001-04-02  Jim Meyering  <meyering@lucent.com>
97538
97539         * lib/regex.h, regex.c: Update from GNU libc.
97540
97541 2001-03-24  Jim Meyering  <meyering@lucent.com>
97542
97543         * m4/jm-macros.m4: Require autoconf-2.49d.
97544
97545 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
97546
97547         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
97548
97549 2001-03-19  Paul Eggert  <eggert@twinsun.com>
97550
97551         * lib/version-etc.c (version_etc_copyright): Update to 2001.
97552
97553 2001-03-17  Jim Meyering  <meyering@lucent.com>
97554
97555         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
97556         now that the version in autoconf is equivalent.
97557         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
97558
97559         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
97560         Suggestion from Akim Demaille.
97561
97562         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
97563         (jm_PREREQ_TEMPNAME): New function.
97564
97565 2001-03-16  Paul Eggert  <eggert@twinsun.com>
97566
97567         * lib/tempname.c (uint64_t): Define to uintmax_t if
97568         not defined, and if UINT64_MAX is not defined.
97569         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
97570         Reported by John David Anglin.
97571
97572 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
97573
97574         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
97575         resolve alias if codeset is empty.
97576         * lib/config.charset (BeOS): Use wildcard syntax.
97577
97578 2001-03-13  Jim Meyering  <meyering@lucent.com>
97579
97580         * lib/path-concat.c (path_concat)
97581         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
97582         concatenating e.g., `C:' and `foo'.
97583         From Bruno Haible.
97584
97585 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
97586
97587         * lib/localcharset.c (locale_charset): Don't use
97588         setlocale(LC_CTYPE,NULL). Don't return NULL.
97589         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
97590
97591 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
97592
97593         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
97594         support for DOS/DJGPP.
97595
97596 2001-03-01  Paul Eggert  <eggert@twinsun.com>
97597
97598         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
97599         lacks mkstemp.  Compile our own tempname.c if we compile our own
97600         mkstemp.c, as mkstemp relies on tempname.
97601
97602 2001-03-01  Jim Meyering  <meyering@lucent.com>
97603
97604         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
97605         AH_VERBATIM really does output its argument verbatim.
97606
97607 2001-02-28  Paul Eggert  <eggert@twinsun.com>
97608
97609         * lib/Makefile.am (libfetish_a_SOURCES):
97610         Add dup-safer.c, fopen-safer.c.
97611         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
97612
97613         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
97614         * lib/unistd-safer.h: New files.
97615
97616 2001-02-25  Paul Eggert  <eggert@twinsun.com>
97617
97618         The mkstemp replacement is taken from glibc 2.2.2, with some
97619         portability fixes for use outside glibc, as follows:
97620
97621         * lib/tempname.c (struct_stat64): New macro.
97622         (direxists, __gen_tempname): Use it.
97623         This avoids a portability problem with Solaris 8.
97624
97625         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
97626         (<stddef.h>, <stdint.h>, <string.h>):
97627         Include only if STDC_HEADERS || _LIBC.
97628         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
97629         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
97630         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
97631         (__set_errno): Define this macro if <errno.h> doesn't.
97632         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
97633         Define these macros if <stdio.h> doesn't.
97634         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
97635         Define these macros if <sys/stat.h>
97636         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
97637         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
97638         __xstat64): Define if not _LIBC.
97639         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
97640         (__gen_tempname): Invoke gettimeofday only if
97641         HAVE_GETTIMEOFDAY || _LIBC;
97642         otherwise, fall back on plain "time".
97643         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
97644
97645         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
97646
97647         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
97648
97649 2001-02-18  Paul Eggert  <eggert@twinsun.com>
97650
97651         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
97652
97653 2001-02-17  Paul Eggert  <eggert@twinsun.com>
97654
97655         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
97656         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
97657         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
97658         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
97659
97660 2001-02-17  Paul Eggert  <eggert@twinsun.com>
97661
97662         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
97663         Remove workaround macros for hosts that have mbrtowc but not
97664         mbstate_t, as we now insist on proper declarations for both
97665         before using mbrtowc.
97666
97667 2001-02-17  Jim Meyering  <meyering@lucent.com>
97668
97669         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
97670         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
97671         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
97672         UnixWare 7.1.1.
97673
97674         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
97675         rather than AC_CACHE_VAL.
97676
97677 2001-02-17  Jim Meyering  <meyering@lucent.com>
97678
97679         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
97680         around included file name.
97681
97682         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
97683
97684         * lib/strftime.c: Update from GNU libc (the only changes were to
97685         comments).
97686
97687 2001-02-17  Jim Meyering  <meyering@lucent.com>
97688
97689         * lib/regex.c: Update from libc.
97690
97691 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
97692
97693         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
97694         clash.
97695
97696 2001-02-16  Paul Eggert  <eggert@twinsun.com>
97697
97698         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
97699         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
97700         Reported by Mark Hounschell via Paul Eggert.
97701
97702 2001-02-07  Jim Meyering  <meyering@lucent.com>
97703
97704         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
97705
97706 2001-02-05  Jim Meyering  <meyering@lucent.com>
97707
97708         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
97709         it includes the patch required for `large file' support with at least
97710         HP-UX's 10.20 /bin/cc.
97711
97712 2001-02-03  Jim Meyering  <meyering@lucent.com>
97713
97714         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
97715         AS_IF, now that it works once again (mysteriously).
97716         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
97717
97718 2001-01-30  Jim Meyering  <meyering@lucent.com>
97719
97720         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
97721         * m4/chown.m4: Rename conftestchown to conftest.chown.
97722         * m4/rename.m4: s/conftestdir/conftest.d1/ and
97723         s/conftestdir2/conftest.d2/.
97724         * m4/utimes.m4: s/conftestdata/conftest.data/
97725         Inspired by Pavel Roskin's change in autoconf.
97726
97727 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
97728
97729         * lib/config.charset: Update for FreeBSD 4.2.
97730
97731 2001-01-27  Jim Meyering  <meyering@lucent.com>
97732
97733         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
97734         a use of AS_IF.
97735         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
97736
97737 2001-01-26  Jim Meyering  <meyering@lucent.com>
97738
97739         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
97740         quotearg.c includes it.
97741
97742 2001-01-26  Jim Meyering  <meyering@lucent.com>
97743
97744         * lib/quotearg.c: Include stddef.h.
97745         * lib/quote.c: Include stddef.h.
97746         Reported by Axel Kittenberger.
97747
97748         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
97749         line in double quotes so that it evokes a better diagnostic.
97750         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
97751         Reported by Axel Kittenberger.
97752
97753 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
97754
97755         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
97756         as if it was a `charset'.
97757
97758 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
97759
97760         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
97761         has const.
97762
97763 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
97764
97765         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
97766         to avoid a warning.  Add back 'const' to inptr.
97767
97768 2001-01-20  Jim Meyering  <meyering@lucent.com>
97769
97770         Be sure that headers are checked before used in code compiled
97771         for the type checks.
97772         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
97773         In place of that, invoke jm_CHECK_ALL_TYPES.
97774         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
97775         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
97776         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
97777         The check for ssize_t was mistakenly run before the test for unistd.h.
97778
97779         The configure-time check for stdbool.h was missing.
97780         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
97781         (jm_PREREQ_HASH): New function.
97782
97783 2001-01-17  Jim Meyering  <meyering@lucent.com>
97784
97785         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
97786         for autoconf-2.49c.
97787         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
97788
97789 2001-01-16  Jim Meyering  <meyering@lucent.com>
97790
97791         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
97792         From Bruno Haible.
97793
97794 2001-01-14  Jim Meyering  <meyering@lucent.com>
97795
97796         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
97797         foo and bar.  Create conftestdir/ in the script, not in the C code.
97798         Remove directories in the script, not in the C code.
97799         Remove conftestdir{,2} before trying to create the directory.
97800         Make the entire configure script fail if the mkdir fails.
97801
97802 2001-01-14  Jim Meyering  <meyering@lucent.com>
97803
97804         * lib/rename.c: New file.  From Volker Borchert.
97805         Include stdlib.h, string.h or strings.h, and xalloc.h.
97806         Use strip_trailing_slashes rather than open-coding it.
97807
97808 2001-01-03  Paul Eggert  <eggert@twinsun.com>
97809
97810         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
97811
97812 2001-01-03  Jim Meyering  <meyering@lucent.com>
97813
97814         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
97815         of local `inptr' to avoid warning with some system declarations of
97816         iconv.
97817
97818 2001-01-02  Volker Borchert  <bt@teknon.de>
97819
97820         * m4/rename.m4: New file.
97821         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
97822
97823 2001-01-01  Jim Meyering  <meyering@lucent.com>
97824
97825         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
97826         even on systems with utmpx.h.  It's necessary for the declaration of
97827         utmp's ut_user member.  Reported by Andreas Jaeger.
97828
97829         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
97830         available. They are required for the declarations of getgrgid and
97831         getpwuid resp.
97832         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
97833         Reported by Andreas Jaeger.
97834
97835 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
97836
97837         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
97838         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
97839         so `make install' also works in VPATH builds.
97840
97841 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
97842
97843         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
97844         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
97845         can be used in subdirectories.
97846
97847 2000-12-29  Paul Eggert  <eggert@twinsun.com>
97848
97849         * lib/modechange.c: Do not assume that mode_t uses the
97850         traditional octal encoding.  E.g. "chmod 1 FOO" should set
97851         the other-execute bit of FOO even if S_IXOTH != 1.
97852
97853         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
97854         WOTH, XOTH, ALLM): New macros.
97855         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
97856          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
97857         Use them.
97858         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
97859         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
97860         (mode_compile):
97861         No need to use uintmax_t; unsigned long is long enough.
97862         Don't bother to get suffix since we don't use it.
97863
97864 2000-12-26  Jim Meyering  <meyering@lucent.com>
97865
97866         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
97867         better with autoheader.
97868
97869 2000-12-24  Jim Meyering  <meyering@lucent.com>
97870
97871         * lib/hash.c (is_prime): Return explicit boolean values.
97872         (hash_get_first): Return NULL to appease Irix5.6's 89.
97873         Reported by Nelson Beebe.
97874
97875 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
97876
97877         * lib/localcharset.c (locale_charset): Add support for Win32.
97878
97879 2000-12-18  Paul Eggert  <eggert@twinsun.com>
97880
97881         * lib/physmem.h, lib/physmem.c: New files.
97882
97883         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
97884         (noinst_HEADERS): Add physmem.h.
97885
97886         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
97887         't' for compatibility with Solaris 8 sort.
97888
97889 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
97890
97891         * lib/config.charset: Add support for BeOS.
97892
97893 2000-12-17  Jim Meyering  <meyering@lucent.com>
97894
97895         * m4/dos.m4 (jm_AC_DOS): New file and macro.
97896         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
97897
97898 2000-12-16  Jim Meyering  <meyering@lucent.com>
97899
97900         This bug had a serious impact on chown: `chown N:M FILE' (for integer
97901         N and M) would have treated it like `chown N:N FILE'.
97902
97903         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
97904
97905 2000-12-16  Jim Meyering  <meyering@lucent.com>
97906
97907         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
97908         SHELLS_FILE to a file name that's useful on djgpp systems.
97909         Include stdlib.h.
97910         (ADDITIONAL_DEFAULT_SHELLS): Define.
97911         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
97912         Based mostly on a patch from Prashant TR.
97913
97914 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
97915
97916         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
97917         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
97918         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
97919
97920 2000-12-08  Andreas Schwab  <schwab@suse.de>
97921
97922         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
97923         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
97924
97925 2000-12-07  Jim Meyering  <meyering@lucent.com>
97926
97927         * lib/stripslash.c (ISSLASH): Define.
97928         (strip_trailing_slashes): Use ISSLASH rather than comparing against
97929         `/'.
97930         From Prashant TR.
97931
97932         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
97933         (dir_name_r): Declare this function as static.
97934         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
97935         manifest itself on a name containing a mix of slashes and
97936         backslashes.
97937         Make this function work with names starting with a DOS-style
97938         drive letter and colon prefix.
97939         (dir_name): Append `.' if necessary.
97940         Based mostly on patches from Prashant TR and Eli Zaretskii.
97941
97942         * lib/dirname.h (dir_name_r): Remove prototype.
97943
97944 2000-12-06  Paul Eggert  <eggert@twinsun.com>
97945
97946         * m4/off_t-format.m4: Remove this file.
97947         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
97948
97949 2000-12-06  Jim Meyering  <meyering@lucent.com>
97950
97951         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
97952         replacement strtoull, we may well need the replacement strtoul, too.
97953         Check for declarations of strtoul and strtoull.
97954         Check for strtol.  Mainly as a cue to cause automake to include
97955         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
97956         Check for limits.h -- strtol.c needs it.
97957
97958 2000-12-05  Jim Meyering  <meyering@lucent.com>
97959
97960         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
97961
97962 2000-12-04  Jim Meyering  <meyering@lucent.com>
97963
97964         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
97965         Also include memory.h, stdlib.h, unistd.h if appropriate.
97966         Reported by Andreas Jaeger (conflicting declaration of malloc).
97967
97968 2000-12-02  Jim Meyering  <meyering@lucent.com>
97969
97970         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
97971         * m4/jm-macros.m4 (jm_MACROS): require it.
97972
97973 2000-12-02  Jim Meyering  <meyering@lucent.com>
97974
97975         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
97976
97977 2000-12-01  Paul Eggert  <eggert@twinsun.com>
97978
97979         * lib/memrchr.c: Include <config.h> before any system include file.
97980
97981 2000-11-30  Jim Meyering  <meyering@lucent.com>
97982
97983         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
97984
97985 2000-11-30  Jim Meyering  <meyering@lucent.com>
97986
97987         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
97988
97989 2000-11-29  Paul Eggert  <eggert@twinsun.com>
97990
97991         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
97992
97993 2000-11-26  Jim Meyering  <meyering@lucent.com>
97994
97995         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
97996
97997 2000-11-22  Paul Eggert  <eggert@twinsun.com>
97998
97999         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
98000         size of (size_t) -1; it's not portable.
98001
98002 2000-11-17  Jim Meyering  <meyering@lucent.com>
98003
98004         * lib/strstr.c: Update from GNU libc.
98005
98006 2000-11-17  Akim Demaille  <akim@epita.fr>
98007
98008         * lib/obstack.h: Formatting changes.
98009         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
98010         prevent type checking.
98011         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
98012         cast the value to (void *): assigning a `foo *' to a `void *'
98013         variable is valid.
98014         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
98015
98016 2000-11-16  Jim Meyering  <meyering@lucent.com>
98017
98018         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
98019
98020 2000-11-11  Jim Meyering  <meyering@lucent.com>
98021
98022         * lib/error.c: Add a couple #includes, merging from GNU libc version.
98023
98024 2000-11-10  Jim Meyering  <meyering@lucent.com>
98025
98026         * lib/obstack.h: Update from GNU libc.
98027         * lib/obstack.c: Likewise.
98028
98029 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
98030
98031         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
98032
98033 2000-11-06  Paul Eggert  <eggert@twinsun.com>
98034
98035         * lib/getusershell.c (setusershell): Use rewind rather than
98036         fseek/fseeko, to avoid configuration hassles with fseeko.
98037         Don't bother opening SHELLS_FILE if shellstream is NULL;
98038         it's not necessary.
98039
98040 2000-11-05  Jim Meyering  <meyering@lucent.com>
98041
98042         * lib/makepath.h (make_dir): Declare.
98043         * lib/makepath.c (make_dir): Remove `static' attribute.
98044         Tweak a comment.
98045
98046 2000-11-04  Jim Meyering  <meyering@lucent.com>
98047
98048         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
98049
98050 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
98051
98052         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
98053         last one in a bucket, advance to the next bucket.
98054
98055 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
98056
98057         * lib/fnmatch.c: Do not comment out all the code if we are using
98058         the GNU C library, because in some cases we are replacing buggy
98059         code in the GNU C library itself.
98060
98061 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
98062
98063         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
98064         (regex_compile): Catch bogus \(\1\).
98065
98066 2000-10-30  Paul Eggert  <eggert@twinsun.com>
98067
98068         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
98069         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
98070         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
98071
98072 2000-10-30  Paul Eggert  <eggert@twinsun.com>
98073
98074         * lib/error.h, getline.h, modechange.h:
98075         Remove "2000" from Copyright line, as the file hasn't been
98076         changed this year other than in the copyright notice.
98077
98078         * lib/xalloc.h: Add "2000" to Copyright line, as this file
98079         was changed this year.
98080
98081 2000-10-29  Jim Meyering  <meyering@lucent.com>
98082
98083         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
98084         renaming.
98085         * m4/ls-mntd-fs.m4: Likewise
98086
98087 2000-10-29  Jim Meyering  <meyering@lucent.com>
98088
98089         * lib/xstat.in: Fix grammar in comment.
98090
98091 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
98092
98093         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
98094         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
98095         doesn't define __restrict_arr.
98096
98097 2000-10-28  Jim Meyering  <meyering@lucent.com>
98098
98099         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
98100         (jm_PREREQ_MEMCHR): New function.
98101
98102 2000-10-28  Jim Meyering  <meyering@lucent.com>
98103
98104         * lib/memchr.c: Update from libc.
98105         Adjust for portability:
98106         [HAVE_STDLIB_H]: Include stdlib.h.
98107         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
98108         Undef __memchr, too.
98109         [!weak_alias]: Define __memchr to memchr.
98110
98111         * lib/regex.c: Update from libc.
98112         * lib/regex.h: Likewise.
98113         * lib/getopt1.c: Likewise.
98114         * lib/memcmp.c: Likewise.
98115
98116         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
98117         Avoid using fseek, when possible -- it's broken by design.
98118         Patch by Ulrich Drepper.
98119
98120 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
98121
98122         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
98123         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
98124         Giving in to popular pressure to shut up the compiler with casts.
98125
98126 2000-10-26  Jim Meyering  <meyering@lucent.com>
98127
98128         * lib/strftime.c: Update from libc.
98129
98130 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
98131
98132         * regex.c: More `unsigned char' -> `re_char' changes.
98133         Also change several `int' into `re_wchar_t'.
98134         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
98135         (PUSH_FAILURE_POINTER): Don't cast any more.
98136         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
98137         We want GCC to complain, since this piece of code makes
98138         re_match non-reentrant, which *should* be fixed.
98139         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
98140         (EXTEND_BUFFER): Use RETALLOC.
98141         (SET_LIST_BIT): Don't cast.
98142         (re_wchar_t): New type.
98143         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
98144         that those two functions will always properly return.
98145         (IMMEDIATE_QUIT_CHECK): Cast to void.
98146         (analyse_first): Use recursion rather than an explicit stack.
98147         (re_compile_fastmap): Can't fail anymore.
98148         (re_search_2): Don't check re_compile_fastmap for failure.
98149         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
98150         Now also sets the new value (passed in a new argument).
98151         (re_match_2_internal): Use it.
98152         Also, use a new var `reg' of type size_t when looping through regs
98153         rather than reuse the inappropriate `mcnt'.
98154
98155 2000-10-25  Jim Meyering  <meyering@lucent.com>
98156
98157         * lib/obstack.c: Update from libc.
98158
98159 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
98160
98161         * regex.c (regex_compile): Change the way of handling a range from
98162         a char less than 256 to a char not less than 256.
98163
98164 2000-10-24  Andrew Innes  <andrewi@gnu.org>
98165
98166         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
98167         NT-Emacs only.
98168         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
98169         so that re_search functions only quit when callers expect them to.
98170
98171 2000-10-23  Jim Meyering  <meyering@lucent.com>
98172
98173         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
98174         wrong.  That set_locale call must not have any side effects.
98175         From Paul Eggert.
98176
98177 2000-10-22  Jim Meyering  <meyering@lucent.com>
98178
98179         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
98180         [CYCLIC]: Remove now-unused definition.
98181
98182         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
98183         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
98184         Suggestion from Ulrich Drepper.
98185
98186 2000-10-21  Jim Meyering  <meyering@lucent.com>
98187
98188         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
98189         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
98190         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
98191
98192 2000-10-21  Jim Meyering  <meyering@lucent.com>
98193
98194         * lib/dirname.c (memrchr): Declare if necessary.
98195         (dir_name): Remove the restriction that there be no
98196         trailing slashes.  Now, this code skips past them, effectively
98197         ignoring them.
98198         [TEST_DIRNAME] (main): New unit tests.
98199
98200         * lib/memrchr.c: New file from GNU libc.
98201         Undef __memrchr, too.
98202         [!weak_alias]: Define __memrchr to memrchr.
98203         Guard weak_alias use with `#ifdef weak_alias'.
98204
98205 2000-10-21  Jim Meyering  <meyering@lucent.com>
98206
98207         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
98208         (dir_name): Use dir_name_r.
98209         * lib/dirname.h (dir_name_r): Declare it.
98210
98211 2000-10-17  Jim Meyering  <meyering@lucent.com>
98212
98213         * lib/quote.h (PARAMS): Define and use.
98214         Reported by Akim Demaille.
98215
98216         * lib/getopt.c: Update from libc.
98217
98218 2000-10-16  Jim Meyering  <meyering@lucent.com>
98219
98220         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
98221         setlocale.
98222         From Jan Fedak.
98223
98224 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
98225
98226         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
98227
98228 2000-09-25  Jim Meyering  <meyering@lucent.com>
98229
98230         * lib/md5.h (rol): Define (from GnuPG).
98231
98232         * lib/sha.c: Give credit (GnuPG) where due.
98233         (M): Use rol rather than open-coding it.
98234         Add a FIXME comment.
98235
98236 2000-09-21  Jim Meyering  <meyering@lucent.com>
98237
98238         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
98239         Reported by Michael Stone.
98240
98241 2000-09-20  Jim Meyering  <meyering@lucent.com>
98242
98243         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
98244         (noinst_HEADERS): Add sha.h.
98245         Based on code from Scott G. Miller and from GnuPG.
98246
98247 2000-09-18  Jim Meyering  <meyering@lucent.com>
98248
98249         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
98250         LIBS. Otherwise, everyone ends up linking with -lelf for some
98251         configurations.
98252         Reported by Mike Stone.
98253
98254 2000-09-15  Jim Meyering  <meyering@lucent.com>
98255
98256         * lib/regex.c: Update from libc.
98257
98258 2000-09-10  Jim Meyering  <meyering@lucent.com>
98259
98260         * lib/getopt.c (_getopt_internal): Update from glibc.
98261
98262 2000-09-09  Jim Meyering  <meyering@lucent.com>
98263
98264         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
98265         think it should be used as a general replacement for isascii.
98266         * lib/fnmatch.c: Likewise.
98267         * lib/mbswidth.c: Likewise
98268         * lib/regex.c: Likewise.
98269
98270         Don't use atoi.
98271         * lib/userspec.c: Include sys/param.h and limits.h.
98272         Include xstrtol.h.
98273         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
98274         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
98275         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
98276         UID, GID.  Check range.
98277
98278 2000-09-06  Jim Meyering  <meyering@lucent.com>
98279
98280         * lib/getopt.c (_getopt_internal): Update from glibc.
98281
98282 2000-08-30  Jim Meyering  <meyering@lucent.com>
98283
98284         * lib/strftime.c: Merge in changes from GNU libc.
98285
98286 2000-08-26  Jim Meyering  <meyering@lucent.com>
98287
98288         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
98289         * m4/fpending.m4: New file.
98290
98291 2000-08-26  Jim Meyering  <meyering@lucent.com>
98292
98293         * lib/closeout.c: Include "__fpending.h".
98294         (close_stdout_status): Return right away if there's nothing to flush.
98295
98296         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
98297         * lib/__fpending.c: New file.
98298         * lib/__fpending.h: New file.
98299
98300 2000-08-20  Jim Meyering  <meyering@lucent.com>
98301
98302         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
98303         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
98304         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
98305
98306 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
98307
98308         Improve fileutils installation on systems where running
98309         programs (like install) can't be unlinked.
98310         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
98311         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
98312
98313 2000-08-07  Paul Eggert  <eggert@twinsun.com>
98314
98315         Standardize on "memory exhausted" instead of "Memory exhausted"
98316         or "virtual memory exhausted".
98317         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
98318         "virtual memory exhausted".
98319         * lib/same.c (same_name): Invoke xalloc_die instead of printing
98320         our own message.
98321         * lib/userspec.c (parse_user_spec): Likewise.
98322         * lib/bumpalloc.h: comment fix
98323         * lib/same.c, userspec.c: Include xalloc.h.
98324
98325         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
98326         not char *const and pointing to a constant array.
98327         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
98328         (xrealloc): Comment fix.
98329
98330         * lib/userspec.c (parse_user_spec):
98331         Don't translate a message until just before returning,
98332         to avoid unnecessary translation.
98333
98334 2000-08-07  Jim Meyering  <meyering@lucent.com>
98335
98336         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
98337         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
98338         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
98339         getgroups.c, gethostname.c, getopt.h, group-member.c,
98340         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
98341         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
98342         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
98343         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
98344         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
98345         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
98346         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
98347         yesno.c: Back out Copyright date changes for each file with no change
98348         this year.  This eases coordination with other programs using the same
98349         source code modules.  From Paul Eggert.
98350
98351 2000-08-06  Paul Eggert  <eggert@twinsun.com>
98352
98353         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
98354         not char, for compatibility with glibc 2.1.3 strftime.c.
98355
98356 2000-08-03  Greg McGary  <greg@mcgary.org>
98357
98358         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
98359         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
98360         (EXTEND_BUFFER): Use them.
98361
98362 2000-08-01  Jim Meyering  <meyering@lucent.com>
98363
98364         * lib/dirname.c (ISSLASH): Define.
98365         (BACKSLASH_IS_PATH_SEPARATOR): Define.
98366         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
98367         both `\' and `/' may be use as path separators.
98368         Based on a patch from Prashant TR.
98369
98370 2000-07-31  Paul Eggert  <eggert@twinsun.com>
98371
98372         * lib/quotearg.c (quotearg_n_options): Don't make the initial
98373         slot vector a constant, since it might get modified.
98374
98375 2000-07-31  Jim Meyering  <meyering@lucent.com>
98376
98377         * lib/xmalloc.c: Use `virtual memory exhausted', not
98378         `Memory exhausted'.
98379         * lib/obstack.c (print_and_abort): Likewise.
98380
98381 2000-07-30  Paul Eggert  <eggert@twinsun.com>
98382
98383         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
98384         buffer, so that the caller can always quote one small
98385         component of a "memory exhausted" message in slot 0.
98386         From a suggestion by Jim Meyering.
98387
98388 2000-07-30  Jim Meyering  <meyering@lucent.com>
98389
98390         * lib/makepath.c (make_path): Quote the other instance, too.
98391
98392         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
98393         (STATIC_BUF_SIZE): Define.
98394         (quotearg_n_options): Use only statically allocated storage when
98395         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
98396         than STATIC_BUF_SIZE.
98397
98398 2000-07-29  Jim Meyering  <meyering@lucent.com>
98399
98400         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
98401         * lib/dirname.c (dir_name): Likewise.
98402
98403         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
98404         `/'.
98405
98406         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
98407         (dir_name): Assert that there are no trailing slashes.
98408
98409 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
98410
98411         * lib/mbswidth.h (mbswidth): Add a flags argument.
98412         (mbswidth): New declaration.
98413         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
98414         * lib/mbswidth.c (mbswidth): Add a flags argument.
98415         (mbsnwidth): New function.
98416
98417 2000-07-24  Jim Meyering  <meyering@lucent.com>
98418
98419         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
98420
98421 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98422
98423         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
98424
98425 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98426
98427         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
98428         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
98429         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
98430         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
98431         invoke multibyte primitives.
98432
98433 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98434
98435         * lib/quotearg.c:
98436         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
98437         so that mbstate_t is always defined.
98438
98439         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
98440         be 1 in at least one GCC installation, and this configuration
98441         error is likely to be common.  Ignoring MB_LEN_MAX hurts
98442         performance on hosts that have mbrtowc but have only unibyte
98443         locales, but I assume these hosts are rare.
98444
98445 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98446
98447         * lib/mbswidth.c (_XOPEN_SOURCE):
98448         Don't define; this causes problems on Solaris 7.
98449         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
98450
98451 2000-07-23  Jim Meyering  <meyering@lucent.com>
98452
98453         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
98454         too: getgrgid, getpwuid, getuid.
98455
98456 2000-07-23  Jim Meyering  <meyering@lucent.com>
98457
98458         * lib/basename.c (base_name): Add an assertion.
98459
98460 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
98461
98462         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
98463         shadow its mbsinit function.
98464
98465 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
98466
98467         * lib/mbswidth.h: New file.
98468         * lib/mbswidth.c: New file.
98469         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
98470         (noinst_HEADERS): Add mbswidth.h.
98471
98472 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
98473
98474         * lib/config.charset: Add support for FreeBSD. Improve support for
98475         HP-UX and IRIX 6.
98476
98477 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
98478
98479         * m4/mbswidth.m4: New file.
98480         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
98481
98482 2000-07-15  Jim Meyering  <meyering@lucent.com>
98483
98484         * lib/makepath.c: Include quote.h.
98485         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
98486         corresponding argument in a `quote (...)' call.
98487         Give better diagnostics.
98488
98489         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
98490         (noinst_HEADERS): Add quote.h.
98491
98492         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
98493         from tar's src/misc.c.
98494         * lib/quote.h: New file.  Prototypes for same.
98495
98496 2000-07-14  Paul Eggert  <eggert@twinsun.com>
98497
98498         From a suggestion by Bruno Haible.
98499         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
98500         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
98501         to decide whether to define the BeOS workaround macro;
98502         this adjusts to the change to AC_MBSTATE_T.
98503
98504 2000-07-14  Jim Meyering  <meyering@lucent.com>
98505
98506         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
98507         jm_AC_TYPE_UINTMAX_T.
98508
98509 2000-07-13  Paul Eggert  <eggert@twinsun.com>
98510
98511         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
98512
98513         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
98514         quotearg_buffer_restyled): Add support for
98515         clocale_quoting_style.  Undo previous change to
98516         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
98517         and "{RIGHT QUOTATION MARK}" msgids.
98518
98519 2000-07-10  Paul Eggert  <eggert@twinsun.com>
98520
98521         From a suggestion by Bruno Haible.
98522         * m4/mbstate_t.m4 (AC_MBSTATE_T):
98523         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
98524         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
98525         and mbstate_t, to a single-part test that simply defines mbstate_t.
98526         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
98527         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
98528
98529 2000-07-10  Jim Meyering  <meyering@lucent.com>
98530
98531         * m4/strerror_r.m4: Mirror the correction made in autoconf.
98532
98533         * m4/gnu-source.m4: Output to confdefs.h directly.
98534         Suggestion from Akim Demaille.
98535
98536 2000-07-09  Paul Eggert  <eggert@twinsun.com>
98537
98538         The old behavior of quoting `like this' doesn't look good with
98539         newer, ISO-style fonts.  See:
98540         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
98541
98542         Instead, quote "like this" by default.  Let the translator
98543         tailor the locale-specific quoting behavior by providing
98544         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
98545
98546         * lib/quotearg.c (N_): New macro.
98547         (gettext_default): New function.
98548         (quotearg_buffer_restyled): Use
98549         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
98550         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
98551
98552 2000-07-09  Jim Meyering  <meyering@lucent.com>
98553
98554         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
98555         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
98556
98557         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
98558         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
98559
98560 2000-07-09  Jim Meyering  <meyering@lucent.com>
98561
98562         * lib/Most files: Update copyright dates to include 2000.
98563
98564 2000-07-08  Jim Meyering  <meyering@lucent.com>
98565
98566         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
98567         if not defined.
98568         (xgethostname): Remove now-unnecessary #ifdef.
98569         Move declaration of `err' into loop where it's used.
98570
98571 2000-07-05  Paul Eggert  <eggert@twinsun.com>
98572         and Bruno Haible  <haible@clisp.cons.org>
98573
98574         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
98575         only if the test for an object-type mbstate_t fails.  This
98576         prevents us from mistakenly reporting that mbstate_t is a
98577         system object type after we "#define mbstate_t int" to work
98578         around its lack.
98579
98580 2000-07-05  Paul Eggert  <eggert@twinsun.com>
98581         and Bruno Haible  <haible@clisp.cons.org>
98582
98583         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
98584
98585 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
98586
98587         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
98588         to strerror_r.
98589         Include <ctype.h> for use of isalpha.
98590
98591 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
98592
98593         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
98594         by allocating a larger buffer. Test the gethostname return value for
98595         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
98596         returns an error and ENAMETOOLONG isn't defined.
98597
98598 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
98599
98600         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
98601         dimension.
98602
98603 2000-07-04  Jim Meyering  <meyering@lucent.com>
98604
98605         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
98606         of the deprecated AC_CHECKING.
98607
98608 2000-07-04  Jim Meyering  <meyering@lucent.com>
98609
98610         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
98611         Reported by Bruno Haible.
98612
98613 2000-07-04  Jim Meyering  <meyering@lucent.com>
98614
98615         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
98616         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
98617         lacks mbrtowc.
98618
98619 2000-07-03  Paul Eggert  <eggert@twinsun.com>
98620
98621         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
98622         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
98623
98624 2000-07-03  Paul Eggert  <eggert@twinsun.com>
98625         and Bruno Haible  <haible@clisp.cons.org>
98626
98627         * lib/quotearg.c (mbrtowc):
98628         Assign to *pwc, and return 1 only if result is nonzero.
98629         (iswprint): Use ISPRINT when substituting our own mbrtowc.
98630
98631 2000-07-03  Jim Meyering  <meyering@lucent.com>
98632
98633         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
98634
98635 2000-07-03  Jim Meyering  <meyering@lucent.com>
98636
98637         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
98638         This is necessary to get a definition of e.g., UTMP_FILE on
98639         HP-UX 10.20.
98640         From Bob Proulx.
98641
98642 2000-07-02  Jim Meyering  <meyering@lucent.com>
98643
98644         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
98645
98646         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
98647         AC_LIBOBJ(function_name).
98648         * m4/chown.m4: Likewise.
98649         * m4/fnmatch.m4: Likewise.
98650         * m4/ftruncate.m4: Likewise.
98651         * m4/getgroups.m4: Likewise.
98652         * m4/getline.m4: Likewise.
98653         * m4/group-member.m4: Likewise.
98654         * m4/jm-macros.m4: Likewise.
98655         * m4/lstat.m4: Likewise.
98656         * m4/malloc.m4: Likewise.
98657         * m4/memcmp.m4: Likewise.
98658         * m4/nanosleep.m4: Likewise.
98659         * m4/putenv.m4: Likewise.
98660         * m4/realloc.m4: Likewise.
98661         * m4/regex.m4: Likewise.
98662         * m4/stat.m4: Likewise.
98663         * m4/strftime.m4: Likewise.
98664
98665 2000-07-02  Jim Meyering  <meyering@lucent.com>
98666
98667         * lib/quotearg.c (mbstate_t): Don't define here.
98668
98669 2000-07-02  Jim Meyering  <meyering@lucent.com>
98670
98671         * lib/nanosleep.c (SIGCONT): Define if not already defined.
98672
98673 2000-07-01  Jim Meyering  <meyering@lucent.com>
98674
98675         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
98676
98677 2000-07-01  Jim Meyering  <meyering@lucent.com>
98678
98679         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
98680         problem.
98681
98682 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
98683
98684         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
98685         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
98686
98687 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
98688
98689         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
98690         per change in ../m4/ls-mntd-fs.m4.
98691         (read_filesystem_list): Ignore symbolic links.
98692
98693 2000-06-29  Jim Meyering  <meyering@lucent.com>
98694
98695         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
98696         for declaration of strcmp.
98697
98698         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
98699
98700         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
98701         Avoid warning by casting result to `char *' to remove `const'.
98702
98703 2000-06-28  Jim Meyering  <meyering@lucent.com>
98704
98705         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
98706         included by quotearg.c, for which we perform this test.  From
98707         Bruno Haible.
98708
98709 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
98710
98711         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
98712         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
98713         <utmpx.h> exists, put readutmp.o into LIBOBJS.
98714
98715 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
98716
98717         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
98718
98719 2000-06-26  Paul Eggert  <eggert@twinsun.com>
98720
98721         savedir now sets errno on failure and invokes xmalloc to get memory.
98722         Fix a couple of other minor bugs while we're at it.
98723
98724         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
98725         (NAMLEN): Remove macro.
98726         (malloc, realloc): Remove decls.
98727         (stpcpy): Likewise.
98728         ("xalloc.h"): Include.
98729         (NAME_SIZE_DEFAULT): New macro.
98730         (savedir): Use xmalloc / xrealloc to allocate memory.
98731         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
98732         Skip "" directory entries.
98733         Use strlen to calculate directory entry length, since the old method
98734         is rarely used these days and isn't worth supporting.
98735         Don't use a pointer after freeing it.
98736         Check for integer overflow when calculating allocation size.
98737         Use memcpy to copy entries, instead of stpcpy.
98738         Set errno properly when returning NULL.
98739         Check for readdir error.
98740
98741 2000-06-26  Jim Meyering  <meyering@lucent.com>
98742
98743         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
98744
98745 2000-06-25  Jim Meyering  <meyering@lucent.com>
98746
98747         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
98748         Linux header bug when _XOPEN_SOURCE is defined to 500.
98749
98750 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
98751
98752         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
98753         deficiency.
98754
98755 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
98756
98757         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
98758         Include xalloc.h.
98759         Don't include <stdlib.h>.  Don't declare malloc, realloc.
98760
98761 2000-06-24  Jim Meyering  <meyering@lucent.com>
98762
98763         * m4/strerror_r.m4: Revive this file -- to try out an experimental
98764         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
98765         for which strerror does return char*, but which lacks a conveniently
98766         accessible declaration of the function.  If the compile-test says
98767         strerror_r doesn't work, then resort to a `run'-test that works on
98768         BeOS and segfaults on DEC Unix.
98769
98770 2000-06-24  Jim Meyering  <meyering@lucent.com>
98771
98772         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
98773
98774 2000-06-23  Paul Eggert  <eggert@twinsun.com>
98775
98776         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
98777         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
98778
98779 2000-06-23  Paul Eggert  <eggert@twinsun.com>
98780
98781         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
98782         (mbrtowc, mbstate_t): Define substitutes if
98783         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
98784         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
98785         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
98786
98787 2000-06-23  Jim Meyering  <meyering@lucent.com>
98788
98789         * m4/afs.m4: Add missing AC_MSG_RESULT.
98790         Reported by Bruno Haible.
98791
98792         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
98793         Suggestion from Bruno Haible.
98794
98795 2000-06-23  Jim Meyering  <meyering@lucent.com>
98796
98797         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
98798
98799 2000-06-21  Jim Meyering  <meyering@lucent.com>
98800
98801         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
98802
98803 2000-06-21  Jim Meyering  <meyering@lucent.com>
98804
98805         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
98806         (noinst_HEADERS): Add getstr.h.
98807
98808         * lib/getline.c (getstr): Move into a separate file.
98809         * lib/getstr.c (getstr): New file, extracted from getline.c, with
98810         the following changes: new parameter, delim2; both delim[12]
98811         parameters have type `int', not `char'.  The latter would lose
98812         with 8-bit delimiters.
98813         * lib/getstr.h: New file.
98814
98815 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
98816
98817         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
98818         than 1024, return a memory chunk of least possible size, instead
98819         of size PATH_MAX + 2. In the loop, increment the size proportionally.
98820         Use free/xmalloc instead of xrealloc to avoid copying for very long
98821         paths.
98822
98823 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
98824
98825         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
98826         the empty string.
98827
98828 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
98829
98830         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
98831         address, not strdup.  Include <stdlib.h> and don't declare free().
98832
98833 2000-06-19  Jim Meyering  <meyering@lucent.com>
98834
98835         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
98836
98837 2000-06-18  Jim Meyering  <meyering@lucent.com>
98838
98839         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
98840
98841         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
98842         `checking whether...' message to be consistent with that of the
98843         lstat test.
98844
98845 2000-06-18  Jim Meyering  <meyering@lucent.com>
98846
98847         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
98848         Besides, these days every porting target provides a mkdir function.
98849
98850         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
98851         needed. (this snippet comes from src/system.h).
98852
98853 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
98854
98855         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
98856
98857 2000-06-15  Paul Eggert  <eggert@twinsun.com>
98858
98859         * lib/human.c (adjust_value): New function.
98860         (human_readable_inexact): Apply rounding style even when
98861         printing approximate values.
98862
98863 2000-06-14  Paul Eggert  <eggert@twinsun.com>
98864
98865         * lib/human.c (human_readable_inexact): Allow an input block
98866         size that is not a multiple of the output block size, and vice versa.
98867         Reported by Piergiorgio Sartor.
98868
98869 2000-06-14  Paul Eggert  <eggert@twinsun.com>
98870
98871         * lib/getdate.y (get_date): Apply relative times after time
98872         zone indicator, not before.  Reported by Todd A. Jacobs.
98873
98874 2000-06-13  Jim Meyering  <meyering@lucent.com>
98875
98876         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
98877
98878         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
98879
98880 2000-06-12  Paul Eggert  <eggert@twinsun.com>
98881
98882         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
98883
98884 2000-06-12  Jim Meyering  <meyering@lucent.com>
98885
98886         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
98887         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
98888         optional argument.
98889         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
98890         the optional argument, `lib'.
98891
98892 2000-06-08  Jim Meyering  <meyering@lucent.com>
98893
98894         * m4/largefile.m4: Remove file (now that it's part of autoconf).
98895
98896 2000-06-04  Paul Eggert  <eggert@twinsun.com>
98897
98898         Rewrite largefile configuration so that we don't need to run
98899         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
98900         AC_CANONICAL_HOST in configure.in -- jmm]
98901
98902         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
98903         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
98904         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
98905         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
98906         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
98907         All uses changed.
98908         Instead of inspecting the output of getconf, try to compile the
98909         test program without and with the macro definition.
98910         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
98911         for getconf.  Instead, check for the needed flags by compiling
98912         test programs.
98913
98914 2000-06-04  Paul Eggert  <eggert@twinsun.com>
98915
98916         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
98917
98918 2000-06-04  Jim Meyering  <meyering@lucent.com>
98919
98920         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
98921         SunOS 4.1.4 for which gid_t is an unsigned type.
98922
98923 2000-06-03  Jim Meyering  <meyering@lucent.com>
98924
98925         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
98926         now that autoconf requires that.
98927
98928         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
98929         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
98930         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
98931
98932 2000-06-03  Jim Meyering  <meyering@lucent.com>
98933
98934         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
98935
98936 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
98937
98938         * m4/glibc21.m4: New file.
98939         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
98940
98941 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
98942
98943         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
98944         newer, don't install charset.alias.
98945         * lib/config.charset: Change the Linux/glibc rules so they become empty
98946         on glibc-2.1 or newer.
98947
98948 2000-06-02  Jim Meyering  <meyering@lucent.com>
98949
98950         * lib/mountlist.c: Back out last change.  Instead, do this...
98951         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
98952         me_dummy member using the same `ignore'-testing code.
98953         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
98954         fs_type strings.
98955         From Mark D. Roth.
98956
98957 2000-05-29  Jim Meyering  <meyering@lucent.com>
98958
98959         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
98960         mounts with the `ignore' attribute.  Based on a patch from
98961         Mark D. Roth.
98962
98963 2000-05-28  Jim Meyering  <meyering@lucent.com>
98964
98965         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
98966         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98967         * m4/stat.m4: Likewise.
98968         * m4/lstat.m4: Likewise.
98969         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
98970
98971         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
98972         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
98973
98974 2000-05-26  Jim Meyering  <meyering@lucent.com>
98975
98976         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
98977
98978 2000-05-24  Jim Meyering  <meyering@lucent.com>
98979
98980         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
98981         autoconf requires that.
98982         * m4/lib-check.m4: Likewise.
98983         * m4/jm-macros.m4: Likewise.
98984         * m4/strftime.m4: Likewise.
98985
98986         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
98987         AC_CHECK_DECLS, now that autoconf requires that.
98988
98989 2000-05-22  Jim Meyering  <meyering@lucent.com>
98990
98991         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98992         * m4/lstat.m4: Likewise.
98993
98994 2000-05-22  Jim Meyering  <meyering@lucent.com>
98995
98996         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
98997
98998 2000-05-20  Jim Meyering  <meyering@lucent.com>
98999
99000         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
99001         (jm_PREREQ): Use it.
99002
99003 2000-05-18  Jim Meyering  <meyering@lucent.com>
99004
99005         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
99006         back, too, since it may have been modified by allocate_entry.
99007         (hash_delete): Rewrite to use neither the assignment operator
99008         nor the comma operator in an if-expression.
99009
99010 2000-05-15  Paul Eggert  <eggert@twinsun.com>
99011
99012         * lib/closeout.c:
99013         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
99014         Remove; no longer needed.
99015         "quotearg.h": Add include.
99016         (file_name): Do not bother to explicitly initialize to NULL; it's less
99017         efficient on some hosts.
99018         (close_stdout_status): Remove test as to whether stdout was already
99019         closed; it breaks for the case "echo x | sort >&-".
99020         Quote file name colons.
99021         Do not assume that _("write error") lacks format strings.
99022
99023 2000-05-15  Jim Meyering  <meyering@lucent.com>
99024
99025         * lib/version-etc.c (version_etc_copyright): Update the copyright
99026         string used in all --version output.
99027
99028 2000-05-14  Jim Meyering  <meyering@lucent.com>
99029
99030         * lib/closeout.c (close_stdout_set_file_name): New function.
99031         (close_stdout_status): Use new file-scoped global.
99032         Return right away if fstat says the stdout file descriptor is invalid.
99033         * lib/closeout.h (close_stdout_set_file_name): Declare.
99034
99035 2000-05-10  Jim Meyering  <meyering@lucent.com>
99036
99037         * lib/closeout.c [default_exit_status]: New file-scoped variable.
99038         (close_stdout_set_status): New function.
99039         * lib/closeout.h (close_stdout_set_status): Declare.
99040
99041 2000-05-09  Jim Meyering  <meyering@lucent.com>
99042
99043         * m4/gettext.m4: Rename this...
99044         * m4/libintl.m4: ...to this.
99045
99046 2000-05-08  Jim Meyering  <meyering@lucent.com>
99047
99048         * lib/long-options.c: Don't include closeout.h.
99049         (parse_long_options): Don't call close_stdout for --version.
99050
99051 2000-05-06  Paul Eggert  <eggert@twinsun.com>
99052
99053         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
99054         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
99055         2.1.3 bug.  This avoids a clash when files like regex.c define
99056         _GNU_SOURCE.
99057
99058 2000-05-06  Jim Meyering  <meyering@lucent.com>
99059
99060         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
99061         (AC_REPLACE_FUNCS): Add strnlen.
99062
99063         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
99064         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
99065
99066         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
99067         AC_SEARCH_LIBS call for nanosleep.
99068         (LIB_NANOSLEEP): Set and AC_SUBST.
99069
99070 2000-05-06  Jim Meyering  <meyering@lucent.com>
99071
99072         * lib/strnlen.c: Undefine __strnlen and strnlen.
99073         [!weak_alias]: Define __strnlen to strnlen.
99074
99075         * lib/atexit.c: New file, from libiberty.
99076
99077 2000-05-06  Jim Meyering  <meyering@lucent.com>
99078
99079         * lib/closeout.c (close_stdout_status): Also check for errors on the
99080         stderr stream.
99081
99082 2000-05-05  Jim Meyering  <meyering@lucent.com>
99083
99084         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
99085         AC_SEARCH_LIBS call for clock_gettime.
99086         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
99087
99088         * m4/search-libs.m4: Update from autoconf.
99089
99090         su doesn't work on Solaris 2.6.
99091         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
99092         <shadow.h>.  Reported by Dragos Harabor.
99093
99094 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
99095
99096         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
99097         memcpy instead of xmalloc, xrealloc, path_concat.
99098         (locale_charset): Treat empty environment variables as absent.
99099         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
99100
99101 2000-05-04  Jim Meyering  <meyering@lucent.com>
99102
99103         * lib/getopt.c: Update from glibc.
99104         * lib/obstack.c: Likewise.
99105         * lib/obstack.h: Likewise.
99106         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
99107         file
99108
99109         * lib/regex.h: Likewise.
99110         * lib/strndup.c: Likewise.
99111         * lib/strnlen.c: New file, from glibc.
99112
99113 2000-05-03  Jim Meyering  <meyering@lucent.com>
99114
99115         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
99116
99117 2000-05-02  Paul Eggert  <eggert@twinsun.com>
99118
99119         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
99120         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
99121         compile-time test, rather than inspecting host and OS, to
99122         decide whether to define _LARGEFILE_SOURCE.
99123
99124 2000-05-01  Jim Meyering  <meyering@lucent.com>
99125
99126         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
99127
99128         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
99129         Based on a patch from Bruno Haible.
99130
99131 2000-05-01  Jim Meyering  <meyering@lucent.com>
99132
99133         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
99134
99135 2000-04-29  Jim Meyering  <meyering@lucent.com>
99136
99137         * lib/path-concat.c: Declare strdup only if it's not defined.
99138         * lib/canon-host.c: Likewise.
99139
99140 2000-04-28  Jim Meyering  <meyering@lucent.com>
99141
99142         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
99143         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
99144         is included first, then limits.h is included by locale.h by libintl.h.
99145         From John David Anglin.
99146
99147 2000-04-25  Jim Meyering  <meyering@lucent.com>
99148
99149         * lib/makepath.c (S_IRWXUGO): Define.
99150         (make_path): Always perform explicit chmod if MODE specifies any
99151         of the `special' permission bits.  Prompted by a bug report against
99152         install from Mate Wierdl and Joost van Baal.
99153
99154 2000-04-18  Jim Meyering  <meyering@lucent.com>
99155
99156         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
99157         (jm_PREREQ): Use it.
99158
99159 2000-04-18  Jim Meyering  <meyering@lucent.com>
99160
99161         * lib/README: New file.
99162
99163         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
99164         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
99165
99166 2000-04-17  Jim Meyering  <meyering@lucent.com>
99167
99168         Get it right :-)
99169         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
99170         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
99171         Suggestion from Akim Demaille.
99172
99173 2000-04-17  Jim Meyering  <meyering@lucent.com>
99174
99175         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
99176         the definition of it to rpl_strftime also defined-away the system's
99177         declaration.
99178
99179 2000-04-15  Jim Meyering  <meyering@lucent.com>
99180
99181         Use `C' to denote so-called `contiguous' files, the same way
99182         that tar does.
99183         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
99184         (ftypelet): Use S_ISCTG.
99185         From Michael Deutschmann.
99186
99187 2000-04-14  Jim Meyering  <meyering@lucent.com>
99188
99189         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
99190         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
99191         clobbered.
99192
99193 2000-04-14  Jim Meyering  <meyering@lucent.com>
99194
99195         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
99196
99197 2000-04-13  Jim Meyering  <meyering@lucent.com>
99198
99199         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
99200         AH_VERBATIM to insert required #ifndef into config.h.in.
99201         Suggestion from Akim Demaille.
99202
99203 2000-04-12  Jim Meyering  <meyering@lucent.com>
99204
99205         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
99206         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
99207         Christian Krackowizer.
99208
99209         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
99210         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
99211         (AC_SYS_LARGEFILE): Require.
99212         (AM_C_PROTOTYPES): Require.
99213
99214 2000-04-08  Jim Meyering  <meyering@lucent.com>
99215
99216         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
99217         names don't conflict.  Reported by Eli Zaretskii.
99218
99219 2000-04-07  Jim Meyering  <meyering@lucent.com>
99220
99221         * lib/putenv.c: Move inclusion of errno.h so it follows that of
99222         sys/types.h, to work around system header problems on AIX 3.2.5.
99223         From Bruno Haible.
99224
99225 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
99226
99227         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
99228         bug.  Deal with the different error behavior of Irix iconv.
99229
99230 2000-04-05  Paul Eggert  <eggert@twinsun.com>
99231
99232         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
99233         IRIX if the installer said otherwise.
99234
99235 2000-04-05  Jim Meyering  <meyering@lucent.com>
99236
99237         Portability tweaks required for ultrix4.3.
99238         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
99239         (jm_CHECK_DECLS): Add getutent to the list of functions.
99240         (_jm_DECL_HEADERS): Add utmpx.h.
99241         From John David Anglin.
99242
99243         * m4/strftime.m4: Back out the 2000-04-02 change.
99244         Instead of that change, simply undefine putenv in the test program.
99245
99246 2000-04-05  Jim Meyering  <meyering@lucent.com>
99247
99248         Portability tweaks required for ultrix4.3.
99249         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
99250         getutent.
99251         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
99252         * lib/canon-host.c: Declare strdup.
99253         * lib/path-concat.c: Likewise.
99254         From John David Anglin.
99255
99256 2000-04-04  Jim Meyering  <meyering@lucent.com>
99257
99258         Be more DOS 8.3-friendly.
99259         * lib/ref-add.sin: Renamed from ref-add.sed.in.
99260         * lib/ref-del.sin: Renamed from ref-del.sed.in.
99261         * lib/Makefile.am: Reflect renaming.
99262         Reported by Eli Zaretskii.
99263
99264         Use a temporary file name that won't clash with `charset.alias'
99265         in the DOS 8.3 name space.
99266         * lib/Makefile.am (charset_tmp): Define.
99267         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
99268         (uninstall-local): Likewise.
99269         Reported by Eli Zaretskii.
99270
99271 2000-04-03  Jim Meyering  <meyering@lucent.com>
99272
99273         * m4/gettext.m4: Fix typo in comment.
99274
99275         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
99276         textutils/configure.in).  Suggestion from Paul Eggert.
99277         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
99278
99279 2000-04-02  Paul Eggert  <eggert@twinsun.com>
99280
99281         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
99282         variable in the shell rather than using putenv, which isn't
99283         portable.  This avoids the configure-time inter-test dependency
99284         on the potentially-renamed putenv function.
99285
99286 2000-03-30  Paul Eggert  <eggert@twinsun.com>
99287
99288         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
99289         before checking struct stat.st_blksize, so that
99290         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
99291
99292 2000-03-29  Paul Eggert  <eggert@twinsun.com>
99293
99294         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
99295         since strftime.c uses HAVE_STRFTIME to decide whether to use
99296         the underlying strftime.
99297
99298 2000-03-29  Paul Eggert  <eggert@twinsun.com>
99299
99300         * lib/time/strftime.c (my_strftime): Make sure we call the system
99301         strftime, not ourselves, when invoking the underlying strftime.
99302
99303 2000-03-24  Jim Meyering  <meyering@lucent.com>
99304
99305         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
99306         (charset_alias): Define.
99307         (install-exec-local): Factor out common code.
99308         (uninstall-local): Split lines longer than 80.
99309         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
99310         (SUFFIXES): Define.
99311         (.sed.in.sed): New rule.  Don't redirect directly to $@.
99312         (CLEANFILES): Add ref-add.sed and ref-del.sed.
99313
99314 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
99315
99316         * lib/config.charset: Output a line containing "Packages using this
99317         file".
99318         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
99319         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
99320         ref-del.sed): New rules.
99321
99322 2000-03-17  Jim Meyering  <meyering@lucent.com>
99323
99324         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
99325         Otherwise, include <strings.h>
99326
99327 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
99328
99329         * lib/unicodeio.c (utf8_wctomb): New function.
99330         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
99331         format instead of in UCS-4 with platform dependent endianness.
99332
99333 2000-03-10  Jim Meyering  <meyering@lucent.com>
99334
99335         * m4/lib-check.m4: Look for getspnam in -lgen, too.
99336         From Marco Franzen.
99337
99338 2000-03-07  Paul Eggert  <eggert@twinsun.com>
99339
99340         * lib/savedir.c (savedir): Work even if directory size is
99341         negative; this can happen with some screwy NFS configurations.
99342
99343 2000-03-06  Jim Meyering  <meyering@lucent.com>
99344
99345         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
99346         if it's NULL (because we ran out of memory).  From Bruno Haible.
99347
99348 2000-03-05  Jim Meyering  <meyering@lucent.com>
99349
99350         * lib/localcharset.c ("path-concat.h"): Include.
99351         (get_charset_aliases): Use path_concat instead of ANSI string
99352         concatenation.
99353
99354         * lib/unicodeio.h (PARAMS): Define.
99355         Use it to guard prototype.
99356
99357 2000-03-04  Jim Meyering  <meyering@lucent.com>
99358
99359         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
99360         for lib/localcharset.c.
99361
99362 2000-03-04  Jim Meyering  <meyering@lucent.com>
99363
99364         * lib/Makefile.am (install-exec-local): Create $(libdir) before
99365         installing into it.
99366         (uninstall-local): Uncomment this rule so `make distcheck' works
99367         once again.
99368
99369         * lib/unicodeio.c (<errno.h>): Include it.
99370         (errno): Declare if not defined.
99371
99372         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
99373
99374         * lib/config.charset: New version, incorporating remarks from a linux
99375         i18n mailing list.  From Bruno Haible.
99376
99377 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
99378
99379         * m4/codeset.m4: New file.
99380         * m4/iconv.m4: New file.
99381         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
99382
99383 2000-03-03  Jim Meyering  <meyering@lucent.com>
99384
99385         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
99386
99387 2000-03-02  Jim Meyering  <meyering@lucent.com>
99388
99389         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
99390         the messages come out on separate lines.
99391
99392         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
99393         rather than jm_CHECK_DECLARATIONS.
99394         * m4/decl.m4: Remove now-unused file.
99395
99396         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
99397         geteuid.
99398
99399 2000-03-02  Jim Meyering  <meyering@lucent.com>
99400
99401         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
99402
99403 2000-03-01  Jim Meyering  <meyering@lucent.com>
99404
99405         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
99406         * lib/unicodeio.c: Likewise.
99407
99408 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
99409
99410         * lib/config.charset: New file.
99411         * lib/localcharset.c: New file.
99412         * lib/unicodeio.h, lib/unicodeio.c: New files.
99413         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
99414         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
99415         (noinst_HEADERS): Add unicodeio.h.
99416         (all-local, install-exec-local, charset.alias): New targets.
99417
99418 2000-02-28  Paul Eggert  <eggert@twinsun.com>
99419
99420         * lib/quotearg.c (ALERT_CHAR): New macro.
99421         (quotearg_buffer_restyled): Use it.
99422
99423 2000-02-27  Jim Meyering  <meyering@lucent.com>
99424
99425         * m4/check-decl.m4: Add getenv to the list.
99426
99427 2000-02-27  Jim Meyering  <meyering@lucent.com>
99428
99429         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
99430         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
99431
99432         * lib/backupfile.c: Guard inclusion of stdlib.h with
99433         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
99434         Declare malloc if needed.
99435
99436         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
99437         `#ifndef HAVE_DECL..'
99438         now that autoconf always defines the HAVE_DECL_ symbols.
99439         * lib/human.c: Likewise.
99440         * lib/same.c: Likewise.
99441         * lib/strtoumax.c: Likewise.
99442
99443         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
99444         declaration check was not run.
99445         * lib/hash.c: Likewise.
99446         * lib/human.c: Likewise.
99447         * lib/same.c: Likewise.
99448         * lib/strtoumax.c: Likewise.
99449
99450         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
99451         `.', then first look up the entire `.'-containing string as a login
99452         name.
99453
99454 2000-02-23  Jim Meyering  <meyering@lucent.com>
99455
99456         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
99457         in place of my hack.
99458
99459 2000-02-18  Paul Eggert  <eggert@twinsun.com>
99460
99461         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
99462         (textint): New typedef.
99463         (parser_control): Member year changed from int to textint.
99464         All uses changed.
99465         (YYSTYPE): Removed; replaced by %union with int and textint members.
99466         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
99467         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
99468         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
99469         (tSNUMBER, tUNUMBER): Now of type <textintval>.
99470         (date, number, to_year): Use width of number in digits, not its value,
99471         to determine whether it's a 2-digit year, or a 2-digit time.
99472         (yylex): Store number of digits of numeric tokens.
99473         Reported by John Kendall.
99474
99475         (parser_control): Changed from struct parser_control to typedef (for
99476         consistency).  All uses changed.
99477
99478         (tID): Removed; not used.
99479         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
99480
99481 2000-02-14  Paul Eggert  <eggert@twinsun.com>
99482
99483         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
99484         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
99485
99486 2000-02-12  Jim Meyering  <meyering@lucent.com>
99487
99488         * lib/userspec.c (ISDIGIT): Define it.
99489         (isdigit): Remove definition.
99490         (is_number): Use ISDIGIT, not isdigit.
99491         <libintl.h>: Include.
99492         (_ and N_): Define.
99493         (parse_user_spec): Mark translatable strings.
99494
99495 2000-02-10  Jim Meyering  <meyering@lucent.com>
99496
99497         With these changes, nanosleep.[ch] are finally enough like the other
99498         lib/* replacement files to compile on a few more losing systems.
99499
99500         * lib/nanosleep.h: Don't include config.h.
99501         Remove prototype from declaration of nanosleep.
99502         (PARAMS): Remove now-unneeded definition.
99503         * lib/nanosleep.c: #undef nanosleep.
99504         (rpl_nanosleep): Rename from nanosleep.
99505
99506 2000-02-10  Jim Meyering  <meyering@lucent.com>
99507
99508         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
99509         gnu_nanosleep to rpl_nanosleep.
99510
99511 2000-02-09  Jim Meyering  <meyering@lucent.com>
99512
99513         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
99514         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
99515
99516 2000-02-08  Akim Demaille  <akim@epita.fr>
99517
99518         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
99519         `[' and `]' and remove uses of `changequote'.
99520         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
99521         (AC_SYS_LARGEFILE): Likewise.
99522         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
99523         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
99524         of changequote.
99525         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
99526         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
99527         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
99528         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
99529
99530 2000-02-05  Jim Meyering  <meyering@lucent.com>
99531
99532         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
99533         Remove explicit use of AC_HEADER_TIME.  It is required by
99534         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
99535         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
99536         in autoconf whereby the expansion of the latter ended up preceding
99537         the expansion of its prerequisite, AC_HEADER_TIME.
99538         Reported by Volker Borchert.
99539
99540 2000-02-03  Jim Meyering  <meyering@lucent.com>
99541
99542         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
99543
99544 2000-02-03  Jim Meyering  <meyering@lucent.com>
99545
99546         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
99547         rather than with `#if HAVE_UTMPNAME'.
99548
99549 2000-02-02  Jim Meyering  <meyering@lucent.com>
99550
99551         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
99552         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
99553         Reported by Eli Zaretskii.
99554
99555 2000-02-01  Jim Meyering  <meyering@lucent.com>
99556
99557         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
99558
99559 2000-01-31  Jim Meyering  <meyering@lucent.com>
99560
99561         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
99562         functions.  Add the time.h and sys/time.h headers along with the
99563         AC_REQUIRE'ment of AC_HEADER_TIME.
99564
99565 2000-01-31  Jim Meyering  <meyering@lucent.com>
99566
99567         * lib/nanosleep.h (nanosleep): Guard declaration with
99568         `#if ! HAVE_DECL_NANOSLEEP'.
99569         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
99570         the declaration in that vendor's sys/timers.h.
99571         Reported by Christian Krackowizer.
99572
99573         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
99574         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
99575         (ISPRINT): Likewise.
99576         Reported by Tom Tromey.
99577
99578 2000-01-30  Jim Meyering  <meyering@lucent.com>
99579
99580         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
99581
99582         * m4/prereq.m4 (utmp_includes): Define.
99583         Check for ut_user and ut_name members in both struct utmpx
99584         and struct utmp.
99585
99586 2000-01-30  Jim Meyering  <meyering@lucent.com>
99587
99588         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
99589         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
99590         header files where only utmpx.ut_user is declared.
99591
99592         * lib/readutmp.h (UT_USER): Define.
99593
99594 2000-01-29  Jim Meyering  <meyering@lucent.com>
99595
99596         * m4/lib-check.m4: New file containing library-related checks from
99597         fileutils and sh-utils (textutils had none).
99598
99599 2000-01-28  Jim Meyering  <meyering@lucent.com>
99600
99601         * m4/perl.m4: Change format of warning message to look more like that
99602         from the missing script.  Suggestion from François Pinard.
99603
99604 2000-01-25  Jim Meyering  <meyering@lucent.com>
99605
99606         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
99607         well as time.h in the compile check.
99608         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
99609         Fix typo in cross-compiling case: s/yes/no/.
99610
99611 2000-01-23  Jim Meyering  <meyering@lucent.com>
99612
99613         * m4/jm-macros.m4: Move df-related tests here from
99614         fileutils/configure.in
99615
99616         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
99617         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
99618
99619         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
99620         s/space/ac_fsusage_space/.
99621         (jm_FILE_SYSTEM_USAGE): Take two parameters.
99622
99623         * m4/ftruncate.m4: New file (derived from part of
99624         fileutils/configure.in).
99625         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
99626         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
99627
99628         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
99629         AC_SUBST these here, rather than just in sh-util/configure.in, so
99630         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
99631         all the same.
99632         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
99633         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
99634         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
99635         (AC_SUBST(POW_LIBM)): Likewise.
99636         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
99637
99638 2000-01-23  Jim Meyering  <meyering@lucent.com>
99639
99640         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
99641         obstack.c.
99642
99643 2000-01-22  Jim Meyering  <meyering@lucent.com>
99644
99645         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
99646
99647         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
99648
99649         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
99650         configure.in
99651         (AC_CHECK_HEADERS): Likewise for sh-utils.
99652         (AC_CHECK_HEADERS): Likewise for textutils.
99653         Merge the three lists of headers.
99654
99655         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
99656         from fileutils' configure.in.
99657
99658         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
99659         code. Moved tests into their own function (_jm_DECL_HEADERS) in
99660         check-decl.m4.
99661
99662         * m4/check-decl.m4: Use #if rather than #ifdef.
99663         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
99664         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
99665         (_jm_DECL_HEADERS): Define new function.
99666         (jm_CHECK_DECLARATIONS): Require it.
99667
99668 2000-01-22  Jim Meyering  <meyering@lucent.com>
99669
99670         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
99671         [! HAVE_DECL_STRTOULL]: Declare strtoull.
99672         Required for some AIX systems.  Reported by Christian Krackowizer.
99673         [TESTING] (main): New function.
99674
99675         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
99676         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
99677         letters.
99678
99679         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
99680         iswprint.
99681
99682         * lib/strverscmp.c (ISDIGIT): Define.
99683         (strverscmp): Use ISDIGIT, not isdigit.
99684
99685 2000-01-19  Jim Meyering  <meyering@lucent.com>
99686
99687         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
99688         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
99689         defines `struct timespec' in <sys/time.h>
99690
99691         * m4/c-bs-a.m4: Remove uses of changequote altogether.
99692         Thanks to Akim for explaining.
99693
99694 2000-01-17  Paul Eggert  <eggert@twinsun.com>
99695
99696         * lib/nanosleep.c (nanosleep):
99697         Don't use SA_INTERRUPT to decide whether to call sigaction, as
99698         POSIX.1 doesn't require SA_INTERRUPT and some systems
99699         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
99700         it's been part of POSIX.1 since day 1 (in 1988).
99701
99702 2000-01-17  Jim Meyering  <meyering@lucent.com>
99703
99704         * lib/interlock: Remove unused file.  Reported by François Pinard.
99705
99706 2000-01-16  Paul Eggert  <eggert@twinsun.com>
99707
99708         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
99709         alert, backslash, formfeed, and vertical tab unnecessarily in
99710         shell quoting style.
99711
99712 2000-01-16  Jim Meyering  <meyering@lucent.com>
99713
99714         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
99715         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
99716         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
99717         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
99718
99719 2000-01-16  Jim Meyering  <meyering@lucent.com>
99720
99721         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
99722         because the latter didn't work.
99723
99724 2000-01-15  Jim Meyering  <meyering@lucent.com>
99725
99726         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
99727         (AC_REPLACE_FUNCS): Add memcpy and memset.
99728         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
99729         Add strpbrk.
99730         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
99731
99732 2000-01-12  Jim Meyering  <meyering@lucent.com>
99733
99734         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
99735         (jm_PREREQ): Use it.
99736         (jm_PREREQ_READUTMP): New macro.
99737         (jm_PREREQ): Use it.
99738
99739 2000-01-11  Paul Eggert  <eggert@twinsun.com>
99740
99741         Quote multibyte characters correctly.
99742         * m4/c-bs-a.m4: New file.
99743         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
99744         (jm_PREREQ): Use it.
99745
99746 2000-01-11  Paul Eggert  <eggert@twinsun.com>
99747
99748         * m4/uintmax_t.m4: Port to autoconf 2.13.
99749
99750 2000-01-08  Jim Meyering  <meyering@ascend.com>
99751
99752         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
99753         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
99754
99755 2000-01-04  Jim Meyering  <meyering@ascend.com>
99756
99757         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
99758         jm_STRUCT_DIRENT_D_TYPE.
99759         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
99760         jm_STRUCT_DIRENT_D_INO.
99761         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
99762         jm_STRUCT_UTIMBUF.
99763         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
99764         renamings.
99765         * m4/utime.m4: Likewise.
99766
99767         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
99768         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
99769
99770 2000-01-03  Paul Eggert  <eggert@twinsun.com>
99771
99772         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
99773         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
99774
99775 2000-01-02  Jim Meyering  <meyering@ascend.com>
99776
99777         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
99778         remember if this is necessary.
99779
99780 1999-12-26  Jim Meyering  <meyering@ascend.com>
99781
99782         * m4/jm-macros.m4: Use it here.
99783         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
99784
99785 1999-12-23  Jim Meyering  <meyering@ascend.com>
99786
99787         * m4/jm-macros.m4: Check for clock_gettime (moved from
99788         fileutils/configure.in)
99789         Check for gettimeofday.
99790
99791 1999-12-20  Jim Meyering  <meyering@ascend.com>
99792
99793         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
99794         autoconf-2.14a-1999-12-20.
99795
99796 1999-12-19  Jim Meyering  <meyering@ascend.com>
99797
99798         * m4/lstat-slash.m4: New file.
99799         * m4/jm-macros.m4: Use the new macro:
99800         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
99801
99802 1999-12-07  Jim Meyering  <meyering@ascend.com>
99803
99804         * m4/perl.m4: Require that File::Compare be available, too.
99805         Too many systems seem to lack it.
99806
99807         * m4/strftime.m4: Add checks for most of the cpp macros tested in
99808         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
99809
99810 1999-11-18  Paul Eggert  <eggert@twinsun.com>
99811
99812         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
99813         problem with the QNX 4.25 shell, which doesn't propagate exit
99814         status of failed commands inside shell assignments.
99815
99816 1999-11-17  Jim Meyering  <meyering@ascend.com>
99817
99818         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
99819
99820 1999-11-07  Jim Meyering  <meyering@ascend.com>
99821
99822         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
99823
99824 1999-11-06  Jim Meyering  <meyering@ascend.com>
99825
99826         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
99827         * m4/jm-macros.m4 (jm_MACROS): Use it here.
99828
99829 1999-11-05  Jim Meyering  <meyering@ascend.com>
99830
99831         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
99832         configure.in of textutils, fileutils, and sh-utils into this one
99833         (shared between those packages) file.
99834         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
99835         AC_STRUCT_ST_BLKSIZE.
99836
99837 1999-11-03  Jim Meyering  <meyering@ascend.com>
99838
99839         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
99840         of AC_CHECK_TYPE checks includes unistd.h.
99841         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
99842         Suggestion from Akim Demaille.
99843
99844 1999-10-30  Jim Meyering  <meyering@ascend.com>
99845
99846         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
99847         m4-quoted string.
99848         * m4/ls-mntd-fs.m4: Likewise.
99849         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
99850         * m4/jm-winsz1.m4: Likewise.
99851
99852         * m4/const.m4: Remove file, since the fix made it into the experimental
99853         version of autoconf.
99854         * m4/mktime.m4: Likewise.
99855
99856         * m4/check-type.m4: Remove file, now that the latest version of
99857         AC_CHECK_TYPE takes a third arg to specify additional #includes.
99858
99859         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
99860         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
99861         AC_CHECK_TYPE.
99862
99863 1999-10-04  Jim Meyering  <meyering@ascend.com>
99864
99865         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
99866
99867 1999-09-22  Paul Eggert  <eggert@twinsun.com>
99868
99869         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
99870         2.95.1 bug with HP-UX 10.20.
99871
99872 1999-09-17  Jim Meyering  <meyering@ascend.com>
99873
99874         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
99875         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
99876         due to missing strdup (against sh-utils-2.0).
99877
99878 1999-08-29  Jim Meyering  <meyering@ascend.com>
99879
99880         * m4/jm-macros.m4: Require jm_BISON.
99881         * m4/bison.m4: New file.
99882
99883 1999-08-17  Paul Eggert  <eggert@twinsun.com>
99884
99885         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
99886         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
99887
99888 1999-08-05  Jim Meyering  <meyering@ascend.com>
99889
99890         * m4/getline.m4: Rename test file from conftestdata to conftest.data
99891         to avoid conflicts with `conftest' on 8+3 filesystems.
99892         Suggestion from Eli Zaretskii.
99893
99894 1999-08-04  Jim Meyering  <meyering@ascend.com>
99895
99896         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
99897         fileutils and sh-utils (textutils's getline test was inadequate).
99898         (AM_FUNC_GETLINE): Run this test.
99899         (AC_CHECK_FUNCS): Check for getdelim.
99900         Reported by Bob Proulx.
99901
99902 1999-08-02  Jim Meyering  <meyering@ascend.com>
99903
99904         * m4/jm-macros.m4: Add a comment.
99905
99906 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99907
99908         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
99909         <inttypes.h> defines strtoumax as a macro (and not as a
99910         function).
99911
99912 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99913
99914         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
99915         that we can shift, multiply and divide unsigned long long
99916         values; Ultrix cc can't do it.
99917
99918 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99919
99920         * m4/mktime.m4: New file, which is a preview of what should appear
99921         in the next public autoconf release.
99922
99923 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99924
99925         * m4/lfs.m4: Remove this file.
99926         * m4/largefile.m4: New file.  It contains the old contents of
99927         lfs.m4, except that all names with prefix AC_LFS have been
99928         changed to use the prefix AC_SYS_LARGEFILE instead, to be
99929         compatible with future autoconf versions.  Also, some minor m4
99930         quoting problems have been fixed.
99931
99932 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99933
99934         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
99935         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
99936         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
99937         and simplify the shell code.
99938
99939 1999-08-01  Jim Meyering  <meyering@ascend.com>
99940
99941         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
99942         m4.
99943
99944 1999-07-20  Jim Meyering  <meyering@ascend.com>
99945
99946         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
99947
99948 1999-07-15  Jim Meyering  <meyering@ascend.com>
99949
99950         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
99951
99952 1999-05-22  Jim Meyering  <meyering@ascend.com>
99953
99954         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
99955
99956 1999-05-20  Jim Meyering  <meyering@ascend.com>
99957
99958         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
99959         Add a colon after each `then' in case $4 is empty.
99960
99961 1999-05-16  Jim Meyering  <meyering@ascend.com>
99962
99963         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
99964
99965 1999-05-10  Jim Meyering  <meyering@ascend.com>
99966
99967         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
99968
99969         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
99970         AC_FUNC_MKTIME.
99971
99972 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
99973
99974         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
99975
99976 1999-05-04  Paul Eggert  <eggert@twinsun.com>
99977
99978         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
99979         not CPPFLAGS, so that linking works correctly in IRIX.
99980
99981 1999-04-30  Paul Eggert  <eggert@twinsun.com>
99982
99983         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
99984
99985 1999-04-20  Paul Eggert  <eggert@twinsun.com>
99986
99987         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
99988         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
99989         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
99990         jm_AC_TYPE_UNSIGNED_LONG_LONG.
99991         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
99992
99993         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
99994
99995 1999-04-20  Jim Meyering  <meyering@ascend.com>
99996
99997         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
99998         AC_REPLACE xstroull if necessary.  From Paul Eggert.
99999         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
100000
100001 1999-04-18  Jim Meyering  <meyering@ascend.com>
100002
100003         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
100004         * m4/jm-macros.m4: Use it.
100005
100006 1999-04-06  Jim Meyering  <meyering@ascend.com>
100007
100008         * m4/strftime.m4: Remove test for %f.
100009
100010 1999-03-29  Jim Meyering  <meyering@ascend.com>
100011
100012         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
100013         superset of the AC_TYPE_* checks in the textutils, fileutils,
100014         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
100015         AC_TYPE_PID_T.
100016
100017 1999-03-28  Jim Meyering  <meyering@ascend.com>
100018
100019         * m4/jm-macros.m4: Define GNU_PACKAGE here.
100020         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
100021         replaced e.g., in the *.sh files of the sh-utils.
100022
100023 1999-03-20  Jim Meyering  <meyering@ascend.com>
100024
100025         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
100026         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
100027         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
100028
100029 1999-03-19  Jim Meyering  <meyering@ascend.com>
100030
100031         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
100032
100033 1999-03-12  Jim Meyering  <meyering@ascend.com>
100034
100035         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
100036
100037 1999-03-07  Jim Meyering  <meyering@ascend.com>
100038
100039         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
100040         declared.
100041
100042 1999-02-17  Jim Meyering  <meyering@ascend.com>
100043
100044         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
100045         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
100046
100047 1999-02-07  Jim Meyering  <meyering@ascend.com>
100048
100049         * m4/group-member.m4: New file -- extracted from sh-utils'
100050         configure.in.
100051
100052         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
100053         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
100054
100055 1999-02-06  Jim Meyering  <meyering@ascend.com>
100056
100057         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
100058         * m4/fnmatch.m4: Likewise.
100059         * m4/getgroups.m4: Likewise.
100060         * m4/lstat.m4: Likewise.
100061         * m4/malloc.m4: Likewise.
100062         * m4/putenv.m4: Likewise.
100063         * m4/realloc.m4: Likewise.
100064         * m4/regex.m4: Likewise.
100065         * m4/stat.m4: Likewise.
100066         * m4/strftime.m4: Likewise.
100067         Suggestion from Alain Magloire.
100068
100069         * m4/chown.m4: Use `.$ac_objext', not `.o'.
100070         * m4/fnmatch.m4: Likewise.
100071         * m4/getgroups.m4: Likewise.
100072         * m4/getline.m4: Likewise.
100073         * m4/lstat.m4: Likewise.
100074         * m4/malloc.m4: Likewise.
100075         * m4/memcmp.m4: Likewise.
100076         * m4/putenv.m4: Likewise.
100077         * m4/realloc.m4: Likewise.
100078         * m4/regex.m4: Likewise.
100079         * m4/stat.m4: Likewise.
100080         * m4/strftime.m4: Likewise.
100081         Suggestion from Alain Magloire.
100082
100083         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
100084         an argument.
100085
100086         * m4/regex.m4: Add a run-time Test for proper operation of
100087         re_compile_pattern.
100088
100089 1999-01-31  Jim Meyering  <meyering@ascend.com>
100090
100091         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
100092
100093 1999-01-30  Jim Meyering  <meyering@ascend.com>
100094
100095         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
100096
100097         * m4/jm-mktime.m4: Make this a wrapper around the official
100098         AM_FUNC_MKTIME rather than my private copy, now that the official one
100099         is up to date.
100100         * m4/mktime.m4: Remove file.
100101
100102         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
100103         * m4/uptime.m4: Likewise.
100104         * m4/uintmax_t.m4: Likewise.
100105
100106 1999-01-28  Jim Meyering  <meyering@ascend.com>
100107
100108         * m4/jm-macros.m4: Use jm_AFS.
100109         * m4/afs.m4: New file (from fileutils' configure.in).
100110
100111         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
100112         * m4/chown.m4: Likewise.
100113         * m4/d-ino.m4: Likewise.
100114         * m4/d-type.m4: Likewise.
100115         * m4/fnmatch.m4: Likewise.
100116         * m4/getgroups.m4: Likewise.
100117         * m4/gettext.m4: Likewise.
100118         * m4/jm-mktime.m4: Likewise.
100119         * m4/jm-winsz2.m4: Likewise.
100120         * m4/lcmessage.m4: Likewise.
100121         * m4/ls-mntd-fs.m4: Likewise.
100122         * m4/malloc.m4: Likewise.
100123         * m4/memcmp.m4: Likewise.
100124         * m4/putenv.m4: Likewise.
100125         * m4/realloc.m4: Likewise.
100126         * m4/st_mtim.m4: Likewise.
100127         * m4/strftime.m4: Likewise.
100128
100129 1999-01-16  Jim Meyering  <meyering@ascend.com>
100130
100131         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
100132         (ARGMATCH_DIE_DECL): Define.
100133
100134 1999-01-12  Jim Meyering  <meyering@ascend.com>
100135
100136         * m4/Makefile.am.in: Rewrite to avoid using fmt.
100137         Reported by Lars Hecking.
100138
100139 1999-01-10  Jim Meyering  <meyering@ascend.com>
100140
100141         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
100142         gross kludge.
100143         * m4/inttypes_h.m4: Likewise.
100144         * m4/lstat.m4: Likewise.
100145         * m4/malloc.m4: Likewise.
100146         * m4/readdir.m4: Likewise.
100147         * m4/realloc.m4: Likewise.
100148         * m4/st_dm_mode.m4: Likewise.
100149         * m4/stat.m4: Likewise.
100150         * m4/utimbuf.m4: Likewise.
100151         * m4/utimes.m4: Likewise.
100152
100153         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
100154         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
100155         comments in config.h.in are meaningful.
100156
100157         * m4/jm-macros.m4: Require autoconf-2.13 here.
100158
100159         * m4/regex.m4: By default, don't use the included regex.c on systems
100160         with glibc 2.  Suggestion from Uli Drepper.
100161
100162 1999-01-02  Jim Meyering  <meyering@ascend.com>
100163
100164         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
100165
100166 1998-12-18  Jim Meyering  <meyering@ascend.com>
100167
100168         * m4/Makefile.am.in (Makefile.am): Simplify rule.
100169         Based on a suggestion from Lars Hecking.
100170
100171 1998-11-16  Paul Eggert  <eggert@twinsun.com>
100172
100173         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
100174
100175 1998-11-16  Jim Meyering  <meyering@ascend.com>
100176
100177         * m4/lfs.m4: Double-quote the `uname...` expression.
100178
100179 1998-11-14  Jim Meyering  <meyering@ascend.com>
100180
100181         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
100182         * m4/stat.m4: Likewise.
100183
100184 1998-11-03  Jim Meyering  <meyering@ascend.com>
100185
100186         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
100187         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
100188
100189 1998-10-18  Jim Meyering  <meyering@ascend.com>
100190
100191         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
100192
100193 1998-10-17  Jim Meyering  <meyering@ascend.com>
100194
100195         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
100196         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
100197         calls for those previously hard-coded headers.  Instead, take a new
100198         parameter.
100199         (jm_CHECK_DECLARATIONS): Reflect interface change.
100200         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
100201         (jm_CHECK_DECL_LOCALTIME_R): New macro.
100202
100203         * m4/mktime.m4: Test for spring-forward gap before long-running test.
100204
100205 1998-10-14  Jim Meyering  <meyering@ascend.com>
100206
100207         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
100208         instead of "TZ=America/Vancouver".  From Paul Eggert.
100209
100210 1998-10-11  Jim Meyering  <meyering@ascend.com>
100211
100212         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
100213         This adds a test for a recently added compatibility fix for mktime.c.
100214         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
100215
100216 1998-09-27  Jim Meyering  <meyering@ascend.com>
100217
100218         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
100219
100220         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
100221         ../configure.in, including a change from Gordon Matzigkeit to allow
100222         cross-compiling for the Hurd.
100223
100224         * m4/glibc.m4: New file/macro to test for the GNU C Library
100225         versions 1 and 2.  From Gordon Matzigkeit.
100226         Indent.
100227
100228 1998-09-21  Jim Meyering  <meyering@ascend.com>
100229
100230         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
100231
100232 1998-08-18  Paul Eggert  <eggert@twinsun.com>
100233
100234         Port nanosecond-resolution times to UnixWare 2.1.2 and
100235         pedantic Solaris 2.6.
100236
100237         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
100238         AC_STRUCT_ST_MTIM.
100239         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
100240         Generate name of ns member, instead of just 1 or undef.
100241         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
100242
100243 1998-08-15  Jim Meyering  <meyering@ascend.com>
100244
100245         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
100246         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
100247         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
100248         instead of jm_TYPE_SSIZE_T.
100249
100250 1998-08-12  Jim Meyering  <meyering@ascend.com>
100251
100252         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
100253
100254 1998-08-02  Jim Meyering  <meyering@ascend.com>
100255
100256         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
100257         in acconfig.h manually.
100258
100259 1998-07-31  Paul Eggert  <eggert@twinsun.com>
100260
100261         * m4/st_mtim.m4: New file.
100262
100263 1998-07-28  Jim Meyering  <meyering@ascend.com>
100264
100265         * m4/utimes.m4: Undef stat.
100266
100267 1998-07-25  Jim Meyering  <meyering@ascend.com>
100268
100269         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
100270         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
100271
100272 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
100273
100274         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
100275         uid and gid actually remain unchanged.
100276
100277 1998-07-07  Jim Meyering  <meyering@ascend.com>
100278
100279         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
100280
100281 1998-07-04  Jim Meyering  <meyering@ascend.com>
100282
100283         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
100284         to prove that this macro can be used in packages without regex.c.
100285
100286 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
100287
100288         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
100289         is to be used.
100290
100291 1998-07-03  Jim Meyering  <meyering@ascend.com>
100292
100293         * m4/gettext.m4: Add -lintl if it's found to be necessary.
100294
100295         * m4/gettext.m4: New file -- from gettext-0.10.35.
100296         * m4/lcmessage.m4: Likewise.
100297         * m4/progtest.m4: Likewise.
100298
100299         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
100300         * m4/jm-macros.m4: Require the new macro.
100301
100302 1998-06-29  Jim Meyering  <meyering@ascend.com>
100303
100304         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
100305         for the definition of NGROUPS (used in a system header included
100306         by sys/mount.h).
100307
100308 1998-06-28  Jim Meyering  <meyering@ascend.com>
100309
100310         * m4/ls-mntd-fs.m4: New file.
100311         * m4/fstypename.m4: New file.
100312
100313         * m4/jm-macros.m4: Require the new macro.
100314         * m4/jm-glibc-io.m4: New file.
100315
100316 1998-05-19  Jim Meyering  <meyering@ascend.com>
100317
100318         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
100319         * m4/lchown.m4: New file.
100320
100321         * m4/Makefile.am.in: New file.
100322         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
100323
100324 1998-05-14  Jim Meyering  <meyering@ascend.com>
100325
100326         * m4/Makefile.am (EXTRA_DIST): Add them.
100327         * m4/jm-macros.m4: New file.
100328         * m4/utimbuf.m4: New file.
100329
100330 1998-05-12  Jim Meyering  <meyering@ascend.com>
100331
100332         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
100333
100334 1998-05-11  Jim Meyering  <meyering@ascend.com>
100335
100336         * m4/isc-posix.m4: New file.
100337
100338 1998-05-10  Jim Meyering  <meyering@ascend.com>
100339
100340         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
100341
100342 1998-05-09  Jim Meyering  <meyering@ascend.com>
100343
100344         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
100345         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
100346         with automake.
100347
100348         * m4/ssize_t.m4: New file.
100349         * m4/mktime.m4: Remove file -- the new automake has this now.
100350
100351 1998-04-26  Jim Meyering  <meyering@ascend.com>
100352
100353         * m4/assert.m4: New file.
100354         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
100355
100356 1998-04-05  Jim Meyering  <meyering@ascend.com>
100357
100358         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
100359         (jm_PREREQ): Use it here.
100360
100361 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
100362
100363         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
100364         in acconfig.h.
100365
100366 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
100367
100368         * m4/prereq.m4: New file.
100369         * m4/error.m4: New file.
100370         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
100371
100372 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
100373
100374         * m4/getline.m4: Don't set am_cv_func_working_getline before the
100375         cache-check for the same variable -- that defeated the purpose of
100376         the test; the test program was never run.  This was a problem only
100377         on systems with losing getline functions -- HP-UX 10.20 is one.
100378         Reported by Bjorn Helgaas.
100379
100380 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
100381
100382         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
100383
100384 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
100385
100386         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
100387
100388         * m4/const.m4: New file.  Use an initializer in this declaration
100389         typedef int charset[2]; const charset x;
100390         Reported by Bob Glickstein.
100391
100392 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
100393
100394         * m4/chown.m4: Fix reversed types on -1 args to chown.
100395         From Kaveh Ghazi.
100396
100397 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
100398
100399         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
100400         Add lseek and memchr.
100401
100402         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
100403         T.E.Dickey <dickey@clark.net> said that some older preprocessors
100404         have a 20-character limit on names.
100405
100406 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
100407
100408         * m4/inttypes_h.m4: New file.
100409         * m4/uintmax_t.m4: New file.
100410         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
100411
100412
100413         -----
100414
100415         Local Variables:
100416         coding: utf-8
100417         End:
100418
100419         Copyright (C) 1997-2013 Free Software Foundation, Inc.
100420
100421         Copying and distribution of this file, with or without
100422         modification, are permitted provided the copyright notice
100423         and this notice are preserved.